/* ============================================================
   MOXIE VOLLEYBALL LAB — DESIGN SYSTEM
   "We don't just build volleyball players. We build complete athletes."

   Visual language: a volleyball performance LAB — game-film review
   overlays, scouting-report brackets, stat readouts. Corner brackets
   (like a broadcast replay frame) mark every real photo. Angled
   section dividers echo court sidelines. This is the signature
   element — used with restraint, never decoration for its own sake.
   ============================================================ */

/* ---- Fonts ----
   Display / stat face: Big Shoulders Display — built for scoreboards
   and jerseys, reads as athletic without being a poster cliché.
   Body: Inter — quiet, legible, gets out of the way for parents reading on a phone.
   Utility / labels: Big Shoulders Text — the "readout" voice for eyebrows, tags, captions.
*/
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Big+Shoulders+Text:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Color tokens ----
     TO CONFIRM: swap these for Moxie's exact brand hex values when supplied. */
  --teal-900: #073539;
  --teal-700: #0B5D63;
  --teal-500: #147A82;
  --teal-300: #4FB8BF;
  --black: #14181A;
  --gray-900: #22282A;
  --gray-600: #5B6467;
  --gray-300: #C7CDCE;
  --gray-100: #EEF1F1;
  --off-white: #F6F7F7;
  --white: #FFFFFF;
  --yellow: #FFC72C;
  --yellow-dim: #E6B227;

  /* semantic */
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --bg-dark: var(--black);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --text-on-dark: var(--white);
  --accent: var(--yellow);
  --brand: var(--teal-700);

  /* type scale */
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-label: 'Big Shoulders Text', sans-serif;
  --font-body: 'Inter', sans-serif;

  --step-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
  --step-sm: clamp(0.9rem, 0.87rem + 0.15vw, 1rem);
  --step-base: clamp(1rem, 0.97rem + 0.15vw, 1.125rem);
  --step-md: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-lg: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --step-xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --step-2xl: clamp(3rem, 2.2rem + 4vw, 6rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius: 4px;
  --max-width: 1280px;
  --border: 1px solid var(--gray-300);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.02; text-transform: uppercase; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-lg); } }

section { padding-block: var(--space-xl); }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--text-on-dark); }

/* ---- Focus states (accessibility) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ============================================================
   LABEL / EYEBROW — the "readout" voice
   ============================================================ */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.bg-dark .eyebrow { color: var(--yellow); }
.eyebrow::before {
  content: "";
  width: 1.5em;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ============================================================
   SECTION TITLE component
   ============================================================ */
.section-title { max-width: 40ch; margin-bottom: var(--space-lg); }
.section-title h2 { font-size: var(--step-xl); }
.section-title .eyebrow { margin-bottom: var(--space-xs); }
.section-title p { margin-top: var(--space-sm); color: var(--text-muted); font-size: var(--step-md); max-width: 52ch; }
.bg-dark .section-title p { color: var(--gray-300); }

/* ============================================================
   BUTTONS — one action should visually dominate
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--step-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.75em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-dim); }
.btn-dark { background: var(--teal-700); color: var(--white); }
.btn-dark:hover { background: var(--teal-900); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--gray-300); }
.btn-outline-dark:hover { border-color: var(--black); }

/* ============================================================
   FRAME BRACKETS — signature element
   Every real athlete photo gets scouting-report corner brackets,
   like a broadcast replay review. Nothing else on the page
   borrows this device, so it stays meaningful.
   ============================================================ */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
  aspect-ratio: var(--ar, 4/5);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::before,
.frame::after,
.frame .frame-tag {
  pointer-events: none;
}
.frame-corners span {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--yellow);
  z-index: 2;
}
.frame-corners span:nth-child(1) { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.frame-corners span:nth-child(2) { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.frame-corners span:nth-child(3) { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.frame-corners span:nth-child(4) { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.frame-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(11, 93, 99, 0.85);
  padding: 0.3em 0.6em;
  z-index: 2;
}
.frame.frame-tag-corner .frame-tag { left: auto; right: 10px; top: 10px; bottom: auto; }

/* Placeholder state — used until real Moxie photography is supplied */
.frame.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--gray-900), var(--gray-900) 10px, #1b2224 10px, #1b2224 20px);
}
.frame.is-placeholder .placeholder-label {
  font-family: var(--font-label);
  color: var(--gray-300);
  font-size: var(--step-xs);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-sm);
  border: 1px dashed var(--gray-600);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.logo .dot { width: 9px; height: 9px; background: var(--yellow); border-radius: 50%; display: inline-block; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: var(--space-md); }
.main-nav a {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray-900);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--yellow); }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: var(--border);
  border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  display: none;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--black);
  color: var(--white);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: var(--space-sm);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); }
