/* =========================================================
   Design tokens
   ========================================================= */
:root {
  /* Fonts — switchable via font demo widget */
  /* Each web font is followed by its metric-matched fallbacks (fonts.css),
     so text doesn't reflow when the web font swaps in */
  --heading-font: 'Source Serif 4', 'Source Serif 4 Fallback', 'Source Serif 4 Fallback Times', 'Source Serif 4 Fallback Noto', Georgia, serif;
  --body-font: 'DM Sans', 'DM Sans Fallback', 'DM Sans Fallback Roboto', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Semantic aliases — derived from palette vars set in colors.css */
  --bg-soft: var(--section-warm);
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border-width: 1px;
  --nav-padding-block: 8px;
  /* Desktop nav label row, centred on the logo lockup and then nudged 6px
     lower so the labels sit a touch below the bar's exact middle */
  --nav-label-row-height: 32px;
  --nav-label-drop: 6px;
  /* "Adolescent" in the header logo lockup; the desktop nav's hover
     underline and divider share it */
  --brand-name-accent: #537C75;
  --nav-accent: var(--brand-name-accent);
  /* The divider in the logo lockup */
  --brand-divider-color: #3A615E;
  /* The logo divider runs the height of the three-line name beside it */
  --brand-name-size: 15px;
  --brand-name-line-height: 1.15;
  --brand-divider-height: calc(3 * var(--brand-name-line-height) * var(--brand-name-size));
  /* Nav-to-phone-pill gap: 72px from 1280px up, shrinking with the viewport
     below that (57.6px at 1024px) so the nav never reaches the logo */
  --nav-pill-gap: min(5.625vw, 72px);
  /* Frosted glass for the dropdown panels and the mobile menu, more see-through
     than the header. 0.73 is the lowest opacity that keeps the navy links at
     WCAG AA 4.5:1 over the darkest thing the sticky header can sit on: the
     deep-navy footer (0.72 measured 4.44:1; the hero alone passes from 0.70).
     Blur and saturate don't move that floor, since those backgrounds are flat. */
  --nav-glass-bg: rgba(255, 255, 255, 0.73);
  --nav-glass-filter: blur(24px) saturate(180%);
  /* Faint white rim that reads as the glass edge */
  --nav-glass-highlight: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  --pill: var(--navy);
  --pill-ink: #FFFFFF;

  --accent-pink: var(--mint);
  --accent-mint: var(--sage);
  --accent-yellow: var(--teal);
  --accent-purple: var(--navy);
  --accent-lavender: var(--mint-soft);

  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 12px 30px rgba(42, 51, 64, 0.06);
  --shadow-pop: 0 20px 50px rgba(42, 51, 64, 0.14);
  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 48px);
  /* Homepage section spacing: every section's top and bottom padding (hero
     excepted), and a snugger value for the Our Space photo row. Phones
     (below 768px) get smaller values in the media query below. */
  --section-pad-y: 64px;
  --section-pad-y-snug: 40px;
}
@media (max-width: 767px) {
  :root {
    /* About a third less than the 44px / 32px phones used before launch */
    --section-pad-y: 30px;
    --section-pad-y-snug: 22px;
  }
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

body {
  font-family: var(--body-font);
  /* iOS browsers fill the overscroll (bounce) areas with the body's
     background COLOR and ignore background images. The color is the footer
     navy, so the bottom bounce continues the footer; the page itself is
     painted white by a one-color image sized to exactly the document, which
     ends at the bottom of the footer. Above the footer nothing changes,
     including under the translucent header. Pulling down at the very top
     shows navy above the header; that is accepted. */
  background: linear-gradient(var(--bg), var(--bg)) 0 0 / 100% 100% no-repeat var(--footer-surface-bottom);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  font-size: 17px;
  font-weight: 500;
}

.serif,
.stat-num,
.card-title,
.page-head h1 {
  font-family: var(--body-font);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =========================================================
   Skip link (accessibility)
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 100;
  font-size: 14px;
}
.skip-link:focus {
  top: 8px;
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--header-border-width) solid rgba(42, 51, 64, 0.08);
}
/* The header's glass lives on a pseudo-element: a backdrop-filter on the header
   itself would make it the backdrop root, and the dropdown panels hanging below
   it would then blur nothing instead of the page behind them. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}
/* Offset anchor scroll targets so the sticky header doesn't cover them */
:target {
  scroll-margin-top: 90px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--nav-padding-block);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 14px;
  /* Never let the nav squeeze the logo; the menu collapses before they would collide */
  flex-shrink: 0;
}
.brand-mark {
  height: 55px;
  width: auto;
  display: block;
}
.brand-block {
  border-left: 2px solid var(--brand-divider-color);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.brand-name {
  font-family: var(--heading-font);
  font-size: var(--brand-name-size);
  font-weight: 600;
  line-height: var(--brand-name-line-height);
  color: var(--navy);
  max-width: 118px;
}
.brand-name em {
  font-style: normal;
  color: var(--brand-name-accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--navy);
  white-space: nowrap;
  transition: opacity .2s ease;
}
/* Between the mobile-menu breakpoint (1023px) and full desktop, tighten the gaps so
   every top-level item stays on one line next to the phone pill. */
@media (min-width: 1024px) and (max-width: 1280px) {
  .nav { gap: 12px; }
  .nav-links { gap: 14px; font-size: 14.5px; }
}
.nav-links a:hover { opacity: .65; }
/* Phone menu only: the desktop nav marks the current section for screen
   readers (aria-current) but shows no marker */
@media (max-width: 1023px) {
  .nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
  }
}
.nav-divider { display: none; }

/* Dropdown navigation. Each section is a hub link plus a separate chevron button.
   mobile-nav.js toggles .is-open (on click, and on hover with a close delay for
   mouse users), so there is no CSS :hover/:focus-within open to fight the button. */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-head {
  display: flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 32px;
  padding: 0;
  margin-left: 2px;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}
.nav-dropdown-toggle:hover { opacity: .65; }
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.dropdown-chevron {
  transition: transform .2s ease;
}
.nav-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}
.dropdown-panel {
  display: none;
  position: absolute;
  /* Flush with the trigger row: any gap is dead space the mouse would have to cross */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--nav-glass-bg);
  backdrop-filter: var(--nav-glass-filter);
  -webkit-backdrop-filter: var(--nav-glass-filter);
  border-radius: 12px;
  box-shadow: var(--shadow-pop), var(--nav-glass-highlight);
  padding: 8px 0;
  z-index: 60;
}
.nav-dropdown.is-open .dropdown-panel {
  display: block;
}
/* Touch screens wide enough for the inline nav (e.g. a landscape tablet) still need
   a finger-sized chevron; negative margins keep the row as tight as on desktop. */
@media (pointer: coarse) {
  .nav-dropdown-toggle {
    width: 44px;
    height: 44px;
    margin: -6px -11px -6px -9px;
  }
}
/* Mouse-driven desktop nav opens on hover, so the chevron is hidden. It stays in
   the DOM and tab order for keyboard and screen-reader users and appears, beside
   the label without shifting the row, while it has keyboard focus. */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .nav-dropdown-head { position: relative; }
  .nav-dropdown-toggle {
    position: absolute;
    left: 100%;
    top: 50%;
    /* Fits the 14px item gap used between 1024px and 1280px */
    width: 12px;
    height: 24px;
    margin: -12px 0 0 1px;
    opacity: 0;
    pointer-events: none;
  }
  .nav-dropdown-toggle:focus-visible { opacity: 1; outline-offset: 0; }
}
.dropdown-panel a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--navy);
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  background: var(--mint-pale);
  color: var(--navy);
  opacity: 1;
}
.dropdown-panel a.is-active {
  font-weight: 600;
}

/* Desktop header: the nav sits on the right, next to the phone pill, with its
   labels centred on the logo lockup. Each item stretches to the full bar height, so its
   bottom is the header's bottom: the panel hangs flush from the header edge
   whatever the header height, and the hover area runs unbroken from the label
   into the panel. */
