/* =============================================================
   My Chem Mentor — shared site styles
   Used by all sub-pages (about, how-it-works, services,
   testimonials, pricing, contact). Mirrors the design language
   established in Home Page v2.html.
   ============================================================ */

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

:root {
  /* Scholar's Spectrum (Gate 1: doctrine B, gold CTA system — docs/retheme-decision.md) */
  --navy:       #0E2340;
  --navy-2:     #16314F;
  --navy-light: #163556;
  --navy-deep:  #0A1628;
  --ink:        #15181E;
  --ink-2:      #3A4049;
  --gold:       #7E5618;   /* THE text-weight accent on white */
  --gold-lt:    #E0B45C;   /* gold on navy; CTA duty on navy panels */
  --gold-lt-hover: #EAC77E;
  --blue:       #1666B5;   /* signal blue: link duty only */
  --blue-hover: #0E4F8E;
  --copper:     #A05A2A;
  --teal:       #5DAFA4;   /* never text on navy — use --sky there */
  --teal-deep:  #3D8278;   /* text-safe teal on white */
  --plum:       #7C3A66;
  --forest:     #3D7A4A;
  --burgundy:   #922A3F;
  --indigo:     #3F4D8A;
  --slate-blue: #4A6FA5;
  --slate-deep: #2C4A7A;
  --sky:        #7FA8C9;   /* THE text-safe-on-navy chromatic */
  --ground:     #F4F7FA;
  --navy-tint:  #E7ECF3;
  --rule:       #CBD5E1;
  --line:       #DADDE2;
  --line-2:     #ECEEF1;
  --muted:      #5C636E;

  /* legacy aliases (v9 selectors keep working) */
  --blue-soft:  var(--sky);
  --silver:     #8A9BB0;
  --text:       var(--ink);
  --text-muted: var(--ink-2);
  --bg:         #FFFFFF;
  --bg-alt:     var(--ground);
  --bg-alt-2:   var(--navy-tint);
  --border:     var(--line);
  --green:      var(--forest);
  --green-light:#DCFCE7;
  --green-dark: #166534;

  --hex-stroke: var(--blue);
  --font-display: 'Raleway', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body:    'Merriweather', Georgia, 'Times New Roman', serif;

  --radius:     8px;
  --radius-lg:  14px;
  --nav-h:      72px;   /* fixed chrome height; first-section compensation keys off this */
  --shadow:     0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 10px 30px rgba(14,35,64,0.12);

  /* Sitewide wide-layout switch (Eric 2026-07-21): content rides closer to
     the viewport edges. REVERT: delete the two --layout-* lines; every
     consumer falls back to the original column (1100/1140px) and 2rem
     gutters. (The home video hero keeps its own approved wide values.) */
  --layout-max-w: 1560px;
  --layout-gutter: clamp(1.5rem, 4.5vw, 4rem);
  --max-w:      var(--layout-max-w, 1100px);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 1rem;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 0.65rem 1.35rem; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 700; white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer; font-family: var(--font-display);
}
.btn-primary:hover { background: var(--copper); }

