/* Fourth Quarter Fit — site styles
   Brand source: 03 Brand/Brand Files (BRAND-GUIDELINES.md, brand-tokens.css) */

@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --navy: #172A3A;
  --navy-2: #1E3549;
  --navy-3: #0F1E2B;
  --orange: #E87524;
  --warm: #F7F5EC;
  --warm-2: #EDE9DA;
  --white: #FFFFFF;
  --ink-soft: #3E5163;
  --line: rgba(23, 42, 58, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--warm);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 0.98;
  margin: 0 0 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(48px, 9vw, 112px); }
h2 { font-size: clamp(36px, 5.5vw, 64px); }
h3 { font-size: clamp(26px, 3vw, 34px); }
h4 { font-size: 22px; }

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

.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: var(--navy); padding: 10px 16px; font-weight: 600; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }

/* Eyebrow with the orange "Q dash" motif */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 6px; background: var(--orange);
  transform: skewX(-28deg); flex: none;
}
.dark .eyebrow { color: var(--orange); }

.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 40em; }
.muted { color: var(--ink-soft); }
.dark .muted { color: rgba(255,255,255,0.74); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { font-size: 18px; line-height: 1; }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: #F08435; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.dark .btn-ghost { color: var(--white); }
.btn-ghost:hover { background: rgba(127,127,127,0.12); }
.btn[aria-disabled="true"] { background: var(--warm-2); color: var(--ink-soft); cursor: default; transform: none; }
.dark .btn[aria-disabled="true"] { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.text-link:hover { color: var(--orange); }
.dark .text-link:hover { color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-links .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.menu-btn {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy);
}
.menu-btn span { display: block; width: 26px; height: 3px; background: currentColor; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .brand img { height: 38px; }
  .nav-links {
    position: fixed; inset: 76px 0 0 0; background: var(--navy); color: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
    overflow-y: auto;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--line-dark); }
  .nav-links li:last-child { border: 0; padding-top: 24px; }
  .nav-links a:not(.btn) { display: block; font-family: var(--font-head); font-size: 34px; letter-spacing: 0.01em; padding: 16px 0; border: 0; }
  .nav-links a[aria-current="page"] { color: var(--orange); }
  .nav-links .btn { width: 100%; min-height: 54px; }
  body.menu-open { overflow: hidden; }
}

/* Sections */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-sm { padding: clamp(48px, 7vw, 80px) 0; }
.dark { background: var(--navy); color: var(--white); }
.tint { background: var(--warm-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Hero */
.hero {
  background: var(--navy); color: var(--white); overflow: hidden;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 9vw, 110px);
}
.hero::before {
  content: ""; position: absolute; right: -6%; bottom: -12%;
  width: min(760px, 95vw); aspect-ratio: 500 / 470;
  background: url("../assets/court.svg") no-repeat center / contain;
  opacity: 0.09; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(90deg, var(--orange) 0 25%, transparent 25%);
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 11ch; margin-bottom: 0.3em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: rgba(255,255,255,0.86); margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.78); }
.hero-meta span::before { content: "● "; color: var(--orange); }

.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(46px, 7.5vw, 92px); max-width: 14ch; }

/* Scoreboard strip */
.scoreboard { background: var(--navy-3); color: var(--white); border-top: 1px solid var(--line-dark); }
.scoreboard ol { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.scoreboard li { padding: 22px var(--gutter); border-right: 1px solid var(--line-dark); display: flex; align-items: baseline; gap: 14px; }
.scoreboard li:last-child { border-right: 0; }
.scoreboard b { font-family: var(--font-head); font-size: 34px; line-height: 1; }
.scoreboard li:last-child b { color: var(--orange); }
.scoreboard span { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.8); }
@media (max-width: 760px) {
  .scoreboard ol { grid-template-columns: repeat(2, 1fr); }
  .scoreboard li:nth-child(2) { border-right: 0; }
  .scoreboard li:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}

/* Feature blocks (three promises) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.feature { border-top: 3px solid var(--navy); padding-top: 26px; }
.feature .num { font-family: var(--font-head); font-size: 15px; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 14px; display: block; }
.feature h3 { margin-bottom: 14px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Graphic panel (stands in for photography until real class photos exist) */
.panel {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 44px);
}
.panel::before {
  content: ""; position: absolute; inset: 8% -10% -20% 20%;
  background: url("../assets/court.svg") no-repeat center / contain; opacity: 0.13;
}
.panel > * { position: relative; }
.panel .big { font-family: var(--font-head); font-size: clamp(88px, 14vw, 180px); line-height: 0.82; text-transform: uppercase; }
.panel .big .dash { display: inline-block; width: 0.55em; height: 0.13em; background: var(--orange); transform: skewX(-28deg) translateY(-0.12em); margin-left: 0.08em; }
.panel .cap { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 18px; }
.panel.orange { background: var(--orange); color: var(--navy); }
.panel.orange::before { filter: invert(1); opacity: 0.12; }
.panel.orange .cap { color: var(--navy); }
.panel.orange .big .dash { background: var(--navy); }