@media (min-width: 1024px) {
  .nav-links {
    margin-left: auto;
    align-self: stretch;
    /* Cancel the bar's vertical padding so items reach its top and bottom edges */
    margin-block: calc(-1 * var(--nav-padding-block));
    align-items: stretch;
  }
  .nav-dropdown {
    display: flex;
    align-items: center;
  }
  .nav-dropdown-head { height: var(--nav-label-row-height); }
  /* Plain links share the dropdown labels' 32px row */
  .nav-links > a {
    align-self: center;
    display: flex;
    align-items: center;
    height: var(--nav-label-row-height);
  }
  .dropdown-panel {
    /* Just below the header's border, so the panel meets the bar's edge exactly */
    top: calc(100% + var(--header-border-width));
    left: 0;
    transform: none;
    border-radius: 0 0 12px 12px;
  }
  /* Covers the header border so the pointer never leaves the item on its way down */
  .dropdown-panel::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: var(--header-border-width);
  }
  /* Set by mobile-nav.js when a left-aligned panel would run off the screen */
  .dropdown-panel.is-aligned-end {
    left: auto;
    right: 0;
  }
  .nav { gap: var(--nav-pill-gap); }

  /* The labels (with their underline) sit 6px below centre; the
     items themselves still fill the bar, so the panels hang from its edge */
  .nav-links > a,
  .nav-dropdown-head { translate: 0 var(--nav-label-drop); }

  /* Slightly bolder, airier labels at the same size */
  .nav-links { font-weight: 600; letter-spacing: 0.02em; }
  /* The underline below is the hover state, so the labels don't also fade */
  .nav-links > a:hover,
  .nav-links a.nav-dropdown-label:hover { opacity: 1; }
  /* A thin underline that grows out from the centre of the label on
     hover, on keyboard focus, and while the label's dropdown is open. 1.5px,
     so the same colour reads as light as "Adolescent". */
  .nav-links > a::after,
  .nav-dropdown-label::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--nav-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
  }
  .nav-links > a:hover::after,
  .nav-links > a:focus-visible::after,
  .nav-dropdown-label:hover::after,
  .nav-dropdown-label:focus-visible::after,
  .nav-dropdown.is-open .nav-dropdown-label::after { transform: scaleX(1); }
  .nav-links > a:focus-visible,
  .nav-dropdown-label:focus-visible { outline: none; }

  /* A 1.5px line at 79% of the logo divider's height, in the nav accent,
     halfway between the last label and the phone pill and level with the
     labels */
  .nav-divider {
    display: block;
    flex-shrink: 0;
    width: 1.5px;
    height: calc(var(--brand-divider-height) * 0.79);
    margin-inline: calc(var(--nav-pill-gap) / -2);
    background: var(--nav-accent);
    translate: 0 var(--nav-label-drop);
  }

  /* Centred, then dropped by the same amount as the labels, so the pill
     lines up with the nav text and the divider. The translate property
     leaves transform free for the pill's hover lift. */
  .cta-pill {
    align-self: center;
    translate: 0 var(--nav-label-drop);
  }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .nav-links > a::after,
  .nav-dropdown-label::after { transition: none; }
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #3A5377;
  border: 1px solid rgba(58, 83, 119, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12.5px;
  transition: background .2s ease, transform .15s ease;
}
.cta-pill svg { width: 13px; height: 13px; }
.cta-pill:hover { background: rgba(83, 124, 117, 0.85); color: #fff; border-color: rgba(83, 124, 117, 0.5); transform: translateY(-1px); }
.cta-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
}
.cta-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(58, 83, 119, 0.65);
  opacity: 0;
  animation: gap-ping 2.4s cubic-bezier(0, 0, .2, 1) 4;
  animation-fill-mode: forwards;
}
.cta-pill:hover .cta-ring::after { border-color: rgba(255, 255, 255, 0.8); }
.cta-pill:hover .cta-ring::after,
.cta-pill:focus-visible .cta-ring::after {
  animation: gap-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes gap-ping {
  0% { transform: scale(.55); opacity: .9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-ring::after { animation: none !important; display: none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  color: #fff;
  padding: 14px 18px 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  transition: transform .15s ease, background .2s ease;
}
.btn-dark .arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid; place-items: center;
  transition: transform .25s ease;
}
.btn-dark:hover { background: #2d4262; }
.btn-dark:hover .arrow { transform: translateX(3px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  transition: background .2s ease, color .2s ease;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* =========================================================
   Mobile menu toggle
   ========================================================= */
.menu-toggle {
  display: none;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -4px;
  border-radius: 8px;
}
/* Two-line icon: the span is just the 8px-tall box the lines sit in, so the
   pair stays centred in the button. Open, both lines meet in the middle and
   cross into an X. */
.menu-toggle span {
  display: block;
  width: 18px; height: 8px;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy);
  transition: transform .2s ease;
}
.menu-toggle span::before { top: 0; }
.menu-toggle span::after  { top: 6px; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { transform: translateY(-3px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .menu-toggle span::before,
  .menu-toggle span::after { transition: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  /* Desktop card width: 990px on laptops, growing with the screen to 1100px.
     Narrower screens still shrink the card to fit, since this is a max-width. */
  --hero-card-width: clamp(990px, 62vw, 1100px);
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #e6eef7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Light baby-blue wash that lets the photo show through */
  background-image: linear-gradient(160deg, rgba(214, 230, 246, 0.24), rgba(196, 216, 238, 0.32));
  z-index: 1;
}
/* Fine blue-gray grain over the wash. The overlay is absolutely positioned, so
   this covers it; .hero-content (z-index 2) stays above. */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.33 0 0 0 0 0.47 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  /* Room for the widest card (1100px) plus side padding; the card has its own cap */
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 48px;
}
.hero-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}
.hero-logo-lockup img {
  height: 48px;
  width: auto;
}
.hero-logo-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
}
.hero-logo-text {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.3;
}
.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #fff;
}
.hero-title .script {
  font-family: var(--heading-font);
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
  font-size: 1.18em;
  letter-spacing: 0;
  margin: 0 .08em 0 .04em;
  display: inline;
}
.hero-lead {
  font-size: 18px;
  color: #2a3442;
  /* Fills the card (its width minus the 56px side padding), capped at 980px */
  max-width: min(calc(var(--hero-card-width) - 112px), 980px);
  margin: 0 auto;
  line-height: 1.6;
  /* Evens out the line lengths so no word is left alone on the last line */
  text-wrap: balance;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero .btn-dark {
  background: #fff;
  color: var(--navy);
}
.hero .btn-dark .arrow {
  background: var(--navy);
  color: #fff;
}
.hero .btn-dark:hover {
  background: var(--mint-pale);
}
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* Hero v3 — kicker + display headline */
/* The H1 as a quiet label, framed by thin decorative lines */
.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #36574f;
  margin: 0;
  line-height: 1.4;
}
.hero-kicker::before,
.hero-kicker::after {
  content: '';
  flex: none;
  width: 44px;
  height: 1px;
  background: rgba(54, 87, 79, 0.55);
}
.hero-display-headline {
  font-family: var(--heading-font);
  /* 46px up to ~1390px wide, growing to 64px around 1940px; phones set 32px below */
  font-size: clamp(46px, 3.3vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  /* Evens out the line lengths of the two-sentence headline */
  text-wrap: balance;
  margin: 12px 0 11px;
  color: #1f2f47;
}
/* Each headline line starts on its own line; on phones it may wrap within itself */
.hero-display-line { display: block; }
.hero-cta-block {
  text-align: center;
  margin-top: 16px;
}
/* Frosted-glass card behind the hero text, for readability over the photo */
.hero-card {
  position: relative;
  padding: 27px 56px 21px;
  border-radius: 28px;
  /* Flat glass; whiteness and blur come from the CMS (Hero glass), with these
     fallbacks when a field is empty */
  background: rgba(255, 255, 255, var(--card-white, 0.52));
  -webkit-backdrop-filter: blur(var(--card-blur, 24px)) saturate(1);
  backdrop-filter: blur(var(--card-blur, 24px)) saturate(1);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-right-color: rgba(255, 255, 255, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 12px 40px rgba(60, 45, 30, 0.12);
  max-width: var(--hero-card-width);
  margin: 0 auto 24px;
}
/* Desktop: tighter vertical spacing so the section feels fuller */
@media (min-width: 1024px) {
  .hero-content { padding-top: 40px; padding-bottom: 28px; }
  .hero-card { padding-top: 20px; padding-bottom: 16px; }
}
/* Tablets: the content box follows the screen width (instead of growing to its
   widest child, which pushed the card off-screen) with ~22px side gutters */
@media (min-width: 641px) and (max-width: 1099px) {
  .hero-content {
    width: 100%;
    min-width: 0;
    padding-left: 22px;
    padding-right: 22px;
  }
}
/* Without backdrop blur the photo shows through, so the card is more opaque */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-card { background: rgba(250, 248, 244, 0.85); }
}
@media (max-width: 640px) {
  /* .hero-content's side padding keeps the card off the screen edges */
  .hero-card {
    padding: 18px 18px 16px;
    margin-bottom: 12px;
    border-radius: 20px;
    /* A lighter blur is much cheaper to render on phones */
    -webkit-backdrop-filter: blur(8px) saturate(1);
    backdrop-filter: blur(8px) saturate(1);
  }
  /* As a flex item the content would otherwise refuse to shrink below the
     headline's longest word plus the card padding, overflowing 320px screens */
  .hero-content {
    width: 100%;
    min-width: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .hero-display-headline {
    font-size: 30px;
    margin: 8px 0 10px;
  }
  .hero-lead {
    font-size: 16px;
    line-height: 1.5;
  }
  .hero-cta-block { margin-top: 14px; }
  /* Shorter, closer buttons in the hero only; the closing section keeps its own */
  .hero .final-cta-buttons { gap: 10px; }
  .hero .final-cta-btn {
    min-height: 50px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  /* The kicker always wraps on phones (it needs ~560px on one line with its side
     lines), so the lines are hidden and the text wraps centred and balanced */
  .hero-kicker {
    display: block;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-align: center;
    text-wrap: balance;
  }
  .hero-kicker::before,
  .hero-kicker::after { display: none; }
}
/* The shared first-step buttons on the light hero: Call is brand blue with white
   text so it stands out against the white wash; Verify keeps its green. Scoped to
   .hero so the closing section's Call button is unchanged. */
.hero .final-cta-btn--call { background: #3a5377; border: 1px solid #3a5377; color: #ffffff; }
.hero .final-cta-btn--call:hover { background: #2f4563; border-color: #2f4563; }
/* Blue focus ring: a white one would vanish on the light hero */
.hero .final-cta-btn:focus-visible { outline: 2px solid #3a5377; outline-offset: 3px; }
/* Reassurance items under the hero buttons: one centred row, separated by small
   decorative dots whose spacing grows with the screen */
.hero-reassurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.hero-reassurances li {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #36574f;
  white-space: nowrap;
}
/* A pseudo-element, so screen readers skip the dots */
.hero-reassurances li + li::before {
  content: '';
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(54, 87, 79, 0.55);
  margin: 0 clamp(10px, 1.1vw, 28px);
}
/* Below desktop the row wraps, and a dot would start the next line and push it
   off-centre, so the dots give way to a plain gap */
@media (max-width: 1023px) {
  .hero-reassurances { column-gap: 18px; row-gap: 6px; }
  .hero-reassurances li + li::before { display: none; }
}
/* An item's "Mobile text" (CMS) is only for phones */
.reassurance-mobile { display: none; }
/* Phones: smaller items flowing two per line; "No obligation" is hidden here only
   (it stays in the CMS list and on tablet and desktop) */
@media (max-width: 640px) {
  .hero-reassurances {
    gap: 4px 14px;
    margin-top: 12px;
  }
  .hero-reassurances li { font-size: 13px; }
  .hero-reassurances li[data-item="no-obligation"] { display: none; }
  /* Items with "Mobile text" show the shorter wording on phones */
  .reassurance-full { display: none; }
  .reassurance-mobile { display: inline; }
}

/* Insurance strip under the hero card: one glass pill holding the shield
   label, the carrier logos and the "See all" link */
.hero-insurance {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  max-width: 100%;
  padding: 10px 24px;
  border-radius: 999px;
  /* Whiteness and blur come from the CMS (Hero glass), defaults as fallbacks */
  background: rgba(255, 255, 255, var(--strip-white, 0.52));
  -webkit-backdrop-filter: blur(var(--strip-blur, 12px));
  backdrop-filter: blur(var(--strip-blur, 12px));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 28px rgba(31, 47, 71, 0.10);
  text-align: left;
}
.hero-insurance-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-right: 22px;
  border-right: 1px solid rgba(31, 47, 71, 0.18);
}
.hero-insurance-icon { flex-shrink: 0; }
.hero-insurance-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.hero-insurance-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #36574f;
}
.hero-insurance-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2f47;
  white-space: nowrap;
}
.hero-insurance-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-insurance-logo {
  display: block;
  height: 18px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  opacity: 0.88;
}
.hero-insurance-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2f47;
}
.hero-insurance-more {
  display: flex;
  align-items: center;
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(31, 47, 71, 0.18);
}
/* Google segment: gold stars plus a two-line label, linking to the reviews */
.hero-insurance-google {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid rgba(31, 47, 71, 0.18);
  color: inherit;
  text-decoration: none;
}
.hero-insurance-google .hero-insurance-title { transition: color .2s ease; }
.hero-insurance-google:hover .hero-insurance-title { color: #3a5377; }
.hero-insurance-google:focus-visible { outline: 2px solid #3a5377; outline-offset: 4px; }
/* Two rows of five stars stacked; the gold row is clipped to the rating */
.hero-google-stars {
  position: relative;
  display: inline-block;
  flex: none;
  line-height: 0;
}
.hero-google-stars-base,
.hero-google-stars-fill {
  display: flex;
  gap: 1px;
}
.hero-google-stars svg { flex: none; }
.hero-google-stars-base { fill: rgba(232, 163, 23, 0.25); }
.hero-google-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rating-fill, 100%);
  overflow: hidden;
  fill: #e8a317;
}
.credibility-accreditations {
  display: flex;
  gap: 12px;
  align-items: center;
}
.credibility-badge {
  height: 30px;
  width: auto;
  opacity: 0.8;
}
/* Desktop and phones lay the insurance items out as direct parts of the strip */
.hero-insurance-main { display: contents; }
/* Small laptops and large tablets: the one-line strip with the Google segment
   needs ~1000px, so the insurance items form the top row (~800px) and the
   segment gets its own centred row below. Narrower screens use the compact
   wrapping panel below, since that ~800px row can't shrink. */
@media (min-width: 881px) and (max-width: 1099px) {
  .hero-insurance {
    flex-direction: column;
    gap: 10px;
    border-radius: 24px;
  }
  .hero-insurance-main {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .hero-insurance-google {
    align-self: stretch;
    justify-content: center;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(31, 47, 71, 0.18);
  }
}
@media (max-width: 880px) {
  /* Phones and tablets: one compact panel, the label with "Plus / Many more"
     beside it on the first line, the four logos on the second, and the Google
     segment (when shown) on a line of its own below. order puts the logos after
     "Plus" visually. */
  .hero-insurance {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    /* Lighter blur on phones, where backdrop blur is costly to render */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .hero-insurance-label {
    order: 1;
    padding: 0;
    border: 0;
  }
  .hero-insurance-more {
    order: 2;
    padding-left: 14px;
    border-left: 1px solid rgba(31, 47, 71, 0.18);
  }
  .hero-insurance-logos {
    order: 3;
    flex-basis: 100%;
    display: grid;
    /* Four equal columns always fit one row; each logo scales down inside its column */
    grid-template-columns: repeat(4, minmax(0, max-content));
    justify-content: center;
    align-items: center;
    gap: 16px;
  }
  .hero-insurance-logo {
    height: 15px;
    max-width: 100%;
  }
  .hero-insurance-google {
    order: 4;
    flex-basis: 100%;
    justify-content: center;
    padding: 0;
    border: 0;
  }
}
/* Visitors who ask for less transparency get solid soft panels instead of glass */
@media (prefers-reduced-transparency: reduce) {
  .hero-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(250, 248, 244, 0.92);
  }
  .hero-insurance {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Legacy hero enhancements — kept for non-homepage uses */
.hero-services {
  margin-top: 48px;
  text-align: left;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-services-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 14px;
  text-align: center;
}
.hero-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.hero-services-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: padding .2s ease, color .2s ease;
}
.hero-services-grid a:nth-child(odd) { padding-right: 24px; }
.hero-services-grid a:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.15); }
.hero-services-grid a:hover { color: #fff; padding-left: 8px; }
.hero-services-grid a:nth-child(even):hover { padding-left: 32px; }
.hero-services-grid a .arrow-mini {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.hero-services-grid a:hover .arrow-mini {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}
.verified-badge {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.verified-badge .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.verified-badge strong { color: var(--ink); font-weight: 600; font-size: 13px; }
.verified-badge small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.stat-badge {
  background: var(--mint);
  border-radius: 12px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.stat-badge-number {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.stat-badge-label {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.3;
  max-width: 160px;
}

/* =========================================================
   Who We Serve
   ========================================================= */
.who-we-serve {
  padding: 80px 0 64px;
}
.who-we-serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.who-we-serve h2 {
  font-family: var(--heading-font);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  line-height: 1.15;
  font-style: italic;
}
.who-we-serve p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}
.who-we-serve .highlight-text {
  color: var(--teal);
  font-weight: 600;
}
.who-we-serve-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--sage);
}

/* =========================================================
   Services section (homepage)
   ========================================================= */
.services-section {
  background: var(--section-sage);
  padding: 80px 0 96px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 3px;
}
.section-header p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* Section eyebrow: small uppercase label above a heading. It uses --sage-text
   (a deeper sage) because plain sage is under 4.5:1 on the tan backgrounds. */
.section-eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--sage-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Service cards on homepage (icon-style from design) */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint-pale);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}
.service-card h3 {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--teal);
}
.service-card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.service-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.service-card:hover .service-card-link {
  gap: 10px;
  color: var(--teal);
}

/* =========================================================
   Our Approach
   ========================================================= */
.approach-section {
  background: linear-gradient(160deg, var(--teal), var(--navy));
  color: #fff;
  padding: 80px 0 96px;
}
.approach-section .section-header h2 {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}
.approach-section .section-header p {
  color: rgba(255, 255, 255, 0.75);
}
.approach-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.approach-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.approach-number {
  font-family: var(--heading-font);
  font-size: 48px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}
.approach-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.approach-item h3 svg {
  width: 20px;
  height: 20px;
}
.approach-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
}

/* =========================================================
   Contact section
   ========================================================= */
.contact-section {
  padding: 80px 0 96px;
  text-align: center;
}
.contact-section h2 {
  font-family: var(--heading-font);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 3px;
}
.contact-section > .container > p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 40px;
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 36px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  min-width: 260px;
  text-align: left;
  transition: transform .2s ease;
}
.contact-card:hover {
  transform: translateY(-2px);
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card-icon svg {
  width: 20px;
  height: 20px;
}
.contact-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.contact-card-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.btn-schedule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  transition: background .2s ease, transform .15s ease;
}
.btn-schedule:hover {
  background: #2d4262;
  transform: translateY(-1px);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: left;
}
.contact-form-heading {
  font-family: var(--heading-font);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 24px;
}
.contact-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.form-field--full {
  grid-column: 1 / -1;
}
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field .required {
  color: var(--teal);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-field textarea {
  resize: vertical;
}
.contact-form .btn-schedule {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
/* Insurance verification form (partials/insurance-verify-form.njk), in the
   site-wide dialog and inline on /insurance/#verify */
.verify-section {
  max-width: 640px;
  margin: 48px auto 0;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.verify-section-title,
.verify-dialog-title {
  font-family: var(--heading-font);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 8px;
}
.verify-form-note {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.verify-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.verify-form .form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
/* A visible focus ring, not just the border change the contact form uses */
.verify-form .form-field input:focus-visible,
.verify-form .form-field select:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(57, 97, 93, 0.25);
}
.verify-form .form-field [aria-invalid="true"] { border-color: #b42318; }
.verify-form-hint { font-weight: 400; color: var(--ink-soft); }
/* #b42318 is 6.2:1 on white */
.verify-form-error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #b42318;
}
.verify-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.verify-form-consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}
.verify-form-error--consent { margin-left: 30px; }
/* Optional SMS opt-in (partials/sms-consent.njk), on the verify and contact forms */
.sms-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
}
.sms-consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}
.sms-consent a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}
.contact-form .sms-consent { margin: 4px 0 20px; }
.verify-form-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.verify-form-submit:hover { background: var(--deep-navy); }
.verify-form-submit:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.verify-form-submit:disabled { opacity: 0.6; cursor: wait; }
.verify-form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecea;
  color: #8a1c12;
  font-size: 14px;
}
.verify-form-status a { color: inherit; font-weight: 700; text-decoration: underline; }
.verify-form-success {
  margin: 8px 0 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--section-sage);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.verify-form-success:focus { outline: none; }

/* The dialog. Closed dialogs are hidden natively; the rule below also covers
   the rare browser without <dialog> support. */