.btn-outline {
  display: inline-block; border: 2px solid var(--navy); color: var(--navy);
  padding: 0.65rem 1.35rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 700; transition: all 0.2s;
  background: transparent; cursor: pointer; font-family: var(--font-display);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* On-navy CTA: gold system (Gate 1c) */
.btn-hero {
  display: inline-block; background: var(--gold-lt); color: var(--navy);
  padding: 0.9rem 1.85rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 800; font-family: var(--font-display);
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
}
.btn-hero:hover { background: var(--gold-lt-hover); transform: translateY(-1px); }

.btn-ghost-light {
  display: inline-block; background: transparent; color: #fff;
  padding: 0.85rem 1.6rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* =============================================================
   SITE CHROME v2 — fixed header (transplanted from the React
   build's components/chrome/Nav.tsx + compiled out/ CSS, recolored
   to Scholar tokens: brass-bright -> --gold-lt, ink -> navy family).
   Transparent over dark heroes; frosts to ink-tinted glass after
   40px scroll (JS adds .is-frosted). Light-top pages add the
   .always-frosted class on <header> so the frost is on from load.
   ============================================================ */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: #fff;
}
/* Frost layer on its own element: only opacity animates, so the bar
   materializes into glass rather than snapping color (React §4 rule). */
.site-header-frost {
  position: absolute; inset: 0; pointer-events: none;
  background: rgba(10,22,40,0.86);            /* --navy-deep ink tint */
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0,0,0.2,1);
}
.site-header.is-frosted   .site-header-frost,
.site-header.always-frosted .site-header-frost { opacity: 1; }
/* Hairline under the transparent bar (Eric 2026-07-27): gives the nav a
   bottom edge over hero imagery; fades out once the frost layer (which
   carries its own border) takes over. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: rgba(203,213,225,0.32);
  opacity: 1; transition: opacity 0.28s cubic-bezier(0,0,0.2,1);
  pointer-events: none;
}
.site-header.is-frosted::after,
.site-header.always-frosted::after { opacity: 0; }

.nav-bar {
  position: relative;
  max-width: var(--max-w); margin: 0 auto;
  min-height: var(--nav-h);
  padding: 0.5rem var(--layout-gutter, 2rem);
  display: flex; align-items: center;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 38px; width: auto; }

.nav-primary { margin: 0 auto; }
.nav-menu {
  display: flex; align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.35rem);
  list-style: none; margin: 0; padding: 0;
}
/* Light nav link with the sliding gold underline (scale-x, origin left) */
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 0.35rem;
  white-space: nowrap; padding: 0.4rem 0.15rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  transition: color 0.12s cubic-bezier(0,0,0.2,1);
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: ""; position: absolute; left: 0.15rem; right: 0.15rem; bottom: 0.1rem;
  height: 1.5px; background: var(--gold-lt);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.12s cubic-bezier(0,0,0.2,1);
  pointer-events: none;
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-expanded="true"]::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link .caret { width: 14px; height: 14px; transition: transform 0.2s cubic-bezier(0,0,0.2,1); }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* ---------- Mega-menu: "Who We Help" (option list + stage) ----------
   Panel markup is JS-INJECTED from assets/site.js (single template);
   static pages carry only the trigger button. Left: vertical audience
   rows (icon + label; hover/focus selects, click navigates). Right: a
   poster-backed stage with a navy scrim that crossfades between
   audiences and auto-cycles while the panel is open but idle. */
.nav-mega { position: relative; }
.nav-mega-panel {
  position: absolute; left: -0.5rem; top: calc(100% + 10px);
  width: 720px; max-width: calc(100vw - 3rem);
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 0.875rem;
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4,0,1,1), transform 0.2s cubic-bezier(0.4,0,1,1), visibility 0s linear 0.2s;
}
/* invisible hover bridge between trigger and panel */
.nav-mega-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-mega-panel.open {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  transition: opacity 0.2s cubic-bezier(0,0,0.2,1), transform 0.2s cubic-bezier(0,0,0.2,1), visibility 0s;
}
.mega-main { display: grid; grid-template-columns: 218px 1fr; gap: 0.875rem; }
.mega-list { display: flex; flex-direction: column; gap: 0.25rem; }
.mega-eyebrow {
  padding: 0.25rem 0.7rem 0.4rem; margin: 0;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.mega-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.7rem; border-radius: 10px;
  transition: background 0.12s cubic-bezier(0,0,0.2,1);
}
.mega-row:hover, .mega-row:focus-visible, .mega-row.is-active,
.mega-row[aria-current="page"] { background: var(--ground); }
.mega-row-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--ground); color: var(--gold);
  transition: transform 0.12s cubic-bezier(0,0,0.2,1), border-color 0.12s cubic-bezier(0,0,0.2,1);
}
.mega-row:hover .mega-row-icon { transform: translateY(-1px); }
.mega-row.is-active .mega-row-icon { border-color: var(--gold-lt); background: #fff; }
.mega-row-icon svg { width: 21px; height: 21px; }
.mega-row-title {
  display: block; font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 600; line-height: 1.3; color: var(--navy);
}
/* Stage: licensed poster still + navy scrim + teaser copy. Decorative for
   AT (aria-hidden; the rows carry the same links/labels), clickable via JS. */
.mega-stage {
  position: relative; overflow: hidden; border-radius: 12px;
  min-height: 246px; background: var(--navy-deep); cursor: pointer;
}
.mega-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.45s cubic-bezier(0,0,0.2,1);
}
.mega-slide.is-active { opacity: 1; }
.mega-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.mega-slide-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.38) 0%, rgba(10,22,40,0.62) 52%, rgba(10,22,40,0.9) 100%);
}
.mega-slide-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.2rem; color: #fff;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.mega-slide-title {
  margin: 0; font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 700; line-height: 1.25; color: #fff;
}
.mega-slide-desc {
  margin: 0; font-size: 0.84rem; line-height: 1.55; color: rgba(255,255,255,0.86);
}
.mega-slide-cta {
  margin-top: 0.35rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-size: 0.84rem; font-weight: 600;
  color: var(--gold-lt);
}
.mega-slide-cta svg { width: 14px; height: 14px; transition: transform 0.12s cubic-bezier(0,0,0.2,1); }
.mega-stage:hover .mega-slide.is-active .mega-slide-cta svg { transform: translateX(2px); }
/* Diagnostic strip: compact full-width footer inside the panel */
.mega-diagnostic {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--ground);
  transition: background 0.12s cubic-bezier(0,0,0.2,1);
}
.mega-diagnostic:hover, .mega-diagnostic:focus-visible { background: var(--navy-tint); }
.mega-diagnostic-icon { display: grid; place-items: center; flex: 0 0 auto; }
.mega-diagnostic-icon svg { width: 24px; height: 24px; color: var(--gold); }
.mega-diagnostic-text {
  font-family: var(--font-display); font-size: 0.88rem; color: var(--ink-2);
}
.mega-diagnostic-text strong { font-weight: 700; color: var(--navy); }
.mega-diagnostic-arrow {
  margin-left: auto; flex: 0 0 auto; width: 16px; height: 16px; color: var(--navy);
  transition: transform 0.12s cubic-bezier(0,0,0.2,1);
}
.mega-diagnostic:hover .mega-diagnostic-arrow { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .mega-slide { transition: none; }
  /* transition: none (not a shorter duration), on the panel, its .open
     state, AND its whole subtree: the global RM reset below forces
     transition-duration 0.01ms !important on * — and since the initial
     transition-property is `all`, that turns the open/close visibility
     flip into a real 0.01ms transition on every panel descendant, which
     computes `hidden` at the rAF instant open() tries to focus the first
     row (silently breaking keyboard entry under reduced motion).
     transition-property: none sidesteps the !important duration. */
  .nav-mega-panel, .nav-mega-panel.open, .nav-mega-panel * { transition: none; }
  .nav-mega-panel { transform: none; }
}

