/* Home page only. Loaded after styles.css; re-points its shared tokens at the home palette. */
:root {
  --font-head: "Inter", system-ui, sans-serif;
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --header-h: 64px;
  --pad-l: 20px; /* side padding; becomes vw-based on desktop */
  --pad-r: 20px;
}
.teal { color: var(--teal-ink); }

/* lower sections (styles.css): same full-width side padding as the new top, Anton headings */
.home .container { width: auto; margin-inline: 0; padding-inline: var(--pad-l) var(--pad-r); }
.home h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.home h2 .lc { text-transform: none; }
.home .section-head { max-width: none; }

/* buttons: pill, 15px/600 */
.home .btn { font: 600 15px/1 var(--font-body); gap: 10px; white-space: nowrap; }
.home .btn-sm { height: 44px; padding: 0 22px; }
.home .btn-lg { height: 54px; padding: 0 30px; }
.home .btn-gold { color: var(--on-gold); }
.home .btn-gold:hover { background: var(--gold-dark); }
.home .btn-outline { border-width: 1.5px; }
.home .btn-outline:hover { background: var(--surface-hover); color: var(--text); }
.btn-ic { display: inline-flex; }
.btn-ic svg { width: 20px; height: 20px; }
.btn-gold .btn-ic { border: 1.5px solid var(--on-gold); border-radius: 50%; padding: 3px; }
.btn-gold .btn-ic svg { width: 14px; height: 14px; }

/* top bar + nav */
.topbar { height: 36px; display: grid; place-items: center; background: var(--teal-deep); color: var(--on-deep); font: 600 .75rem/1 var(--font-body); letter-spacing: .24em; }
.home .site-header { position: relative; height: var(--header-h); background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--border); }
.home .header-row { width: 100%; margin: 0; padding: 0 var(--pad-r) 0 var(--pad-l); }
.home .brand-text { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; color: var(--teal-ink); }
.home .brand img { height: 40px; }
.home .brand-text small { display: inline; margin: 0 0 0 .4em; font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: var(--gold); }
.home .nav a:not(.btn) { color: var(--text); }
.home .nav a:not(.btn):hover { color: var(--teal-ink); }

/* hero: no overlay on the photo. The text sits on a plain --bg-hero background; the photo is its own panel whose
   edge is softened with a mask on the photo itself, so nothing is ever painted over the faces.
   Mobile: text, then the photo as a banner (fade at its top edge only), then the course cards. */
.home-hero { position: relative; overflow: hidden; background: var(--bg-hero); display: flex; flex-direction: column; padding: 28px var(--pad-r) 0; } /* photo is the last item on mobile: sit flush on the stats strip */
.home-hero-photo {
  order: 2; position: relative; z-index: 0; height: 260px; margin: 28px calc(-1 * var(--pad-r)) 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, var(--mask-solid) 48px); mask-image: linear-gradient(to bottom, transparent 0, var(--mask-solid) 48px);
}
.home-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
:root[data-theme="dark"] .home-hero-img { filter: brightness(.88); } /* dims the photo only; nothing is drawn over the people */
.home-hero-inner { order: 1; position: relative; z-index: 2; }
.pill { display: inline-block; margin: 0 0 16px; padding: 11px 32px; border-radius: 999px; background: var(--teal-deep); color: var(--on-deep); font: 700 1.4rem/1.2 var(--font-body); letter-spacing: .04em; }
.org { margin: 0 0 10px; color: var(--gold); font: 700 .95rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; }
.home-hero h1 { font: 400 2.6rem/.92 var(--font-display); letter-spacing: 0; text-transform: uppercase; color: var(--text); }
.home-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* stats strip */
.home-stats-wrap { background: var(--surface-2); }
.home-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.home-stats li { display: flex; align-items: center; gap: 16px; min-height: 90px; padding-left: 20px; color: var(--text); font: 700 .9rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.home-stats li:nth-child(even) { border-left: 1px solid var(--border); }
.home-stats li:nth-child(n+3) { border-top: 1px solid var(--border); }
.home-stats svg { flex: none; width: 46px; height: 46px; color: var(--gold); }

/* below 980px: hamburger nav (shared CSS switches at 899, the home page at 979) */
@media (max-width: 979px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 60; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 16px; }
}