.verify-dialog:not([open]) { display: none; }
.verify-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(30, 43, 58, 0.28);
  overflow: auto;
  overscroll-behavior: contain;
}
.verify-dialog::backdrop { background: rgba(30, 43, 58, 0.55); }
.verify-dialog-panel {
  position: relative;
  padding: 32px 28px 28px;
}
.verify-dialog-title { padding-right: 40px; }
.verify-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
}
.verify-dialog-close:hover { background: var(--mint-pale); }
.verify-dialog-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
/* Page scrolling is locked while the dialog is open */
html.verify-dialog-open { overflow: hidden; }
@media (max-width: 560px) {
  .verify-form-fields { grid-template-columns: 1fr; gap: 14px; }
  .verify-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .verify-dialog-panel { padding: 24px 18px 20px; }
  .verify-section { padding: 24px 18px; }
}

.contact-form-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Why Parents Choose GAP (homepage)
   ========================================================= */
/* =========================================================
   Parent thoughts (homepage, between the hero and Why GAP)
   ========================================================= */
.parent-thoughts {
  padding: var(--section-pad-y) 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 15% 0%, #46648d 0%, rgba(70, 100, 141, 0) 60%),
    radial-gradient(900px 500px at 100% 100%, #2f4565 0%, rgba(47, 69, 101, 0) 60%),
    #3a5377;
}
.parent-thoughts-heading {
  max-width: 860px;
  margin: 0 auto 30px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(26px, 2.1vw, 36px);
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
/* Every card the same size: equal columns, and every row as tall as the
   tallest card, so there is no up/down stagger */
.parent-thoughts-quotes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.parent-thought {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--body-font);
  font-size: 15.5px;
  line-height: 1.4;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  /* Speech-bubble corner at the bottom left */
  border-radius: 22px 22px 22px 6px;
  box-shadow: 0 8px 24px rgba(10, 20, 40, 0.18);
}
.parent-thoughts-closing { margin-top: 24px; }
.parent-thoughts-closing-lead {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}
/* Same style as the first closing line, just below it */
.parent-thoughts-closing-text {
  margin: 4px 0 0;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}
@media (max-width: 1023px) {
  .parent-thoughts-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .parent-thoughts-heading {
    margin-bottom: 16px;
    font-size: 21px;
    line-height: 1.25;
  }
  /* Cards stay equal height (grid-auto-rows: 1fr sizes every row to the
     tallest card) but hug the text with the tighter padding */
  .parent-thoughts-quotes { gap: 8px; }
  .parent-thought {
    padding: 11px 16px;
    font-size: 14.5px;
  }
  .parent-thoughts-closing { margin-top: 18px; }
  .parent-thoughts-closing-lead,
  .parent-thoughts-closing-text {
    font-size: 18px;
    line-height: 1.3;
  }
  .parent-thoughts-closing-text { margin-top: 2px; }
  /* Only the quotes ticked "Show on phones" (CMS), in their "Order on phones" */
  .parent-thought:not(.parent-thought--phone) { display: none; }
  .parent-thought--phone { order: var(--phone-order, 0); }
}
/* Most phones: one column, since two would squeeze each quote to 3-4 short lines */
@media (max-width: 560px) {
  .parent-thoughts-quotes { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Programs intro (homepage, after Parent thoughts): PHP and IOP cards
   ========================================================= */
.programs-intro {
  background: #fff;
  padding: var(--section-pad-y) 0;
}
.programs-intro-inner {
  max-width: calc(1080px + 2 * var(--pad-x));
  text-align: center;
}
.programs-intro-heading {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1f2f47;
  text-wrap: balance;
}
.programs-intro-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
  text-align: left;
}
/* Each card's color: a 6px bar along the top, the tag and link in the accent,
   the tag and check circles in the tint */
.program-card {
  --program-accent: #3a5377;
  --program-tint: #e8eef6;
  position: relative;
  overflow: hidden;
  padding: 36px 30px 30px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(31, 47, 71, 0.07);
  /* Column so both cards' links sit on the same line however their text wraps */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.program-card--sage {
  --program-accent: #36574f;
  --program-tint: #e3efe9;
}
.program-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--program-accent);
}
.program-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--program-tint);
  color: var(--program-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.program-card-title {
  margin: 14px 0 6px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: #1f2f47;
}
.program-card-tagline {
  margin: 0 0 18px;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: #4a5568;
}
.program-card-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.program-card-list li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
/* Same check as the content-section checklist, on the card's tint */
.program-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--program-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336574f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.program-card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--program-accent);
  text-decoration: none;
}
.program-card-link:hover { text-decoration: underline; }
.programs-intro-footer {
  margin: 28px 0 0;
  font-size: 17px;
}
.programs-intro-footer-link {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.programs-intro-footer-link:hover { text-decoration: underline; }
/* "We help teens with" + condition pills, under the Programs intro cards.
   One centered, wrapping row; on phones the label takes its own line. */
.conditions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e8e4dc;
}
.conditions-row-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}
.conditions-row-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Teal on mint pale is 6.3:1 (AA) */
.conditions-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--mint-soft);
  border-radius: 999px;
  background: var(--mint-pale);
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.conditions-pill:hover { background: var(--mint-soft); border-color: var(--mint); }
.conditions-pill:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 767px) {
  .conditions-row { margin-top: 26px; padding-top: 22px; gap: 10px; }
  .conditions-row-label { flex-basis: 100%; text-align: center; font-size: 14px; }
  .conditions-row-list { gap: 8px 6px; }
  .conditions-pill { min-height: 32px; padding: 5px 12px; font-size: 13px; }
}
@media (max-width: 719px) {
  .programs-intro-cards { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .program-card { padding: 32px 22px 24px; }
}
/* Phones: a shorter, tighter version; checklist items marked "Hide on phones"
   in the CMS drop out so each card shows three */
@media (max-width: 640px) {
  .programs-intro-heading { font-size: 26px; }
  .programs-intro-cards { gap: 16px; }
  .program-card { padding: 28px 22px 22px; }
  .program-card-list .program-card-item--hide-on-phones { display: none; }
}

/* Why GAP: one heading, four care pillars and a strip of proof points, on cream.
   Cards alternate navy / green through --pillar-accent and --pillar-tint. */
.why-section {
  padding: var(--section-pad-y) 0;
  background: var(--section-warm);
}
.why-pillars-inner { max-width: calc(1120px + 2 * var(--pad-x)); }
/* 900px wide holds the heading on two balanced lines at 32px from about
   1024px up (it's 1547px on one line); narrower screens wrap naturally. */
.why-pillars-heading {
  max-width: 900px;
  margin: 0 auto 32px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1f2f47;
  text-align: center;
  text-wrap: balance;
}
.why-pillars-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.why-pillar {
  --pillar-accent: #3a5377;
  --pillar-tint: #e8eef6;
  /* Subgrid: the icon, text and perk rows are shared by every card in a grid
     row, so the perk rows and their dividers line up even when one card's
     text or perk runs longer. Title and description share one row so a
     two-line title doesn't open a gap under a one-line title next to it. */
  position: relative;
  overflow: hidden;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(31, 47, 71, 0.07);
  padding: 26px 22px 18px;
}
/* A flat 4px color bar along the top (a border-top would curve with the corners) */
.why-pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--pillar-accent);
}
.why-pillar--green {
  --pillar-accent: #36574f;
  --pillar-tint: #e3efe9;
}
.why-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--pillar-tint);
  color: var(--pillar-accent);
}
.why-pillar-title {
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: #1f2f47;
}
.why-pillar-description {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.why-pillar-perk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #e8e4dc;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pillar-accent);
}
.why-pillar-perk--empty { border-top-color: transparent; }
/* A small filled check circle in the card color */
.why-pillar-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--pillar-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* Browsers without subgrid: a column layout with the perk pushed to the bottom */
@supports not (grid-template-rows: subgrid) {
  .why-pillar { display: flex; flex-direction: column; }
  .why-pillar-icon { align-self: flex-start; }
  .why-pillar-body { flex: 1; }
}
.why-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}
.why-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.why-proof li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36574f;
}
/* Green background option (CMS: Why GAP pillars > Background). Same brand green
   as the old Our Programs section. White is 4.66:1 on it (AA); softer tints
   such as mint pale (4.18:1) fall short, so the heading and proof text are
   pure white. The cards stay white with their own colors. */
.why-section--green { background: var(--brand-green); }
.why-section--green .why-pillars-heading,
.why-section--green .why-proof li { color: #fff; }
.why-section--green .why-proof li::before { background: var(--mint); }
.why-section--green .why-pillar { box-shadow: 0 6px 20px rgba(20, 38, 34, 0.18); }
/* Tablets: two cards per row */
@media (max-width: 1023px) {
  .why-pillars-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The proof strip needs about 1100px on one line. Narrower than that, cap its
   width so it wraps as an even two-and-two rather than three and one. */
@media (min-width: 768px) and (max-width: 1199px) {
  .why-proof { max-width: 660px; }
}
/* Phones: 2x2 with tighter padding and smaller text, so it doesn't get too tall */
@media (max-width: 767px) {
  .why-pillars-heading { font-size: 24px; margin-bottom: 22px; }
  .why-pillars-cards { gap: 10px; }
  .why-pillar { padding: 16px 12px 12px; border-radius: 14px; }
  .why-pillar-icon { width: 32px; height: 32px; margin-bottom: 10px; border-radius: 9px; }
  .why-pillar-icon svg { width: 18px; height: 18px; }
  .why-pillar-title { font-size: 16px; margin-bottom: 6px; }
  .why-pillar-description { font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
  .why-pillar-perk { gap: 6px; padding-top: 10px; font-size: 12px; line-height: 1.35; }
  .why-pillar-check { width: 14px; height: 14px; background-size: 10px; margin-top: 1px; }
  /* One item per line, centered: the long first item would otherwise leave an uneven 1 / 1 / 2 wrap */
  .why-proof { flex-direction: column; align-items: center; gap: 7px; margin-top: 22px; }
  .why-proof li { font-size: 13px; gap: 6px; }
  .why-proof li::before { width: 6px; height: 6px; }
}

/* =========================================================
   Our Story (homepage)
   ========================================================= */
/* Light blue so the story stands apart from the white Programs intro below;
   bottom padding kept tight since the story leads straight into it */
.story-section {
  padding: var(--section-pad-y) 0;
  background: #eef3f8;
}
.story-content {
  max-width: 720px;
}
/* With a Story Photo: text left (~55%), photo right (~45%), vertically centered */
.story-section--with-photo .story-layout {
  max-width: calc(980px + 2 * var(--pad-x));
  display: grid;
  /* Text up to 450px (taller paragraphs, closer to the photo's height) and the
     photo up to 474px, its size before this change; centered as one block */
  grid-template-columns: minmax(0, 450px) minmax(0, 474px);
  justify-content: center;
  gap: 56px;
  align-items: center;
}
.story-section--with-photo .story-content { max-width: none; }
.story-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: #dbe5ef;
}
@media (max-width: 767px) {
  /* Phones and small tablets: text first, the photo full width underneath */
  .story-section--with-photo .story-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .story-photo img { max-height: 420px; }
}
/* Phones: the hero hides its label lines because its long H1 wraps; the short
   story label fits on one line, so it keeps them and stays left-aligned */
@media (max-width: 640px) {
  .story-heading {
    display: flex;
    text-align: left;
  }
  .story-heading::before,
  .story-heading::after { display: block; }
}
/* A full-size story heading; the 'Our Story' label (.story-heading) is styled
   by .hero-kicker instead, so it is left out here */
.story-content h2:not(.story-heading) {
  font-family: var(--heading-font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  line-height: 1.15;
}
/* The story's h2 ("Our Story") takes the hero H1 label's look from .hero-kicker
   (font, #36574f, 2.6px letter-spacing, uppercase, a short line each side); here
   it only sits left-aligned with the text and keeps 28px above the paragraphs */
.story-heading {
  justify-content: flex-start;
  margin: 0 0 28px;
}
.story-text p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 16px;
}
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 8px;
}
.story-link:hover {
  color: var(--navy);
}

/* =========================================================
   Services v3 (homepage — image cards)
   ========================================================= */
.services-v3-section {
  padding: 80px 0 96px;
  background: var(--brand-green);
  color: #fff;
}
/* On brand green everything is full white: white is 4.66:1 on #537C75,
   while mint or 85% white would fall below AA. */
.services-v3-section .section-header h2,
.services-v3-section .section-header p,
.services-v3-section .section-eyebrow { color: #fff; }
.services-v3-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.services-v3-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  color: inherit;
}
.services-v3-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}
.services-v3-card-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.services-v3-card-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--section-warm);
  border-bottom: 1px solid var(--line);
}
.services-v3-card-body {
  padding: 22px 24px 26px;
}
.services-v3-card-body h3 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--teal);
}
.services-v3-card-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   Facility (homepage). White until a facility photo is set; with a photo
   (--photo) it becomes a full-width image under a dark overlay.
   ========================================================= */
.facility-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: var(--section-white);
  color: var(--ink);
}
.facility-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.facility-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 51, 64, 0.75);
  z-index: 1;
}
.facility-content {
  position: relative;
  z-index: 2;
  padding: 80px var(--pad-x);
  max-width: 640px;
}
.facility-content h2 {
  font-family: var(--heading-font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.15;
}
.facility-content p:not(.section-eyebrow):not(.hero-kicker) {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.7;
}
/* With the Space Photos row: text on top, photos under it; the content's 80px
   bottom padding moves under the photos so the section stays balanced */
.facility-section--with-strip {
  flex-direction: column;
  align-items: stretch;
  /* The 400px minimum is for the text-only version; here it would add space under the photos */
  min-height: 0;
}
.facility-section--with-strip .facility-content {
  padding-top: var(--section-pad-y-snug);
  padding-bottom: 0;
  /* Centered over the wider photo row, so neither edge looks misaligned */
  text-align: center;
}
/* 12px from the heading to the photo row */
.facility-section--with-strip .facility-content h2 { margin-bottom: 12px; }
.space-photos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  /* Nearly edge to edge: 24px side gutters, the row itself at most 1440px */
  max-width: calc(1440px + 48px);
  margin: 0 auto;
  padding: 0 24px var(--section-pad-y-snug);
  list-style: none;
}
.space-photo { margin: 0; }
.space-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: #e3e8ee;
}
@media (max-width: 767px) {
  .space-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    /* Phones keep the content gutter */
    padding: 0 var(--pad-x) var(--section-pad-y-snug);
  }
}
/* "Our Space" label: the hero H1 label's style (.hero-kicker), centered over the
   heading. --facility-kicker-nudge shifts it left so it reads optically
   centered; change that one value to adjust. */
