/* Stratafact Management Consulting - shared stylesheet
   Plain CSS, no build step. Edit the tokens below to change the look site-wide. */

:root {
  --navy: #00498E;
  --navy-dark: #0B2545;
  --lime: #B1BB1E;
  --grey: #5C5F63;        /* darkened from logo grey #7F8082 so small text passes WCAG AA */
  --grey-logo: #7F8082;
  --border: #DDE2E6;
  --text: #1F2933;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F8;
  --radius: 5px;
  --max: 1200px;
  --gutter: 20px;
  --shadow: 0 2px 4px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .07);
  --font: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--navy-dark); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; max-width: 72ch; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy-dark); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--navy); margin: 0 0 .6em; }
.on-dark .eyebrow, .eyebrow.lime { color: var(--lime); }

/* Section heading with lime bar */
.section-title { position: relative; padding-bottom: 18px; margin-bottom: 28px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--lime); border-radius: 2px; }
.center .section-title::after { left: 50%; transform: translateX(-50%); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: var(--radius); font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; font-family: inherit; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-accent { background: var(--lime); color: var(--navy-dark); }
.btn-accent:hover { background: #c4cf2a; color: var(--navy-dark); transform: translateY(-1px); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy-dark); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo img { display: block; height: 44px; width: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius); }
.nav-button span { display: block; height: 2px; background: var(--navy-dark); border-radius: 1px; }
.nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--navy); outline-offset: 2px; }
.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px; }
.nav-toggle:checked ~ .primary-nav { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li a { display: block; padding: 14px 4px; text-decoration: none; color: var(--navy-dark); font-weight: 600; border-bottom: 1px solid var(--border); }
.primary-nav li a[aria-current="page"] { color: var(--navy); box-shadow: inset 4px 0 0 var(--lime); padding-left: 14px; }
.primary-nav .btn { margin-top: 16px; display: block; text-align: center; }

@media (min-width: 960px) {
  .nav-button { display: none; }
  .primary-nav { display: flex; align-items: center; gap: 28px; position: static; box-shadow: none; border: 0; padding: 0; background: none; }
  .primary-nav ul { display: flex; gap: 26px; }
  .primary-nav li a { border: 0; padding: 8px 0; position: relative; font-size: .97rem; }
  .primary-nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lime); transform: scaleX(0); transition: transform .2s; border-radius: 2px; }
  .primary-nav li a:hover::after, .primary-nav li a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav li a[aria-current="page"] { box-shadow: none; padding-left: 0; }
  .primary-nav .btn { margin: 0; padding: 11px 20px; }
}

