/* Spartan Academy Coaching — dark + gold */
:root {
  --bg: #0b0b0d;
  --surface: #131316;
  --surface-2: #18181d;
  --line: rgba(212, 169, 79, 0.16);
  --gold: #d4a94f;
  --gold-bright: #ffce66;
  --gold-deep: #9a7833;
  --text: #f0eadd;
  --muted: #9b948a;
  --radius: 10px;
  --display: "Cinzel", serif;
  --body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 20px; }
h3 { font-size: 1.12rem; letter-spacing: 0.04em; }
.gold { color: var(--gold-bright); }

.kicker {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1a1408;
  padding: 15px 30px;
  box-shadow: 0 4px 24px rgba(212, 169, 79, 0.25);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(212, 169, 79, 0.4); }
.btn-gold:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.btn-lg { padding: 18px 42px; font-size: 1.02rem; }
.btn-nav { padding: 11px 20px; font-size: 0.8rem; box-shadow: none; }
.cta-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 52px; width: auto; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 70% 20%, rgba(212, 169, 79, 0.07), transparent 60%),
    var(--bg);
}
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 58%;
  z-index: 0;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.75) contrast(1.05) brightness(0.9);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 0 auto; padding: 140px 24px 90px;
  width: 100%;
}
.hero-inner h1 { max-width: 13ch; text-shadow: 0 2px 30px rgba(11,11,13,0.8); }
.hero-sub {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--text);
  text-shadow: 0 1px 16px rgba(11,11,13,0.9);
}
.hero-cta { margin-top: 36px; }

/* Pain */
.pain { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pain h2 { text-align: center; margin-bottom: 48px; }
.pain-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.pain-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.pain-card .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 16px; }
.pain-card h3 { margin-bottom: 10px; color: var(--gold-bright); }
.pain-card p { font-size: 0.94rem; color: var(--muted); }

/* System */
.system { text-align: center; }
.system .kicker { text-align: center; }
.pillars {
  display: grid; gap: 24px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  text-align: left;
}
.pillar {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
  background: linear-gradient(180deg, rgba(212,169,79,0.045), transparent 40%);
}
.pillar-num {
  font-family: var(--display); font-weight: 900;
  font-size: 2.2rem; color: var(--gold);
  opacity: 0.9; margin-bottom: 14px; line-height: 1;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.95rem; color: var(--muted); }

/* Coach */
.coach { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coach-grid {
  display: grid; gap: 48px;
  grid-template-columns: minmax(260px, 400px) 1fr;
  align-items: center;
}
.coach-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.coach-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,13,0.55), transparent 45%);
}
.coach-photo img { filter: saturate(0.8) contrast(1.04); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.coach-copy p { margin-bottom: 16px; color: var(--muted); max-width: 52ch; }
.coach-copy p.kicker { color: var(--gold); margin-bottom: 16px; }
.ig-link {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold-bright); text-decoration: none;
  font-weight: 600; letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255, 206, 102, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.ig-link:hover { border-color: var(--gold-bright); }
.icon-sm { width: 19px; height: 19px; }

/* How */
.how h2 { text-align: center; margin-bottom: 48px; }
.steps {
  list-style: none;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: var(--surface);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.94rem; color: var(--muted); }

/* Final CTA */
.final {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(212, 169, 79, 0.1), transparent 65%),
    var(--bg);
  padding: 120px 0;
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-mark { height: 110px; width: auto; opacity: 0.9; margin-bottom: 28px; }
.final h2 { margin-bottom: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--surface); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-logo { height: 64px; width: auto; opacity: 0.85; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-size: 0.88rem;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-fine { font-size: 0.78rem; color: #5f5a52; }

/* Quiz overlay */
.quiz {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.quiz[hidden] { display: none; }
.quiz-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.quiz-logo { height: 48px; width: auto; }
.quiz-close {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 40px; height: 40px; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.quiz-close:hover { color: var(--text); border-color: var(--gold); }
.quiz-close svg { width: 18px; height: 18px; }
.quiz-progress { height: 3px; background: var(--surface-2); }
.quiz-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.35s ease;
}
.quiz-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px 48px;
  overflow-y: auto;
}
.q-step { width: 100%; max-width: 560px; animation: qIn 0.3s ease; }
@keyframes qIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q-count {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.q-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.2; margin-bottom: 28px;
}
.q-options { display: grid; gap: 12px; }
.q-opt {
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--body); font-size: 1.02rem; font-weight: 500;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.q-opt:hover { border-color: var(--gold); background: #1d1c20; }
.q-opt:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.q-opt:active { transform: scale(0.99); }
.q-back {
  margin-top: 26px;
  background: none; border: none; color: var(--muted);
  font-family: var(--body); font-size: 0.88rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.q-back:hover { color: var(--text); }

/* Contact step */
.q-field { margin-bottom: 16px; }
.q-field label {
  display: block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.q-field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--body); font-size: 1.05rem;
  padding: 15px 16px;
  transition: border-color 0.12s ease;
}
.q-field input:focus { outline: none; border-color: var(--gold); }
.q-field input.invalid { border-color: #c0564f; }
.q-error { color: #e08079; font-size: 0.85rem; margin: 4px 0 14px; min-height: 1.2em; }
.q-submit { width: 100%; margin-top: 6px; }

/* Booking step */
.q-booked { text-align: center; }
.q-booked .q-title { margin-bottom: 14px; }
.q-booked p { color: var(--muted); max-width: 44ch; margin: 0 auto 26px; }
#booking-calendar {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 44px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--surface);
}

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

/* Mobile */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { min-height: 100svh; }
  .hero-photo {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-photo img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 62%, transparent 96%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 62%, transparent 96%);
    object-position: center 20%;
    opacity: 0.5;
  }
  .hero-inner { padding: 120px 24px 72px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; }
  .hero-inner h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-sub { font-size: 1rem; }
  .btn-lg { width: 100%; text-align: center; }
  .coach-grid { grid-template-columns: 1fr; gap: 32px; }
  .coach-photo { max-width: 420px; }
  .nav-logo { height: 44px; }
  .final-mark { height: 84px; }
}
