/* Rapid Response Education — site styles
   Brand palette (approved, brand packet 2026-12-05):
   navy #142A37 primary · red #BA1C19 CTAs only · teal #0B5563 secondary · amber #E8A33D highlight
   All neutral surfaces/text run through adaptive tokens so the site works in
   light and dark mode; brand surfaces (navy/red/teal/amber bands) are fixed
   brand colors with fixed contrasting text, per the brand packet pairings. */

:root {
  --navy: #142A37;
  --navy-deep: #0E1F29;
  --red: #BA1C19;
  --red-dark: #9E1B16;
  --teal: #0B5563;
  --teal-dark: #083F49;
  --amber: #E8A33D;
  --amber-ink: #142A37;

  --bg: #FFFFFF;
  --surface: #F4F7F7;
  --surface-2: #EAF0F1;
  --ink: #1A2226;
  --body: #2E3A40;
  --muted: #5A6B72;
  --line: #D9DEE0;
  --card-bg: #FFFFFF;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C3D2D9;
  --focus: #0B5563;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10181C;
    --surface: #182227;
    --surface-2: #1F2C33;
    --ink: #F2F6F7;
    --body: #D7E0E3;
    --muted: #9DB0B7;
    --line: #33454D;
    --card-bg: #182227;
    --focus: #E8A33D;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}

/* height: auto is load-bearing: without it, the HTML height attribute acts as
   a fixed pixel height wherever a class sets width/aspect-ratio but not
   height, squashing or stretching the image into the attribute's box. */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--teal); }
@media (prefers-color-scheme: dark) { a { color: #7FC4CF; } }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 600; color: var(--teal); margin: 0 0 .8em;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: #7FC4CF; } }
.section-sub { color: var(--muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); }
.btn--outline { border-color: #fff; color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--small { padding: 9px 18px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy); color: var(--on-navy);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); margin-right: auto; }
.brand-chip { background: #fff; border-radius: 10px; padding: 4px 8px; line-height: 0; }
.brand-chip img { height: 40px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.02rem; line-height: 1.25; color: #fff; }
.brand-name small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: .92rem;
  padding: 8px 10px; border-radius: 6px;
}
.main-nav a:hover { background: rgba(255,255,255,.12); }
.main-nav a[aria-current="page"] { background: rgba(255,255,255,.16); text-decoration: underline; text-underline-offset: 4px; }
.header-phone { color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .header-inner { gap: 10px; }
  .main-nav { order: 3; width: 100%; }
  .header-phone { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff; background: var(--navy-deep);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,31,41,.93) 30%, rgba(14,31,41,.55) 65%, rgba(14,31,41,.30)); }
.hero-inner { position: relative; padding: 96px 0 120px; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hero h1 { color: #fff; max-width: 620px; }
.hero .eyebrow { color: var(--amber); }
.hero-copy { max-width: 560px; font-size: 1.13rem; color: #E7EEF1; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero-watch { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.hero-watch .play-dot {
  width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none;
}
.video-note { font-size: .8rem; color: var(--on-navy-muted); margin-top: 6px; }
.trust-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding: 0; list-style: none; }
.trust-chips li {
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 7px 16px;
  font-size: .88rem; font-weight: 500; color: #fff; background: rgba(20,42,55,.45);
}

/* ---------- Facts strip ---------- */
.facts { margin-top: -56px; position: relative; z-index: 2; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 8px 24px rgba(20,42,55,.10); }
.fact-card .fact-value { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .fact-card .fact-value { color: var(--amber); } }
.fact-card p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; } }

/* ---------- Path cards ---------- */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.path-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.path-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,42,55,.14); }
.path-card img { height: 170px; width: 100%; object-fit: cover; }
/* Portrait-orientation photo in a landscape card slot: bias the crop window
   upward so the students' heads stay in frame instead of the center slice. */