/* ---------- Header actions: Subscribe text link + gold CTA pill ---------- */
.nav-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: 1.5rem; flex-shrink: 0; }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--gold-lt); color: var(--navy);
  padding: 0.6rem 1.35rem; border-radius: 100px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  white-space: nowrap; letter-spacing: 0.01em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-lt-hover); }
span.nav-cta { cursor: default; opacity: 0.55; }   /* contact page: CTA is a non-link span */

/* ---------- Burger (animated bar -> X, transform-only; middle fades) ---------- */
.nav-burger {
  display: none; position: relative;
  width: 44px; height: 44px; margin-left: auto; flex-shrink: 0;
  background: none; border: 0; cursor: pointer;
}
.nav-burger span {
  position: absolute; left: 10px; right: 10px; top: 50%; margin-top: -1px;
  height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.2s cubic-bezier(0,0,0.2,1), opacity 0.12s cubic-bezier(0,0,0.2,1);
}
.nav-burger span:nth-child(1) { transform: translateY(-7px); }
.nav-burger span:nth-child(3) { transform: translateY(7px); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- Mobile drawer: right-side ink panel + blurred backdrop ---------- */
.nav-drawer {
  position: fixed; inset: 0; z-index: 110;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear 0.28s;
}
.nav-drawer.open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.nav-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.2s cubic-bezier(0,0,0.2,1);
}
.nav-drawer.open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  display: flex; flex-direction: column; overflow-y: auto;
  background: var(--navy-deep); color: rgba(255,255,255,0.92);
  padding: 1.25rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0,0,0.2,1);
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.drawer-brand img { height: 26px; width: auto; }
.drawer-close {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.drawer-close svg { width: 20px; height: 20px; }
.drawer-group-label {
  margin: 1rem 0 0.15rem;
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-lt);
}
.drawer-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-display); font-size: 0.95rem; color: rgba(255,255,255,0.92);
  transition: color 0.12s;
}
.drawer-link:hover { color: #fff; }
.drawer-link[aria-current="page"] { color: #fff; font-weight: 700; }
.drawer-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-lt); }
.drawer-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.drawer-subscribe {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 100px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: #fff;
  transition: border-color 0.12s, background 0.12s;
}
.drawer-subscribe:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); }
.drawer-cta {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-lt); color: var(--navy);
  border-radius: 100px; padding: 0.85rem 1.5rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  transition: background 0.2s;
}
.drawer-cta:hover { background: var(--gold-lt-hover); }
span.drawer-cta { cursor: default; opacity: 0.55; }

/* Chrome breakpoint: the full bar stops fitting below 1024px (React lg) */
@media (max-width: 1023.98px) {
  .nav-primary, .nav-actions { display: none; }
  .nav-burger { display: block; }
}
@media (min-width: 1024px) {
  .nav-drawer { display: none; }
}