.facility-kicker {
  --facility-kicker-nudge: -9px;
  margin: 0 0 6px;
  transform: translateX(var(--facility-kicker-nudge));
}
@media (max-width: 640px) {
  /* The hero hides its label lines on phones because its long H1 wraps; this
     short label fits on one line, so it keeps them */
  .facility-kicker { display: flex; }
  .facility-kicker::before,
  .facility-kicker::after { display: block; }
}
.facility-section--photo .facility-kicker { color: #fff; }
.facility-section--photo { background: var(--navy); color: #fff; }
.facility-section--photo .section-eyebrow { color: #fff; }
.facility-section--photo .facility-content p:not(.section-eyebrow):not(.hero-kicker) { color: rgba(255, 255, 255, 0.8); }
.facility-section--photo .facility-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.facility-section--photo .facility-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* =========================================================
   Timeline (homepage — how treatment works)
   ========================================================= */
.timeline-section {
  padding: var(--section-pad-y) 0;
  background: var(--navy);
  color: #fff;
}
/* On navy: white heading and step titles, mint label, 80%-white descriptions,
   and white step circles with navy numbers. All pass AA. */
.timeline-section .section-header h2 { color: #fff; }
.timeline-section .section-eyebrow { color: var(--mint); }
.timeline-section .timeline::before { background: rgba(255, 255, 255, 0.25); }
.timeline-section .timeline-number { background: #fff; color: var(--navy); }
.timeline-section .timeline-step h3 { color: #fff; }
.timeline-section .timeline-step p { color: rgba(255, 255, 255, 0.8); }
.timeline {
  display: flex;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: var(--line);
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.timeline-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 18px;
}
.timeline-step h3 {
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.timeline-step p {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   FAQ section (homepage wrapper)
   ========================================================= */
.faq-section {
  padding: var(--section-pad-y) 0;
  background: var(--section-warm);
}
/* "For Parents" label: the shared .hero-kicker style, centered over the
   heading. ".section-header p" would otherwise restyle it as intro text
   (17px, gray), so its size, color and margin are restated here. */
.section-header p.faq-kicker {
  max-width: none;
  margin: 0 0 6px;
  font-size: 13px;
  color: #36574f;
}
@media (max-width: 640px) {
  /* Short enough to fit one line on phones, so it keeps its side lines
     (the hero hides them because its long H1 wraps) */
  .section-header p.faq-kicker { display: flex; font-size: 11px; }
  .faq-kicker::before,
  .faq-kicker::after { display: block; }
}
/* No mint underline, to match the other homepage serif headings */
.faq-section .section-header h2 { text-decoration: none; }

/* One even strip of carrier logos: same visual height, grayscale until hovered,
   wrapping to two rows on phones. */
/* Accepted carriers in the closing CTA, in solid white on the navy-tinted
   photo: two balanced rows from 768px up (the template ends the first row
   after ceil(n/2) logos; the rest are centred below), three per row on
   phones. Logos are matched
   by height (Cloudinary trims their transparent padding, so the height is
   the logo itself), with a width cap so long wordmarks don't outweigh short
   ones. Each carrier's CMS "Logo Size (%)" scales its height (--logo-scale). */
.insurance-logos {
  --insurance-logo-height: 34px;
  --insurance-symbol-height: 44px;
  --insurance-logo-max-width: 120px;
  --insurance-column-gap: clamp(24px, 2.5vw, 32px);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 22px var(--insurance-column-gap);
  margin: 0 auto 32px;
  padding: 0;
  list-style: none;
}
.insurance-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Lets a row of enlarged logos shrink rather than overflow */
  flex: 0 1 auto;
  min-width: 0;
  /* Tall enough for a symbol-only logo, so every item shares one centre line */
  min-height: var(--insurance-symbol-height);
}
/* Two rows: wrapping on, with a full-width item ending row one. The break
   sits on a line of its own, so it is the 22px gap between the rows and
   the flex row gap is dropped (phones set their own). */
.insurance-logos--two-rows { flex-wrap: wrap; row-gap: 0; }
.insurance-logos-row-break {
  flex: 0 0 100%;
  height: 22px;
}
@media (max-width: 767px) {
  /* Phones: three per row, centred, so six carriers make two rows of three */
  .insurance-logos { flex-wrap: wrap; max-width: 600px; }
  .insurance-logos-row-break { display: none; }
  .insurance-logo-item { flex: 0 0 calc((100% - 2 * var(--insurance-column-gap)) / 3); }
  /* Carriers ticked "Hide on Phones (Closing Section)" in the CMS: desktop and
     tablets show every carrier, phones the rest (six, as two rows of three) */
  .final-cta-section .insurance-logo-item--hide-on-phones { display: none; }
  /* Cells have a fixed width here, so a logo never runs past its own */
  .insurance-logos .insurance-logo { max-width: min(100%, calc(var(--insurance-logo-max-width) * min(var(--logo-scale, 1), 1.2))); }
}
.insurance-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}
.insurance-logo {
  height: calc(var(--insurance-logo-height) * var(--logo-scale, 1));
  width: auto;
  /* An enlarged logo may grow up to 20% wider than the cap */
  max-width: calc(var(--insurance-logo-max-width) * min(var(--logo-scale, 1), 1.2));
  object-fit: contain;
  /* Any brand colours become solid white */
  filter: brightness(0) invert(1);
  /* CMS Logo Opacity (default 75%); full on hover and keyboard focus */
  opacity: var(--cta-logo-opacity, 0.75);
  transition: opacity .2s ease;
}
/* A mark with no wordmark reads small at wordmark height, so it gets more */
.insurance-logo--symbol { height: calc(var(--insurance-symbol-height) * var(--logo-scale, 1)); }
.insurance-logo-item:hover .insurance-logo,
.insurance-logo-link:focus-visible .insurance-logo { opacity: 1; }
/* Stands in for a logo that hasn't been uploaded yet, sized like the logos */
.insurance-logo-placeholder {
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 600;
  line-height: var(--insurance-logo-height);
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  /* Same CMS Logo Opacity as the logos it stands in for */
  opacity: var(--cta-logo-opacity, 0.75);
  transition: opacity .2s ease;
}
.insurance-logo-item:hover .insurance-logo-placeholder,
.insurance-logo-link:focus-visible .insurance-logo-placeholder { opacity: 1; }

/* =========================================================
   Final CTA (homepage)
   ========================================================= */
.final-cta-section {
  /* Closing section: accepted carriers, then the two first steps, in white
     over a navy-tinted photo. The CMS "Extra Top Space" (default 180px) is
     added above the content, so the content sits at the bottom with open
     photo above it (room for insurance logos later). Plain deep navy when
     there is no photo. */
  position: relative;
  overflow: hidden;
  background: var(--deep-navy);
  color: #fff;
  /* The shared homepage section spacing (--section-pad-y) above and below.
     The insurance label and logos sit at the top, in the open photo; the
     CMS Extra Top Space goes between them and the heading (see h2 below). */
  padding: var(--section-pad-y) 0;
}
/* Tablets and desktops: a little less above (64px -> 52px) and half below
   (64px -> 32px), so the heading, both buttons and the checklist fit on one
   1440x900 screen together with the top of the footer. Phones keep their own. */
@media (min-width: 768px) {
  .final-cta-section { padding: 52px 0 32px; }
}
.final-cta-bg {
  position: absolute;
  /* Reaches two blur radii past every edge, so the blur's soft fade falls
     outside the section (which clips it) at any zoom, 100% included */
  inset: calc(-2 * var(--cta-photo-blur, 5px));
  width: calc(100% + 4 * var(--cta-photo-blur, 5px));
  height: calc(100% + 4 * var(--cta-photo-blur, 5px));
  /* The site-wide img max-width: 100% would cap it at the section's width
     and leave a strip uncovered on the right */
  max-width: none;
  object-fit: cover;
  /* CMS Photo Focus (default Bottom: the floor, below the chairs) */
  object-position: var(--cta-photo-position, 50% 100%);
  z-index: 0;
  /* CMS Photo Blur (default 5px) */
  filter: blur(var(--cta-photo-blur, 5px));
  /* CMS Photo Zoom (default 115%), scaled about the focus point so zooming
     pulls in toward it (the floor, with Bottom); the section's
     overflow: hidden keeps the enlarged photo inside it */
  transform: scale(var(--cta-photo-zoom, 1.15));
  transform-origin: var(--cta-photo-position, 50% 100%);
}
.final-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Flat deep-navy tint at the CMS Navy Tint (default 65%). White text over
     the current photo (3px blur, Bottom focus) measures WCAG AA from 50%. */
  background: var(--deep-navy);
  opacity: var(--cta-tint, 0.65);
}
/* All the text and checkmarks are white on the tinted photo; the buttons
   keep their own colours */
.final-cta-section .section-eyebrow,
.final-cta-section .insurance-logo-placeholder,
.final-cta-section .final-cta-content h2,
.final-cta-section .final-cta-subline,
.final-cta-section .final-cta-checklist { color: #fff; }
.final-cta-section .final-cta-check { stroke: #fff; }
/* A link in the closing line (e.g. "request a call back"): white, underlined */
.final-cta-section .final-cta-subline a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.final-cta-section .final-cta-subline a:hover { text-decoration-thickness: 2px; }
/* The gap above the heading: the Extra Top Space less what the logo row
   takes (115px at the default 180 with one row of logos). Never below
   32px, so the heading keeps clear of the logos. */
.final-cta-section .final-cta-content h2 { margin-top: max(32px, calc(var(--cta-extra-top, 180px) - 65px)); }
/* A second row of logos (44px tall plus the 22px row gap) also comes out
   of that gap: 49px at the default 180 */
.final-cta-section .insurance-logos--two-rows + h2 { margin-top: max(32px, calc(var(--cta-extra-top, 180px) - 131px)); }
.final-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  /* Wide enough (inside the container padding) for the four checklist items on
     one line; the heading and subline stay narrower */
  max-width: 1000px;
  margin: 0 auto;
}
.final-cta-content h2,
.final-cta-subline {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-content h2 {
  font-family: var(--heading-font);
  /* Sized to fit on one line on laptop and desktop widths */
  font-size: clamp(28px, 2.55vw, 37px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--navy);
}
.final-cta-subline {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Two equal primary buttons */
.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.final-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.final-cta-btn:hover { transform: translateY(-1px); }
.final-cta-btn--call {
  background: var(--navy);
  color: #fff;
}
.final-cta-btn--call:hover { background: var(--deep-navy); }
.final-cta-btn--verify {
  /* Same green as the Our Programs section */
  background: var(--brand-green);
  color: #fff;
}
.final-cta-btn--verify:hover { background: var(--teal); }
/* On the dark photo a faint white rim keeps the navy and green buttons from
   blending into it. Inset, so the buttons keep their size. */
.final-cta-section .final-cta-btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
/* White focus ring, visible on the dark background */
.final-cta-section a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Reassurance row: four items in one line, 2x2 on small screens */
.final-cta-checklist {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-soft);
}
.final-cta-checklist li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
/* Phone-only labels and checklist (closing section) stay hidden above 767px */
.cta-label-phone,
.final-cta-checklist-phone { display: none; }
.final-cta-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* "Serving families in Marietta, Kennesaw, and Woodstock." on program and condition pages */
.serving-areas {
  margin: 40px 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
}
/* Inline text links in body copy share this style */
.serving-areas a,
.post-content a:not([class]) {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.serving-areas a:hover,
.post-content a:not([class]):hover { text-decoration-color: var(--teal); }
/* A long email address or domain typed into body copy (the legal pages'
   contact lines) would otherwise run off a 320px screen. break-word splits a
   word only when it can't fit a line on its own, so normal text is untouched. */
.post-content { overflow-wrap: break-word; }
/* Section headings already carry a decorative underline, so a linked one is
   marked by colour alone */
.section-header h2 a { color: var(--teal); }
.section-header h2 a:hover { color: var(--navy); }

/* =========================================================
   CTA banner (closing call to action on inner pages)
   ========================================================= */
.cta-banner {
  margin: 48px 0 80px;
  padding: 56px var(--pad-x);
  border-radius: var(--radius-lg);
  background: var(--section-warm);
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--heading-font);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
}
.cta-banner p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
}

/* =========================================================
   Related links (condition, service, location and program pages)
   ========================================================= */
.related-section {
  padding: 48px 0;
}
.related-section h2 {
  font-family: var(--heading-font);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin: 0 0 20px;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Pills give each link a 44px tap target with clear space between neighbours */
.related-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  transition: border-color .15s ease, color .15s ease;
}
.related-link:hover {
  border-color: var(--teal);
  color: var(--navy);
}




/* =========================================================
   Page header (every subpage)
   ========================================================= */
/* The H1 sits centered on its own full-width row. Pages with a hero photo add
   a row under it: the intro and the content's opening paragraph left-aligned
   on the left, the photo on the right (partials/page-head.njk). Pages without
   a photo center the intro (and anything else in the head) under the H1.
   Body content below stays left-aligned. */
.page-head {
  padding-top: 36px;
  padding-bottom: 40px;
  text-align: center;
}
.page-head h1 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(28px, 2.3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
.page-head-intro,
.page-head > p {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #3d4a5c;
}
.page-head:not(.page-head--with-photo) > .page-head-intro,
.page-head:not(.page-head--with-photo) > p {
  max-width: 820px;
  margin-inline: auto;
}
.page-head-grid {
  margin-top: 22px;
  text-align: left;
}
.page-head-grid .page-head-intro { margin-top: 0; }
/* Links in the header intro line (CMS Header Intro), styled like body links */
.page-head-intro a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.page-head-intro a:hover { text-decoration-color: var(--teal); }
/* The content's opening paragraph, moved up beside the photo: body type */
.page-head-lead.post-content {
  margin-top: 16px;
  padding-bottom: 0;
}
.page-head-lead p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}
.page-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--mint-pale);
}
/* Text and photo side by side from tablet width up; phones stack the photo
   under the text, where side by side would squeeze both too narrow. */
@media (min-width: 720px) {
  .page-head--with-photo { padding-bottom: 64px; }
  /* The photo stretches to the text column's height (300-420px) so there is
     no empty gap under the text; positioned absolutely so its own aspect
     ratio doesn't set the row height. */
  /* About 45% text / 55% photo: the narrower text column runs taller, and
     the wider photo sits closer to it */
  .page-head-grid {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: 32px;
    align-items: stretch;
  }
  .page-head-grid .page-hero {
    position: relative;
    min-height: 300px;
    max-height: 420px;
  }
  .page-head-grid .page-hero img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }
}
/* Desktop: a longer header paragraph (e.g. ADHD) can run past 420px, so the
   photo may grow further to keep level with it. Shorter headers are unaffected,
   since the photo only stretches to the text's height. */
@media (min-width: 1024px) {
  .page-head-grid .page-hero { max-height: 560px; }
}
@media (min-width: 1025px) {
  .page-head-grid { gap: 36px; }
}
@media (max-width: 719px) {
  .page-head-grid .page-hero { margin-top: 24px; }
}
@media (max-width: 640px) {
  .page-head { padding-block: 24px 28px; }
  .page-head h1 { font-size: 27px; }
  .page-hero img { border-radius: var(--radius-md); }
}
/* Hero Image Focus (CMS) */
.page-hero img.page-hero-focus-top { object-position: 50% 0; }
.page-hero img.page-hero-focus-bottom { object-position: 50% 100%; }

/* =========================================================
   Card grids (services & blog listing pages)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 96px;
}
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.card-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--mint-soft), var(--mint));
  position: relative;
}
.card-thumb.t-pink   { background: linear-gradient(135deg, #d8e6e2, #B9D3CD); }
.card-thumb.t-mint   { background: linear-gradient(135deg, #B9D3CD, #537C75); }
.card-thumb.t-yellow { background: linear-gradient(135deg, #c8d9d5, #39615D); }
.card-thumb.t-purple { background: linear-gradient(135deg, #c2cfde, #3A5377); }
.card-thumb.t-warm   { background: linear-gradient(135deg, #d4dde4, #4f6a8c); }
.card-thumb.t-sage   { background: linear-gradient(135deg, #c5d4cf, #537C75); }
.card-thumb .burst {
  position: absolute;
  width: 64px; height: 64px;
  bottom: 18px; left: 18px;
}

.card-body { padding: 22px 24px 26px; }
.card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-pale);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  margin: 6px 0 10px;
  letter-spacing: -0.01em;
}
.card-excerpt { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 18px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  align-self: flex-start;
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card:hover .card-link { gap: 12px; color: var(--teal); border-bottom-color: var(--teal); }

/* =========================================================
   Blog post content
   ========================================================= */
.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.post-meta .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted);
}
/* No width cap: body text spans the content width, left-aligned with the H1 */
.post-content {
  padding-bottom: 96px;
}
.post-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 16px;
}
.post-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
}
.post-content p {
  margin: 0 0 20px;
  line-height: 1.8;
}
.post-content ul, .post-content ol {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 20px;
}
.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.post-content blockquote {
  border-left: 3px solid var(--mint);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--ink-soft);
  font-style: italic;
}
/* Markdown tables. The eleventy.config.js markdown renderer wraps each table
   in .table-scroll, which scrolls sideways on narrow screens. */