/* Quarters */
.quarters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.quarter { background: var(--navy-2); padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; min-height: 300px; }
.quarter .q { font-family: var(--font-head); font-size: 72px; line-height: 0.9; }
.quarter .q::after { content: ""; display: block; width: 36px; height: 6px; background: rgba(255,255,255,0.28); transform: skewX(-28deg); margin: 14px 0 22px; }
.quarter.clutch { background: var(--orange); color: var(--navy); }
.quarter.clutch .q::after { background: var(--navy); }
.quarter h3 { font-size: 28px; margin-bottom: 10px; }
.quarter p { font-size: 16px; color: rgba(255,255,255,0.82); margin: 0; }
.quarter.clutch p { color: var(--navy); }
.quarter .time { margin-top: auto; padding-top: 22px; font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.quarters-light .quarter { background: var(--white); color: var(--navy); }
.quarters-light { background: var(--line); }
.quarters-light .quarter p { color: var(--ink-soft); }
.quarters-light .quarter .q::after { background: var(--navy); opacity: .25; }
.quarters-light .quarter.clutch { background: var(--orange); }
.quarters-light .quarter.clutch .q::after { opacity: 1; }
.quarters-light .quarter.clutch p { color: var(--navy); }
@media (max-width: 960px) { .quarters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quarters { grid-template-columns: 1fr; } .quarter { min-height: 0; } }

/* Session cards */
.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.session {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.dark .session { background: var(--navy-2); border-color: var(--line-dark); }
.session-top { background: var(--navy); color: var(--white); padding: 26px 26px 22px; position: relative; overflow: hidden; }
.dark .session-top { background: var(--navy-3); }
.session-top::after { content: ""; position: absolute; right: -30px; top: 50%; width: 120px; height: 18px; background: var(--orange); transform: translateY(-50%) skewX(-28deg); opacity: .9; }
.session-top .day { font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.78); }
.session-top .date { font-family: var(--font-head); font-size: 58px; line-height: 0.95; text-transform: uppercase; }
.session-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.session-body dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.session-body dt { font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); padding-top: 3px; }
.dark .session-body dt { color: rgba(255,255,255,0.66); }
.session-body dd { margin: 0; }
.session-body .btn { margin-top: auto; width: 100%; }
.session-note { font-size: 13px; color: var(--ink-soft); margin: 0; text-align: center; }
.dark .session-note { color: rgba(255,255,255,0.7); }
@media (max-width: 960px) { .sessions { grid-template-columns: 1fr; max-width: 520px; } }

.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--warm-2); color: var(--navy); padding: 3px 8px; border-radius: 2px; margin-left: 6px; vertical-align: 2px; }

/* Coaches */
.coaches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.coach { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.coach-mark { background: var(--navy); color: var(--white); aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 26px; position: relative; overflow: hidden; }
.coach-mark::before { content: ""; position: absolute; inset: -10% -30% -40% 30%; background: url("../assets/court.svg") no-repeat center / contain; opacity: .12; }
.coach-mark .initials { position: relative; font-family: var(--font-head); font-size: 110px; line-height: .8; }
.coach-mark .initials i { display: inline-block; width: 0.5em; height: 0.12em; background: var(--orange); transform: skewX(-28deg); margin-left: 0.06em; }
.coach-body { padding: 28px; }
.coach .role { font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; display: block; }
.coach ul { margin: 0; padding-left: 1.1em; }
.coach li { margin-bottom: 6px; }
.coach li::marker { color: var(--orange); }
@media (max-width: 820px) { .coaches { grid-template-columns: 1fr; } }

/* Checklist / steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid currentColor; padding-top: 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: 44px; line-height: 1; display: block; margin-bottom: 10px; color: var(--orange); }
.steps h4 { margin-bottom: 8px; }
.steps p { font-size: 16px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 20px; height: 5px; background: var(--orange); transform: skewX(-28deg); }

.callout { border-left: 6px solid var(--orange); background: var(--white); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.dark .callout { background: var(--navy-2); }
.callout p:last-child { margin: 0; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-grid > div { background: var(--warm); padding: 28px; }
.info-grid h4 { margin-bottom: 8px; }
.info-grid p { margin: 0; font-size: 16px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 28px); text-transform: uppercase; line-height: 1.1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 28px; font-weight: 400; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 24px; max-width: 46em; }
.faq-group { margin-bottom: 56px; }
.faq-group > h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }

/* CTA band */
.cta-band { background: var(--orange); color: var(--navy); padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -8%; top: -30%; width: min(640px, 90vw); aspect-ratio: 500/470; background: url("../assets/court.svg") no-repeat center / contain; filter: invert(1); opacity: .08; }
.cta-band .wrap { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(44px, 7vw, 92px); margin: 0; max-width: 12ch; }
.cta-band p { max-width: 34em; margin: 16px 0 0; font-size: 18px; }

/* Footer */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,0.82); padding: 72px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-grid h4 { color: var(--white); font-size: 18px; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--orange); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.62); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utility */
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: clamp(36px, 5vw, 56px); }
.center { text-align: center; }
.maxw { max-width: 40em; }
.two-col { columns: 2; column-gap: 48px; }
@media (max-width: 720px) { .two-col { columns: 1; } }
