/* fonts.css */
/* Site fonts, served from /fonts/ instead of Google Fonts (one less blocking request, no third-party call).
   Instrument Sans, Instrument Serif and JetBrains Mono are open source (SIL Open Font License 1.1).
   Latin and Latin Extended only, which covers English and Spanish. To change a font: replace the
   file under a NEW name (public/_headers caches /fonts/ for a year) and update this file. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* base.css */
/* Tokens, reset, type, buttons and the mascot. CareTech tokens: caretech-academy/marketing/design-system */
:root {
  --bg: #fafaf7;
  --fg: #0a1120;
  --surface: #f4f3ee;
  --surface-alt: #efede6;
  --navy: #000f2b;
  --navy-deep: #001a3e;
  --orange: #ff8100;
  --orange-ink: #b45a00;
  --sky: #229fdd;
  --royal: #175ac1;
  /* Program colors (Sam, 2026-10-28) */
  --tone-red: #e23d3d;
  --tone-purple: #7c4dcc;
  --tone-green: #1f9d6b;
  --tone-blue: #175ac1;
  /* American Heart Association red, used on the CPR & Heartsaver pages */
  --aha-red: #c10e21;
  --aha-red-deep: #9a0b1a;
  --white: #ffffff;
  --muted: #6b7280;
  --muted-strong: #2a3448;
  --muted-soft: #9aa3b2;
  --hairline: rgba(10, 17, 32, 0.1);

  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius-card: 2px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(0, 15, 43, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 15, 43, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 15, 43, 0.14);

  --gutter: clamp(20px, 4.5vw, 48px);
  --max: 1200px;
  --section-y: clamp(56px, 10vw, 128px);
  --nav-h: 76px;

  /* WhatsApp chat colors (window, buttons) */
  --wa-green: #25d366;
  --wa-green-ink: #128c4a;
  --wa-dark: #075e54;
  --wa-sand: #efe7dd;
  --wa-mine: #d9fdd3;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
/* Photos shimmer until they arrive; images.js drops data-ph on load. Gated on html.js so a visitor
   without JavaScript never sees a stuck placeholder. */
.js img[data-ph] {
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%) var(--surface-alt);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; } /* never split a phone number across lines */
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
/* Sections that receive focus from in-page links (#book etc.) don't need a focus ring. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible, section:target { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--navy); color: var(--white); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.025em; }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.15; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
em { font-style: italic; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lede { color: var(--muted-strong); font-size: clamp(17px, 1.6vw, 19px); max-width: 600px; margin: 18px 0 0; }
.link { color: var(--royal); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Text links get a taller tap area without changing the line they sit on */
.link, .chero__meta a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.center { text-align: center; }
.stars { color: #f5a400; letter-spacing: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease-std), color 0.15s var(--ease-std), transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 15, 43, 0.12); }
.btn:active { transform: scale(0.97); box-shadow: none; }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-deep); }
.btn--soft { background: var(--surface-alt); color: var(--fg); }
.btn--soft:hover { background: #e4e1d7; }
.btn--accent { background: var(--orange); color: var(--white); }
.btn--accent:hover { background: #ec7600; }
.btn--light { background: var(--white); color: var(--navy); flex: none; }
.btn--light:hover { background: rgba(255, 255, 255, 0.88); }
/* Book CPR & BLS: white pill with AHA-red type */
.btn--cpr { background: var(--white); color: var(--aha-red); box-shadow: inset 0 0 0 1.5px rgba(193, 14, 33, 0.35), 0 4px 14px rgba(193, 14, 33, 0.12); }
.btn--cpr:hover { background: #fbeced; box-shadow: inset 0 0 0 1.5px rgba(193, 14, 33, 0.55), 0 8px 20px rgba(193, 14, 33, 0.18); }
.btn--whatsapp { background: var(--wa-green); color: var(--white); }
.btn--whatsapp:hover { background: #1fbd5a; }
.btn--ce { background: #15724d; color: var(--white); }
.btn--ce:hover { background: #0f5a3c; }
/* Career "Request info": the page's program color (falls back to orange) */
.btn--program { background: var(--t, var(--orange)); color: var(--white); padding-left: 18px; }
.btn--program:hover { background: var(--t-ink, #ec7600); }
.btn--program:hover .mascot__svg { animation: hop 0.6s var(--ease-soft); }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.ctas--left { justify-content: flex-start; }
.chat-glyph { width: 20px; height: 20px; flex: none; }

/* ---------- Mascots: Plus (cross) and the program shapes ---------- */
.mascot { display: inline-block; vertical-align: middle; flex: none; --body: var(--navy); --eye: var(--white); }
.mascot[data-tone="orange"] { --body: var(--orange); }
.mascot[data-tone="sky"] { --body: var(--sky); }
.mascot[data-tone="royal"] { --body: var(--royal); }
.mascot[data-tone="red"] { --body: var(--tone-red); }
.mascot[data-tone="purple"] { --body: var(--tone-purple); }
.mascot[data-tone="green"] { --body: var(--tone-green); }
.mascot[data-tone="blue"] { --body: var(--tone-blue); }
.mascot[data-tone="wa"] { --body: var(--wa-green); }
.mascot[data-tone="white"] { --body: var(--white); --eye: var(--t, var(--orange)); }
.mascot__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot__body { fill: var(--body); transition: fill 0.6s ease; }
.mascot__eye { fill: var(--eye); transition: fill 0.6s ease; transform-box: fill-box; transform-origin: center; }
.mascot__smile { fill: none; stroke: var(--eye); stroke-width: 3; stroke-linecap: round; transition: stroke 0.6s ease; }
[data-blink] .mascot__eye { animation: blink 5s var(--blink-delay, 0s) infinite; }
.mascot--inline { width: 0.8em; height: 0.8em; margin: 0 0.04em; transform: translateY(-0.06em); }
.mascot--xs { width: 20px; height: 20px; }
.mascot--check { width: 18px; height: 18px; margin-top: 3px; }
.mascot--btn { width: 20px; height: 20px; }
.mascot--tab { width: 22px; height: 22px; }
.mascot--avatar { width: 30px; height: 30px; }
.mascot--sm { width: 40px; height: 40px; }
.mascot--md { width: 72px; height: 72px; }

/* ---------- Shared keyframes ---------- */
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes entry-enter { from { opacity: 0; transform: translateY(10px); } }
@keyframes hop { 40% { transform: translateY(-6px) rotate(-8deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* layout.css */
/* Page frame: sections, headings, nav + mobile menu, finale, footer, action bar, motion */
main > .section, main > .hero, main > .phero { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); }
main > .section--tight { padding-top: 0; padding-bottom: 0; }
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head--center { text-align: center; }
.head--center .lede { margin-left: auto; margin-right: auto; }
.head--left { margin-bottom: 24px; }

/* ---------- Nav (ported from the live site) ----------
   Top of page: full-width and transparent, dark ink on the cream hero.
   Scrolled / menu open: a compact dark glass rectangle with rounded corners, white ink. */
.nav { position: fixed; z-index: 60; top: 0; left: 0; right: 0; transition: top 0.5s var(--ease-soft), left 0.5s var(--ease-soft), right 0.5s var(--ease-soft); }
.nav__glass {
  margin: 0 auto; max-width: 1280px; overflow: hidden; border: 1px solid transparent; border-radius: 0;
  transition: max-width 0.5s var(--ease-soft), background-color 0.5s var(--ease-soft), border-color 0.5s, border-radius 0.5s var(--ease-soft), box-shadow 0.5s;
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; padding: 0 32px; transition: height 0.5s var(--ease-soft), padding 0.5s var(--ease-soft); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: var(--fg); transition: color 0.5s; }
.nav__brand img { width: 32px; height: auto; transition: width 0.5s var(--ease-soft); }
.nav__brand span { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; transition: font-size 0.5s var(--ease-soft); }
.nav__links { display: flex; gap: 36px; transition: gap 0.5s var(--ease-soft); }
.nav__links a { position: relative; font-size: 14px; letter-spacing: -0.005em; white-space: nowrap; color: rgba(10, 17, 32, 0.68); text-decoration: none; transition: color 0.3s, font-size 0.5s var(--ease-soft); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: currentColor; transition: width 0.3s var(--ease-soft); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__login { font-size: 14px; color: rgba(10, 17, 32, 0.72); text-decoration: none; transition: color 0.3s, font-size 0.5s; }
.nav__login:hover { color: var(--fg); }
.nav__book { display: inline-flex; align-items: center; height: 44px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--navy); color: var(--white); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: height 0.5s var(--ease-soft), padding 0.5s var(--ease-soft), font-size 0.5s, background-color 0.3s, color 0.3s; }
.nav__book:hover { background: var(--navy-deep); }
.nav__toggle { display: none; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--hairline); background: transparent; cursor: pointer; transition: width 0.5s, height 0.5s, border-color 0.5s; }
.nav__toggle i { display: block; width: 20px; height: 2px; margin: 2.5px auto; border-radius: 2px; background: var(--fg); transition: transform 0.35s var(--ease-soft), opacity 0.2s, background-color 0.5s; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

/* Compact dark glass */
.nav.is-compact { top: 16px; left: 16px; right: 16px; }
.nav.is-compact .nav__glass {
  max-width: 820px; border-radius: 16px; border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 24, 32, 0.62); -webkit-backdrop-filter: blur(40px) saturate(1.5); backdrop-filter: blur(40px) saturate(1.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
.nav.is-compact .nav__row { height: 48px; padding: 0 20px; }
.nav.is-compact .nav__brand { color: var(--white); }
.nav.is-compact .nav__brand img { width: 24px; }
.nav.is-compact .nav__brand span { font-size: 15px; }
.nav.is-compact .nav__links { gap: 22px; }
.nav.is-compact .nav__links a { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.nav.is-compact .nav__links a:hover, .nav.is-compact .nav__links a[aria-current="page"] { color: var(--white); }
.nav.is-compact .nav__login { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.nav.is-compact .nav__login:hover { color: var(--white); }
.nav.is-compact .nav__book { height: 32px; padding: 0 16px; font-size: 12px; background: var(--white); color: var(--navy); }
.nav.is-compact .nav__book:hover { background: rgba(255, 255, 255, 0.9); }
.nav.is-compact .nav__toggle { width: 36px; height: 36px; border-color: rgba(255, 255, 255, 0.1); }
.nav.is-compact .nav__toggle i { background: var(--white); }

/* Mobile menu grows out of the same glass piece */
.nav__menu { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s var(--ease-soft), opacity 0.4s; }
.nav.is-open .nav__menu { grid-template-rows: 1fr; opacity: 1; }
.nav__menu-inner { overflow: hidden; }
.nav__menu-links { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.nav__menu-links a { padding: 12px 16px; border-radius: 12px; font-family: var(--font-display); font-size: 24px; color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.nav__menu-links a:hover, .nav__menu-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.nav__menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 12px 0; }
.nav__menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; }
/* Book CPR as on the homepage (white, AHA-red type); WhatsApp green with the chat icon; bright blue Call */
.nav__menu-btn--cpr { grid-column: 1 / -1; background: var(--white); color: var(--aha-red); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.nav__menu-btn--wa { background: var(--wa-green); border: 1px solid transparent; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35); }
.nav__menu-btn--wa:hover { background: #1fbd5a; }
.nav__menu-btn--wa .chat-glyph { width: 18px; height: 18px; }
.nav__menu-btn--call { background: #0a84ff; box-shadow: 0 6px 18px rgba(10, 132, 255, 0.35); }
.nav__menu-btn--call:hover { background: #0071e3; }
.nav__menu-login { display: block; padding: 14px 28px 16px; font-size: 14px; color: rgba(255, 255, 255, 0.7); text-decoration: none; }

/* ---------- Finale (big mascot) ---------- */
.finale { position: relative; min-height: min(92vh, 860px); display: grid; place-items: start center; overflow: hidden; text-align: center; padding: clamp(96px, 13vw, 150px) 0 0; }
.finale__mascot { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transform: translateY(26%); }
.big-mascot__svg { width: min(130vw, 1100px); height: auto; overflow: visible; }
.big-mascot__body path { fill: none; stroke: var(--navy); stroke-opacity: 0.22; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.big-mascot__face rect, .big-mascot__face path { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.finale__copy { position: relative; max-width: 760px; padding: 0 var(--gutter); }
.finale__copy p { color: var(--muted-strong); margin: 18px auto 0; max-width: 560px; }
.finale__copy s { color: var(--muted-soft); }

/* ---------- Footer ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted-strong); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer__brand p { margin: 14px 0 0; max-width: 300px; }
.footer__contact a { text-decoration: none; }
.footer__title { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover, .footer__contact a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer__creds { list-style: none; padding: 24px 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 13px; }
.footer__creds li { display: inline-flex; align-items: center; gap: 8px; }
.footer__creds .mascot { width: 16px; height: 16px; }
.footer__logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 0; margin: 40px 0 0; }
.footer__logos img { height: 44px; width: auto; }
.footer__logos img[src$="cebroker.webp"] { height: 34px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; color: var(--muted); font-size: 13px; }
.footer__bottom p { margin: 0; }

/* ---------- Sticky mobile action bar ---------- */
.actionbar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50;
  display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px;
  border-radius: var(--radius-pill); border: 1px solid var(--hairline);
  background: rgba(250, 250, 247, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform 0.5s var(--ease-soft);
}
.actionbar.is-shown { transform: none; }
.actionbar__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.actionbar__text strong { font-size: 15px; }
.actionbar__text span { font-size: 13px; color: var(--muted-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar__text s { color: var(--muted-soft); }

/* ---------- Motion ---------- */
/* Sections fade up as they scroll into view. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Grids then cascade in one card at a time (70ms apart, capped at the sixth card). */
@property --stagger { syntax: "<integer>"; inherits: false; initial-value: 0; }
.reveal :nth-child(2) { --stagger: 1; }
.reveal :nth-child(3) { --stagger: 2; }
.reveal :nth-child(4) { --stagger: 3; }
.reveal :nth-child(5) { --stagger: 4; }
.reveal :nth-child(n + 6) { --stagger: 5; }
.reveal.is-visible :is(.tiles, .choices, .cards, .trust, .guides, .posts, .steps, .pillars, .checks, .payband__points) > * {
  animation: rise 0.7s var(--ease-soft) both;
  animation-delay: calc(var(--stagger) * 70ms);
}

/* Page hero photos settle in on load. */
.phero__photo img, .post--featured .post__photo img { animation: settle 1.2s var(--ease-soft) both; }

/* ---------- Breakpoints ---------- */
@media (min-width: 901px) { .nav__menu { display: none; } }
@media (max-width: 1100px) and (min-width: 901px) {
  .nav__links { gap: 22px; }
  .nav__login { display: none; }
}
@media (max-width: 900px) {
  .nav__links, .nav__login { display: none; }
  .nav__toggle { display: flex; }
  .nav__row { height: 68px; padding: 0 20px; }
  .nav.is-compact { top: 12px; left: 12px; right: 12px; }
  .nav.is-compact .nav__row { padding: 0 8px 0 16px; }
  .nav__book { height: 40px; padding: 0 20px; font-size: 13px; }
  .actionbar { display: flex; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__logos img { height: 36px; }
  .footer__col { gap: 4px; }
  .footer__col a { padding: 7px 0; } /* 36px tap targets */
  body:has(.actionbar) .footer { padding-bottom: 104px; }
}

/* sections.css */
/* Home sections: hero, WhatsApp split, program tiles, chooser, about, FAQ */

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 104px)) !important; }
.launch {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 6px 6px 14px;
  border-radius: var(--radius-pill); background: var(--surface); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background-color 0.15s var(--ease-std);
}
.launch > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.launch:hover { background: var(--surface-alt); }
.launch__arrow { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 129, 0, 0.12); color: var(--orange); transition: background-color 0.15s, transform 0.3s var(--ease-soft); }
.launch:hover .launch__arrow { background: rgba(255, 129, 0, 0.2); transform: rotate(45deg); }
.hero__title { font-size: clamp(46px, 9vw, 112px); line-height: 0.96; margin: 28px 0 22px; }
.hero__sub { max-width: 620px; margin: 0 auto; color: var(--muted-strong); font-size: clamp(17px, 1.6vw, 19px); }
.br-wide { display: none; }
.rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 6px 18px 6px 6px; border-radius: var(--radius-pill); background: var(--surface); font-size: 13px; color: var(--muted-strong); text-decoration: none; }
.rating__faces { display: flex; }
.rating__faces img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -8px; }
.rating__faces img:first-child { margin-left: 0; }
.rating__stars { color: #f5a400; letter-spacing: 1px; margin-right: 4px; }

/* ---------- Split (WhatsApp, about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split p { color: var(--muted-strong); }
.split .ctas { margin-top: 24px; }

/* ---------- WhatsApp window with a live compose box ---------- */
.wa { overflow: hidden; border-radius: var(--radius-lg); background: var(--wa-sand); box-shadow: var(--shadow-lg); border: 1px solid var(--hairline); }
.wa__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--wa-dark); color: var(--white); }
.wa__bar .mascot { --eye: var(--white); width: 34px; height: 34px; padding: 4px; border-radius: 50%; background: var(--white); }
.wa__who { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.wa__who strong { font-size: 15px; }
.wa__who span { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.wa__thread {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 18px; min-height: 300px; max-height: 360px;
  overflow-y: auto; scrollbar-width: none;
  background-color: var(--wa-sand);
  background-image: radial-gradient(rgba(7, 94, 84, 0.07) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.wa__thread::-webkit-scrollbar { display: none; }
.wa__day { align-self: center; margin-bottom: 6px; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.85); font-size: 11px; color: var(--muted-strong); box-shadow: var(--shadow-sm); }
.wa__msg { position: relative; align-self: flex-start; max-width: 82%; padding: 7px 10px 6px; border-radius: 10px 10px 10px 3px; background: var(--white); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); font-size: 15px; line-height: 1.4; }
.wa__msg p { margin: 0; display: inline; }
.wa__msg--me { align-self: flex-end; border-radius: 10px 10px 3px 10px; background: var(--wa-mine); }
.wa__msg--new { animation: entry-enter 0.4s var(--ease-soft) both; }
.wa__time { float: right; margin: 6px 0 -2px 10px; font-size: 11px; color: var(--muted); }
.wa__ticks { color: #34b7f1; letter-spacing: -2px; }
.reveal.is-visible .wa__msg { animation: entry-enter 0.5s var(--ease-soft) both; animation-delay: calc(var(--i) * 0.35s + 0.2s); }
.wa__compose { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f0f2f5; }
.wa__compose input { flex: 1; min-width: 0; padding: 11px 16px; border: 0; border-radius: var(--radius-pill); background: var(--white); font: inherit; font-size: 15px; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.2s; }
.wa__compose input:focus { box-shadow: inset 0 0 0 2px var(--wa-green); }
.wa__compose button { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--wa-green); color: var(--white); cursor: pointer; transition: transform 0.25s var(--ease-soft), background-color 0.2s; }
.wa__compose button:hover { background: #1fbd5a; transform: scale(1.06); }

/* ---------- Program tiles ----------
   Every photo has the same shape and sits at the bottom, so tiles in a row match heights. */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; padding: 40px 36px 0;
  border-radius: var(--radius-xl); background: var(--surface); color: var(--fg); text-decoration: none; overflow: hidden; text-align: center;
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile__head { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile__name { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 15px; }
.tile__tag { padding: 2px 10px; border-radius: var(--radius-pill); background: rgba(255, 129, 0, 0.14); color: var(--orange); font-size: 12px; font-weight: 600; }
.tile h3 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 12px; }
.tile__meta { margin: 10px auto 0; max-width: 360px; font-size: 15px; color: var(--muted-strong); }
.tile__link { margin-top: 14px; color: var(--royal); font-weight: 600; }
.tile h3 + .tile__meta + .tile__link { margin-bottom: 28px; }
.tile__photo { position: relative; flex: none; margin: auto -36px 0; aspect-ratio: 16 / 10; overflow: hidden; }
.tile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-soft); }
.tile:hover .tile__photo img { transform: scale(1.04); }
.tile:hover .mascot__svg { animation: hop 0.6s var(--ease-soft); }

/* CPR & BLS in American Heart Association red */
.tile--aha { background: linear-gradient(160deg, #c8102e 0%, #a50d26 60%, #8a0b20 100%); color: var(--white); }
.tile--aha .tile__meta { color: rgba(255, 255, 255, 0.82); }
.tile--aha .tile__tag { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.tile--aha .tile__link { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.tile--aha .mascot { --body: var(--white); --eye: #c8102e; }

/* Heartsaver: the CPR tile inverted, white with AHA-red type, so the two read as a pair */
.tile--aha-inv { background: var(--white); color: var(--aha-red); box-shadow: inset 0 0 0 1.5px rgba(193, 14, 33, 0.22); }
.tile--aha-inv:hover { box-shadow: inset 0 0 0 1.5px rgba(193, 14, 33, 0.4), var(--shadow-lg); }
.tile--aha-inv .tile__meta { color: var(--aha-red-deep); opacity: 0.85; }
.tile--aha-inv .tile__link { color: var(--aha-red); text-decoration: underline; text-underline-offset: 4px; }
.tile--aha-inv .tile__tag { background: rgba(193, 14, 33, 0.1); color: var(--aha-red); }
.tile--aha-inv .mascot { --body: var(--aha-red); --eye: var(--white); }

/* Continuing Education, branded like the CareTech Online page: mint ground, CE Broker green.
   The CE Broker logo takes the name row's place at the same height, so photos line up. */
.tile--ce { background: linear-gradient(180deg, #eef8f3 0%, #e3f4ec 100%); color: var(--fg); box-shadow: inset 0 4px 0 #2bb07f; }
.tile--ce .tile__tag { background: rgba(43, 176, 127, 0.16); color: #15724d; }
.tile--ce .tile__meta { color: var(--muted-strong); }
.tile--ce .tile__link { color: #15724d; }
.tile--ce h3 { color: #0b3a27; }
.tile__head--brand { height: 24px; overflow: visible; }
.tile__head--brand img { height: 34px; width: auto; margin-top: -5px; }

/* ---------- Chooser: one pill, a sliding thumb, colored mascots ---------- */
.seg { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 32px; padding: 6px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__thumb { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: var(--radius-pill); background: var(--navy); box-shadow: 0 8px 22px rgba(0, 15, 43, 0.28); transition: transform 0.55s cubic-bezier(0.34, 1.32, 0.64, 1), width 0.55s cubic-bezier(0.34, 1.32, 0.64, 1); }
.seg:not(.is-ready) .seg__thumb { transition: none; }
.seg__tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 14px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted-strong); font: 600 15px var(--font-sans); white-space: nowrap; cursor: pointer; transition: color 0.35s var(--ease-std); }
.seg__tab:hover { color: var(--fg); }
.seg__tab[aria-selected="true"] { color: var(--white); }
.seg__tab .mascot { width: 24px; height: 24px; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.seg__tab[aria-selected="true"] .mascot { transform: rotate(-10deg) scale(1.12); }
.seg__tab[aria-selected="true"] .mascot__svg { animation: hop 0.6s var(--ease-soft); }
.tab-stage { overflow: hidden; padding: 6px 4px 12px; margin: -6px -4px -12px; }
.tab-panel__lead { max-width: 640px; margin: 0 auto 28px; text-align: center; color: var(--muted-strong); }
.tab-panel.is-entering { animation: panel-in 0.55s var(--ease-soft) both; }
.tab-panel.from-prev { --from: -40px; }
.tab-panel.is-entering .choice { animation: entry-enter 0.5s var(--ease-soft) both; }
.tab-panel.is-entering .choice:nth-child(2) { animation-delay: 0.07s; }
.tab-panel.is-entering .choice:nth-child(3) { animation-delay: 0.14s; }
@keyframes panel-in { from { opacity: 0; transform: translateX(var(--from, 40px)); } }

/* Program cards (chooser, related) */
.choices { display: grid; gap: 14px; max-width: 1000px; margin: 0 auto; }
.choices--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choice { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); text-decoration: none; transition: box-shadow 0.4s var(--ease-soft), transform 0.4s var(--ease-soft); }
.choice:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.choice__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.choice__meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.choice__lang { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(255, 129, 0, 0.14); color: var(--orange-ink); font-family: var(--font-sans); font-size: 11px; font-weight: 600; vertical-align: middle; }
.choice__foot { display: flex; justify-content: space-between; align-items: center; margin: auto 0 0; padding-top: 16px; }
.choice__price { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.choice__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease-soft); }
.choice:hover .choice__go { background: var(--orange); color: var(--white); transform: translateX(3px); }

/* "Stay compliant" CE card in the chooser, branded like CareTech Online */
.cecard { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(180deg, #eef8f3 0%, #e3f4ec 100%); box-shadow: inset 0 4px 0 #2bb07f; }
.cecard__photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.cecard__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 4vw, 44px); }
.cecard__logo { width: 170px; height: auto; }
.cecard__provider { margin-top: -6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #15724d; }
.cecard__body strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; color: #0b3a27; }
.cecard__body strong em { color: #15724d; }
.cecard__points { display: grid; gap: 10px; margin-top: 4px; }
.cecard__points span { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted-strong); }
.cecard__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo { position: relative; margin: 0; border-radius: var(--radius-xl); overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; }
.about__photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-pill); background: rgba(250, 250, 247, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13px; font-weight: 500; }
.pillars { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 24px; }
.pillars li { display: flex; gap: 16px; align-items: flex-start; }
.pillars h3 { font-size: 24px; }
.pillars p { margin: 6px 0 0; color: var(--muted-strong); font-size: 16px; }

/* ---------- FAQ accordion: the plus turns CareTech orange when open (every page) ---------- */
.faq__list { max-width: 780px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--hairline); }
.faq__item:last-child { border-bottom: 1px solid var(--hairline); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-weight: 600; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); font-weight: 400; font-size: 20px; line-height: 1; transition: transform 0.3s var(--ease-soft), background-color 0.3s; }
.faq__item[open] summary::after, body[data-theme] .faq__item[open] summary::after { transform: rotate(45deg); background: var(--orange); color: var(--white); box-shadow: none; }
.faq__item p { margin: 0 0 22px; max-width: 680px; color: var(--muted-strong); animation: entry-enter 0.4s var(--ease-soft); }
.faq__list + .center { margin-top: 28px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) { .br-wide { display: inline; } }
@media (max-width: 900px) {
  .split, .about, .cecard { grid-template-columns: 1fr; }
  .cecard__photo img { min-height: 0; aspect-ratio: 16 / 10; }
  .cecard__ctas .btn { flex: 1; }
  .seg { width: auto; margin-left: calc(var(--gutter) * -1 + 4px); margin-right: calc(var(--gutter) * -1 + 4px); }
  .seg__tab { padding: 0 16px 0 10px; font-size: 14px; }
  .tiles, .choices--2, .choices--3 { grid-template-columns: 1fr; }
  .tile { padding: 32px 22px 0; }
  .tile__photo { margin-left: -22px; margin-right: -22px; }
}
/* Phones: the chooser pill becomes three equal columns, icon over label, so it fits without scrolling. */
@media (max-width: 560px) {
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-left: 0; margin-right: 0; border-radius: 22px; overflow: visible; }
  .seg__thumb { border-radius: 16px; }
  .seg__tab { flex-direction: column; justify-content: center; gap: 6px; min-height: 72px; padding: 8px 4px; border-radius: 16px; font-size: 12.5px; white-space: normal; text-align: center; line-height: 1.2; }
  .seg__tab .mascot { width: 26px; height: 26px; }
  .choices--3 .choice, .choices--2 .choice { flex-direction: row; }
  .choices--3 .choice img, .choices--2 .choice img { width: 38%; aspect-ratio: auto; object-fit: cover; }
  .choice__body { padding: 16px; }
  .choice__price { font-size: 26px; }
}
@media (max-width: 480px) {
  .launch__opt { display: none; }
  .rating { white-space: nowrap; font-size: 12px; gap: 10px; padding-right: 14px; }
  .rating__faces img { width: 24px; height: 24px; }
}

/* media.css */
/* Home media: the hero video in a glass frame and the drifting Google review wall */

/* ---------- Hero video: glass frame, soft shadow, floating sound button ---------- */
.herovid {
  position: relative; max-width: 1080px; margin: clamp(48px, 7vw, 80px) auto 0; padding: 8px;
  border-radius: 30px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 40px 90px rgba(0, 15, 43, 0.22), 0 8px 24px rgba(0, 15, 43, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: frame-in 1s var(--ease-soft) both;
}
.herovid__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; background: var(--navy); }
.herovid__sound {
  position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%;
  background: rgba(20, 24, 32, 0.45); color: var(--white); cursor: pointer;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color 0.25s, transform 0.3s var(--ease-soft);
}
.herovid__sound:hover { background: rgba(20, 24, 32, 0.7); transform: scale(1.06); }
.herovid__sound svg { width: 20px; height: 20px; }
.herovid__sound .herovid__waves { display: none; }
.herovid__sound[aria-pressed="true"] .herovid__waves { display: inline; }
.herovid__sound[aria-pressed="true"] .herovid__mute { display: none; }
@keyframes frame-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

/* ---------- Review wall: two rows drifting in opposite directions ---------- */
main > .reviews { max-width: none; padding-left: 0; padding-right: 0; }
.reviews .head { margin-bottom: 18px; }
.reviews .head, .reviews .reviews-badge, .reviews__more { padding-left: var(--gutter); padding-right: var(--gutter); }
.reviews-badge { display: flex; flex-wrap: wrap; justify-content: center; width: max-content; max-width: 100%; align-items: center; gap: 10px; margin: 0 auto; padding: 8px 18px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); text-decoration: none; font-size: 15px; }
.reviews-badge span:last-child { color: var(--muted-strong); }
.reviews__wall { display: grid; gap: 16px; margin-top: 36px; }
.reviews__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews__track { display: flex; gap: 16px; width: max-content; animation: reviews-left 70s linear infinite; }
.reviews__row--right .reviews__track { animation-name: reviews-right; animation-duration: 80s; }
.reviews__row:hover .reviews__track { animation-play-state: paused; }
.reviews__dupe { display: contents; }
.reviews__more { margin-top: 28px; }
@keyframes reviews-left { to { transform: translateX(-50%); } }
@keyframes reviews-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.review { flex: none; width: 340px; margin: 0; padding: 22px 22px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.review__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review__face { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.review__face--initial { display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 700; font-size: 16px; }
.review figcaption { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.review figcaption strong { font-size: 15px; }
.review figcaption span { font-size: 12px; color: var(--muted); }
.review__g { margin-left: auto; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface); font-size: 11px; font-weight: 600; color: var(--muted-strong); }
.review .stars { font-size: 14px; }
.review blockquote { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted-strong); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 760px) {
  .herovid { padding: 5px; border-radius: 20px; }
  .herovid__video { border-radius: 15px; }
  .herovid__sound { top: 14px; right: 14px; width: 40px; height: 40px; }
  .review { width: 280px; padding: 18px; }
  .reviews__track { animation-duration: 55s; }
  .reviews__row--right .reviews__track { animation-duration: 62s; }
}
/* Without motion the wall becomes two rows you can swipe. */
@media (prefers-reduced-motion: reduce) {
  .reviews__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reviews__dupe { display: none; }
}

/* program-page.css */
/* Inner pages: page hero, facts, learn, booking + forms, cost, compare, trust logos, pay band,
   business/about blocks, FAQ tools and the per-program color themes */

/* ---------- Page hero ---------- */
.phero { padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) !important; padding-bottom: clamp(48px, 7vw, 88px) !important; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted-soft); }
.crumbs a { padding: 10px 0; text-decoration: none; } /* taller tap area, same line box */
.crumbs a:hover { color: var(--fg); }
.phero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.phero__grid--solo { grid-template-columns: 1fr; max-width: 860px; }
.phero__eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.phero__intro { margin: 22px 0 0; max-width: 560px; color: var(--muted-strong); font-size: clamp(17px, 1.6vw, 19px); }
/* Spanish-only notice on the diploma pages */
.langnote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; max-width: 560px; margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius-md); background: var(--t-soft, var(--surface)); border-left: 3px solid var(--t, var(--orange)); font-size: 15px; }
.langnote a { color: var(--t-ink, var(--royal)); font-weight: 600; text-decoration: none; }
.langnote a:hover { text-decoration: underline; }
.langnote small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.phero__photo { margin: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); }
.phero__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.fact { padding: 24px 20px; }
.fact + .fact { border-left: 1px solid var(--hairline); }
.fact dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; }
.fact dd.fact__detail { margin-top: 4px; font-family: var(--font-sans); font-size: 14px; color: var(--muted-strong); }

/* ---------- Learn + included ---------- */
.learn { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.learn__card { padding: clamp(24px, 3.5vw, 40px); background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted-strong); }
.learn > div:first-child .checks { grid-template-columns: 1fr 1fr; column-gap: 28px; }

/* ---------- Booking ---------- */
.book__grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.book__aside { position: sticky; top: calc(var(--nav-h) + 24px); padding: 32px; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); }
.book__aside .checks li { color: rgba(245, 247, 251, 0.85); }
.book__price { margin: 0; font-family: var(--font-display); font-size: 56px; line-height: 1; }
.book__price s { font-size: 28px; color: rgba(245, 247, 251, 0.5); margin-right: 6px; }
.book__note { margin: 8px 0 24px; font-size: 14px; color: rgba(245, 247, 251, 0.7); }
.book__fine { margin: 24px 0 0; font-size: 13px; color: rgba(245, 247, 251, 0.65); }
.book__cal, .book__single, .apply__form { min-width: 0; padding: clamp(8px, 1.5vw, 16px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); }
.book__single { max-width: 900px; margin: 0 auto; }

/* GHL embeds: a hopping mascot holds the space until the calendar or form arrives */
.embed { position: relative; min-height: 640px; }
.embed iframe { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--white); opacity: 0; transition: opacity 0.5s var(--ease-soft); }
.embed.is-loaded iframe { opacity: 1; }
.embed__loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; padding-top: 120px; color: var(--muted); font-size: 15px; transition: opacity 0.3s; }
.embed.is-loaded .embed__loading { opacity: 0; pointer-events: none; }
.embed__loading .mascot { animation: hop 1.4s var(--ease-soft) infinite; }
.embed__fallback { margin: 14px 0 6px; text-align: center; font-size: 14px; color: var(--muted-strong); }
/* Still loading after a while (slow network, blocked script): bring the phone/link fallback forward. */
.embed.is-slow + .embed__fallback { width: fit-content; max-width: 100%; margin: 14px auto 6px; padding: 12px 18px; border-radius: var(--radius-md); background: var(--surface); color: var(--fg); animation: entry-enter 0.5s var(--ease-soft) both; }
.embed__fallback a { color: var(--royal); font-weight: 600; }

.es-toggle { margin-top: 16px; border-top: 1px solid var(--hairline); }
.es-toggle summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 8px; font-weight: 600; font-size: 15px; cursor: pointer; }
.es-toggle summary::-webkit-details-marker { display: none; }
.es-toggle summary::after { content: "›"; margin-left: auto; font-size: 22px; transition: transform 0.3s var(--ease-soft); }
.es-toggle[open] summary::after { transform: rotate(90deg); }

/* ---------- Lead form + contact options ---------- */
.apply__grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.apply__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.apply__aside h3 { margin-bottom: 16px; }
.apply__hours { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.contact-options { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-options a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface); text-decoration: none; transition: background-color 0.2s, transform 0.3s var(--ease-soft); }
.contact-options a:hover { background: var(--surface-alt); transform: translateX(3px); }
.contact-options span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted-strong); line-height: 1.35; }
.contact-options strong { color: var(--fg); font-size: 15px; }
.contact-options a[href^="tel:"] { white-space: normal; } /* the card wraps; only the number itself stays whole */
.contact-options a[href^="tel:"] strong { white-space: nowrap; }
.contact-options .mascot { width: 32px; height: 32px; }
/* WhatsApp row: a WhatsApp-green Plus mascot with a small chat badge, matching the Call/Visit mascots */
.contact-options__icon { position: relative; flex: none; width: 32px; height: 32px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.contact-options__wa:hover .contact-options__icon { transform: rotate(-8deg) scale(1.06); }
.contact-options__badge { position: absolute; right: -6px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--white); color: var(--wa-green-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
.contact-options__badge .chat-glyph { width: 12px; height: 12px; }

/* ---------- Cost ---------- */
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cost { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); }
.cost table { width: 100%; border-collapse: collapse; }
.cost caption { text-align: left; }
.cost th, .cost td { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-weight: 400; text-align: left; }
.cost td { text-align: right; font-variant-numeric: tabular-nums; }
.cost__total th, .cost__total td { border-bottom: 0; padding-top: 18px; font-family: var(--font-display); font-size: 32px; }
.cost__start { margin: 16px 0 0; padding: 16px 18px; border-radius: var(--radius-md); background: rgba(255, 129, 0, 0.1); color: var(--muted-strong); font-size: 15px; }
.cost__start strong { color: var(--orange-ink); }
.cost__perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 16px 0 0; font-size: 14px; font-weight: 600; }
.cost__perks li { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Compare tables ---------- */
.compare { overflow-x: auto; margin: 0 auto 32px; max-width: 900px; border-radius: var(--radius-lg); border: 1px solid var(--hairline); background: var(--white); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare caption { text-align: left; padding: 20px 24px 0; }
.compare th, .compare td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--hairline); font-weight: 400; vertical-align: top; }
.compare thead th { font-size: 13px; color: var(--muted); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th a { padding: 10px 0; font-weight: 600; text-decoration: none; }
.compare tbody th a:hover { color: var(--royal); }
.compare s { color: var(--muted-soft); }
.compare__sub { display: block; font-size: 13px; color: var(--muted); }
.compare__upto { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Approval logos (FL DOE, AHA, NHA, FL Board of Nursing, CE Broker) ---------- */
main > .section--trust { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.trust { list-style: none; display: grid; gap: 14px; padding: 0; margin: 0 auto; }
.trust--1 { grid-template-columns: 1fr; max-width: 520px; }
.trust--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.trust--4 { grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 24px 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); text-align: center; transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft); }
.trust__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust--4 .trust__item { padding: 24px 18px 22px; }
.trust__logo { display: grid; place-items: center; height: 72px; margin-bottom: 12px; }
.trust__logo img { max-height: 72px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.trust--4 .trust__logo img { max-width: 180px; }
.trust--2 .trust__logo img[src$="cebroker.webp"] { max-width: 200px; }
.trust__text { display: flex; flex-direction: column; gap: 4px; }
.trust__text strong { font-size: 16px; }
.trust__text span { font-size: 14px; color: var(--muted-strong); max-width: 300px; }

/* ---------- Pay your way: investment vs annual income ---------- */
.payband__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-xl); background: var(--navy); color: var(--white); }
.payband .eyebrow { color: rgba(245, 247, 251, 0.6); }
.payband h2 em { color: var(--orange); }
.payband .btn { margin-top: 28px; }
.payband .mascot { --eye: var(--navy); }
.payband__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.payband__head .payband__points { margin: 28px 0 0; }
.payband__points li { display: flex; gap: 16px; align-items: flex-start; }
.payband__points h3 { font-size: 24px; }
.payband__points p { margin: 4px 0 0; font-size: 15px; color: rgba(245, 247, 251, 0.75); }
.roi { --c: var(--tone-purple); padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--white); color: var(--fg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.roi[data-tone="green"] { --c: var(--tone-green); }
.roi[data-tone="blue"] { --c: var(--tone-blue); }
.roi__title { margin: 0 0 14px; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.roi__title em { color: var(--c); transition: color 0.4s; }
.roi__picks { display: flex; flex-wrap: wrap; gap: 8px; }
.roi__pick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.roi__pick[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* Both columns share rows (subgrid), so the bars sit on one baseline even when a label wraps */
.roi__chart { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; column-gap: 18px; height: 260px; margin: 22px 0 6px; padding: 0 6px; border-bottom: 1px solid var(--hairline); }
.roi__col { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; justify-items: center; row-gap: 8px; }
.roi__val { align-self: end; font-family: var(--font-display); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.roi__val--pay { font-size: 34px; color: var(--c); transition: color 0.4s; }
.roi__bar { position: relative; display: flex; align-items: flex-end; width: min(120px, 70%); height: 170px; }
.roi__bar i { display: block; width: 100%; height: 0; border-radius: 12px 12px 4px 4px; transition: height 1.1s cubic-bezier(0.22, 1.2, 0.36, 1), background-color 0.4s; }
.roi__bar--cost i { background: repeating-linear-gradient(135deg, #d9d5ca 0 6px, #e8e5dc 6px 12px); }
.roi__bar--pay i { background: linear-gradient(180deg, var(--c) 0%, color-mix(in srgb, var(--c) 70%, white) 100%); box-shadow: 0 12px 30px color-mix(in srgb, var(--c) 35%, transparent); }
.roi__lbl { display: flex; flex-direction: column; align-items: center; padding-bottom: 10px; text-align: center; font-size: 13px; font-weight: 600; }
.roi__lbl small { font-weight: 400; font-size: 12px; color: var(--muted); }
.roi__ratio { margin: 14px 0 0; font-size: 15px; color: var(--muted-strong); }
.roi__ratio strong { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--c); margin-right: 4px; transition: color 0.4s; }
.roi__fine { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.roi__fine a { color: var(--muted-strong); }

/* ---------- Business / About blocks ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; font-weight: 500; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); }
.steps__num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--font-mono); font-size: 14px; }
.steps p, .card p { margin: 10px 0 0; color: var(--muted-strong); font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 20px; }
.photo-band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-xl); }
.story-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.byline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-strong); }
.prose p { margin: 0 0 20px; font-size: 18px; color: var(--muted-strong); }
.prose p:last-child { color: var(--fg); font-weight: 500; }
.mission { text-align: center; }
.mission blockquote { margin: 0 auto; max-width: 900px; font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
.mission p:last-child { max-width: 620px; margin: 24px auto 0; color: var(--muted-strong); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stats div { display: flex; flex-direction: column; padding: 28px 20px; text-align: center; }
.stats div + div { border-left: 1px solid var(--hairline); }
.stats dt { order: 2; font-size: 14px; color: var(--muted-strong); }
.stats dd { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.visit__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--hairline); }
.visit__list div { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.visit__list dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.visit__list dd { margin: 6px 0 0; font-weight: 600; }
.visit__list a { text-decoration: none; }

/* ---------- About: school hero, map card, approvals, founder ---------- */
.ahero__photo { margin: 18px 0 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); }
.ahero__photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 60%; display: block; }
.ahero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.ahero__rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--muted-strong); font-size: 15px; }
.ahero__rating strong { color: var(--fg); }
.ahero__stars { color: var(--orange); letter-spacing: 1px; }
.mapcard { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--hairline); box-shadow: var(--shadow-md); }
.mapcard__map { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--surface); }
.mapcard__body { padding: 20px 22px 22px; }
.mapcard__address { margin: 0; font-size: 17px; line-height: 1.4; }
.mapcard__note, .mapcard__hours { margin: 8px 0 0; color: var(--muted-strong); font-size: 15px; }
.mapcard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.approvals__list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0; margin: 0; }
.approvals__item { display: flex; flex-direction: column; padding: 22px 20px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); }
.approvals__logo { display: flex; align-items: center; height: 64px; margin-bottom: 18px; }
.approvals__logo img { max-height: 64px; max-width: 170px; width: auto; height: auto; }
.approvals__item h3 { margin: 0; font-size: 18px; }
.approvals__item p { margin: 8px 0 0; color: var(--muted-strong); font-size: 15px; }
.approvals__item .approvals__ref { margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.founder__photo { margin: 0 0 28px; max-width: 360px; border-radius: var(--radius-lg); overflow: hidden; }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
@media (max-width: 1080px) { .approvals__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .ahero__grid { grid-template-columns: 1fr; }
  .approvals__list { grid-template-columns: 1fr 1fr; }
  .ahero__photo img { aspect-ratio: 4 / 3; object-position: 45% 60%; }
}

/* ---------- FAQ page tools, 404 ---------- */
.faq-tools { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 5; max-width: 780px; margin: 0 auto 32px; padding: 12px; border-radius: var(--radius-lg); background: rgba(250, 250, 247, 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--hairline); }
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 52px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--hairline); }
.search input { flex: 1; align-self: stretch; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; outline: none; }
.filter { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.filter button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.faq-group { max-width: 780px; margin: 0 auto 40px; }
.faq-group__title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.faq-empty { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--muted-strong); }
.notfound { text-align: center; padding-top: calc(var(--nav-h) + 96px) !important; min-height: 70vh; }
.notfound h1 { margin-top: 24px; }
.notfound .phero__intro { margin-left: auto; margin-right: auto; }

/* ---------- Spanish program pages ---------- */
.essteps { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0 0 16px; }
.essteps li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); font-weight: 500; }
.essteps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--t, var(--navy)); color: var(--white); font-family: var(--font-mono); font-size: 13px; }
.apply__aside .contact-options { margin-top: 16px; }
.esreviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 28px auto 0; }
.esreviews .review { width: auto; }
.esreviews .review blockquote { -webkit-line-clamp: unset; font-size: 17px; }
.cie-note { max-width: 720px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.cie-note p { margin: 4px 0; }

/* ---------- Legal pages: index on the left, the policy in a white card ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal__index { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal__index ol { list-style: none; display: grid; gap: 2px; padding: 0; margin: 0; }
.legal__index a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--muted-strong); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.legal__index a:hover { background: var(--surface); color: var(--fg); }
.legal__body { max-width: none; overflow-wrap: anywhere; /* long emails and URLs wrap on phones */ padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); }
.legal__intro p, .legal__section p, .legal__section li { font-size: 17px; }
.legal__section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__section + .legal__section { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--hairline); }
.legal__body.prose--article h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 28px 0 12px; }
.legal__more { margin-top: 36px; padding: 22px 24px; border-radius: var(--radius-md); background: var(--surface); }
.legal__more p { margin: 0 0 14px; font-size: 15px; color: var(--muted-strong); }
.legal__more div { display: flex; flex-wrap: wrap; gap: 10px; }
.legal__other { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--white); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--hairline); }
.legal__other:hover { box-shadow: inset 0 0 0 1px var(--fg); }

