/* SFA Facilities & Construction — site styles. Mobile first. */

:root {
  --navy: #1A285B;
  --navy-card: #26366F;
  --navy-deep: #141F48;
  --red: #AD1605;
  --red-dark: #8C1204;
  --grey-label: #C9D0E3;
  --off-white: #F7F6F2;
  --white: #FFFFFF;
  --ink: #18203A;
  --ink-muted: #4A5268;
  --line: #E1E3EA;
  --panel: #EEF0F5;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 16px;
  --section-y: 64px;
  --radius: 6px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); line-height: 1.12; }
h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.band--navy :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--off-white); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared pieces ---------- */

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
}
.band--navy .eyebrow { color: var(--grey-label); }

/* Short red rule above a headline, as on the flyer covers */
.rule::before {
  content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin-bottom: 28px;
}

.lead { font-size: clamp(1.125rem, 2.2vw, 1.3rem); line-height: 1.55; max-width: 44em; }

.section { padding: var(--section-y) 0; }
.section--white { background: var(--white); }
.section__head { max-width: 46em; margin-bottom: 40px; }
.section__head p { color: var(--ink-muted); margin-top: 16px; }

.band--navy { background: var(--navy); color: var(--off-white); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: var(--off-white); }
.band--navy .section__head p { color: var(--grey-label); }
.band--navy a:not(.btn) { color: var(--off-white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--outline-light { border-color: var(--grey-label); color: var(--off-white); }
.btn--outline-light:hover { background: var(--off-white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Labeled placeholder for photos not yet supplied */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4 / 3; padding: 24px;
  background: var(--panel); border: 2px dashed #9AA4C2; border-radius: var(--radius);
  color: var(--ink-muted); font-size: 0.95rem; font-weight: 500;
}

/* ---------- Header ---------- */

.site-header { background: var(--navy); color: var(--off-white); position: relative; z-index: 10; }

.emergency-bar { background: var(--navy-deep); font-size: 0.875rem; }
.emergency-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px;
}
.emergency-bar__label { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; color: var(--grey-label); }
.emergency-bar__phone { color: var(--white); font-weight: 700; font-size: 1rem; text-decoration: none; }
.emergency-bar__phone:hover { color: var(--white); text-decoration: underline; }
.emergency-bar__note { color: var(--grey-label); display: none; }
@media (min-width: 700px) { .emergency-bar__note { display: inline; } .emergency-bar__note::before { content: "· "; } }

.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; padding-top: 12px; padding-bottom: 12px;
}

.wordmark { display: flex; align-items: center; gap: 12px; color: var(--off-white); text-decoration: none; }
.wordmark__logo { display: block; height: 30px; width: auto; }
.wordmark:hover { color: var(--off-white); }
.wordmark__sfa { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; line-height: 1; }
.wordmark__name { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-label); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; color: var(--off-white); border: 1px solid rgba(201, 208, 227, 0.5); border-radius: 4px;
  font: 600 0.95rem var(--sans); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Keep the logo and menu button on one row on small phones */
@media (max-width: 419px) {
  .wordmark { gap: 8px; }
  .wordmark__logo { height: 26px; }
  .wordmark__name { font-size: 0.64rem; letter-spacing: 0.1em; }
  .nav-toggle { padding: 8px 11px; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0 12px; }
.site-nav li a:not(.btn) {
  display: block; padding: 12px 0; color: var(--off-white); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(201, 208, 227, 0.18);
}
.site-nav li a:not(.btn):hover, .site-nav a[aria-current]:not(.btn) { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-nav__cta { padding-top: 16px; }
.site-nav__cta .btn { width: 100%; }

/* With JavaScript, the mobile menu collapses behind the toggle */
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

@media (min-width: 1140px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul { display: flex; align-items: center; gap: 22px; padding: 0; margin-left: 32px; }
  .site-nav li a:not(.btn) { font-size: 0.95rem; }
  .site-nav li a:not(.btn) { padding: 8px 0; border: 0; }
  .site-nav__cta { padding-top: 0; }
  .site-nav__cta .btn { width: auto; }
}

/* ---------- Hero ---------- */

.hero { padding: 56px 0 64px; border-bottom: 8px solid var(--red); }
.hero h1 { max-width: 12em; }
.hero h1 .line { display: block; }
.hero .lead { margin-top: 28px; color: var(--off-white); }
.hero__sub { margin-top: 16px; color: var(--grey-label); max-width: 44em; }
.hero__affiliate { margin-top: 40px; font-size: 0.9rem; color: var(--grey-label); }
.hero__affiliate a { color: var(--grey-label) !important; }
@media (min-width: 768px) { .hero { padding: 88px 0 96px; } }

.hero--page { padding: 56px 0; }

/* Seasonal notice under the hero */
.notice { background: var(--white); border-bottom: 1px solid var(--line); }
.notice__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-top: 18px; padding-bottom: 18px; font-size: 0.98rem; }
.notice strong { color: var(--red); }

/* ---------- Who we are ---------- */

.intro { display: grid; gap: 40px; }
.intro__text p { font-size: 1.125rem; color: var(--ink); }
@media (min-width: 900px) { .intro { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; margin: 56px 0 0; padding: 0; list-style: none; }
.stat { border-top: 4px solid var(--red); padding-top: 16px; }
.stat__num { font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: 1; color: var(--navy); }
.stat__label { margin-top: 10px; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.45; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* ---------- Services grid (navy) ---------- */

.service-grid { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1040px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 24px; background: var(--navy-card); border-radius: var(--radius);
  border-top: 3px solid var(--red);
  color: var(--grey-label) !important; text-decoration: none;
}
.service-card h3 { color: var(--white); margin-bottom: 8px; }
.service-card p { font-size: 0.98rem; line-height: 1.5; flex: 1; }
.service-card__more { margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--white); }
.service-card__more::after { content: " →"; }
.service-card:hover { background: #2E4080; }
.service-card:hover .service-card__more { text-decoration: underline; }
.services__all { margin-top: 32px; }

/* ---------- Commitments ---------- */

.commitments { display: grid; gap: 32px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 800px) { .commitments { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; } }
.commitment { border-top: 4px solid var(--red); padding-top: 20px; }
.commitment__figure { font-family: var(--serif); font-weight: 700; font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1; color: var(--navy); }
.commitment__label { margin: 12px 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.commitment p { color: var(--ink); }
.commitment .link-arrow { display: inline-block; margin-top: 12px; font-size: 0.95rem; }

/* ---------- Comparison cards ---------- */

.compare-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 800px) { .compare-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.compare-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.compare-card h3 { margin-bottom: 8px; }
.compare-card p { color: var(--ink-muted); }

/* ---------- Audience cards ---------- */

.audience-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .audience-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.audience-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 28px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.audience-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.audience-card p { color: var(--ink-muted); flex: 1; }
.audience-card .link-arrow { margin-top: 16px; color: var(--navy); }
.audience-card:hover { border-color: #C3C8D6; border-top-color: var(--red); color: var(--ink); }
.audience-card:hover .link-arrow { text-decoration: underline; }
.audience-note { margin-top: 28px; color: var(--ink-muted); }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 16px; }
.step::before {
  content: counter(step); display: block; margin-bottom: 8px;
  font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--red);
}
.step p { font-weight: 500; }

.record {
  margin-top: 48px; padding: 28px; background: var(--panel); border-radius: var(--radius);
  display: grid; gap: 8px;
}
.record h3 { font-size: 1.1rem; }
.record p { color: var(--ink-muted); }
@media (min-width: 800px) { .record { grid-template-columns: 280px 1fr; gap: 32px; align-items: baseline; } }

/* ---------- Closing call to action ---------- */

.cta { padding: var(--section-y) 0; }
.cta h2 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.cta .lead { margin-top: 20px; color: var(--grey-label); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--grey-label); border-top: 8px solid var(--red); padding: 48px 0 28px; font-size: 0.95rem; }
.site-footer a { color: var(--off-white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; line-height: 1.4; }
.site-footer__grid { display: grid; gap: 28px; }
.site-footer__quick { display: flex; flex-wrap: wrap; gap: 10px 0; font-size: 0.92rem; }
.site-footer__quick a { padding-right: 14px; margin-right: 14px; border-right: 1px solid rgba(201, 208, 227, 0.3); line-height: 1.2; }
.site-footer__quick a:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.site-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
@media (min-width: 700px) { .site-footer__links { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }
@media (min-width: 1040px) { .site-footer__grid { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; } }
@media (max-width: 699px) { .site-footer__col--wide { grid-column: 1 / -1; } .site-footer__col--wide ul { columns: 2; column-gap: 20px; } .site-footer__col--wide li { break-inside: avoid; } }
.site-footer__cta { margin-top: 20px; }
.site-footer__cta .btn { padding: 10px 18px; font-size: 0.95rem; }
.site-footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.site-footer__logo img { display: block; height: 36px; width: auto; }
.site-footer__name { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-label); }
.site-footer__tagline { margin-bottom: 16px; }
.site-footer__states { margin-top: 20px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__heading { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-label); margin-bottom: 14px; }
.site-footer__base {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(201, 208, 227, 0.25);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.875rem;
}
.site-footer__base p { margin: 0; }

/* =========================================================
   Inner pages
   ========================================================= */

/* Page hero */
.page-hero { padding: 40px 0 56px; border-bottom: 8px solid var(--red); }
.page-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.08; max-width: 17em; }
.page-hero .lead { margin-top: 24px; color: var(--off-white); }
.page-hero .btn-row { margin-top: 28px; }
@media (min-width: 768px) { .page-hero { padding: 56px 0 80px; } }

.crumbs { margin-bottom: 32px; font-size: 0.875rem; color: var(--grey-label); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--grey-label); }
.crumbs a { color: var(--grey-label) !important; }
.crumbs [aria-current] { color: var(--off-white); }

/* Intro text beside "what we do / how it is priced" (as on the deck) */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.split__intro p { font-size: 1.125rem; color: var(--ink-muted); margin-top: 20px; }
.fact { border-top: 4px solid var(--red); padding-top: 16px; }
.fact + .fact { margin-top: 32px; }
.fact h3 { color: var(--navy); margin-bottom: 10px; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--red);
}

/* Red-ruled blocks, two up (as on the flyers) */
.blocks { display: grid; gap: 32px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .blocks { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }
.block { border-top: 3px solid var(--red); padding-top: 16px; }
.block h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.block p { color: var(--ink-muted); }

/* Before / during / after */
.phases { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 800px) { .phases { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.phase { border-top: 4px solid var(--navy); padding: 18px 0 0; }
.phase:last-child { border-top-color: var(--red); }
@media (min-width: 800px) {
  .phase { padding: 18px 24px 0; border-right: 1px solid var(--line); }
  .phase:first-child { padding-left: 0; }
  .phase:last-child { border-right: 0; }
}
.phase h3 { margin-bottom: 8px; }
.phase p { color: var(--ink-muted); }

/* Grey panel with two columns */
.panel { background: var(--panel); border-radius: var(--radius); padding: 28px; display: grid; gap: 32px; }
@media (min-width: 800px) { .panel { grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px; } }
.panel__title { margin: 0 0 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.terms p { margin-bottom: 14px; }
.terms strong { color: var(--navy); }

.lead-in { margin-top: 40px; font-size: 1.05rem; }
.lead-in strong { color: var(--red); }

/* Large call block for emergency */
.callbox {
  margin-top: 32px; padding: 24px; background: var(--navy-deep); border-left: 6px solid var(--red); border-radius: var(--radius);
  display: grid; gap: 6px; max-width: 34rem;
}
.callbox__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-label); margin: 0; }
.callbox__phone { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; color: var(--white) !important; text-decoration: none; }
.callbox p { color: var(--grey-label); margin: 0; }

/* Where we work */
.where { display: grid; gap: 24px; }
@media (min-width: 900px) { .where { grid-template-columns: 1fr 2fr; gap: 64px; } }
.where dl { margin: 0; }
.where dt { font-weight: 700; color: var(--navy); margin-top: 16px; }
.where dt:first-child { margin-top: 0; }
.where dd { margin: 4px 0 0; color: var(--ink-muted); }

/* Related links */
.related { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }

/* Services overview list */
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-row { display: grid; gap: 12px; padding: 32px 0; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 4px solid var(--red); }
@media (min-width: 900px) { .svc-row { grid-template-columns: 1.1fr 1.4fr 1.2fr; gap: 40px; } }
.svc-row h2 { font-size: 1.5rem; }
.svc-row h2 a { text-decoration: none; }
.svc-row h2 a:hover { text-decoration: underline; }
.svc-row__label { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.svc-row p { color: var(--ink-muted); }

/* Card headings that are h2 for outline but styled like card titles */
.h3-serif { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }

/* Plain list of linked services inside a block */
.block .link-arrow { display: inline-block; margin-top: 10px; font-size: 0.95rem; }

/* ---------- Forms ---------- */

.form-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

.alert { background: var(--white); border-left: 6px solid var(--red); padding: 16px 20px; margin-bottom: 32px; border-radius: 0 var(--radius) var(--radius) 0; }
.alert strong { color: var(--red); }

.form fieldset { border: 0; border-top: 3px solid var(--red); margin: 0 0 32px; padding: 16px 0 0; }
.form legend { padding: 0 12px 0 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.form .hint { font-family: var(--sans); font-size: 0.9rem; font-weight: 400; color: var(--ink-muted); }

.field { margin-top: 16px; display: grid; gap: 6px; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: 0.95rem; }
.req { font-weight: 400; color: var(--ink-muted); }

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid #9AA4C2; border-radius: 4px;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form [aria-invalid="true"] { border-color: var(--red); border-width: 2px; }

.checks { display: grid; gap: 4px 20px; margin-top: 12px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.check--packet { margin-top: 12px; padding: 14px 16px; background: var(--panel); border-radius: var(--radius); font-weight: 600; }

.form-errors { background: #FBEAE8; border: 1px solid var(--red); color: var(--ink); padding: 14px 16px; border-radius: 4px; margin-bottom: 20px; }
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }
.btn--submit { min-width: 200px; }
.form-fine { margin-top: 16px; font-size: 0.9rem; color: var(--ink-muted); }

.form-aside { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px; }
.mini-steps { margin: 0; padding-left: 20px; }
.mini-steps li { margin-bottom: 8px; }

.prototype-note { margin-top: 24px; padding: 12px 16px; border: 1px dashed var(--grey-label); border-radius: 4px; color: var(--grey-label); }

/* ---------- How we work: steps with headings ---------- */
.steps--detail .step h3 { margin-bottom: 6px; }
.steps--detail .step p { font-weight: 400; color: var(--ink-muted); }

/* ---------- About: team and portfolio ---------- */
.team { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px; }
.person h3 { font-size: 1.2rem; }
.person__role { margin: 4px 0 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.person__email { margin-top: 12px; font-size: 0.92rem; }
.person--navy { background: var(--navy); border-color: var(--navy); color: var(--grey-label); }
.person--navy h3 { color: var(--white); margin-top: 0; }
.ph--portrait { aspect-ratio: 1 / 1; font-size: 0.85rem; padding: 16px; }

.portfolio { display: grid; gap: 32px; }
@media (min-width: 900px) { .portfolio { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.portfolio h3 { border-top: 3px solid var(--red); padding-top: 12px; margin: 0 0 10px; }
.portfolio ul + h3 { margin-top: 28px; }
.portfolio ul { list-style: none; margin: 0; padding: 0; }
.portfolio li { padding: 4px 0; }
.portfolio li span { color: var(--ink-muted); font-size: 0.92rem; }
.portfolio li span::before { content: " · "; }

/* ---------- Service area ---------- */
.towns { display: grid; gap: 40px; }
@media (min-width: 900px) { .towns { grid-template-columns: repeat(3, 1fr); } }
.towns h2 { font-size: 1.6rem; border-top: 4px solid var(--red); padding-top: 14px; }
.towns h3 { margin: 20px 0 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.towns ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.towns li { padding: 3px 0; break-inside: avoid; }

/* ---------- Flyers ---------- */
.doc-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .doc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.doc { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px; }
.doc h2 { font-size: 1.4rem; margin-bottom: 8px; }
.doc p { color: var(--ink-muted); flex: 1; }
.doc__meta { margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.doc p.doc__meta { flex: 0 0 auto; }
.doc__size { font-weight: 400; color: var(--ink-muted); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 44em; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.draft-flag { display: inline-block; margin-bottom: 24px; padding: 6px 12px; border: 1px dashed var(--red); color: var(--red); font-weight: 600; font-size: 0.9rem; border-radius: 4px; }

/* ---------- Home: tagline and divisions ---------- */
.hero__tagline { margin: 0 0 16px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--grey-label); }
.hero h1 { max-width: 18em; font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.08; }

.divisions { display: grid; gap: 20px; }
@media (min-width: 960px) { .divisions { grid-template-columns: 1fr 1fr; gap: 24px; } }
.division { display: flex; flex-direction: column; background: var(--navy-card); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px; }
@media (min-width: 768px) { .division { padding: 36px; } }
.division__title { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 700; line-height: 1.2; color: var(--white); }
.division__lead { margin-top: 14px; color: var(--grey-label); }
.division__list { list-style: none; margin: 24px 0 0; padding: 0; flex: 1; }
.division__list a { display: block; padding: 14px 0; border-top: 1px solid rgba(201, 208, 227, 0.22); text-decoration: none; }
.division__list strong { display: block; color: var(--white); font-weight: 600; }
.division__list strong::after { content: " →"; }
.division__list span { display: block; margin-top: 2px; color: var(--grey-label); font-size: 0.95rem; line-height: 1.45; }
.division__list a:hover strong { text-decoration: underline; }
.division .btn-row { margin-top: 24px; }
.site-footer__heading a { color: var(--grey-label) !important; }
.site-footer__heading--gap { margin-top: 24px; }
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { text-decoration: underline; color: inherit; }
.svc-row h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.svc-row h3 a { text-decoration: none; }
.svc-row h3 a:hover { text-decoration: underline; }

/* ---------- Home: division bands ---------- */
.hero__jump { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.hero__jump a { color: var(--off-white) !important; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.hero__jump a::after { content: " ↓"; }
.hero__jump a:hover { color: var(--white) !important; border-bottom-color: var(--white); }

.division-band { scroll-margin-top: 16px; }
.division-band__head { display: grid; gap: 24px; margin-bottom: 40px; }
@media (min-width: 960px) { .division-band__head { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; } }
.division-band h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.division-band__lead { font-size: 1.1rem; color: var(--ink-muted); }
.band--navy .division-band__lead { color: var(--grey-label); }
.division-band .btn-row { margin-top: 20px; }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.svc-cards { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 680px) { .svc-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .svc-cards { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; padding: 28px; background: var(--off-white); border-top: 4px solid var(--red); border-radius: var(--radius); }
.svc-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.svc-card h3 a { color: var(--navy); text-decoration: none; }
.svc-card h3 a:hover { text-decoration: underline; }
.svc-card > p { color: var(--ink-muted); }
.svc-card__facts { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); flex: 1; }
.svc-card__facts li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.svc-card__facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--red); }
.svc-card__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 0.95rem; }
.svc-card__links a:last-child { color: var(--red); }

.svc-cards--dark .svc-card { background: var(--navy-card); }
.svc-cards--dark .svc-card h3 a { color: var(--white); }
.svc-cards--dark .svc-card > p { color: var(--grey-label); }
.svc-cards--dark .svc-card__facts { border-top-color: rgba(201, 208, 227, 0.22); }
.svc-cards--dark .svc-card__facts li { color: var(--off-white); }
.svc-cards--dark .svc-card__links a { color: var(--grey-label) !important; }
.svc-cards--dark .svc-card__links a:last-child { color: var(--white) !important; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Home: front door ---------- */

.hero--short .hero__affiliate { margin-top: 32px; }
.door-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .door-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.door { display: flex; flex-direction: column; padding: 32px 28px 28px; background: var(--off-white); border-top: 6px solid var(--red); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(26, 40, 91, 0.10); }
.door--white { background: var(--white); }
@media (min-width: 600px) { .door { padding: 40px 36px 36px; } }
.door h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.15; margin-top: 10px; }
.door__lead { margin-top: 16px; color: var(--ink-muted); }
.door__list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.door__list li { border-bottom: 1px solid var(--line); }
.door__list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; font-weight: 600; color: var(--navy); text-decoration: none; }
.door__list a::after { content: "\2192"; color: var(--red); flex: none; }
.door__list a:hover { text-decoration: underline; }
.door .btn-row { margin-top: auto; padding-top: 28px; align-items: center; gap: 12px 24px; }
.door .btn-row .link-arrow { color: var(--navy); }
.door--navy { background: var(--navy); color: var(--grey-label); }
.door--navy .eyebrow { color: var(--grey-label); }
.door--navy h2 { color: var(--white); }
.door--navy .door__lead { color: var(--grey-label); }
.door--navy .door__list, .door--navy .door__list li { border-color: rgba(201, 208, 227, 0.25); }
.door--navy .door__list a { color: var(--white); }
.door--navy .btn-row .link-arrow { color: var(--grey-label); }
.audience-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.audience-list li { border-bottom: 1px solid var(--line); }
.audience-list a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; color: var(--ink); }
.audience-list strong { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.audience-list span { color: var(--ink-muted); }
.audience-list a:hover strong { text-decoration: underline; }
@media (min-width: 760px) { .audience-list a { grid-template-columns: 20em 1fr; gap: 24px; align-items: baseline; } }
.cta .lead a { color: var(--off-white); }

/* ---------- Home refinements: hero stats, overlapping cards, photo band, paths ---------- */

.hero--home { padding-bottom: 120px; }
@media (min-width: 768px) { .hero--home { padding-bottom: 150px; } }
.hero__grid { display: grid; gap: 40px; }
.hero__stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.hero__stats li { border-top: 2px solid rgba(201, 208, 227, 0.35); padding-top: 14px; }
.hero__stats b { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; color: var(--white); }
.hero__stats span { display: block; margin-top: 8px; font-size: 0.92rem; line-height: 1.4; color: var(--grey-label); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr); gap: 72px; align-items: end; }
  .hero__stats { margin: 0; align-self: end; padding-bottom: 6px; }
}
.doors { padding-top: 0; margin-top: -88px; position: relative; }
@media (min-width: 768px) { .doors { margin-top: -110px; } }
.doors__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; color: var(--ink-muted); font-size: 0.98rem; }
.doors__foot strong { color: var(--red); }
.owners__grid { display: grid; gap: 32px; }
.ph--band { aspect-ratio: 4 / 3; background: var(--navy-card); border: 0; color: var(--grey-label); font-size: 0.9rem; }
img.owners__photo, .intro__photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); border-top: 4px solid var(--red); }
.owners__text h2 { margin-top: 12px; }
.owners__text p { margin-top: 20px; font-size: 1.125rem; color: var(--ink); max-width: 32em; }
@media (min-width: 900px) {
  .owners__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .ph--band { aspect-ratio: 5 / 4; }
  img.owners__photo { aspect-ratio: 5 / 4; }
}
.path-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .path-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1040px) { .path-grid { grid-template-columns: repeat(4, 1fr); } }
.path-grid a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 20px 22px; background: var(--navy-card); border-top: 3px solid var(--red); border-radius: var(--radius); text-decoration: none; color: var(--grey-label) !important; }
.path-grid strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; color: var(--white); }
.path-grid span { font-size: 0.95rem; line-height: 1.45; }
.path-grid a:hover { background: #2F4080; }
.path-grid a:hover strong { text-decoration: underline; }
.cta__serve-title { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-top: 10px; }
.path-line { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.path-line li { padding-right: 16px; margin-right: 16px; border-right: 1px solid rgba(201, 208, 227, 0.35); line-height: 1.2; }
.path-line li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
@media (max-width: 699px) { .path-line { gap: 12px 0; } .path-line li { border-right: 0; margin-right: 0; padding-right: 0; flex: 0 0 100%; } }
.path-line a { font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.path-line a::after { content: " →"; color: var(--red); }
.path-line a:hover { text-decoration: underline; }
.cta__close { margin-top: 44px; padding-top: 36px; border-top: 1px solid rgba(201, 208, 227, 0.25); }
.cta__close .lead { margin-top: 0; max-width: 40em; }
.cta__close .lead a { white-space: nowrap; }
.cta__close .btn-row { margin-top: 24px; }
@media (min-width: 768px) { .cta__close { margin-top: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center; } .cta__close .btn-row { margin-top: 0; flex-wrap: nowrap; } }

/* Footer: compact on phones (kept last so it wins) */
@media (max-width: 699px) { .site-footer__links { display: none; } .site-footer { padding: 40px 0 24px; } }
@media (min-width: 700px) { .site-footer__quick { display: none; } }