/* Photo-backed bands: image + navy overlay */
.photo-band { position: relative; color: #fff; background-color: var(--navy-dark); background-size: cover; background-position: center; isolation: isolate; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,37,69,.9) 0%, rgba(11,37,69,.78) 55%, rgba(11,37,69,.7) 100%); z-index: -1; }
.photo-band h1, .photo-band h2, .photo-band h3 { color: #fff; }
.photo-band a:not(.btn) { color: #fff; }
.photo-band p { color: #E8EEF5; }

.hero { padding: 88px 0 96px; min-height: min(80vh, 680px); display: flex; align-items: center; }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: 1.2rem; max-width: 56ch; }
.page-header { padding: 64px 0 56px; }
.page-header.compact { padding: 52px 0 44px; }
.page-header h1 { max-width: 26ch; margin-bottom: .45em; }
.page-header .lead { font-size: 1.15rem; max-width: 62ch; margin-bottom: 0; }
.cta-band { padding: 72px 0; text-align: center; }
.cta-band p { margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* Pills (anchor links) and chips */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { display: inline-block; padding: 9px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff !important; text-decoration: none; font-weight: 600; font-size: .93rem; transition: background-color .2s, color .2s; }
.pill:hover { background: #fff; color: var(--navy-dark) !important; }
.chips { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 4px; background: var(--bg-alt); border: 1px solid var(--border); font-size: .9rem; font-weight: 550; color: var(--navy-dark); }
.on-dark .chips li, .photo-band .chips li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }

/* Intro two-column */
.split { display: grid; gap: 28px; }
@media (min-width: 880px) { .split { grid-template-columns: 5fr 7fr; gap: 56px; } .split.even { grid-template-columns: 1fr 1fr; align-items: center; } }
.callout { border-left: 4px solid var(--lime); background: var(--bg-alt); padding: 16px 20px; font-weight: 600; color: var(--navy-dark); border-radius: 0 var(--radius) var(--radius) 0; max-width: 72ch; }
.alt .callout { background: #fff; }

/* Cards */
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--text); flex: 1; }
.card .more { font-weight: 650; text-decoration: none; margin-top: auto; }
.card .more:hover { text-decoration: underline; }
.icon { width: 40px; height: 40px; color: var(--navy); margin-bottom: 16px; flex: none; }
.icon-sm { width: 22px; height: 22px; color: var(--navy); flex: none; }
.more-link { display: inline-block; margin-top: 28px; font-weight: 650; }

/* Stats */
.stats { background: var(--navy-dark); color: #fff; padding: 56px 0; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px 20px; grid-template-columns: 1fr 1fr; text-align: center; }
.stats li:last-child { grid-column: 1 / -1; }
.stat-num { display: block; font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 750; line-height: 1.1; color: var(--lime); letter-spacing: -.02em; }
.stat-cap { display: block; margin-top: 8px; font-size: .95rem; color: #D5DEE9; line-height: 1.4; max-width: 24ch; margin-inline: auto; }
@media (min-width: 900px) { .stats ul { grid-template-columns: repeat(5, 1fr); } .stats li:last-child { grid-column: auto; } }

/* Why grid */
.why-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.why-item p { margin: 0; }
.why-item strong { color: var(--navy-dark); }
.check { width: 24px; height: 24px; flex: none; color: var(--navy); margin-top: 2px; }

/* Map */
.map-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.map-wrap img, .map-wrap svg { display: block; width: 100%; height: auto; }

/* Municipal band */
.municipal { padding: 80px 0; }
.municipal::before { background: linear-gradient(95deg, rgba(11,37,69,.93) 0%, rgba(11,37,69,.84) 60%, rgba(11,37,69,.72) 100%); }
.municipal .inner { max-width: 760px; border-left: 4px solid var(--lime); padding-left: 24px; }
.plain-note { font-size: .98rem; }

/* Services */
.service { padding: 64px 0; }
.service-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.service-head .icon { margin: 4px 0 0; width: 44px; height: 44px; }
.service-num { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); display: block; margin-bottom: 4px; }
.service h2 { margin-bottom: .3em; }
.summary { font-size: 1.15rem; max-width: 66ch; }
.best-for { border-left: 4px solid var(--lime); padding: 4px 0 4px 16px; margin: 0 0 28px; max-width: 70ch; }
.best-for strong { color: var(--navy-dark); }
.deliver-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-bottom: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 40px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .check { width: 22px; height: 22px; }
.service.featured { background: #fff; border-top: 6px solid var(--lime); border-bottom: 1px solid var(--border); position: relative; }
.service.featured .service-top { margin: 0 calc(var(--gutter) * -1) 36px; }
.featured-top { background-size: cover; background-position: center; color: #fff; padding: 40px 0 36px; margin-bottom: 40px; }
.featured-top::before { background: linear-gradient(100deg, rgba(11,37,69,.92), rgba(11,37,69,.78)); }
.featured-top .icon { color: var(--lime); }
.featured-top .service-num { color: var(--lime); }
.featured-top .summary { color: #E8EEF5; margin: 0; }
.quiet-note { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-top: 32px; font-size: .97rem; color: var(--grey); max-width: 78ch; }
.service.featured .chips li { background: #fff; }

.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 22px 20px; border: 1px solid var(--border); border-top: 4px solid var(--navy); border-radius: var(--radius); font-weight: 650; color: var(--navy-dark); background: #fff; box-shadow: var(--shadow); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; position: relative; }
.steps li { position: relative; padding-left: 64px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: -28px; width: 2px; background: var(--border); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; }
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { padding: 64px 0 0; }
  .steps li::after { left: 44px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* Team */
.profiles { display: grid; gap: 28px; }
@media (min-width: 980px) { .profiles { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
.profile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.profile-top { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; }
.profile-top > div:last-child { flex: 1 1 0; min-width: 0; }
.headshot { position: relative; width: 112px; height: 140px; flex: none; background: linear-gradient(160deg, #E6ECF3, #CBD6E2); border: 3px solid var(--navy); border-radius: var(--radius); display: grid; place-items: center; color: var(--navy); overflow: hidden; }
.headshot::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 34px; height: 34px; background: var(--lime); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.headshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.headshot svg { width: 64%; opacity: .55; }
.profile h2 { font-size: 1.45rem; margin-bottom: .15em; }
.profile .role { margin: 0; font-weight: 650; color: var(--navy); }
.profile h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); margin: 24px 0 10px; }

/* Experience */
.filters { position: relative; }
.filters > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab-bar label { padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-weight: 650; color: var(--navy-dark); background: #fff; transition: background-color .2s, color .2s; }
.tab-bar label:hover { border-color: var(--navy); }
#f-all:checked ~ .tab-bar label[for="f-all"],
#f-health:checked ~ .tab-bar label[for="f-health"],
#f-muni:checked ~ .tab-bar label[for="f-muni"] { background: var(--navy); color: #fff; border-color: var(--navy); }
#f-all:focus-visible ~ .tab-bar label[for="f-all"],
#f-health:focus-visible ~ .tab-bar label[for="f-health"],
#f-muni:focus-visible ~ .tab-bar label[for="f-muni"] { outline: 3px solid var(--navy); outline-offset: 3px; }
#f-health:checked ~ .cases .case[data-group="muni"],
#f-muni:checked ~ .cases .case[data-group="health"] { display: none; }
.cases { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: 4px 10px; border-radius: 3px; background: var(--bg-alt); color: var(--navy); border: 1px solid var(--border); margin-bottom: 14px; }
.case h2 { font-size: 1.25rem; margin-bottom: 18px; }
.case dl { margin: 0; }
.case dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); margin-top: 14px; }
.case dd { margin: 4px 0 0; }
.case dd.result { border-left: 4px solid var(--lime); padding-left: 14px; font-weight: 600; color: var(--navy-dark); margin-top: 6px; }
.panel { background: var(--bg-alt); border-radius: var(--radius); padding: 36px 32px; border: 1px solid var(--border); }
.panel ul { margin: 0; padding-left: 1.2em; }
.panel li { margin-bottom: .4em; }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--navy-dark); }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 650; color: var(--navy-dark); margin-bottom: 6px; font-size: .97rem; }
.field .opt { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); padding: 12px 14px; border: 1px solid #A9B4BF; border-radius: var(--radius); background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0,73,142,.35); outline-offset: 0; border-color: var(--navy); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-line { font-size: .88rem; color: var(--grey); margin: 14px 0 0; }
.narrow { max-width: 680px; }
.message-box { text-align: center; padding: 96px 0; }
.message-box h1 { font-size: 2.2rem; }
.message-box p { margin-inline: auto; font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #D5DEE9; padding: 52px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 18px; }
.site-footer p { margin: 0 0 .4em; max-width: none; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; color: var(--lime); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; font-size: .88rem; color: #AEBBCB; }
.footer-legal p { margin: 0; }
.site-footer .mail { color: var(--lime); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .cta-band, .site-footer { display: none; } .photo-band { background: none !important; color: #000; } .photo-band::before { display: none; } .photo-band h1, .photo-band p { color: #000 !important; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 640px) { .headshot { width: 148px; height: 184px; } .profile h2 { font-size: 1.6rem; } }
.split > .section-title { align-self: start; }
.tiles + p { margin-top: 28px; }
.stat-num.long { font-size: clamp(1.6rem, 3vw, 2.1rem); white-space: nowrap; padding-top: .35em; }
@media (max-width: 899px) { .stat-num.long { font-size: 1.9rem; } }