/* ---------- Per-program color themes (body[data-theme]) ----------
   The program color is an accent, not a wash: hero headline, eyebrow, skills and a hairline
   on the facts strip. Buttons, cards and financing stay CareTech navy/orange. */
body[data-theme="purple"] { --t: #7c4dcc; --t-ink: #5a32a8; --t-soft: #f3eefc; --t-deep: #2a1752; }
body[data-theme="green"]  { --t: #1f9d6b; --t-ink: #15724d; --t-soft: #e9f7f0; --t-deep: #0b3a27; }
body[data-theme="blue"]   { --t: #175ac1; --t-ink: #12468f; --t-soft: #eaf1fc; --t-deep: #0a2552; }
body[data-theme] .phero .eyebrow { color: var(--t-ink); }
body[data-theme] .phero h1 em { color: var(--t-ink); }
body[data-theme] .facts { border-top: 2px solid var(--t); }
body[data-theme] .skills span { color: var(--t-ink); }

/* ---------- Breakpoints ---------- */
@media (min-width: 901px) and (max-width: 1100px) { .trust--4 { grid-template-columns: repeat(2, 1fr); max-width: 820px; } }
@media (max-width: 900px) {
  .phero__grid, .learn, .book__grid, .apply__grid, .pay, .story-block, .visit, .payband__inner, .esreviews { grid-template-columns: 1fr; }
  .legal, .apply__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__index { position: static; }
  .legal__index ol { grid-template-columns: 1fr 1fr; }
  .phero__photo { order: -1; }
  .phero__photo img { aspect-ratio: 16 / 11; }
  .facts, .stats { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3), .stats div:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3), .stats div:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .book__aside, .apply__aside { position: static; }
  .steps, .cards, .cards--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { display: none; }
  .photo-band img { aspect-ratio: 4 / 3; }
  .roi__chart { height: 230px; }
  .roi__bar { height: 140px; }
  /* Approval logos: one column, logo on top and words underneath, so wide logos never run into the text */
  .trust--2, .trust--4 { grid-template-columns: 1fr; max-width: 520px; }
  .trust__item, .trust--4 .trust__item { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 20px; }
  .trust__logo, .trust--4 .trust__logo { flex: none; width: auto; height: 56px; margin: 0; }
  .trust__logo img, .trust--4 .trust__logo img { max-height: 56px; max-width: 220px; width: auto; }
  .trust__item img[src$="nha.webp"] { max-height: 40px; max-width: 120px; }
  .trust__item img[src$="fl-bon.webp"] { max-height: 60px; }
  .trust__text { align-items: center; }
  .trust__text span { font-size: 13px; max-width: 320px; }
}
@media (max-width: 560px) {
  /* Compare tables become one small card per row: name on top, labelled values underneath */
  .compare table { min-width: 0; }
  .compare caption { padding: 18px 20px 4px; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare td { padding: 0; border: 0; }
  .compare tbody th { grid-column: 1 / -1; font-size: 17px; }
  .compare td { font-size: 15px; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .compare td .compare__upto { display: inline; margin-right: 4px; }
  .learn > div:first-child .checks { grid-template-columns: 1fr; }
  .fact { padding: 18px 14px; }
  .book__aside { padding: 24px; }
  .book__cal, .book__single, .apply__form { padding: 4px; border-radius: 18px; }
  .visit__list { grid-template-columns: 1fr; }
  .chips { justify-content: flex-start; }
}

/* ce.css */
/* CareTech Online (/caretechonline/): CE Broker hero card, renewal bundles, course table, portal band */
.cehero__card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--hairline); border-top: 4px solid #2bb07f; box-shadow: var(--shadow-lg); }
.cehero__logo { display: block; }
.cehero__logo img { width: min(280px, 100%); height: auto; }
.cehero__provider { margin: 14px 0 22px; font-size: 15px; color: var(--muted-strong); }
.cehero__provider strong { color: var(--fg); }
.cehero__facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 0; }
.cehero__facts li { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 14px; background: #eef8f3; }
.cehero__facts strong { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; color: #15724d; }
.cehero__facts span { margin-top: 4px; font-size: 13px; color: var(--muted-strong); }

/* Renewal bundles; the RN/LPN bundle is featured in deep blue */
.bundles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bundle { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft); }
.bundle:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bundle h3 { font-size: clamp(24px, 2.4vw, 30px); }
.bundle__tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bundle__text { margin: 0; font-size: 15px; color: var(--muted-strong); }
.bundle__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0; }
.bundle__chips li { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface); font-size: 12px; color: var(--muted-strong); }
.bundle__price { display: flex; align-items: baseline; gap: 12px; margin: auto 0 4px; }
.bundle__price strong { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; }
.bundle__price span { font-size: 13px; color: #15724d; font-weight: 600; }
.bundle .btn { align-self: flex-start; }
.bundle--featured { background: linear-gradient(150deg, #0f3270 0%, #0a2556 100%); color: var(--white); border-color: transparent; }
.bundle--featured .bundle__tag { color: rgba(255, 255, 255, 0.7); }
.bundle--featured .mascot[data-tone="white"] { --eye: #0f3270; }
.bundle--featured .bundle__text { color: rgba(255, 255, 255, 0.75); }
.bundle--featured .bundle__chips li { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
.bundle--featured .bundle__price span { color: #7ee2b8; }

.cecourses tbody th { font-weight: 600; }
.cecourses__code { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* "Already enrolled?" portal band */
main > .section--band { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(24px, 4vw, 40px); }
.ceband { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4.5vw, 52px); border-radius: var(--radius-lg); background: linear-gradient(135deg, #0f3270 0%, #0a2556 100%); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--white); box-shadow: 0 20px 50px rgba(10, 37, 86, 0.25); }
.ceband__seal { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ceband__text { flex: 1; max-width: 640px; }
.ceband__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.ceband h2 { font-size: clamp(28px, 3.6vw, 42px); }
.ceband h2 em { color: rgba(255, 255, 255, 0.7); }
.ceband p:last-child { margin: 14px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 16px; }

@media (max-width: 900px) {
  .bundles { grid-template-columns: 1fr; }
  .bundle .btn { align-self: stretch; }
  .ceband { flex-direction: column; align-items: flex-start; }
  .ceband__seal { width: 76px; height: 76px; }
}

/* course.css */
/* CPR & BLS / Heartsaver pages */
.chero__lead { margin: 18px 0 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.chero .phero__intro { margin-top: 10px; }
.chero__price { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 0; }
.chero__price s { font-size: 24px; color: var(--muted-soft); }
.chero__price strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 6vw, 72px); line-height: 1; }
.chero__price span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted-strong); line-height: 1.3; }
.chero__price small { font-size: 12px; color: var(--muted); }
.chero .ctas { margin-top: 22px; }
.chero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; font-size: 14px; }
.chero__meta > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.chero__meta a { color: var(--muted-strong); text-decoration: none; }
.chero__stars { color: #f5a400; letter-spacing: 1px; }
/* Landscape crop so the class photo never stretches the page */
.chero__photo { position: relative; }
.chero__photo img { aspect-ratio: 5 / 4; object-position: 50% 35%; }
.fact dd s { font-size: 0.6em; color: var(--muted-soft); margin-right: 4px; }

/* ---------- AHA course card + sample eCard ---------- */
.aha-cards { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.aha-cards__course { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--white); border: 1px solid #e9ecef; border-top: 4px solid var(--aha-red); }
.aha-cards__course .trust__logo { justify-content: start; height: 64px; margin-bottom: 18px; }
.aha-cards__course .trust__logo img { max-height: 64px; max-width: 160px; }
.aha-cards__course .eyebrow { color: var(--aha-red-deep); }
.aha-cards__course h2 { font-size: clamp(30px, 3.6vw, 44px); }
.aha-cards__course h2 em { color: var(--aha-red); }
.aha-cards__course > p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted-strong); }
.aha-cards__facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 24px 0 0; }
.aha-cards__facts li { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: #f8f9fa; }
.aha-cards__facts strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--aha-red); }
.aha-cards__facts span { font-size: 13px; color: var(--muted-strong); }
/* The cards rise straight up with a small tilt, so nothing slides past the screen edge */
.aha-cards__sample { margin: 0; }
.aha-cards__stack { position: relative; display: block; padding: 0 3% 18% 0; }
.aha-cards__ecard { width: 78%; border-radius: 10px; box-shadow: 0 30px 60px rgba(34, 35, 40, 0.18), 0 2px 6px rgba(34, 35, 40, 0.08); transform: rotate(-3deg); transition: transform 0.6s var(--ease-soft); }
.aha-cards__wallet { position: absolute; right: 3%; bottom: 4%; width: 70%; border-radius: 8px; box-shadow: 0 24px 50px rgba(34, 35, 40, 0.22); transform: rotate(4deg); transition: transform 0.6s var(--ease-soft); }
.aha-cards__sample:hover .aha-cards__ecard { transform: rotate(-4deg) translateY(-4px); }
.aha-cards__sample:hover .aha-cards__wallet { transform: rotate(5deg) translateY(-2px); }
.aha-cards__sample figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--muted-strong); }
.aha-cards__tag { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--aha-red); color: var(--white); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.reveal.is-visible .aha-cards__ecard { animation: card-in 0.9s var(--ease-soft) both; }
.reveal.is-visible .aha-cards__wallet { animation: card-in-2 0.9s 0.15s var(--ease-soft) both; }
@keyframes card-in { from { opacity: 0; transform: rotate(-3deg) translateY(28px); } }
@keyframes card-in-2 { from { opacity: 0; transform: rotate(4deg) translateY(36px); } }

/* ---------- Classroom carousel: square slides, snap scrolling ---------- */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.carousel-head .head { margin-bottom: 28px; }
.carousel__nav { display: flex; gap: 8px; margin-bottom: 30px; }
.carousel__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--surface-alt); font-size: 18px; cursor: pointer; transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease-soft); }
.carousel__btn:hover { background: var(--navy); color: var(--white); transform: scale(1.06); }
.carousel__btn:disabled { opacity: 0.35; pointer-events: none; }
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; outline: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 clamp(240px, 30%, 360px); margin: 0; scroll-snap-align: start; }
.carousel__slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); transition: transform 0.8s var(--ease-soft); }
.carousel__slide:hover img { transform: scale(1.02); }
.carousel__slide figcaption { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--muted-strong); }

