/* ============================================================
   SAVI Prep — shared styles
   Brand kit: Black / White base, Gold / Teal / Coral accents.
   Type: Poppins (display) + Inter (body).
   Each landing page sets a theme class on <body>
   (theme-academy / theme-club / theme-prep) to swap the accent.
   ============================================================ */

:root {
  /* Primary brand */
  --black: #000000;
  --white: #ffffff;
  --ink: #000000;          /* text / dark surfaces */
  --paper: #f6f6f6;        /* light section background */
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --shadow-grey: #bbbbbb;  /* brand drop-shadow grey */

  /* Secondary brand accents */
  --gold:  #F4A850;
  --teal:  #4FC7C0;
  --coral: #F55B73;

  /* active accent (home default = gold) */
  --accent: var(--gold);
  --accent-ink: #ffffff;   /* text sitting on the accent */

  /* pillar colors */
  --academy: var(--gold);
  --club:    var(--teal);
  --prep:    var(--coral);

  --radius: 14px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.16);
  --wrap: 1140px;

  --font-display: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body.theme-academy { --accent: var(--academy); }
body.theme-club    { --accent: var(--club); }
body.theme-prep    { --accent: var(--prep); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
h3 { font-size: 1.4rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 600;
  font-size: .78rem;
  color: var(--accent);
  margin: 0 0 .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost.on-dark { color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  color: #000;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

/* Brand: real logo image with a styled text lockup as fallback */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-fallback { display: none; align-items: center; gap: .55rem; }  /* shown by JS only if logo image fails */
.brand-mark { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: .34em; color: #fff; padding-left: .12em; }
.brand-tag {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: .72rem; color: #fff;
  background: var(--accent); padding: .18em .55em; border-radius: 4px; line-height: 1;
}
.site-header .brand-mark { color: #000; }   /* fallback text is dark on white header */
.site-footer .brand-mark { color: #fff; }   /* footer stays on black */

.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a { color: #333; text-decoration: none; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.site-nav a:hover { color: #000; }
.site-nav .btn-ghost { color: #000; padding: .5rem 1.15rem; font-size: .82rem; }
.nav-toggle { display: none; background: none; border: 0; color: #000; font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--black);
}
/* Drop a photo at the filename below (images/hero-*.jpg) and it appears
   behind a dark overlay so the text stays readable. Until then: solid black. */
.hero.has-image {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.72) 100%),
    var(--hero-img, none);
  background-size: cover; background-position: center;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(3.6rem, 9vw, 6.5rem) 0; max-width: 780px; }
.hero p.lead { font-size: 1.2rem; color: #e2e2e2; max-width: 620px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

/* thin brand accent rule under hero */
.hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; z-index: 2;
  background: linear-gradient(90deg, var(--gold) 0 33%, var(--teal) 33% 66%, var(--coral) 66% 100%);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Pillars (home) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-top { padding: 1.7rem 1.6rem 1.3rem; color: #fff; }
.pillar.academy .pillar-top { background: var(--gold); }
.pillar.club .pillar-top    { background: var(--teal); }
.pillar.prep .pillar-top    { background: var(--coral); }
.pillar-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 600; opacity: .95; }
.pillar-top h3 { font-size: 1.9rem; margin: .25rem 0 0; text-transform: uppercase; font-weight: 700; }
.pillar-body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.pillar-body p { color: var(--muted); }
.pillar-link { margin-top: auto; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--ink); }
.pillar-link::after { content: " →"; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow);
}
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before {
  content: "Most Popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .12em; font-size: .68rem; font-weight: 600; padding: .32rem .85rem; border-radius: 999px;
}
.plan-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; font-weight: 600; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 2.9rem; line-height: 1; margin: .5rem 0 .1rem; }
.plan-price span { font-family: var(--font-body); font-size: .92rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-desc { color: var(--muted); min-height: 3rem; }
.price-sub { font-family: var(--font-body); color: var(--ink); font-size: 1rem; font-weight: 500; margin: -.15rem 0 .7rem; }
.features { list-style: none; padding: 0; margin: 1.1rem 0 1.6rem; display: grid; gap: .6rem; }
.features li { position: relative; padding-left: 1.7rem; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.plan .btn { margin-top: auto; }
.note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* feature-list links (e.g. the Training community) */
.features a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; font-weight: 500; }
.features a:hover { color: var(--accent); }

/* ESA scholarship badge (Prep) */
.esa-badge {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .07em; font-size: .72rem; font-weight: 600; color: #0a7d55;
  background: #e7f7f0; border: 1px solid #b8e6d3; padding: .35rem .7rem;
  border-radius: 999px; margin: .3rem 0 .7rem;
}

/* Club season add-ons */
.club-extras { margin-top: 2.8rem; }
.addon-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 820px; margin: 0 auto; }
.addon { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.addon-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; font-size: 1.05rem; }
.addon-desc { color: var(--muted); font-size: .9rem; margin: .35rem 0 .7rem; }
.addon-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.addon-price s { color: var(--muted); font-weight: 500; font-size: 1rem; margin-right: .4rem; }
.addon-price .unit { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); }
.addon-price .off { display: inline-block; margin-left: .5rem; font-family: var(--font-body); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); padding: .18rem .55rem; border-radius: 999px; vertical-align: middle; }
.community-link { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); text-decoration: none; font-size: .9rem; }
.community-link:hover { text-decoration: underline; }

/* ---------- Prep: quick facts, pillars, schedule, calendar, stats ---------- */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fact { padding: 1.2rem 1.15rem; border-right: 1px solid rgba(255,255,255,.12); }
.fact:last-child { border-right: 0; }
.fact .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .13em; font-size: .66rem; color: var(--accent); }
.fact .v { font-size: .92rem; margin-top: .35rem; color: #ededed; }

.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.triad .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow); }
.triad .card .tag { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; color: var(--accent); }
.triad .card h3 { margin: .25rem 0 .5rem; }
.triad .card p { color: var(--muted); margin: 0; }