/* Fixed nav overlays in-page anchor targets; clear it on scroll */
main [id], .footer-closer[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; }
section { padding: 5rem var(--layout-gutter, 2rem); }
.section-label {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700; color: var(--gold);
  margin-bottom: 0.75rem; display: inline-block;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--navy);
  margin-bottom: 1rem; line-height: 1.25;
  text-wrap: balance;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 680px; margin-bottom: 2.5rem;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  background: var(--navy); color: #fff;
  padding: 5.5rem var(--layout-gutter, 2rem);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 30%, rgba(22,102,181,0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 82% 70%, rgba(74,155,232,0.22), transparent 60%);
  pointer-events: none;
}
.page-hero-bg {
  position: absolute; inset: 0; opacity: 0.35;
  pointer-events: none;
}
.page-hero-bg svg { width: 100%; height: 100%; display: block; }
.cta-section .page-hero-bg { opacity: 0.30; }
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
}
.page-hero-inner.center { text-align: center; max-width: 1200px; }
.page-hero-label {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--gold-lt);
  margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.6rem;
}
.page-hero-label::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-lt);
  box-shadow: 0 0 0 0 rgba(224,180,92,0.7);
  animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,180,92,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(224,180,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,180,92,0); }
}
.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 1.25rem;
  text-wrap: balance;
}
.page-hero p.lede {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  max-width: 580px; margin-bottom: 2rem;
}
.page-hero-inner.center p.lede { margin-left: auto; margin-right: auto; }

