/* ============================================================
   Fundamentally Astute Athletics — faatraining.co.za
   Design system. FAA branding: orange #F2621F on warm black.
   ============================================================ */

:root {
  /* Brand */
  --orange:   #F2621F;
  --orange-2: #FF8A3D;
  --brand-gradient: linear-gradient(100deg, #F2621F 0%, #FF8A3D 100%);

  /* Surfaces & text (dark, warm — matches the app) */
  --canvas:  #100C0A;   /* page */
  --surface: #191411;   /* cards */
  --muted:   #15100D;   /* alt sections */
  --ink:     #F7F2EC;   /* headings, warm white */
  --body:    #E4DBD2;   /* body text */
  --subtle:  #A79C91;   /* secondary text */
  --hairline:#2C251F;   /* borders */

  /* System */
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 2px 10px rgb(0 0 0 / .35);
  --shadow:    0 14px 36px rgb(0 0 0 / .5);
  --shadow-lift: 0 22px 60px rgb(0 0 0 / .6);
  --glow: 0 10px 40px rgb(242 98 31 / .35);
  --container: 1140px;
  --gutter: 20px;

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1rem; }
::selection { background: rgb(242 98 31 / .3); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--muted { background: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-640 { max-width: 640px; }
.maxw-760 { max-width: 760px; }

.grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .9rem;
}
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--subtle); }
.muted { color: var(--subtle); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--glow); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--orange); color: var(--ink); background: rgb(242 98 31 / .06); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(16 12 10 / .78); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
/* Header bar runs a touch wider than the body column, so the logo sits further
   left and the nav/CTA cluster has room to breathe. */
.site-header .container { max-width: 1240px; }
.nav { display: flex; align-items: center; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: none; gap: 1.6rem; align-items: center; margin-right: 1.9rem; }
.nav-links a { color: var(--body); font-weight: 600; font-size: 1rem; }
.nav-links a:hover { color: var(--orange); text-decoration: none; }
.nav-links a.active { color: var(--orange); }
.nav-cta { display: none; }
.nav-cta-group { display: none; align-items: center; gap: 14px; }
.nav-cta-group .btn { padding: .5rem 1rem; font-size: .9rem; white-space: nowrap; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
@media (min-width: 1200px) {
  .nav-links, .nav-cta, .nav-cta-group { display: flex; }
  .nav-toggle { display: none; }
}
.mobile-menu { display: none; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .9rem var(--gutter); color: var(--body); font-weight: 600; border-top: 1px solid var(--hairline); }
.mobile-menu a:first-child { border-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 80%;
  background: radial-gradient(60% 60% at 70% 15%, rgb(242 98 31 / .22), transparent 70%),
              radial-gradient(50% 50% at 15% 10%, rgb(255 138 61 / .12), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-phones { display: flex; justify-content: center; gap: 16px; }
.hero-phones img { width: min(46%, 230px); border-radius: 26px; box-shadow: var(--shadow-lift); }
.hero-phones img:nth-child(2) { transform: translateY(26px); }

/* Full-bleed hero image with text over it */
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); height: 100%;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--subtle); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgb(242 98 31 / .14); color: var(--orange); margin-bottom: 1rem; font-size: 1.3rem;
}

/* Programme pills */
.prog-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px;
  padding: .6rem 1.1rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); font-size: .95rem;
}

/* Screenshot strip */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.screens img { border-radius: 22px; box-shadow: var(--shadow); scroll-snap-align: start; border: 1px solid var(--hairline); }

/* Steps */
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--brand-gradient); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; }

