/* ============================================================
   SUB10 COACHING - styles.css
   Palette drawn from the SUB10 logo:
   yellow #FFB800 → orange #FF6B00 on near-black
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-alt: #101012;
  --panel: #16161a;
  --panel-hover: #1c1c21;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f4;
  --text-muted: #a3a3aa;
  --yellow: #ffb800;
  --orange: #ff6b00;
  --grad: linear-gradient(100deg, var(--yellow), var(--orange));
  --radius: 20px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; font-weight: 700; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

/* ---------- Layout ---------- */
.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.container-narrow { width: min(860px, 92vw); }

.section { padding: clamp(5rem, 10vw, 8rem) 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; margin-top: 3.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}

.btn-primary {
  background: var(--grad);
  color: #0b0b0c;
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(255, 107, 0, 0.5);
}

.btn-ghost {
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }
.btn-xl { padding: 1.15rem 2.9rem; font-size: 1.15rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-brand img { border-radius: 9px; }
.nav-brand em { font-style: normal; color: var(--orange); }
.nav-brand .bt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.5rem 4vw 2.2rem;
  background: rgba(11, 11, 12, 0.97);
  backdrop-filter: blur(16px);
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}

.mobile-menu .btn { text-align: center; }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform: scale(1.06);
  animation: heroZoom 12s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11, 11, 12, 0.88) 0%, rgba(11, 11, 12, 0.55) 48%, rgba(11, 11, 12, 0.15) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 3rem) 0 6rem;
  max-width: 700px;
  margin-left: max(calc((100vw - 1180px) / 2), 4vw);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: rgba(245, 245, 244, 0.85);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 2.8rem;
  list-style: none;
  color: rgba(245, 245, 244, 0.65);
  font-size: 0.9rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  z-index: 1;
}

.hero-scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--yellow);
  animation: scrollHint 2s infinite;
}

@keyframes scrollHint {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Manifesto ---------- */
.manifesto {
  padding: clamp(6rem, 12vw, 9rem) 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 107, 0, 0.09), transparent),
    var(--bg);
  text-align: center;
}

.manifesto-lines { margin: 2.5rem 0; }

.manifesto-line {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  padding: 0.55rem 0;
}

.manifesto-tag {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3.5rem 0 4.5rem;
}

.stat {
  padding: 2rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.4);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 0, 0.35);
  background: var(--panel-hover);
}

.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial blockquote {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.testimonial figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

.testimonial figcaption span {
  font-size: 0.85rem;
  color: var(--orange);
}

/* ---------- Why / beliefs ---------- */
.belief-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.belief h3 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ---------- Coaches ---------- */
.coach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.coach-flip .coach-grid { direction: rtl; }
.coach-flip .coach-grid > * { direction: ltr; }

.coach-img { position: relative; }

.coach-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.coach-img-badge {
  position: absolute;
  bottom: -18px;
  right: -12px;
  background: var(--grad);
  color: #0b0b0c;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  padding: 0.9rem 1.4rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.4);
}

.coach-img-badge span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.coach-body p { margin-bottom: 1.1rem; color: var(--text-muted); }
.coach-body p:first-of-type { color: var(--text); }

.coach-quote {
  margin-top: 1.6rem;
  padding-left: 1.2rem;
  border-left: 3px solid;
  border-image: var(--grad) 1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.5;
}

/* ---------- Includes ---------- */
.include-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.include { position: relative; padding-top: 2.4rem; }

.include-num {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(255, 184, 0, 0.5);
  letter-spacing: 0.1em;
}

.include h3 { font-size: 1.08rem; }
.include p { font-size: 0.92rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin-top: 3rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.8rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.4);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #0b0b0c;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Community ---------- */
.community {
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(255, 184, 0, 0.07), transparent),
    var(--bg);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open { border-color: rgba(255, 107, 0, 0.4); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: var(--orange);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-a > p {
  overflow: hidden;
  color: var(--text-muted);
  padding: 0 1.5rem;
  transition: padding 0.4s var(--ease);
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding: 0 1.5rem 1.4rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: clamp(6rem, 13vw, 10rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 75% 60% at 50% 110%, rgba(255, 107, 0, 0.18), transparent),
    var(--bg);
}

.final-cta h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }

.final-cta > .container > p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 1.5rem auto 2.5rem;
}

.cta-small {
  margin-top: 2.5rem !important;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem !important;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand img { border-radius: 12px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 280px; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--yellow); }

.footer-meta { color: var(--text-muted); font-size: 0.85rem; }
.footer-meta p + p { margin-top: 0.4rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.45s; }

/* Stagger grids */
.belief-grid .reveal:nth-child(2), .include-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2), .community-grid .reveal:nth-child(2),
.testimonials .reveal:nth-child(2) { transition-delay: 0.12s; }
.belief-grid .reveal:nth-child(3), .include-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3), .community-grid .reveal:nth-child(3),
.testimonials .reveal:nth-child(3) { transition-delay: 0.24s; }
.belief-grid .reveal:nth-child(4), .include-grid .reveal:nth-child(4),
.steps .reveal:nth-child(4), .community-grid .reveal:nth-child(4) { transition-delay: 0.36s; }
.steps .reveal:nth-child(5) { transition-delay: 0.48s; }
.include-grid .reveal:nth-child(6) { transition-delay: 0.12s; }
.include-grid .reveal:nth-child(7) { transition-delay: 0.24s; }
.include-grid .reveal:nth-child(8) { transition-delay: 0.36s; }

.manifesto-line:nth-child(2) { transition-delay: 0.15s; }
.manifesto-line:nth-child(3) { transition-delay: 0.3s; }
.manifesto-line:nth-child(4) { transition-delay: 0.45s; }
.manifesto-line:nth-child(5) { transition-delay: 0.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .belief-grid, .include-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav { background: rgba(11, 11, 12, 0.82); backdrop-filter: blur(16px); }

  .hero-content { margin-left: 4vw; padding-right: 4vw; }

  .hero-overlay {
    background:
      linear-gradient(to right, rgba(11, 11, 12, 0.82), rgba(11, 11, 12, 0.55)),
      linear-gradient(to top, var(--bg) 0%, transparent 32%);
  }

  .coach-grid { grid-template-columns: 1fr; }
  .coach-img { max-width: 440px; }
  .coach-img-badge { right: 12px; }

  .community-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .belief-grid, .include-grid, .steps, .stats { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .hero-scroll { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  .hero-scroll span { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