.page-hero .hero-cta-row {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.page-hero-inner.center .hero-cta-row { justify-content: center; }
.page-hero .secondary-link {
  color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s;
}
.page-hero .secondary-link:hover { color: #fff; }

/* split hero variant — copy left, image right */
.page-hero-split {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center;
}
.page-hero-img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- CTA section (dark) ---------- */
.cta-section {
  position: relative;
  background: var(--navy); color: #fff;
  text-align: center; padding: 5.5rem var(--layout-gutter, 2rem);
  overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(22,102,181,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(22,102,181,0.12), transparent 40%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900; color: #fff; margin-bottom: 1rem; line-height: 1.25;
  text-wrap: balance;
}
.cta-section p {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  margin-bottom: 2.25rem; max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-btn-row {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center;
}

/* =============================================================
   SITE CHROME v2 — footer (transplanted from React Footer.tsx).
   Two parts: (a) light closer band with newsletter capture, which
   owns the #subscribe anchor (omitted on pages that host their own
   #subscribe band: index, for-high-schools, for-universities);
   (b) ink footer with 4 link columns + copyright row.
   ============================================================ */
.footer-closer {
  background: var(--ground); text-align: center;
  padding: 4.5rem var(--layout-gutter, 2rem);
}
.footer-closer-logo { height: 36px; width: auto; margin: 0 auto 1.75rem; }
.footer-closer h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.2;
  color: var(--navy); max-width: 42rem; margin: 0 auto; text-wrap: balance;
}
.footer-closer .closer-sub {
  max-width: 36rem; margin: 0.85rem auto 0;
  font-size: 1rem; color: var(--muted);
}
.newsletter-form {
  max-width: 28rem; margin: 1.6rem auto 0;
  display: flex; flex-direction: column; gap: 0.6rem; text-align: left;
}
.newsletter-form .hp-field { display: none; }   /* honeypot: display:none, never off-screen */
.newsletter-form label { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.newsletter-form input[type="email"] {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font-body);
  background: #fff; color: var(--text);
}
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.newsletter-form .form-error { display: none; margin: 0; font-size: 0.85rem; color: #B3261E; }
.newsletter-form.has-error .form-error { display: block; }
.newsletter-form .btn-primary { width: 100%; }
.newsletter-success {
  max-width: 28rem; margin: 1.6rem auto 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.newsletter-success[hidden] { display: none; }
.newsletter-success .head { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.newsletter-success .sub { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--muted); }

footer.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.7);
  padding: 0 var(--layout-gutter, 2rem);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding: 3.5rem 0 3rem;
}
.footer-brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer-brand .blurb { margin-top: 0.75rem; max-width: 30ch; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.7); }
.footer-brand .virtual-note { margin-top: 1rem; font-family: var(--font-display); font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.footer-brand .footer-email { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-brand .footer-email:hover { color: #fff; }
.footer-col-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-lt);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 0.45rem; }
.footer-col a { font-family: var(--font-display); font-size: 0.875rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.55);
}
.footer-bottom .footer-subscribe { font-family: var(--font-display); font-weight: 600; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.footer-bottom .footer-subscribe:hover { color: #fff; }

/* ---------- Reveal (scroll into view) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive base ---------- */
@media (max-width: 900px) {
  .page-hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero-img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* Tap targets and inline CTAs */
  .btn-primary, .btn-hero, .btn-outline, .btn-ghost {
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  .nav-bar { padding: 0.5rem 1.25rem; }
  .page-hero { padding: 3.5rem 1.25rem 2.75rem; }
  .cta-section { padding: 4rem 1.25rem; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .page-hero-inner.center .hero-cta-row { align-items: center; }
  .footer-closer { padding: 3.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Alternative color palettes
   ----------------------------------------------------------------
   Each palette redefines three local custom properties:
     --accent       : the main accent (mid-saturation hue)
     --accent-deep  : a darker variant for emphasis text / hover
     --accent-soft  : a tinted background (works on white or bg-alt)

   These are scoped to whichever element receives the class, so
   components can opt in card-by-card without affecting siblings.
   PALETTES.md documents intended use.
   ============================================================ */
.palette-teal       { --accent: #5DAFA4; --accent-deep: #3D8278; --accent-soft: #E5F1EF; }
.palette-plum       { --accent: #7C3A66; --accent-deep: #5A2548; --accent-soft: #F0E5EC; }
.palette-forest     { --accent: #3D7A4A; --accent-deep: #2A5734; --accent-soft: #E0EBE3; }
.palette-blue       { --accent: #1666B5; --accent-deep: #0E4F8E; --accent-soft: #E8F0F9; }
.palette-burgundy   { --accent: #922A3F; --accent-deep: #6D1B2D; --accent-soft: #F2D9DD; }
.palette-indigo     { --accent: #3F4D8A; --accent-deep: #28335C; --accent-soft: #E3E5F0; }
.palette-copper     { --accent: #A05A2A; --accent-deep: #6F3D17; --accent-soft: #F1DECC; }
.palette-slate-blue { --accent: #4A6FA5; --accent-deep: #2C4A7A; --accent-soft: #E1E8F2; }

/* =============================================================
   COMMON QUESTIONS (FAQ) — card-style accordion
   Mirrors the accordion established on services.html so the
   answer-first FAQ blocks render identically across sub-pages.
   ============================================================ */
/* <picture> wrappers must not affect layout: let the inner <img> keep
   participating exactly as a bare <img> did (preserves existing img CSS). */
picture { display: contents; }

.faq-section { background: var(--bg); }
.faq-list {
  margin-top: 1.75rem;
  display: flex; flex-direction: column;
  gap: 0.65rem;
  max-width: 880px;
}
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: rgba(22,102,181,0.32); }
.faq-item[open] {
  border-color: rgba(22,102,181,0.5);
  box-shadow: 0 8px 22px rgba(22,102,181,0.08);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1.4;
  user-select: none;
  transition: background 0.15s;
}
.faq-item summary:hover { background: rgba(22,102,181,0.04); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(22,102,181,0.1);
  color: var(--blue);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.25s;
}
.faq-item:hover summary::after { background: rgba(22,102,181,0.2); }
.faq-item[open] summary::after {
  content: "\2013";
  background: var(--blue);
  color: #fff;
  transform: rotate(180deg);
}
.faq-item .faq-body {
  padding: 0.35rem 1.4rem 1.3rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
@media (max-width: 600px) {
  .faq-list { gap: 0.55rem; margin-top: 1.25rem; }
  .faq-item summary { padding: 0.9rem 1.05rem; font-size: 0.94rem; gap: 0.7rem; }
  .faq-item summary::after { width: 26px; height: 26px; font-size: 1rem; }
  .faq-item .faq-body { padding: 0.3rem 1.05rem 1.05rem 1.05rem; font-size: 0.92rem; }
}

/* =============================================================
   NEWSLETTER PAUSED (Eric, 2026-07-27)
   No newsletter strategy yet: nothing is delivered on signup, so
   every lead-magnet surface is hidden sitewide. DELETE THIS BLOCK
   to restore all of them at once (markup is untouched everywhere;
   kit.js stays loaded and inert).
   Surfaces: header + drawer + footer Subscribe links, footer
   newsletter closer band (15 pages), index .news-band, HS/Uni
   .nl-band. While hidden, newsletter_signup GTM events cannot fire.
   ============================================================= */
.nav-link[href="#subscribe"],
.drawer-subscribe,
.footer-subscribe,
.footer-closer,
.news-band,
.nl-band { display: none !important; }