/* ---------- Course information panel (AHA style) ---------- */
.courseinfo { max-width: 900px; margin: 0 auto; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid #e9ecef; border-top: 4px solid var(--aha-red); box-shadow: var(--shadow-md); }
.courseinfo__head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aha-red-deep); }
.courseinfo dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin: 0 0 20px; }
.courseinfo dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e9ecef; }
.courseinfo dt { font-size: 13px; font-weight: 600; color: var(--aha-ink, var(--fg)); }
.courseinfo dd { margin: 0; font-size: 14px; color: var(--muted-strong); }

/* ---------- Upsell to the sister course ---------- */
main > .upsell { padding-top: clamp(24px, 4vw, 48px); }
.upsell { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.upsell__card { display: grid; grid-template-columns: 0.9fr 1fr; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); text-decoration: none; transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft); }
.upsell__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.upsell__photo { overflow: hidden; }
.upsell__photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform 0.8s var(--ease-soft); }
.upsell__card:hover .upsell__photo img { transform: scale(1.05); }
.upsell__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 32px); }
.upsell__body .eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.upsell__body strong { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.upsell__text { font-size: 15px; color: var(--muted-strong); }
.upsell__cta { margin-top: 6px; color: var(--royal); font-weight: 600; }

/* ---------- Course overview (the long SEO copy) ---------- */
.overview__p { margin: 0 0 16px; font-size: 18px; color: var(--muted-strong); max-width: 640px; }
.overview__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.overview__topics { margin: 0 0 6px; font-size: 26px; }
/* Numbered topics use our own mono numbers (in the page accent), not the browser's */
.skills { list-style: none; padding: 0; margin: 8px 0 0; }
.skills li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; color: var(--muted-strong); }
.skills li:last-child { border-bottom: 0; }
.skills span { padding-top: 3px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--t-ink, var(--orange-ink)); }