.post-content .table-scroll {
  overflow-x: auto;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}
.post-content .table-scroll:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.post-content th,
.post-content td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.post-content th {
  font-weight: 700;
  color: var(--ink);
  background: var(--mint-pale);
  white-space: nowrap;
}
.post-content td { color: var(--ink-soft); min-width: 120px; }
.post-content tbody tr:last-child td { border-bottom: 0; }
/* A page's CMS schedule list (the [schedule] marker): two short columns, so it
   fits a phone without scrolling; the time column stays narrow */
.post-content .schedule-table {
  margin: 20px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}
.post-content .schedule-table tbody th {
  width: 1%;
  padding-right: 20px;
  font-weight: 700;
  color: var(--navy);
  background: none;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
}
.post-content .schedule-table tbody tr:last-child th { border-bottom: 0; }
.post-content .schedule-table td { min-width: 0; }
/* A page's CMS table (the [table] marker): row headings can be long, so they
   wrap and take about 45% of the width */
.post-content .info-table {
  margin: 20px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}
.post-content .info-table th { white-space: normal; }
.post-content .info-table tbody th {
  width: 45%;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border-bottom: 1px solid var(--line);
}
.post-content .info-table tbody tr:last-child th { border-bottom: 0; }
.post-content .info-table td { min-width: 0; }
@media (max-width: 480px) {
  .post-content .info-table th,
  .post-content .info-table td { padding: 11px 14px; font-size: 14px; }
}
@media (max-width: 480px) {
  .post-content .schedule-table th,
  .post-content .schedule-table td { padding: 11px 14px; font-size: 14px; }
}
/* A Markdown link titled "button" on its own line ([Text](/url/ "button")),
   e.g. Verify your insurance */
.content-section-body .content-button-row { margin: 24px 0 0; }
.content-section-body .content-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.content-section-body .content-button:hover { background: var(--teal); color: #fff; }
.content-section-body .content-button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
/* H3 subsections that end in a link (e.g. "The struggles we see most often"):
   stacked white cards, one per row, since their text lengths differ a lot */
.content-section-body .topic-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 28px 0;
}
/* CMS "Card Grid Sections": short cards (a heading and one line) side by side */
@media (min-width: 720px) {
  .content-section-body .topic-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Three across on desktop, with a short last row centered (5 cards: 3, then
   2 in the middle) rather than left-aligned under an empty slot. Flex rows
   still stretch each row's cards to the same height. */
@media (min-width: 1024px) {
  .content-section-body .topic-cards--grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .content-section-body .topic-cards--grid .topic-card { flex: 0 0 calc((100% - 32px) / 3); }
}
.content-section-body .topic-card {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 22px;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(31, 47, 71, 0.07);
}
.content-section-body .topic-card h3 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  color: var(--navy);
}
.content-section-body .topic-card p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.content-section-body .topic-card p:last-child { margin-bottom: 0; }
/* A card's lead sentence (a fully bold paragraph in the CMS) */
.content-section-body .topic-card .topic-card-lead { font-size: 17px; font-weight: 600; color: var(--navy); }
.content-section-body .topic-card .topic-card-link {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid #e8e4dc;
  font-size: 15px;
}
.content-section-body .topic-card-link a {
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}
.content-section-body .topic-card-link a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .content-section-body .topic-card { padding: 20px 18px 16px; border-radius: 14px; }
  .content-section-body .topic-card h3 { font-size: 19px; }
}

/* =========================================================
   Designed content sections (lib/designed-sections.js)
   ========================================================= */
/* Each H2 of a content page's body becomes a full-bleed band; the content
   stays in the container so its left edge matches the H1. */