/* desktop: everything scales with vw, no max-width container */
@media (min-width: 980px) {
  :root { --header-h: 72px; --pad-l: 4.9vw; --pad-r: 3.9vw; }
  .home .header-row { display: grid; grid-template-columns: 1fr auto 1fr; }
  .home .nav { display: contents; }
  .home .nav-links { display: flex; gap: 32px; }
  .home .nav a:not(.btn) { font-size: 1rem; }
  .home .nav-links a { padding: 6px 0; border-bottom: 3px solid transparent; }
  .home .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
  .home .nav-actions { display: flex; gap: 16px; justify-self: end; }
  .home .btn-gold.btn-sm { min-width: 0; }
  .home .btn-outline.btn-sm { min-width: 0; }
  .home .btn-lg.btn-gold { min-width: 258px; }

  .home-hero { justify-content: flex-end; min-height: max(540px, calc(41.6vw - 20px)); padding: 40px 0 7vw 4.9vw; } /* min-height, not height: a fixed height clipped the pill at ~1440px */
  /* photo panel starts just right of the text column (headline max-width is 40vw from a 4.9vw inset); its first 7vw fades in.
     At every desktop width the faces start 13vw+ right of where that fade ends. */
  .home-hero-photo { order: 0; position: absolute; inset: 0 0 0 42vw; height: auto; margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, var(--mask-solid) 7vw); mask-image: linear-gradient(to right, transparent 0, var(--mask-solid) 7vw); }
  .pill { margin-bottom: .9vw; padding: 9px 30px; font-size: 22px; }
  .org { margin-bottom: .7vw; }
  .home-hero h1 { max-width: 40vw; font-size: 4.8vw; }
  .home-ctas { gap: 20px; margin-top: 40px; }

  .home-stats { grid-template-columns: repeat(4, 1fr); height: 6.25vw; min-height: 90px; }
  .home-stats li { min-height: 0; padding-left: 3vw; border: 0; }
  .home-stats li + li { border-left: 1px solid var(--border); }
}

/* FAQ: one centred column. Heading and lede above, accordion at 820px max. */
.home .faq-sec { padding-block: 96px; padding-inline: var(--pad-l); } /* the page's side padding is deliberately lopsided (4.9vw / 3.9vw); a centred column needs it equal */
.faq-head { margin-bottom: 48px; text-align: center; }
.faq-head h2 { color: var(--text); }
.faq-lede { margin: 16px 0 0; color: var(--text-muted); font-size: 1.05rem; }

.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq-item { position: relative; border-bottom: 1px solid var(--border); transition: background .3s; }
.faq-item::before { /* gold bar on the open row */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold); transform: scaleY(0); transition: transform .3s;
}
.faq-item[data-open] { background: var(--surface-2); }
.faq-item[data-open]::before { transform: scaleY(1); }
.faq-item h3 { margin: 0; font: inherit; letter-spacing: 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; min-height: 64px; padding: 24px 20px; background: none; border: 0; color: var(--text); font: 600 20px/1.3 var(--font-body); text-align: left; cursor: pointer; }
.faq-q:focus-visible { outline-offset: -3px; }
.faq-ic { position: relative; flex: none; width: 20px; height: 20px; color: var(--gold); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .3s; }
.faq-ic::after { transform: rotate(90deg); }
.faq-item[data-open] .faq-ic::after { transform: rotate(0deg); } /* plus turns into a minus */
.faq-item[data-open] .faq-ic { transform: rotate(180deg); transition: transform .3s; }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s ease, visibility 0s .35s; }
.faq-item[data-open] .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s ease; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { max-width: 60ch; margin: 0; padding: 0 20px 28px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-item::before, .faq-ic, .faq-ic::before, .faq-ic::after, .faq-a { transition: none !important; }
}
@media (min-width: 980px) {
  .faq-q { padding: 28px 28px 28px 32px; }
  .faq-a p { padding: 0 32px 32px; }
}
@media (max-width: 599px) { .home .faq-sec { padding-block: 64px; } .faq-head { margin-bottom: 32px; } }