/* CTA band */
.cta-band { background: var(--brand-gradient); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--glow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .92); }
.cta-band .btn-ghost { background: #fff; border-color: #fff; color: #15100D; }
.cta-band .btn-ghost:hover { background: #fff; color: #15100D; }

/* ---------- Footer ---------- */
.site-footer { background: #0A0706; color: #9a9088; padding: 3rem 0 2rem; border-top: 1px solid var(--hairline); }
.site-footer a { color: #9a9088; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-col h4 { color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .3rem 0; font-size: .95rem; }
.footer-bottom { border-top: 1px solid var(--hairline); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: #7d746c; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 1rem; position: relative; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { font-weight: 600; color: var(--ink); font-size: .95rem; display: block; margin-bottom: .35rem; }
.form input, .form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--hairline); border-radius: 12px;
  font: inherit; color: var(--body); background: var(--surface);
}
.form input:focus, .form textarea:focus { outline: 2px solid rgb(242 98 31 / .45); border-color: var(--orange); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Explainer components ---------- */

/* Split feature rows (text + visual) */
.split { display: grid; gap: 40px; align-items: center; }
.split + .split { margin-top: clamp(3rem, 7vw, 5rem); }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--rev .split-media { order: -1; } }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split-text .eyebrow { margin-bottom: .6rem; }

/* Placeholder visual blocks (for imagery not yet shot) */
.ph {
  display: grid; place-items: center; text-align: center; color: #fff; font-weight: 600;
  background: var(--brand-gradient); border-radius: var(--radius-lg); padding: 2rem; min-height: 230px;
  box-shadow: var(--shadow); letter-spacing: .01em;
}
.ph small { display: block; opacity: .85; font-weight: 500; margin-top: .35rem; font-size: .92rem; }
.ph--tall { min-height: 340px; }
.ph--muted { background: var(--muted); color: var(--subtle); border: 1px dashed var(--hairline); box-shadow: none; }

/* Figures (male/female/neutral brand characters) */
.figure-fan { display: flex; justify-content: center; align-items: flex-end; gap: 4px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.5rem; }
.figure-fan img { width: clamp(90px, 28vw, 150px); filter: drop-shadow(0 12px 22px rgb(0 0 0 / .5)); }

/* Values */
.values { display: grid; gap: 16px; max-width: 920px; margin-inline: auto; }
@media (min-width: 720px) { .values { grid-template-columns: 1fr 1fr; } }
.value { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.value .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgb(242 98 31 / .18); color: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 2px; }
.value h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.value p { margin: 0; color: var(--subtle); font-size: .95rem; }

/* Team */
.team-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { text-align: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.8rem 1.4rem; box-shadow: var(--shadow-sm); }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem; background: var(--brand-gradient); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; }
.team-card h3 { margin-bottom: .25rem; }
.team-card p { margin: 0; }

/* Checklist (what's in the app) */
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticklist li { display: flex; gap: 12px; align-items: flex-start; }
.ticklist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgb(242 98 31 / .16); color: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: .72rem; margin-top: 2px; }

/* Programme category cards */
.prog-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); height: 100%; }
.prog-card h3 { margin-bottom: .4rem; }
.prog-card > p { color: var(--subtle); margin-bottom: 1rem; }
.prog-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.prog-card .tag { font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: .3rem .7rem; }

/* Step eyebrow badge */
.step-badge { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; color: var(--orange); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem; }
.step-badge span { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; font-size: .9rem; }

/* Stat row */
.stat-row { display: grid; gap: 24px; text-align: center; }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; margin-bottom: .3rem; }
.stat p { margin: 0; color: var(--subtle); }

/* ---------- Legal / policy pages ---------- */
.legal .legal-head, .legal .legal-body { max-width: 760px; margin-inline: auto; }
.legal-head h1 { margin-top: .4rem; }
.legal-meta {
  display: grid; gap: 1rem; margin: 2rem 0 0; padding: 1.25rem 1.4rem;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: .92rem;
}
@media (min-width: 560px) { .legal-meta { grid-template-columns: 1fr 1fr; } }
.legal-meta dt { font-weight: 700; color: var(--subtle); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-meta dd { margin: .2rem 0 0; color: var(--ink); }
.legal-body { margin-top: 2.5rem; color: var(--body); font-size: .98rem; line-height: 1.7; }
.legal-body h2 { font-size: 1.3rem; margin: 2.4rem 0 .7rem; scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 1rem; }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-body li { margin-bottom: .45rem; }
.legal-body li::marker { color: var(--orange); }
.legal-body strong { color: var(--ink); font-weight: 600; }