.sched { overflow-x: auto; }
.sched table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sched th, .sched td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sched thead th { background: var(--ink); color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; }
.sched tbody th { font-family: var(--font-body); font-weight: 600; color: var(--muted); white-space: nowrap; font-size: .85rem; }
.sched td strong { font-weight: 600; }
.sched tr:last-child td, .sched tr:last-child th { border-bottom: 0; }
.friday-note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-top: 1.2rem; box-shadow: var(--shadow); }
.friday-note strong { color: var(--ink); }

.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-head { background: var(--accent); color: #fff; padding: 1.1rem 1.5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.cal-head span { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .82rem; opacity: .9; }
.cal ul { list-style: none; margin: 0; padding: 0; }
.cal li { display: flex; justify-content: space-between; gap: 1.2rem; padding: .85rem 1.5rem; border-bottom: 1px solid var(--line); }
.cal li:last-child { border-bottom: 0; }
.cal li.hl { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cal .date { font-family: var(--font-display); font-weight: 600; color: var(--ink); white-space: nowrap; }
.cal .evt { color: var(--muted); text-align: right; }
.cal-foot { padding: .9rem 1.5rem; font-size: .82rem; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.2rem; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .84rem; margin-top: .45rem; }

.cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }

/* includes list card */
.include-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.include-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.6rem; margin-top: 1rem; padding-left: 0; }
.include-grid li { position: relative; padding-left: 1.9rem; list-style: none; }
.include-grid li::before { content:"✓"; position:absolute; left:0; top:0; color: var(--accent); font-weight:800; font-size:1.05rem; }

/* ---------- Community feature (Academy) ---------- */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; }
.community-media img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.community-copy h3 { margin-bottom: .8rem; }
.community-copy .features { margin-top: 0; }
.community-price { margin-top: 1.4rem; font-family: var(--font-body); color: var(--muted); font-size: .95rem; }
.community-price strong { color: var(--ink); }
.community-journey { margin-top: 2.4rem; text-align: center; }
.community-journey img { width: 100%; max-width: 980px; border-radius: var(--radius); box-shadow: var(--shadow); display: inline-block; }
.community-journey figcaption { color: var(--muted); font-size: .9rem; margin-top: .8rem; }

/* ---------- CTA band (email + call) ---------- */
.cta-band { background: var(--black); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: center; padding: clamp(2.6rem,6vw,4rem) 22px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9c9c9; }
.signup-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 200px; min-width: 0; padding: .85rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06); color: #fff; font-size: 1rem;
}
.signup-form input::placeholder { color: #a9a9a9; }
.signup-form input:focus { outline: 2px solid var(--accent); }
.form-msg { margin-top: .8rem; font-size: .95rem; color: var(--teal); min-height: 1.2rem; }
.or-book { margin-top: 1rem; }
.or-book a { color: #fff; text-decoration: underline; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #a9a9a9; padding: 2.6rem 0; border-top: 1px solid rgba(255,255,255,.10); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.site-footer a { color: #d0d0d0; text-decoration: none; margin-left: 1.3rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.site-footer a:hover { color: #fff; }
.site-footer .social { display: inline-flex; align-items: center; }
.site-footer .social svg { width: 22px; height: 22px; display: block; }
.site-footer .social:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: #111; color: #fff; padding: .9rem 1.3rem; border-radius: 12px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100;
  font-size: .95rem; max-width: 90vw; border-left: 4px solid var(--accent);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars, .pricing, .community-grid, .addon-row, .triad, .cal-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .include-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  }
  .site-nav.open { max-height: 360px; padding: .8rem 22px 1.4rem; }
  .site-nav a { padding: .7rem 0; width: 100%; }
}
