/* ==========================================================================
   AP Academy — styles
   Want to change colors? Edit the variables right below and the whole
   site updates. --accent is the "brand" color used on buttons/highlights.
   ========================================================================== */

:root {
  --bg: #050505;              /* black */
  --bg-alt: #0b0b0d;
  --surface: #111114;
  --line: #26262b;            /* dark silver */
  --text: #f5f6f8;            /* white */
  --text-dim: #a8adb6;        /* silver */
  --accent: #ffffff;          /* white accent (labels, highlights, borders) */
  --accent-soft: rgba(255, 255, 255, 0.09);
  --btn: #8fd6ff;             /* ice blue — clickable buttons only */
  --on-btn: #06121c;          /* dark text on ice-blue buttons */
  --on-accent: #0a0a0c;       /* dark text on white accents */
  --radius: 16px;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}
.container--narrow { width: min(760px, 92%); }

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.6rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.center { text-align: center; }
.accent { color: var(--accent); }
.section__sub { color: var(--text-dim); max-width: 560px; margin: 0.25rem auto 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn--primary {
  background: var(--btn);
  color: var(--on-btn);
  box-shadow: 0 8px 24px rgba(143, 214, 255, 0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(143, 214, 255, 0.4); }
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--btn); color: var(--btn); transform: translateY(-2px); }

/* ---------- navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.nav__logo {
  display: grid;
  place-items: center;
  height: 46px;
}
.nav__logo img { height: 46px; width: auto; display: block; border-radius: 8px; }
.nav__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__name--solo { font-size: 1.5rem; justify-content: center; }
.nav__name small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 3px;
}
.nav__links { display: flex; gap: 1.4rem; }
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }
.nav__burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 9rem) 0 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,0.015) 46px 48px);
}
.hero__glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05), transparent 65%);
  pointer-events: none;
}
.hero__title {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  margin: 0.5rem 0 1.2rem;
}
.hero__sub {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--text-dim);
  font-size: 1.1rem;
}
.hero__sub em { color: var(--text); font-style: normal; font-weight: 600; }
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}
.stat { background: var(--bg-alt); padding: 1.4rem 1rem; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}
.stat__label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* ---------- coach ---------- */
.coach {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.coach__photo { position: relative; }
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-dim);
  text-align: center;
  font-weight: 600;
}
.photo-placeholder svg { width: 72px; height: 72px; opacity: 0.5; }
.photo-placeholder small { font-weight: 400; opacity: 0.7; }
.coach__photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%; /* keep the head in frame on the tall photo */
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.coach__badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
}
.coach__bio p { color: var(--text-dim); margin-bottom: 1rem; }
.coach__bio h2 { margin-bottom: 1rem; }
.coach__creds {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.65rem;
}
.coach__creds li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--text);
  font-weight: 500;
}
.coach__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 1.4rem; margin-top: 2.8rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- pricing ---------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 12px 48px rgba(255, 255, 255, 0.1);
}
.price-card__tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}
.price-card__price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text);
  margin: 0.6rem 0 1.2rem;
}
.price-card__price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-left: 0.4rem;
}
.price-card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  flex: 1;
}
.price-card li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-dim);
  font-size: 0.93rem;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ---------- testimonials ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.quote__stars { color: var(--accent); letter-spacing: 0.2em; font-size: 0.9rem; }
.quote blockquote { color: var(--text); font-size: 0.96rem; flex: 1; }
.quote figcaption { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }

/* ---------- booking ---------- */
.booking {
  margin-top: 2.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem 2.4rem;
}
.booking__step { margin-bottom: 2.6rem; }
.booking__step-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.booking__step-num {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.booking__step-hint {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-left: auto;
}
.booking__selected {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 14px;
  margin-bottom: 2.2rem;
}
.booking__selected strong { font-size: 1.05rem; margin-right: 0.6rem; }
.booking__selected span { color: var(--text-dim); font-size: 0.9rem; }
.booking__change {
  margin-left: auto;
  color: var(--btn);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.booking__change:hover { text-decoration: underline; }
.booking__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.booking__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 86px;
  padding: 0.7rem 1rem;
  background: var(--bg-alt);
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.booking__chip:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.booking__chip strong { font-weight: 700; }
.booking__chip span { font-size: 0.75rem; color: var(--text-dim); }
.booking__chip.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.booking__chip.is-booked {
  opacity: 0.38;
  cursor: not-allowed;
}
.booking__chip.is-booked strong { text-decoration: line-through; }
.booking__hint { color: var(--text-dim); font-size: 0.92rem; }
.booking__chip.is-marked { border-color: var(--btn); }
.booking__picked {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.booking__picked-title {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.booking__picked-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--accent-soft);
  border: 2px solid var(--btn);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.booking__picked-chip span { color: var(--btn); font-weight: 800; }
.booking__picked-chip:hover { border-color: #ff8d7e; }
.booking__picked-chip:hover span { color: #ff8d7e; }
.booking__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.4rem;
}
.booking__field { display: flex; flex-direction: column; gap: 0.35rem; }
.booking__field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.booking__field input,
.booking__field select {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color-scheme: dark;
}
.booking__field input:focus,
.booking__field select:focus {
  outline: none;
  border-color: var(--accent);
}
.booking__submit { width: 100%; }
.booking__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.booking__note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 0.9rem;
}
.booking__status {
  text-align: center;
  color: #ffb0a6;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.6rem;
  min-height: 1.2em;
}
.booking__status--ok { color: #9fe8b9; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.4rem; display: grid; gap: 0.8rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--text-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 70% 100% at 50% 120%, rgba(255, 255, 255, 0.08), transparent),
    var(--bg-alt);
  border-block: 1px solid var(--line);
  padding: 5rem 0;
  text-align: center;
}
.cta-band p { color: var(--text-dim); margin: 0.6rem 0 1.8rem; }

/* ---------- footer ---------- */
.footer { padding: 4rem 0 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer__blurb { color: var(--text-dim); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer__list { list-style: none; display: grid; gap: 0.55rem; }
.footer__list a, .footer__list li { color: var(--text); text-decoration: none; font-size: 0.92rem; }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ---------- scroll reveal ----------
   Only hides elements when JS is confirmed running (html.js),
   so content is always visible even if scripts fail to load. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .coach { grid-template-columns: 1fr; gap: 3rem; }
  .coach__photo { max-width: 380px; margin-inline: auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.2rem 5%;
    gap: 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
  .booking { padding: 1.8rem 1.2rem; }
  .booking__types { grid-template-columns: 1fr; }
  .booking__grid { grid-template-columns: 1fr; }
  .booking__chip { min-width: 74px; padding: 0.6rem 0.8rem; }
}