/* ---------- American Heart Association theme (body[data-theme="aha"]) ----------
   Cues from heart.org: solid AHA red bands with white type, pill buttons (solid / outline),
   light-gray section grounds, charcoal text. CareTech nav, serif and mascot stay. */
body[data-theme="aha"] { --t: var(--aha-red); --t-ink: var(--aha-red-deep); --t-soft: #fbeced; --t-deep: #7a0915; --aha-gray: #f8f9fa; --aha-ink: #222328; }
body[data-theme="aha"] .mascot[data-tone="red"],
body[data-theme="aha"] :is(.embed__loading, .upsell, .es-toggle) .mascot { --body: var(--aha-red); }

/* Full-width red hero band */
body[data-theme="aha"] main > .chero {
  max-width: none; background: linear-gradient(180deg, var(--aha-red) 0%, #ad0c1d 100%); color: var(--white);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
body[data-theme="aha"] .chero .crumbs ol, body[data-theme="aha"] .chero .crumbs a { color: rgba(255, 255, 255, 0.72); }
body[data-theme="aha"] .chero .crumbs li + li::before { color: rgba(255, 255, 255, 0.4); }
body[data-theme="aha"] .chero .eyebrow, body[data-theme="aha"] .chero h1 em { color: var(--white); }
body[data-theme="aha"] .chero h1 em { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: rgba(255, 255, 255, 0.45); }
body[data-theme="aha"] .chero .phero__intro, body[data-theme="aha"] .chero__price span, body[data-theme="aha"] .chero__meta a { color: rgba(255, 255, 255, 0.86); }
body[data-theme="aha"] .chero__price s, body[data-theme="aha"] .chero__price small { color: rgba(255, 255, 255, 0.6); }
body[data-theme="aha"] .chero .mascot { --body: var(--white); --eye: var(--aha-red); }
body[data-theme="aha"] .chero__stars { color: #ffd166; }
body[data-theme="aha"] .chero .btn--accent { background: var(--white); color: var(--aha-red); }
body[data-theme="aha"] .chero .btn--accent:hover { background: #fbeced; }
body[data-theme="aha"] .chero .btn--soft { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
body[data-theme="aha"] .chero .btn--soft:hover { background: rgba(255, 255, 255, 0.12); }
body[data-theme="aha"] .chero__photo { box-shadow: 0 30px 60px rgba(60, 0, 8, 0.35); }

/* Nav sits on the red band at the top of the page */
body[data-theme="aha"] .nav:not(.is-compact) .nav__brand,
body[data-theme="aha"] .nav:not(.is-compact) .nav__links a,
body[data-theme="aha"] .nav:not(.is-compact) .nav__login { color: rgba(255, 255, 255, 0.86); }
body[data-theme="aha"] .nav:not(.is-compact) .nav__links a:hover,
body[data-theme="aha"] .nav:not(.is-compact) .nav__links a[aria-current="page"] { color: var(--white); }
body[data-theme="aha"] .nav:not(.is-compact) .nav__book { background: var(--white); color: var(--aha-red); }
body[data-theme="aha"] .nav:not(.is-compact) .nav__toggle { border-color: rgba(255, 255, 255, 0.3); }
body[data-theme="aha"] .nav:not(.is-compact) .nav__toggle i { background: var(--white); }

/* Body sections: AHA red accents, outline pills, light-gray grounds */
body[data-theme="aha"] main > .section--tight { padding-top: 0; }
body[data-theme="aha"] .facts { border-top: 4px solid var(--aha-red); border-bottom-color: var(--hairline); }
body[data-theme="aha"] .btn--soft { background: transparent; color: var(--aha-red); box-shadow: inset 0 0 0 1.5px var(--aha-red); }
body[data-theme="aha"] .btn--soft:hover { background: var(--t-soft); }
body[data-theme="aha"] main > .learn, body[data-theme="aha"] main > #faq { max-width: none; background: var(--aha-gray); }
body[data-theme="aha"] main > .learn { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
body[data-theme="aha"] .learn__card { background: var(--white); border: 1px solid #e9ecef; border-top: 4px solid var(--aha-red); }
body[data-theme="aha"] .book__aside { background: linear-gradient(180deg, var(--aha-red) 0%, var(--aha-red-deep) 100%); }
body[data-theme="aha"] .book__aside .mascot { --body: var(--white); --eye: var(--aha-red); }
body[data-theme="aha"] .trust__item { border-top: 4px solid var(--aha-red); }
body[data-theme="aha"] .head .eyebrow { color: var(--aha-red-deep); }
body[data-theme="aha"] .head h2 em { color: var(--aha-red); }
body[data-theme="aha"] .faq__item summary::after { background: var(--white); color: var(--aha-red); box-shadow: inset 0 0 0 1px rgba(193, 14, 33, 0.35); }
body[data-theme="aha"] :is(.actionbar, .courseinfo) .btn--accent { background: var(--aha-red); color: var(--white); }
body[data-theme="aha"] .courseinfo .btn--accent:hover { background: var(--aha-red-deep); }

/* ---------- Breakpoints ---------- */
@media (max-width: 900px) {
  .chero__photo { order: -1; }
  .chero__photo img { aspect-ratio: 4 / 3; }
  body[data-theme="aha"] .chero__photo { box-shadow: 0 18px 40px rgba(60, 0, 8, 0.3); }
  .aha-cards { grid-template-columns: minmax(0, 1fr); }
  .upsell, .upsell__card, .overview__cols { grid-template-columns: 1fr; }
  /* Phones: the card stack sits first and the tilted wallet card stays inside the screen */
  .aha-cards__sample { order: -1; max-width: 460px; margin: 0 auto; padding: 0 10px; }
  .aha-cards__stack { padding-right: 4%; }
  .aha-cards__ecard { transform: rotate(-2deg); }
  .aha-cards__wallet { right: 6%; width: 62%; transform: rotate(3deg); }
  .upsell__photo img { min-height: 0; aspect-ratio: 16 / 9; }
  .carousel__nav { display: none; }
  .carousel { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding-left: var(--gutter); }
  .carousel__slide { flex-basis: 72%; }
  .courseinfo dl { grid-template-columns: 1fr; }
  .courseinfo .btn { width: 100%; }
}
/* Small phones: the three AHA facts wrap instead of squeezing past the card edge */
@media (max-width: 400px) {
  .aha-cards__facts { display: flex; flex-wrap: wrap; gap: 8px; }
  .aha-cards__facts li { flex: 1 1 auto; }
}

/* blog.css */
/* Blog index cards and article pages */
.post { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--hairline); text-decoration: none; transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__photo { display: block; overflow: hidden; background: var(--surface); }
.post__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.8s var(--ease-soft); }
.post:hover .post__photo img { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--muted); }
.post__tag { padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255, 129, 0, 0.12); color: var(--orange-ink); font-weight: 600; font-size: 12px; }
.post__title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.12; letter-spacing: -0.01em; }
.post__excerpt { font-size: 15px; color: var(--muted-strong); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__more { margin-top: auto; padding-top: 6px; color: var(--royal); font-weight: 600; font-size: 15px; }
.post--featured { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto; }
.post--featured .post__photo img { height: 100%; aspect-ratio: auto; min-height: 360px; }
.post--featured .post__body { justify-content: center; padding: clamp(28px, 4vw, 48px); }
.post--featured .post__title { font-size: clamp(30px, 3.4vw, 44px); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-list .filter--blog { margin: 0 0 28px; }
main > .blog-list { padding-top: clamp(40px, 6vw, 72px); }

.article { max-width: var(--max); margin: 0 auto; padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) var(--gutter) 0; }
.article__head { max-width: 780px; }
.article__title { margin-top: 18px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; }
.article__lede { margin: 18px 0 0; font-size: clamp(18px, 1.8vw, 21px); color: var(--muted-strong); }
.article__photo { margin: 32px 0 0; border-radius: var(--radius-xl); overflow: hidden; }
.article__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0; }
.prose--article { max-width: 720px; }
.prose--article h1 { font-size: clamp(36px, 4.6vw, 56px); margin: 0 0 24px; }
.prose--article h2 { font-size: clamp(28px, 3vw, 36px); margin: 44px 0 14px; }
.prose--article h3 { font-size: 24px; margin: 32px 0 10px; }
.prose--article p, .prose--article li { font-size: 18px; line-height: 1.7; color: var(--muted-strong); }
.prose--article p:last-child { font-weight: 400; color: var(--muted-strong); }
.prose--article ul { padding-left: 22px; margin: 0 0 20px; }
.prose--article li { margin-bottom: 8px; }
.prose--article li::marker { color: var(--orange); }
.prose--article a { color: var(--royal); font-weight: 600; text-underline-offset: 3px; }
.prose--article strong { color: var(--fg); }
.article__aside { position: relative; }
.article__cta { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 10px; justify-items: start; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.article__cta p { margin: 0; font-size: 15px; color: var(--muted-strong); }
.article__cta .eyebrow { margin: 6px 0 0; }

@media (max-width: 900px) {
  .post--featured { grid-template-columns: 1fr; }
  .post--featured .post__photo img { min-height: 0; aspect-ratio: 16 / 10; }
  .posts { grid-template-columns: 1fr; }
  .article__layout { grid-template-columns: 1fr; }
  .article__photo img { aspect-ratio: 16 / 10; }
  .blog-list .filter--blog { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
}
@media (min-width: 901px) and (max-width: 1100px) { .posts { grid-template-columns: repeat(2, 1fr); } }

/* {{CTA}} callout rendered inside the article body (src/pages/blog.mjs) */
.article__cta--inline { position: static; margin: 28px 0; }
.article__cta--inline h3 { margin: 0; }
.article__cta--inline .ctas { margin-top: 6px; gap: 10px; flex-wrap: wrap; }

/* pay.css */
/* Ways to pay at the school (payMethods() in src/templates/ui.mjs). Loaded by every page, the
   CPR landing pages and the carried-over thank-you pages. Brand rules: all marks one height, no
   filters, shadows or recoloring; clear space >= 1/4 mark height (Zelle, Apple Pay) and
   >= 1/2 Google "G" height (Google Pay). Zelle's badge only at its published sizes: 67x39 / 53x31. */
.paymethods { margin: 18px 0 0; }
.paymethods__label { margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: inherit; }
.paymethods__label strong { font-weight: 600; }
.paymethods__methods { white-space: nowrap; }
.lp-book__copy .paymethods__marks { justify-content: center; }
.paymethods__marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.paymethods__marks li { display: block; line-height: 0; }
.paymethods__marks img { display: block; height: 39px; width: auto; max-width: none; }
.paymethods--center { text-align: center; }
.paymethods--center .paymethods__marks { justify-content: center; }
@media (max-width: 479px) {
  .paymethods__marks { gap: 8px 10px; }
  .paymethods__marks img { height: 31px; }
}

/* Footer: license line and trademark notice */
.footer__license { margin: 0; flex-basis: 100%; }
.footer__tm { margin: 0; flex-basis: 100%; font-size: 12px; }

/* Business contact card */
.contactcard { max-width: 560px; margin: 0 auto; padding: 32px 28px; border-radius: var(--radius-xl, 28px); background: var(--surface, #fff); text-align: center; box-shadow: var(--shadow-md, 0 10px 30px rgba(0, 0, 0, 0.06)); }
.contactcard h2 { margin: 0; }
.contactcard__line { margin: 10px 0 22px; color: var(--muted-strong, #4a5568); }
.contactcard__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.contactcard__actions .btn { justify-content: center; }

/* Business compliance card */
.compliance { max-width: 640px; margin: 0 auto; }
.compliance__who { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--hairline, #e5e7eb); font-size: 15px; color: var(--muted-strong, #4a5568); }

/* CPR landing pages (navy shell): pay row and the bare footer with the license line */
.lp-hero .lp-wrap { position: relative; }
.lp-book .paymethods__label { color: inherit; }
.lp-foot { padding: 28px 0 36px; background: #000f2b; color: rgba(255, 255, 255, 0.72); font-size: 13px; line-height: 1.5; text-align: center; }
.lp-foot p { margin: 4px 0; }