.path-card img.img-focus-top { object-position: 50% 30%; }
.path-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.path-card-body h3 { margin: 0; }
.path-card-body p { margin: 0; font-size: .96rem; }
.path-meta { color: var(--teal); font-weight: 600; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .path-meta { color: #7FC4CF; } }
.path-card-body .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .path-grid { grid-template-columns: 1fr; } .path-card img { height: 200px; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; height: auto; border-radius: 14px; box-shadow: 16px 16px 0 var(--surface-2); }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Class cards ---------- */
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.class-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.class-badge { font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; }
@media (prefers-color-scheme: dark) { .class-badge { color: #7FC4CF; } }
.class-card h3 { margin: 0; font-size: 1.05rem; }
.class-meta { color: var(--muted); font-size: .88rem; margin: 0; }
.class-price { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-top: auto; padding-top: 10px; }
.class-card .btn { align-self: flex-start; }
@media (max-width: 1020px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .class-grid { grid-template-columns: 1fr; } }

/* ---------- Teach tiles / service tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---------- Instructor ---------- */
.instructor { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.instructor img { border-radius: 14px; width: 100%; height: auto; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: top; }
.instructor-contact { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .instructor { grid-template-columns: 1fr; } .instructor img { max-width: 380px; } }

/* ---------- Testimonials ---------- */
.stories { position: relative; max-width: 760px; margin: 36px auto 0; text-align: center; }
.story { display: none; }
.story.active { display: block; }
.story blockquote { margin: 0; font-size: 1.3rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.story figcaption { margin-top: 18px; font-weight: 700; color: var(--navy); }
@media (prefers-color-scheme: dark) { .story figcaption { color: var(--amber); } }
.story-mark { font-size: 3rem; line-height: 1; color: var(--amber); font-weight: 700; }
.story-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.story-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-bg); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.story-arrow:hover { border-color: var(--teal); }
.story-dots { display: flex; gap: 8px; }
.story-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.story-dot.active { background: var(--red); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 22px; }
.faq-item summary { font-weight: 600; color: var(--ink); cursor: pointer; padding: 16px 0; font-size: 1.02rem; }
.faq-item p { color: var(--muted); padding-bottom: 16px; margin: 0; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--amber); color: var(--amber-ink); padding: 56px 0; }
.cta-band h2 { color: var(--amber-ink); }
.cta-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-inner .cta-text { flex: 1; min-width: 280px; }
.cta-inner p { margin: 0; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--on-amber { background: var(--navy); color: #fff; }
.btn--on-amber-outline { border-color: var(--navy); color: var(--navy); background: transparent; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--teal); color: #fff; }
/* top/bottom only: the horizontal padding comes from .wrap — a full
   `padding: 64px 0` shorthand here would override it and push the hero
   content against the screen edges on mobile. */
.page-hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--amber); }
.page-hero p { color: #E3EEF0; font-size: 1.1rem; max-width: 560px; }
.page-hero figure { margin: 0; }
/* The hero portrait is a near-square photo (900x936); the slot must not force
   it into a landscape crop. It renders at its natural ratio at every width,
   so the face is never cropped or squeezed. */
.page-hero figure img { border-radius: 14px; width: 100%; height: auto; box-shadow: 0 16px 36px rgba(0,0,0,.28); }
@media (max-width: 900px) { .page-hero-inner { grid-template-columns: 1fr; } }

/* ---------- Feature band ---------- */
.feature-band { background: var(--navy); color: #fff; border-radius: 16px; padding: 44px; margin-top: 56px; }
.feature-band h2 { color: #fff; }
.feature-band p { color: var(--on-navy-muted); max-width: 680px; margin: 0; font-size: 1.05rem; }
.feature-band .eyebrow { color: var(--amber); }
.feature-band a { color: #fff; font-weight: 600; }

/* ---------- Rate cards ---------- */
.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.rate-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.rate-card h3 { margin: 0; font-size: 1.05rem; }
.rate-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.rate-price { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-top: auto; padding-top: 12px; }
.rate-price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.rate-card .btn { align-self: flex-start; }
@media (max-width: 900px) { .rate-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-brand .brand-chip { display: inline-block; margin-bottom: 14px; }
.footer-brand img { height: 52px; width: auto; }
.footer-tagline { font-size: 1.02rem; color: #fff; font-weight: 500; max-width: 300px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 40px; padding-top: 20px; font-size: .88rem; display: flex; gap: 8px 20px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal motion (Motion board §2; disabled for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