.mobile-nav-close { width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); color: var(--white); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav .btn { margin-top: var(--space-lg); align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero .frame { position: absolute; inset: 0; --ar: auto; aspect-ratio: auto; }
.hero .frame img { opacity: 0.62; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,53,57,0.92) 0%, rgba(20,24,26,0.35) 55%, rgba(20,24,26,0.15) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-xl) var(--space-lg);
  width: 100%;
}
.hero h1 {
  font-size: var(--step-2xl);
  max-width: 16ch;
  color: var(--white);
}
.hero .lede { font-size: var(--step-md); max-width: 46ch; color: var(--gray-100); margin-top: var(--space-sm); font-family: var(--font-body); text-transform: none; font-weight: 400; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.hero .frame-corners span { border-color: var(--yellow); }

/* ============================================================
   PILLAR / METHOD cards (real 5-step sequence — numbering is earned)
   ============================================================ */
.pillars { display: grid; gap: 1px; background: var(--gray-300); border: 1px solid var(--gray-300); }
.pillar {
  background: var(--white);
  padding: var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
}
.pillar .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--gray-300);
  line-height: 1;
}
.pillar h3 { font-size: var(--step-md); margin-bottom: 0.4em; }
.pillar p { color: var(--text-muted); font-size: var(--step-sm); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(5, 1fr); } .pillar { grid-template-columns: 1fr; } }

/* ============================================================
   PROGRAM / TEAM / COACH CARDS
   ============================================================ */
.card-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--border);
}
.card .frame { --ar: 4/3; }
.card-body { padding: var(--space-sm) var(--space-sm) var(--space-md); display: flex; flex-direction: column; flex: 1; }
.card-body .eyebrow { margin-bottom: 0.5em; }
.card-body h3 { font-size: var(--step-md); margin-bottom: 0.4em; }
.card-body p.desc { color: var(--text-muted); font-size: var(--step-sm); margin-bottom: var(--space-sm); flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4em 1em; font-family: var(--font-label); font-size: var(--step-xs); color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-sm); }
.card-meta strong { color: var(--gray-900); }
.status-tag {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25em 0.6em;
  border-radius: 100px;
  display: inline-block;
}
.status-open { background: #E4F5E4; color: #1B7A2E; }
.status-limited { background: #FFF3D6; color: #92650C; }
.status-tbd { background: var(--gray-100); color: var(--gray-600); }
.status-closed { background: #F5E4E4; color: #942828; }

/* ============================================================
   JOURNEY / PATHWAY — real sequence, real numbering
   ============================================================ */
.journey { display: flex; flex-direction: column; gap: 0; }
.journey-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.journey-step:last-child { border-bottom: none; }
.journey-step .num {
  font-family: var(--font-display);
  font-size: var(--step-lg);
  color: var(--yellow);
  width: 2.5ch;
  flex-shrink: 0;
}
.journey-step h3 { font-size: var(--step-md); color: var(--white); }
@media (min-width: 860px) {
  .journey { flex-direction: row; }
  .journey-step { flex-direction: column; align-items: flex-start; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.14); padding-inline-end: var(--space-md); }
  .journey-step:last-child { border-right: none; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--teal-700);
  color: var(--white);
  padding-block: var(--space-xl);
  text-align: center;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}
.cta-banner h2 { color: var(--white); font-size: var(--step-xl); }
.cta-banner p { color: var(--gray-100); margin-top: var(--space-xs); font-size: var(--step-md); font-family: var(--font-body); text-transform: none; font-weight: 400; }
.cta-banner .hero-ctas { justify-content: center; margin-top: var(--space-md); }

/* ============================================================
   TESTIMONIAL / PROOF
   ============================================================ */
.testimonial {
  border-left: 4px solid var(--yellow);
  padding-left: var(--space-sm);
}
.testimonial p.quote { font-size: var(--step-md); font-family: var(--font-display); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--gray-900); line-height: 1.3; }
.testimonial cite { display: block; margin-top: var(--space-sm); font-style: normal; font-family: var(--font-label); font-size: var(--step-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--black); color: var(--gray-300); padding-block: var(--space-xl) var(--space-md); }
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; margin-bottom: var(--space-lg); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); text-transform: uppercase; }
.footer-tagline { margin-top: var(--space-xs); font-size: var(--step-sm); max-width: 32ch; }
.footer-col h4 { font-family: var(--font-label); font-size: var(--step-xs); color: var(--white); letter-spacing: 0.1em; margin-bottom: var(--space-sm); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6em; }
.footer-col a { text-decoration: none; color: var(--gray-300); font-size: var(--step-sm); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-md); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); font-size: var(--step-xs); }

/* ============================================================
   FORMS
   ============================================================ */
.form-field { margin-bottom: var(--space-sm); display: flex; flex-direction: column; gap: 0.4em; }
.form-field label { font-family: var(--font-label); font-size: var(--step-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-900); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: var(--step-base);
  padding: 0.85em 1em;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 48px;
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   UTILITY
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.to-confirm { color: #92650C; font-family: var(--font-label); font-size: var(--step-xs); text-transform: uppercase; letter-spacing: 0.04em; }