.content-section { padding: 64px 0; }
.content-section--white { background: #fff; }
.content-section--blue { background: #eef3f8; }
.content-section--sage { background: #eef4f1; }
.content-section-body.post-content { padding-bottom: 0; }
.content-section-body > :first-child { margin-top: 0; }
.content-section-body > :last-child { margin-bottom: 0; }
.content-section-body h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 20px;
}
/* First section: its list as white check cards, a short note after it as a callout */
.content-section-body ul.check-cards {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.content-section-body .check-cards li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 48px;
  line-height: 1.5;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(58, 83, 119, 0.06);
}
.content-section-body .check-cards li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e3efe9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336574f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.content-section-body .content-callout {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}
.content-section-body .content-callout a,
.content-section-body .content-callout strong { color: #fff; }
/* Intro sentence before check cards (a fully bold paragraph in Markdown) */
.content-section-body .content-lead {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--navy);
}
/* Light note (a Markdown quote starting with [!NOTE]): calm but clearly
   visible, for information like the crisis line that shouldn't read as an alarm */
.content-section-body .content-note {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 4px 12px 12px 4px;
  background: #eef4f8;
  color: var(--navy);
}
.content-section-body .content-note a { color: var(--navy); font-weight: 600; }
/* Second section with a second photo: photo left, text right, same height */
.content-section--split .content-section-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}
.split-photo {
  position: relative;
  min-height: 380px;
}
.split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  background: var(--mint-pale);
}
/* Our Facility page gallery: a light tint until each lazy photo arrives */
.facility-gallery img { background: var(--mint-pale); }
.split-photo img.page-hero-focus-top { object-position: 50% 0; }
.split-photo img.page-hero-focus-bottom { object-position: 50% 100%; }
.split-text { align-self: center; }
.split-text > :first-child { margin-top: 0; }
.split-text > :last-child { margin-bottom: 0; }
/* "Questions" sections: each question paragraph as a card, a closing statement under them */
.question-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0;
}
.question-card {
  padding: 20px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 16px;
}
.content-section-body .question-card-question {
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--navy);
}
.content-section-body .question-card-answer {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
.content-section-body .content-closing-line {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  color: var(--navy);
}
.content-section-body .content-closing-line strong { font-weight: 600; }
/* Paragraph-only sections on a colored band: centered */
.content-section--centered .content-section-body {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
@media (max-width: 1023px) {
  .question-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .content-section { padding: 40px 0; }
  .content-section-body h2 { font-size: 26px; }
  .content-section-body ul.check-cards,
  .question-cards,
  .content-section--split .content-section-body { grid-template-columns: minmax(0, 1fr); }
  .content-section--split .content-section-body { gap: 24px; }
  .split-photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Optional CMS intro on the /mental-health/ and /areas-served/ hubs, sitting
   between the page head and the card grid rather than closing out the page */
.hub-intro {
  padding-bottom: 56px;
}
.hub-intro > :first-child { margin-top: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  /* One type style for every footer line: 15px white, generous leading */
  --footer-text: #fff;
  /* The backdrop and glass panel (.footer-backdrop-photo, .footer-glass) are
     layered inside. With the Photo backdrop the solid color shows only while
     the photo is missing; the other backdrops are plain colors below. */
  position: relative;
  isolation: isolate;
  background: var(--footer-bg);
  /* Separates the footer from the final CTA, which is the same navy until it has a photo */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
  font-size: 15px;
  line-height: 1.9;
  /* Tighter than the original 80px / 35px; phones set their own in the
     phone footer block */
  padding: 54px 0 18px;
}
.site-footer a { color: var(--footer-text); transition: color .15s ease; }
/* Text links are already white, so hover underlines them instead */
.footer-contact a:hover, .footer-col a:hover, .footer-legal a:hover,
.footer-contact a:focus-visible, .footer-col a:focus-visible, .footer-legal a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-grid {
  display: grid;
  /* Wide enough for the description in ~2 lines at desktop, and never narrower
     than the one-line address row */
  grid-template-columns: clamp(380px, 45%, 540px) repeat(var(--footer-link-columns, 3), minmax(0, 1fr));
  align-items: start;
  gap: 48px;
  /* Space above the divider: the columns end well short of the brand column,
     so a smaller gap than the old 60px avoids a large empty band */
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Frosted glass footer, on every page. Layers, bottom to top: the Footer
   Backdrop: plain black (default), or the homepage's closing-section
   photo (mirrored so on the homepage it continues across the seam, turned
   grey and given extra contrast so its light and dark survive the blur as a
   soft texture), or plain gray or white; then the glass: a fine grain over a
   Footer Background gradient (10% darker at the bottom) at the Footer Glass
   Opacity, a backdrop blur (Footer Blur) and a faint white top edge. Knobs:
   Site Settings > Color Palette. Over black a lower opacity is darker, over
   white lighter, over gray in between. White text passes AA at any setting
   over black; over the photo it needs 83% or more. Keep these colors in
   step with footerBackdropColors in colors.css.njk. */
.site-footer-backdrop-black { background: #000; }
.site-footer-backdrop-gray { background: #808080; }
.site-footer-backdrop-white { background: #fff; }
.footer-backdrop-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scaleY(-1);
  /* Contrast before the blur, so the texture keeps its light and dark */
  filter: grayscale(100%) contrast(1.3) brightness(1.1);
}
.footer-glass {
  position: absolute;
  /* Up 1px to cover the footer's top border too */
  inset: -1px 0 0;
  z-index: -1;
  /* rgba() rather than color-mix() keeps it working on iOS before 16.2 */
  background:
    var(--footer-grain),
    linear-gradient(to bottom,
      rgba(var(--footer-bg-rgb), var(--footer-glass-alpha)),
      rgba(var(--footer-bg-dark-rgb), var(--footer-glass-alpha)));
  background-size: 160px 160px, 100% 100%;
  /* The pane's edge: a faint white line along the top */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(var(--footer-glass-blur));
  backdrop-filter: blur(var(--footer-glass-blur));
}

/* Brand column: logo, one-line tagline, then the contact block */
.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.footer-mark {
  display: block;
  width: 45px; height: 45px;
  flex-shrink: 0;
}
.site-footer .footer-brand-name {
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.25;
}
.footer-brand-name em {
  font-style: normal;
  color: var(--footer-accent);
}
.footer-tagline {
  margin: 20px 0 0;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  font-style: normal;
  line-height: 1.4;
}
/* Each row stays on one line; the brand column is sized so the address fits */
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
/* The narrowest phones (320px) can't fit the one-line address (~315px), so the
   rows may wrap there; 375px and up keep the single line. */
@media (max-width: 374px) {
  .footer-contact-row { white-space: normal; }
}
.footer-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--footer-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Social row: a grid item of its own. From 768px up the icons are 24px,
   26px apart, and the row
   starts under the Programs column; phones put it back under the contact
   rows (see the phone footer block). */
.footer-social {
  display: flex;
  gap: 26px;
}
/* Icon color is Site Settings > Color Palette > Footer Social Icon Color;
   hover and focus turn them the Footer Accent */
.site-footer .footer-social a { display: flex; color: var(--footer-social-icon); }
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible { color: var(--footer-accent); }
.footer-social svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Link columns: headings sit level with the top of the logo */
.footer-heading {
  margin: 0 0 20px;
  color: var(--footer-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Legal row */
.footer-bottom {
  /* Space below the divider (originally 30px) */
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Separators go between links only, never before the first */
.footer-legal a + a::before {
  content: "\00b7";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.35);
}

/* Focus states */
.site-footer a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =========================================================
   About page
   ========================================================= */
.about-mission-body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0 0 64px;
}
.about-value {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.about-value h3 {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 12px;
}
.about-value p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.about-highlights {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 64px;
}
.about-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.about-highlights .check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint-pale);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-highlights .check-icon svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   Team grid
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 96px;
}
.team-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  cursor: pointer;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}
.team-card-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--mint-soft), var(--mint));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card-initials {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.3;
}
.team-card-body {
  padding: 22px 24px 26px;
}
.team-card-name {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 4px;
}
.team-card-role {
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 4px;
}
.team-card-credentials {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.team-card-bio {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.team-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}
.team-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.team-card:hover .team-card-link {
  gap: 12px;
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-list,
.faq-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
/* Desktop: two columns (questions 1-3 left, 4-6 right). Each column is its own
   stack and aligns to the top, so opening a question only pushes down the
   cards below it in the same column. */
@media (min-width: 900px) {
  .faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    max-width: 1080px;
  }
  .faq-column { gap: 18px; }
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] {
  border-color: var(--teal);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ""; }
.faq-chevron {
  flex-shrink: 0;
  transition: transform .2s ease;
  color: var(--muted);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--teal);
}
.faq-answer {
  padding: 0 24px 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.faq-answer a:hover { color: var(--navy); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .who-we-serve-grid { grid-template-columns: 1fr; }
  .who-we-serve-photo { max-width: 500px; margin: 0 auto; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-v3-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1279px) {
  .footer-grid { gap: 40px 32px; }
}

/* Desktop footer: the brand column spans both rows, so the social row (row 2)
   sits right under the link columns, starting at the first link column's left
   edge and running on under the others (five 24px icons need 224px). The link
   columns are as wide as their links and sit together as a pair (64px apart)
   right after the brand column; the last track takes the leftover width. */
@media (min-width: 981px) {
  .footer-grid { grid-template-columns: clamp(380px, 45%, 540px) repeat(var(--footer-link-columns, 3), max-content) minmax(0, 1fr); }
  .footer-col + .footer-col { margin-left: 16px; }
  .footer-brand { grid-row: 1 / span 2; }
  .footer-social { grid-column: 2 / -1; grid-row: 2; }
  /* The link columns and social row sit at the bottom of the brand column:
     row 1 takes its extra height and the columns drop to its end, so the
     social icons end level with the email line instead of the links
     floating at the top */
  .footer-grid { grid-template-rows: 1fr auto; row-gap: 28px; }
  .footer-col { align-self: end; }
  .footer-social { align-self: end; padding-bottom: 2px; }
}
/* From 768px up the brand name is about 18% larger (17px -> 20px) and the
   circle mark scales with it (45px -> 53px), kept on one line */
@media (min-width: 768px) {
  .site-footer .footer-brand-name { font-size: 20px; white-space: nowrap; }
  .footer-mark { width: 53px; height: 53px; }
}
/* Tablets and desktops: about 40% less padding above the footer content
   (54px -> 32px) and below the legal row (18px -> 11px). Phones keep the
   phone footer block's own values. */
@media (min-width: 768px) {
  .site-footer { padding-top: 32px; padding-bottom: 11px; }
}
/* Tablet footer: the brand block across the top, then the link columns side
   by side (however many there are), then the social row. */
@media (min-width: 768px) and (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(var(--footer-link-columns, 3), minmax(0, 1fr)); }
  .footer-brand,
  .footer-social { grid-column: 1 / -1; }
  .footer-social { margin-top: -4px; }
}

/* Mobile nav open state. The menu collapses below 1024px, not 720px: with every
   top-level section published, the inline nav and phone pill no longer fit
   narrower than that. Keep in sync with the width check in mobile-nav.js. */
@media (max-width: 1023px) {
  /* Collapsed header: logo on the left; the phone pill and the menu button
     side by side on the right. The flex gap is dropped so the pill can sit
     right against the button; the logo keeps its distance with a margin. */
  .nav { gap: 0; }
  .brand { margin-right: 12px; }
  /* 44x44 tap target. Negative margins keep it from growing the bar (it lays
     out 40px tall, the logo's height on phones) and line the icon up with the
     page edge, so the spare width goes into the page padding. */
  .menu-toggle { display: inline-flex; flex-shrink: 0; width: 44px; height: 44px; margin: -2px -13px -2px 0; }
  /* Compact pill, sitting low in the bar (10px above its bottom edge: the
     bar's 8px padding plus a 2px lift) just left of the menu button (17px
     from its icon) */
  .cta-pill {
    --phone-pill-lift: 2px;
    position: relative;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 4px;
    margin-bottom: var(--phone-pill-lift);
    font-size: 11.5px;
    padding: 4.75px 9.5px;
    gap: 4.75px;
  }
  .cta-pill .cta-ring { width: 14px; height: 14px; }
  .cta-pill svg { width: 11.5px; height: 11.5px; }
  /* Finger-sized hit area: 44px tall, reaching down to the bar's bottom edge
     (past the lift and the pill's 1px border too) so it never covers the
     page below */
  .cta-pill::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * (var(--nav-padding-block) + var(--phone-pill-lift)) - 1px);
    height: 44px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Same frosted glass as the dropdown panels; the blur keeps hero text behind it unreadable */
    background: var(--nav-glass-bg);
    backdrop-filter: var(--nav-glass-filter);
    -webkit-backdrop-filter: var(--nav-glass-filter);
    flex-direction: column;
    padding: 16px var(--pad-x) 24px;
    gap: 0;
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a,
  .nav-dropdown-label { padding: 12px 0; font-size: 17px; }

  .nav-dropdown { position: static; }
  /* Centered like the plain links, and kept centered when an open panel widens the item */
  .nav-dropdown-head { justify-content: center; }
  /* Finger-sized target whatever the pointer type; the negative margin keeps the
     visible chevron snug against the label */
  .nav-dropdown-toggle,
  .nav-dropdown-toggle:hover { width: 44px; height: 44px; margin: 0 -10px 0 -8px; opacity: 1; }
  .dropdown-panel {
    position: static;
    transform: none;
    display: none;
    box-shadow: none;
    margin: 0;
    padding: 0 0 8px 16px;
    /* The open menu around it already provides the glass */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
  }
  .nav-dropdown.is-open .dropdown-panel { display: block; }
  .dropdown-panel a { padding: 8px 0; font-size: 15px; }
}

@media (max-width: 720px) {
  /* Shrunk mostly through padding and the icon; the number stays readable */
  .cta-pill { font-size: 11px; padding: 3.75px 7.25px; gap: 4.25px; }
  .cta-pill .cta-ring { width: 13px; height: 13px; }
  .cta-pill svg { width: 10.5px; height: 10.5px; }

  .brand { gap: 10px; }
  .brand-mark { height: 40px; }
  .brand-block { padding-left: 10px; gap: 3px; }
  .brand-name { font-size: 11.5px; max-width: 98px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .hero-services-grid { grid-template-columns: 1fr; }
  .hero-services-grid a:nth-child(even) { padding-left: 4px; border-left: 0; }
  .hero-services-grid a:nth-child(odd) { padding-right: 4px; }
  .service-cards { grid-template-columns: 1fr; }
  .approach-item { grid-template-columns: 1fr; gap: 8px; }
  .approach-number { font-size: 36px; }
  .contact-cards { flex-direction: column; align-items: stretch; }
  .contact-form-fields { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { gap: 16px; }
  .footer-legal a + a::before { content: none; }
  .about-values { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .services-v3-cards { grid-template-columns: 1fr; }
  .final-cta-btn { width: 100%; max-width: 340px; }
  .final-cta-checklist { flex-direction: column; align-items: center; gap: 10px; font-size: 14px; }
  /* The address row needs ~364px at 15px; the phone column is ~350px */
  .footer-contact { font-size: 14px; }
  .footer-contact-row { gap: 8px; }
  .timeline { flex-direction: column; gap: 24px; align-items: flex-start; max-width: 400px; }
  .timeline::before { display: none; }
  /* Number spans both rows so the title and description share the wide column;
     without the explicit grid-column the description auto-places into the 48px
     column and wraps one word per line. */
  .timeline-step { text-align: left; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; row-gap: 4px; align-items: start; padding: 0; }
  .timeline-number { margin: 0; grid-row: 1 / span 2; }
  .timeline-step h3 { grid-column: 2; margin-top: 4px; }
  .timeline-step p { grid-column: 2; }
}

@media (max-width: 360px) {
  /* The narrowest phones need a few more pixels for the pill: the menu
     icon moves 5px further into the 20px page padding (15px from the
     screen edge), keeping its distance from the pill. */
  .menu-toggle { margin-right: -18px; }
  /* The pill keeps its previous, slightly smaller size here so it stays
     13px clear of the logo at 320px */
  .cta-pill { font-size: 10.5px; padding: 3.5px 7px; gap: 4px; }
  .cta-pill .cta-ring { width: 12.5px; height: 12.5px; }
  .cta-pill svg { width: 10px; height: 10px; }
}
@media (max-width: 380px) {
  .brand { gap: 8px; margin-right: 8px; }
  /* The name already wraps one word per line here; shrinking its box to the
     longest word frees the room the pill and menu button need at 320px. */
  .brand-name { width: min-content; }
  .brand-block { padding-left: 8px; }
  .brand-name { max-width: 96px; }
}

/* =========================================================
   Font switcher demo widget
   ========================================================= */
.font-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 240px;
  font-family: var(--body-font);
}
.font-switcher-group {
  border: none;
  padding: 0;
  margin: 0;
}
.font-switcher-group + .font-switcher-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.font-switcher-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.font-switcher-heading::-webkit-details-marker { display: none; }
.font-switcher-heading::marker { display: none; content: ""; }
.font-switcher-active-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal, #39615D);
  text-transform: none;
  letter-spacing: 0;
  margin-left: auto;
}
.font-switcher-group[open] .font-switcher-active-label {
  display: none;
}
.font-switcher-chevron {
  display: grid;
  place-items: center;
  color: #9ca3af;
  transition: transform .2s ease;
}
.font-switcher-group[open] .font-switcher-chevron {
  transform: rotate(180deg);
}
.font-switcher-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  font-family: var(--body-font);
}
.font-switcher-btn:hover {
  background: #f3f4f6;
}
.font-switcher-btn.is-active {
  background: var(--mint-pale, #e8f5f0);
  border-color: var(--teal, #39615D);
}
.font-switcher-label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.font-switcher-note {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}
.font-switcher-btn.is-active .font-switcher-label {
  color: var(--teal, #39615D);
}
@media (max-width: 720px) {
  .font-switcher {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* =========================================================
   Font switcher demo widget
   ========================================================= */
.font-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 240px;
  font-family: var(--body-font);
}
.font-switcher-group {
  border: none;
  padding: 0;
  margin: 0;
}
.font-switcher-group + .font-switcher-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.font-switcher-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.font-switcher-heading::-webkit-details-marker { display: none; }
.font-switcher-heading::marker { display: none; content: ""; }
.font-switcher-active-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal, #39615D);
  text-transform: none;
  letter-spacing: 0;
  margin-left: auto;
}
.font-switcher-group[open] .font-switcher-active-label {
  display: none;
}
.font-switcher-chevron {
  display: grid;
  place-items: center;
  color: #9ca3af;
  transition: transform .2s ease;
}
.font-switcher-group[open] .font-switcher-chevron {
  transform: rotate(180deg);
}
.font-switcher-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  font-family: var(--body-font);
}
.font-switcher-btn:hover {
  background: #f3f4f6;
}
.font-switcher-btn.is-active {
  background: var(--mint-pale, #e8f5f0);
  border-color: var(--teal, #39615D);
}
.font-switcher-label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.font-switcher-note {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}
.font-switcher-btn.is-active .font-switcher-label {
  color: var(--teal, #39615D);
}
@media (max-width: 720px) {
  .font-switcher {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* Phone footer (below 768px). A compact layout sized to fit, whole, in the
   roughly 560px an iPhone shows below the sticky header with the browser
   toolbars out: logo, the description, contact rows, a row of social icons,
   then Programs, Conditions and Get Started stacked, each a heading over
   one row of links (wrapping if more are shown on phones). Group links are
   24px tall and the other links 28-32px, at or above the 24px WCAG 2.2 AA
   minimum. Rows of links that stack keep 6-8px apart: Lighthouse's SEO
   tap-target audit fails links under 48px when a finger-sized (48px) box
   centred on one covers a quarter or more of its neighbour, which touching
   rows do. Kept last so it overrides the 720px rules above. */
@media (max-width: 767px) {
  /* A fixed bottom padding rather than a safe-area inset, so it clears the
     toolbar Chrome on iPhone floats over the page without viewport-fit */
  .site-footer { padding: 22px 0 6px; }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    /* Space above the divider line */
    padding-bottom: 10px;
  }

  /* Slightly larger mark so the letters read clearly on a phone */
  .footer-mark { width: 48px; height: 48px; }

  .footer-tagline { margin-top: 8px; line-height: 1.5; }
  /* 6px between rows for the Lighthouse tap-target check (see above) */
  .footer-contact { gap: 6px; margin-top: 11px; }
  /* 28px rows (20px line + 4px padding on the links), above the 24px
     WCAG 2.2 AA tap minimum */
  .footer-contact-row { min-height: 28px; }
  /* Icon boxes are 32px tall and 36px wide, so with the 4px gap the 20px
     icons sit 20px apart; the negative margin keeps the first icon aligned
     with the text */
  /* Back under the contact rows: brand, then social, then the link columns.
     Margins match the old in-column spacing (10px above, 14px below with the
     8px grid gap). */
  .footer-brand { order: 0; }
  .footer-social { order: 1; gap: 4px; margin: 2px 0 6px -8px; }
  .footer-col { order: 2; }
  .footer-social svg { width: 20px; height: 20px; }
  .site-footer .footer-social a { width: 36px; height: 32px; align-items: center; justify-content: center; }

  .footer-heading { margin-bottom: 8px; }
  /* The two link columns side by side, each a list of four links (the ones
     ticked "Show on Phones"), one per line. Split 2:3 because the second
     column's longest link is wider: at 375px that is 126px for Conditions
     (More conditions needs 115px) and 189px for Get Started (Admissions &
     Contact needs 158px), still enough at 360px. The brand block and social
     row span both columns. A third column would start a new row. */
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 20px; }
  .footer-brand,
  .footer-social { grid-column: 1 / -1; }
  .footer-col { margin-top: 8px; }
  .footer-col ul { flex-direction: column; gap: 8px; }
  .footer-col a { white-space: nowrap; }
  /* Links unticked "Show on Phones" in the CMS; hidden here only, so they
     stay in the HTML for search engines */
  .footer-link-desktop-only { display: none; }
  /* 20px line + 6px padding above and below = a 32px tap target */
  .footer-contact-row a,
  .footer-col a,
  .footer-legal a { display: flex; align-items: center; padding: 6px 0; line-height: 20px; }
  /* Links in a column sit close: 2px padding gives a 24px tap height, the
     WCAG 2.2 AA minimum, with an 8px gap between them */
  .footer-col a { padding: 2px 0; }
  .site-footer .footer-contact-row a { padding: 4px 0; }

  /* Space below the divider line */
  .footer-bottom { padding-top: 12px; gap: 0; line-height: 20px; }
  .footer-legal { column-gap: 16px; row-gap: 6px; }
}

/* Closing CTA on phones (below 768px): the two buttons side by side, each
   half the row, with the shorter phone labels when set; the checklist on one
   line at 12px with the phone list when set. Keeps the heading, buttons and
   checklist on one screen. The hero's buttons are not affected. */
@media (max-width: 767px) {
  /* Shorter on phones: 24px above the insurance label (was 44px), 18px
     below the checklist (40% off the 30px section padding), and, below the
     logos, at most 40px of the Extra Top Space minus 26px: 14px at the default
     (half the earlier 28px), never below 12px */
  .final-cta-section { padding-top: 24px; padding-bottom: 18px; }
  .final-cta-section .final-cta-content h2 { margin-top: max(12px, calc(min(40px, var(--cta-extra-top, 180px)) - 26px)); }
  /* No line under the heading on phones: the buttons and checklist already
     say it, and the line (often repeating the phone number on the Call
     button) pushed the buttons down. The heading goes straight to the
     buttons, 14px apart. */
  .final-cta-section .final-cta-subline { display: none; }
  .final-cta-section .final-cta-content h2 { margin-bottom: 14px; }
  /* Carriers three per row (3x2 for six): logos 23px tall (symbols 30px),
     at most 96px wide */
  .insurance-logos {
    --insurance-logo-height: 23px;
    --insurance-symbol-height: 30px;
    --insurance-logo-max-width: 96px;
    --insurance-column-gap: 16px;
    max-width: 340px;
    /* 11px between the two rows of logos (30% off 16px) */
    row-gap: 11px;
    margin-bottom: 0;
  }
  .insurance-logo-placeholder { font-size: 16px; white-space: normal; text-align: center; line-height: 1.2; }
  /* Half the space between the buttons and the checklist (12px -> 6px) */
  .final-cta-section .final-cta-checklist { margin-top: 6px; }
  .final-cta-section .final-cta-buttons { flex-wrap: nowrap; gap: 8px; }
  .final-cta-section .final-cta-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .final-cta-section .final-cta-btn--has-phone-label .cta-label-full { display: none; }
  .final-cta-section .final-cta-btn--has-phone-label .cta-label-phone { display: inline; }
  .final-cta-section .final-cta-checklist-full { display: none; }
  .final-cta-section .final-cta-checklist {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
  }
  .final-cta-section .final-cta-checklist-phone { display: flex; }
  .final-cta-section .final-cta-checklist li { gap: 4px; }
  .final-cta-section .final-cta-check { width: 12px; height: 12px; }
}

/* =========================================================
   Floating call button (partials/floating-call.njk)
   ========================================================= */
/* Fixed bottom-right on every page. It stays under the Verify Insurance
   dialog (a modal <dialog> sits in the browser's top layer, above any
   z-index) and is hidden while that dialog is open. */
.floating-call {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* A round icon-only button at every width; the aria-label carries the name and number */
  width: 64px;
  height: 64px;
  border-radius: 50%;
  /* Logo green ("Adolescent"), Site Settings > Colors > Brand Green.
     White icon on #537C75 is 4.6:1, above the 3:1 WCAG asks of icons. */
  background: var(--brand-green);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 47, 71, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.floating-call:hover,
.floating-call:focus-visible { background: #36574f; }
.floating-call:hover { transform: translateY(-1px); }
/* White inner ring plus a green outer ring, so focus shows on light and dark backgrounds */
.floating-call:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #36574f, 0 8px 24px rgba(31, 47, 71, 0.25); }
.floating-call-icon { width: 28px; height: 28px; flex-shrink: 0; }
.verify-dialog-open .floating-call { display: none; }
/* Keep the footer's last row (legal links) clear of the button at the very bottom of the page */
.has-floating-call .footer-bottom { padding-bottom: calc(64px + 24px + 16px + env(safe-area-inset-bottom)); }
/* Wide screens, where the floating call button sits right of the container
   and so never covers the legal links: their clearance under the legal row
   drops too, 122px -> 73px in all with the footer's own padding. Narrower
   screens keep the full clearance, or the button would sit on the links. */
@media (min-width: 1366px) {
  .has-floating-call .footer-bottom { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  /* Phones: a little smaller and closer to the corner, clear of the iPhone home indicator */
  .floating-call {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
  }
  .floating-call-icon { width: 26px; height: 26px; }
  /* Room under the legal links (52px with the footer's 6px): the 60px button
     sits 16px off the bottom at the right edge, beside the left-aligned legal
     links rather than on them (at 320px it starts 34px right of the longest) */
  .has-floating-call .footer-bottom { padding-bottom: calc(46px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-call { transition: none; }
  .floating-call:hover { transform: none; }
}

/* =========================================================
   Homepage on phones (below 768px): tighter spacing and
   designed section headings. Desktop is unchanged.
   ========================================================= */
/* A key phrase marked with *asterisks* in the CMS (headingAccent filter):
   plain heading text on desktop */
.heading-accent { color: inherit; }
@media (max-width: 767px) {
  /* Title to first question (FAQ) and to the first step (How It Works): 32px, was 48px */
  .faq-section .section-header,
  .timeline-section .section-header { margin-bottom: 32px; }
  /* Our Story: label to paragraphs 18px (was 28px); text to photo 30px with
     the last paragraph's 16px margin (was 44px) */
  .story-heading { margin-bottom: 18px; }
  .story-section--with-photo .story-layout { gap: 14px; }

  /* Four big sentence headings: about 15-20% smaller, balanced lines, a
     little tighter, and their key phrase in the brand's green family, in the
     shade that keeps 3:1 or more on the section's background */
  .parent-thoughts-heading,
  .programs-intro-heading,
  .timeline-section .section-header h2,
  .why-pillars-heading { text-wrap: balance; letter-spacing: -0.01em; }
  .parent-thoughts-heading { font-size: 18px; line-height: 1.22; }
  .programs-intro-heading { font-size: 22px; line-height: 1.18; }
  .timeline-section .section-header h2 { font-size: 26px; line-height: 1.15; text-decoration: none; }
  .why-pillars-heading { font-size: 20px; line-height: 1.22; }
  /* White background: brand green (4.7:1) */
  .programs-intro-heading .heading-accent,
  .why-pillars-heading .heading-accent { color: var(--brand-green); }
  /* Navy backgrounds: mint (4.9:1 on #3A5377) */
  .parent-thoughts-heading .heading-accent,
  .timeline-section .section-header h2 .heading-accent { color: var(--mint); }
  /* Green background: the paler mint (3.6:1 on #537C75). At 20px the
     heading's 600 weight counts as normal text, which needs 4.5:1, and no
     mint shade reaches that on this green. Bold (700) makes the phrase large
     text (18.66px bold or more), where 3:1 is enough. */
  .why-section--green .why-pillars-heading .heading-accent { color: var(--mint-soft); font-weight: 700; }

  /* Second pass, about another third off the phone values above (most were
     the 30px --section-pad-y): 20px section tops and bottoms where listed */
  /* Parent Questions: 20px above FOR PARENTS (was 30px), 21px title to first question (was 32px) */
  .faq-section { padding-top: 20px; }
  .faq-section .section-header { margin-bottom: 21px; }
  /* Parent thoughts: 20px top and bottom (was 30px), 12px above the closing
     lines (was 18px), and those lines about 15% smaller (18px -> 15.5px) */
  .parent-thoughts { padding-top: 20px; padding-bottom: 20px; }
  .parent-thoughts-closing { margin-top: 12px; }
  .parent-thoughts-closing-lead,
  .parent-thoughts-closing-text { font-size: 15.5px; }
  /* Our Story: paragraphs to photo 20px (the last paragraph's 16px margin + 4px; was 30px) */
  .story-section--with-photo .story-layout { gap: 4px; }
  /* Programs intro: 20px above the title (was 30px), 19px title to the first
     card (was 28px), 20px below the condition pills (was 30px); the link
     under the cards ticked "hide on phones" in the CMS is left out */
  .programs-intro { padding-top: 20px; padding-bottom: 20px; }
  .programs-intro-cards { margin-top: 19px; }
  .programs-intro-footer--hide-on-phones { display: none; }
  /* Condition pills ticked "Hide on Phones" in the CMS, so the rest fit in two rows */
  .conditions-row-item--hide-on-phones { display: none; }
  /* Why GAP: 20px above the heading (was 30px) */
  .why-section { padding-top: 20px; }

  /* Third pass */
  /* "We help teens with": cards to the divider line 17px (was 26px), line to
     the label 12px with the 1px line (was 23px) */
  .conditions-row { margin-top: 17px; padding-top: 11px; }
  /* How It Works: 20px above the label (was 30px), 21px title to the first step (was 32px) */
  .timeline-section { padding-top: 20px; }
  .timeline-section .section-header { margin-bottom: 21px; }
  /* Why GAP proof strip: cards to strip 15px (was 22px), strip to section
     bottom 15px (was 30px); facts ticked "Hide on Phones" in the CMS are left out */
  .why-proof { margin-top: 15px; }
  .why-section { padding-bottom: 15px; }
  .why-proof .why-proof-item--hide-on-phones { display: none; }
}

/* =========================================================
   Google Ads landing pages (/get-started/..., layouts/landing.njk)
   The site's own tokens and components (check lists, program cards, topic
   cards, FAQ, space photos, closing-CTA buttons); these rules only lay them
   out for a single-purpose page. Nothing here applies to the main site.
   ========================================================= */
.landing-body { background: var(--bg); }
.landing-header .nav { gap: 16px; }
/* Desktop header (768px and up): pinned like the site header, slimmer (about
   67px instead of 72px), with a larger phone number. Phones keep the small
   call pill. */
@media (min-width: 768px) {
  .landing-header { position: sticky; top: 0; --nav-padding-block: 7px; }
  .landing-header .brand-mark { height: 46px; }
  .landing-header .cta-pill {
    margin-left: auto;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    border: 1px solid rgba(58, 83, 119, 0.35);
    background: #fff;
    color: var(--navy);
    font-size: 20px;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
  }
  .landing-header .cta-ring {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
  }
  .landing-header .cta-pill svg { width: 17px; height: 17px; }
  .landing-header .cta-pill:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
  .landing-header .cta-pill:hover .cta-ring { background: #fff; color: var(--navy); }
  .landing-header .cta-pill:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
  /* Anything the page scrolls to (the form, the trust strip, a #link) lands
     just below the pinned header, never under it */
  .landing-body main [id] { scroll-margin-top: 80px; }
}
.landing-section-heading {
  margin: 0 0 24px;
  font-family: var(--heading-font);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-align: center;
  text-wrap: balance;
}

/* Hero: a short single-column intro with modest padding, so the trust strip
   below shows above the fold at 1440x900 and on a 375x812 phone */
.landing-hero {
  padding: 36px 0 22px;
  background: linear-gradient(180deg, #eef3f8 0%, #f6f9fb 100%);
}
.landing-hero-inner { max-width: 820px; }
/* Text left; right, a wide facility photo with the short call-back form card
   directly below it, never over it, so the whole photo shows and the form's
   submit button stays above the fold on a 1366x768 laptop. Equal halves: the
   photo is 568px wide at 1440px and ends at the container's right edge, level
   with the header's phone button. Phones stack it as text, form, photo
   (below). */
.landing-hero-inner--aside {
  max-width: var(--container);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
  align-items: center;
}
.landing-hero-aside { display: flex; flex-direction: column; }
.landing-hero-photo { display: block; }
.landing-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: #dbe5ef;
}
.landing-hero-form { position: relative; margin: 16px 0 0; }
/* As the #form target: land just under the landing header, not behind it */
.landing-hero-form { scroll-margin-top: 88px; }
.landing-eyebrow { margin-bottom: 14px; }
.landing-title {
  margin: 0 0 14px;
  font-family: var(--heading-font);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.landing-lede {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
}
/* program-card-list checks, which take their circle colour from the card */
.landing-checks { --program-tint: #e3efe9; margin: 20px 0 0; gap: 8px; }
.landing-hero-note {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--sage-text);
}
/* The reassurance line and the Google rating badge, side by side, wrapping on phones */
.landing-hero-trustline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.landing-hero-trustline .landing-hero-note { margin: 0; }
.landing-google-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid #d6dee8;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.landing-google-rating:hover { border-color: var(--navy); }
.landing-google-rating:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* Google's star yellow, dark enough to read on white */
.landing-google-star { color: #e8a200; }
.landing-call-btn { width: auto; min-width: 280px; }
.landing-hero .landing-call-btn { margin-top: 20px; }
/* Call-back form, near the bottom of the page (#form) */
.landing-form-section { padding: 56px 0; background: #eef3f8; }
.landing-form-section-inner { max-width: 640px; }

/* Call-back form card */
.landing-form {
  padding: 28px 26px 22px;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(31, 47, 71, 0.10);
}
.landing-form-heading {
  margin: 0 0 6px;
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
.landing-form-sub { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.landing-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.landing-form .form-field input,
.landing-form .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.landing-form .form-field input:focus-visible,
.landing-form .form-field select:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(57, 97, 93, 0.25);
}
.landing-form-optional { font-weight: 400; color: var(--ink-soft); }
.landing-form .sms-consent { margin: 0 0 16px; }
.landing-form-submit {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  background: var(--brand-green);
}
.landing-form-submit:hover { background: var(--teal); }
.landing-form-fine { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.landing-form-fine + .landing-form-fine { margin-top: 4px; }
.landing-form-fine a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

/* The short call-back form in the hero: name and phone side by side, smaller
   type, so the card stays compact beside the headline */
.landing-form--hero { padding: 20px 22px 14px; }
.landing-form--hero .landing-form-heading { font-size: 21px; margin-bottom: 4px; }
.landing-form--hero .landing-form-sub { margin-bottom: 12px; font-size: 14px; }
.landing-form--hero .landing-form-fields { gap: 10px; margin-bottom: 12px; }
.landing-form--hero .form-field label { font-size: 14px; }
.landing-form--hero .form-field input { padding: 10px 12px; }
.landing-form--hero .sms-consent { margin-bottom: 12px; font-size: 12px; line-height: 1.45; }
.landing-form--hero .landing-form-fine { margin-top: 8px; font-size: 12px; }

/* Call band: a slim Call button row after every second content section */
.landing-call-band { padding: 26px 0; background: #eef3f8; }
.landing-call-band-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.landing-call-band-text { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); }

/* Transparency: who runs the program, above the footer */
.landing-transparency { padding: 32px 0; background: #f6f9fb; border-top: 1px solid var(--line); }
.landing-transparency-heading {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}
.landing-transparency-details { display: flex; flex-direction: column; gap: 2px; font-style: normal; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.landing-transparency-licensing { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.landing-transparency-links { margin: 10px 0 0; font-size: 15px; }
.landing-transparency a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Sticky call bar: phones only (shown in the phone rules below). Its height,
   which the footer's bottom padding makes room for */
.landing-sticky-call { display: none; }
:root { --landing-sticky-call-height: 72px; }

/* Trust strip: four facts on navy */
.landing-trust { background: var(--navy); color: #fff; }
.landing-trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  padding-block: 22px;
  list-style: none;
}
.landing-trust-list li { display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
.landing-trust-list strong { font-size: 16px; }
.landing-trust-list span { font-size: 14px; color: var(--mint); }
/* An item with no second line shows its heading alone, centred in the row */
.landing-trust-list span:empty { display: none; }

/* Parent quotes on the soft blue background */
.landing-quotes { padding: 56px 0; background: #eef3f8; text-align: center; }
.landing-quote-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.landing-quote-cards li {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
}
.landing-quotes-bold {
  margin: 28px auto 6px;
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}
.landing-quotes-text { max-width: 640px; margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* Page sections built on the content-section styles */
.landing-section .content-section-body { max-width: 1080px; margin: 0 auto; }
.landing-section .content-section-body > h2 { text-align: center; }
.landing-section-intro { max-width: 680px; margin: 0 auto 8px; text-align: center; }
/* Beats .post-content p, which would drop the auto margins and pull it left */
.landing-section .content-section-body .landing-section-intro { margin: 0 auto 8px; }
/* In a checks section the intro sentence lines up with the left-aligned heading and checks */
.landing-section .landing-fit-text .landing-section-intro { max-width: none; margin: 0 0 16px; text-align: left; }
.landing-section-note { margin: 22px 0 0; text-align: center; color: var(--ink-soft); }
.landing-program-cards { margin-top: 24px; }
/* Program cards sit inside .post-content, whose list rules add a bullet
   beside each check mark: the card's own check marks only */
.landing-program-cards .program-card-list { list-style: none; padding-left: 0; }
/* Exactly four cards read as two rows of two on desktop, rather than three
   and one (smaller screens already show one or two per row) */
@media (min-width: 1024px) {
  .landing-section .topic-cards--grid:has(> .topic-card:nth-child(4):last-child) { max-width: 820px; margin-inline: auto; }
  .landing-section .topic-cards--grid:has(> .topic-card:nth-child(4):last-child) .topic-card { flex-basis: calc((100% - 16px) / 2); }
}
.landing-program-cards .program-card-list { margin-bottom: 24px; }
.landing-program-btn { margin-top: auto; }
/* Fit checklist beside the schedule table */
.landing-fit {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1080px;
}
.landing-section .landing-fit-text > h2 { text-align: left; }
/* A checklist with no schedule beside it: one centered column */
.landing-fit--checks-only { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.landing-fit .content-section-body ul.landing-fit-checks { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 20px 0 0; }
.landing-fit .landing-section-note { text-align: left; }
.landing-fit .landing-section-note a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.landing-schedule {
  padding: 26px 26px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(31, 47, 71, 0.14);
}
.landing-schedule-heading { margin: 0 0 14px; font-family: var(--heading-font); font-size: 21px; font-weight: 600; line-height: 1.3; }
.landing-schedule table { width: 100%; border-collapse: collapse; }
.landing-schedule th,
.landing-schedule td { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); text-align: left; vertical-align: top; font-size: 16px; line-height: 1.45; }
.landing-schedule th { width: 96px; padding-right: 14px; color: var(--mint); font-weight: 700; white-space: nowrap; }

/* Insurance logos in their own colours */
.landing-insurance { padding: 36px 0; text-align: center; border-bottom: 1px solid var(--line); }
.landing-insurance-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.landing-insurance-logo { display: block; height: 28px; width: auto; max-width: 130px; object-fit: contain; }
.landing-insurance-name { font-weight: 600; color: var(--ink-soft); }
.landing-insurance-caption { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--sage-text); }

/* Our Space photos */
.landing-space { padding-top: 56px; }
.landing-space .space-photos { padding-bottom: 56px; }

/* Getting started: three numbered steps */
.landing-steps { padding: 56px 0; background: #eef4f1; }
.landing-steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.landing-steps-list li {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
}
.landing-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
}
.landing-steps-list h3 { margin: 0 0 6px; font-family: var(--heading-font); font-size: 20px; font-weight: 600; color: var(--navy); }
.landing-steps-list p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* FAQ */
.landing-faq { padding: 56px 0; }
.landing-faq-inner { max-width: 820px; }
.landing-faq-list { display: grid; gap: 12px; }

/* Closing band, in the closing-CTA style */
.landing-closing { padding: 56px 0 60px; background: var(--deep-navy); color: #fff; text-align: center; }
.landing-closing h2 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
.landing-closing p { margin: 0 auto 26px; max-width: 620px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.landing-closing .final-cta-btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.landing-closing .final-cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Footer: one short block */
.landing-footer { padding: 26px 0 30px; background: var(--deep-navy); border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.86); font-size: 14px; line-height: 1.6; }
.landing-footer-legal a { color: #fff; }
.landing-footer-crisis { margin: 0; }
/* Each legal link is a 48px-tall tap target (Lighthouse tap-targets): on phones
   the three wrap onto two lines, and 22px-tall links 4px apart were too close.
   The padding replaces the old row gap and top margin, so the text sits about
   where it did. */
.landing-footer-legal { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: -3px; margin-bottom: -13px; }
.landing-footer-legal a { display: inline-flex; align-items: center; min-height: 48px; }
.landing-footer-legal a:hover { text-decoration: underline; }

/* Thank-you page */
.landing-thanks { padding: 64px 0; text-align: center; }
.landing-thanks-inner { max-width: 720px; }
.landing-thanks .landing-lede { margin: 0 auto 28px; }
.landing-thanks-back { padding: 32px 0 48px; text-align: center; }
.landing-back-link { font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* Floating "Request more information" button (768px and up): bottom right,
   in the green of the site's call-back buttons. It starts hidden;
   landing-attribution.js shows it only while no call-back form is on screen
   (visibility and opacity set inline, so no state class has to be kept in
   the inlined critical CSS). Room under the footer so it never covers the
   legal links. */
.landing-floating-form {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--brand-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(31, 47, 71, 0.25);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease, background .2s ease, transform .15s ease;
}
.landing-floating-form:hover { background: var(--teal); transform: translateY(-1px); }
.landing-floating-form:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .landing-floating-form { transition: none; }
  .landing-floating-form:hover { transform: none; }
}
.landing-footer { padding-bottom: calc(64px + 24px + 16px + env(safe-area-inset-bottom)); }

@media (max-width: 980px) {
  .landing-fit { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .landing-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* Phones: the same short hero, a little tighter */
  .landing-hero { padding: 22px 0 14px; }
  .landing-title { font-size: 31px; margin-bottom: 10px; }
  .landing-eyebrow { margin-bottom: 10px; }
  .landing-checks { margin-top: 14px; gap: 6px; }
  .landing-checks li { font-size: 15px; }
  .landing-hero-note { margin-top: 10px; font-size: 14px; }
  .landing-hero-trustline { margin-top: 10px; gap: 6px 10px; }
  .landing-hero .landing-call-btn { margin-top: 14px; }
  /* Phones: headline and Call button first, then the short form, then a short
     wide crop of the photo (2:1) */
  .landing-hero-inner--aside { grid-template-columns: minmax(0, 1fr); }
  .landing-hero-form { order: -1; margin: 16px 0 0; }
  .landing-form--hero { padding: 18px 16px 12px; }
  .landing-form--hero .landing-form-fields { grid-template-columns: minmax(0, 1fr); }
  .landing-hero-photo { margin-top: 14px; }
  .landing-hero-photo img { border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10); }
  .landing-call-btn { display: flex; width: 100%; min-width: 0; }
  .landing-lede { font-size: 16.5px; line-height: 1.5; }
  .landing-form-section { padding: 36px 0; }
  .landing-form { padding: 22px 18px 18px; }
  .landing-form-fields { grid-template-columns: minmax(0, 1fr); }
  .landing-trust-list { gap: 14px 10px; padding-block: 18px; }
  .landing-trust-list strong { font-size: 15px; }
  .landing-trust-list span { font-size: 13px; }
  .landing-quotes,
  .landing-steps,
  .landing-faq,
  .landing-closing { padding: 36px 0; }
  .landing-quote-cards { grid-template-columns: minmax(0, 1fr); }
  .landing-quote-cards li { font-size: 15.5px; padding: 14px 18px; }
  .landing-quotes-bold { font-size: 19px; }
  .landing-steps-list { grid-template-columns: minmax(0, 1fr); }
  .landing-space { padding-top: 36px; }
  .landing-space .space-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 var(--pad-x) 36px; }
  .landing-insurance-logos { gap: 14px 24px; }
  .landing-insurance-logo { height: 24px; max-width: 104px; }
  .landing-schedule th { width: 78px; }
  .landing-closing .final-cta-buttons { flex-wrap: nowrap; gap: 8px; }
  .landing-closing .final-cta-btn { flex: 1 1 0; width: auto; min-width: 0; padding: 10px 12px; font-size: 14px; white-space: normal; text-align: center; }
  /* The full-width call bar replaces the round button on phones; the page
     gets room under the footer so the bar never covers the legal links */
  .landing-floating-form { display: none; }
  /* Bright aqua (the footer accent) with deep navy text, so it stands out
     from the page's navy and green; the main line leads with the action */
  .landing-sticky-call {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: var(--landing-sticky-call-height);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--footer-accent);
    color: var(--deep-navy);
    border-top: 1px solid rgba(30, 43, 58, 0.12);
    box-shadow: 0 -8px 22px rgba(30, 43, 58, 0.22);
  }
  .landing-sticky-call:active { filter: brightness(0.95); }
  .landing-sticky-call:focus-visible { outline: 3px solid var(--deep-navy); outline-offset: -6px; }
  /* Phone icon in a navy circle, with a soft ring that pulses out once every
     few seconds (none when reduced motion is asked for) */
  .landing-sticky-call-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--deep-navy);
    color: #fff;
    animation: landing-sticky-call-pulse 4s ease-out 2s infinite;
  }
  .landing-sticky-call-icon { width: 22px; height: 22px; }
  .landing-sticky-call-text { display: flex; flex-direction: column; line-height: 1.2; }
  .landing-sticky-call-main { font-size: 19px; font-weight: 700; white-space: nowrap; }
  .landing-sticky-call-number { font-variant-numeric: tabular-nums; }
  .landing-sticky-call-note { margin-top: 2px; font-size: 13px; font-weight: 600; }
  .landing-footer { padding-bottom: calc(var(--landing-sticky-call-height) + 16px + env(safe-area-inset-bottom)); }
  .landing-call-band { padding: 22px 0; }
  .landing-call-band-inner { flex-direction: column; }
  .landing-transparency { padding: 26px 0; }
}

/* The sticky call bar's attention pulse: one soft ring, then rest */
@keyframes landing-sticky-call-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 43, 58, 0.45); }
  25% { box-shadow: 0 0 0 12px rgba(30, 43, 58, 0); }
  100% { box-shadow: 0 0 0 12px rgba(30, 43, 58, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-sticky-call-badge { animation: none; }
}

/* =========================================================
   Areas Served hub (/areas-served/, src/locations/index.njk)
   Built from the condition pages' header, the listing cards, the homepage
   Why GAP pillars and the question cards; only the joins are styled here.
   ========================================================= */
/* Kicker above the H1, styled like the homepage hero's label */
.areas-kicker { margin-bottom: 12px; }
.areas-head-actions { margin-top: 24px; }
/* No photo: the intro and button centered under the H1, as on other subpages */
.areas-head-text--centered { max-width: 820px; margin: 0 auto; }
.areas-head-text--centered .areas-head-actions { display: flex; justify-content: center; }
.areas-section-heading {
  margin: 0 0 32px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-align: center;
  text-wrap: balance;
}
.areas-card-grid { padding-bottom: 0; }
/* A real photo of the town in place of the colored panel; the card's own
   rounded corners and overflow clip its top. Light tint until it loads. */
.card-thumb--photo {
  overflow: hidden;
  /* Its own layer for the clip, so the card's transform can't break it */
  isolation: isolate;
  /* Rounded top like the card itself, set on the photo box too rather than
     left to the card's clipping alone */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--mint-pale);
}
/* A faint edge along the photo's rounded top: a pale sky (the Marietta
   Square photo) otherwise melts into the white page, and its rounded
   corners read as square */
.card-thumb--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(31, 47, 71, 0.12);
  border-bottom: 0;
  border-radius: inherit;
  pointer-events: none;
}
.card-thumb--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  /* The photo clips itself to the card's rounded top. Safari can paint a
     child past a parent's rounded overflow clip while the card's hover lift
     (transform) runs, which left the corners looking square; a clip-path on
     the image holds in every browser */
  clip-path: inset(0 round var(--radius-lg) var(--radius-lg) 0 0);
}
/* Nearby towns without their own page: small text-only chips */
.areas-towns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.areas-town {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #dfe7e3;
  border-radius: 999px;
  background: #eef4f1;
}
.areas-town-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.areas-town-county {
  font-size: 13px;
  color: var(--ink-soft);
}
.areas-towns-note {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}
/* Three pillars without perk rows: one row of three, a little narrower than
   the homepage's four */
.why-pillars-cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin-inline: auto;
}
/* Pillars without perk rows (Areas Served hub and city pages): two subgrid rows */
.why-pillars-cards--no-perk .why-pillar { grid-row: span 2; padding-bottom: 24px; }
.why-pillars-cards--no-perk .why-pillar-description { margin-bottom: 0; }
/* Getting here: one white card with the address and the directions button */
.areas-directions-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 28px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 6px 20px rgba(31, 47, 71, 0.07);
}
.areas-directions-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e3efe9;
  color: #36574f;
}
.areas-directions-text h2 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: var(--navy);
}
.areas-directions-text .post-content { padding-bottom: 0; }
.areas-directions-text .post-content p { margin: 0 0 8px; line-height: 1.65; }
.areas-directions-text .post-content p:last-child { margin-bottom: 0; }
.areas-directions-btn { white-space: nowrap; }
/* Four questions read better two by two than three and one */
.question-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .areas-directions-card { grid-template-columns: auto minmax(0, 1fr); }
  .areas-directions-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 767px) {
  .areas-section-heading { font-size: 26px; margin-bottom: 24px; }
  /* One pillar per row on phones, at a readable size */
  .why-pillars-cards--three { grid-template-columns: minmax(0, 1fr); }
  .why-pillars-cards--three .why-pillar { padding: 18px; }
  .why-pillars-cards--three .why-pillar-title { font-size: 18px; }
  .why-pillars-cards--three .why-pillar-description { font-size: 14.5px; }
  .areas-towns { gap: 8px; margin-top: 28px; }
  /* Town over county, so two or three chips share a row instead of one each */
  .areas-town { flex-direction: column; align-items: center; gap: 0; padding: 8px 16px; border-radius: 14px; }
  .areas-town-county { font-size: 12px; }
}
@media (max-width: 719px) {
  .question-cards--two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .areas-head-actions .final-cta-btn { width: 100%; }
  .areas-directions-card { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 16px; }
  .areas-directions-text h2 { font-size: 24px; }
  .areas-directions-btn { justify-self: stretch; justify-content: center; }
}

/* City pages (layouts/location.njk with Sections): the line under the
   program cards, and a plain text link such as "See all conditions" */
.content-section-body .city-section-note {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.65;
}
.content-section-body .city-section-link { margin: 20px 0 0; }
.content-section-body .city-section-link a {
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.content-section-body .city-section-link a:hover { text-decoration-color: var(--teal); }
