/* Beyond Code Academy — Beyond VEX IQ Mentorship · Brand Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --brand-blue: #00249c;
  --brand-blue-dark: #001a73;
  --brand-blue-light: #1a3fbf;
  --brand-green: #00b74f;
  --brand-green-dark: #008a3b;
  --brand-gold: #ffd100;
  --brand-gold-dark: #e6bc00;
  --white: #ffffff;
  --ink: #0d1330;
  --ink-soft: #2a3158;
  --muted: #5b6280;
  --line: #e5e7ef;
  --bg-soft: #f6f7fb;
  --bg-tint: #eef1fb;
  --font-display: "Plus Jakarta Sans", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(0, 36, 156, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(0, 36, 156, 0.18);
  --shadow-lg: 0 24px 64px -20px rgba(0, 36, 156, 0.28);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 700; }
p { margin: 0; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--brand-blue); color: var(--white); box-shadow: 0 6px 16px -6px rgba(0, 36, 156, 0.5); }
.btn-primary:hover { background: var(--brand-blue-dark); transform: translateY(-1px); }
.btn-gold { background: var(--brand-gold); color: var(--brand-blue); }
.btn-gold:hover { background: var(--brand-gold-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-outline:hover { background: var(--brand-blue); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); padding: 10px 14px; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-translucent { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-translucent:hover { background: rgba(255,255,255,0.18); }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-logo { height: 56px; width: auto; }
.brand-text-only {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
  display: none;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { color: var(--brand-blue); background: var(--bg-soft); }
.nav-link.active { color: var(--brand-blue); background: var(--bg-tint); font-weight: 600; }
.topbar-cta { display: flex; align-items: center; gap: 10px; }

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-blue { background: var(--brand-blue); color: var(--white); }
.section-blue h1, .section-blue h2, .section-blue h3 { color: var(--white); }
.section-blue p { color: rgba(255, 255, 255, 0.8); }
.section-blue .eyebrow { color: var(--brand-gold); }
.section-blue .eyebrow::before { background: var(--brand-gold); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 1.05rem; margin-top: 14px; }
.page-header {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #f6f7fb 0%, #fff 100%);
}
.page-header-tight {
  padding-bottom: 24px;
}
.page-header-copy {
  max-width: 1080px;
  margin: 0 auto;
}
.page-header-copy h1 {
  max-width: 980px;
}
.page-header-copy p {
  max-width: 760px;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-blue);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 14px;
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--brand-blue);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label { font-size: 0.88rem; color: var(--muted); font-weight: 500; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-tint);
  color: var(--brand-blue);
  letter-spacing: 0.02em;
}
.chip-gold { background: rgba(255, 209, 0, 0.18); color: #8a6d00; }
.chip-green { background: rgba(0, 183, 79, 0.14); color: var(--brand-green-dark); }
.chip-blue { background: rgba(0, 36, 156, 0.12); color: var(--brand-blue); }

/* Footer */
.footer {
  background: #2b4fb7;
  padding: 26px 0 18px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-shell {
  background: transparent;
  border-radius: 0;
  padding: 20px 28px;
  color: white;
  border: none;
  box-shadow: none;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-subtitle {
  margin-top: 3px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}
.footer-socials { display: flex; align-items: center; gap: 14px; }
.footer-social {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social:hover { color: var(--brand-gold); }
.footer-social svg { width: 100%; height: 100%; }

/* Photo placeholders / images */
.photo {
  background: linear-gradient(135deg, var(--bg-tint) 0%, #dde3f5 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 60%);
  pointer-events: none;
}
.photo-label { position: relative; z-index: 1; opacity: 0.7; }

.gold-underline {
  background-image: linear-gradient(transparent 70%, rgba(255, 209, 0, 0.55) 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 4px;
}

/* Hero (Variation B) */
.hero-blue {
  background: var(--brand-blue);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-inner { position: relative; max-width: 640px; }
.hero-photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px -30px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-photo img {
  width: 100%;
  height: min(520px, 52vw);
  object-fit: cover;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,209,0,0.18);
  color: var(--brand-gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold); }
.hero-h1 {
  color: white;
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-h1 .gold { color: var(--brand-gold); }
.hero-sub {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-top: 26px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-gold);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 8px; }

.three-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.application-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { border-top: 2px solid var(--brand-blue); padding-top: 24px; }
.pillar-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.featured-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.featured-grid .photo { aspect-ratio: 5/4; border-radius: 18px; }

.cta-card {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-card .glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--brand-gold);
  opacity: 0.15;
}
.cta-card-inner { max-width: 560px; position: relative; }
.cta-card h2 { color: white; }
.cta-card p { color: rgba(255,255,255,0.82); margin-top: 12px; }

/* Pedagogy 4 principles grid */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.principle {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
}
.principle-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--brand-gold);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
}

.weekly-rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rhythm-time { font-size: 0.78rem; font-weight: 600; color: var(--brand-blue); letter-spacing: 0.08em; }
.rhythm-bar { height: 4px; background: var(--brand-blue); border-radius: 2px; margin: 10px 0 18px; }

.curriculum-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.curriculum-list { display: grid; gap: 14px; }
.curriculum-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.curriculum-cat {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.curriculum-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.curriculum-item { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; }
.dot-green { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); flex-shrink: 0; }

.mentor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mentor-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 24px;
}
.mentor-photo { aspect-ratio: 1/1; border-radius: 12px; margin-bottom: 16px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 0.78rem; font-weight: 600; }

/* Program timeline */
.timeline { display: grid; gap: 24px; max-width: 1080px; margin: 0 auto; }
.phase { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
.phase-rail-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}
.phase-when {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.phase-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand-blue);
}
.phase-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.phase-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.phase-items.cols-2 { grid-template-columns: 1fr 1fr; }
.phase-item { background: var(--bg-soft); border-radius: 12px; padding: 18px; }
.phase-item-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 12px; color: white; }
.phase-item-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 6px; }
.phase-item-body { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.phase-note { margin-top: 18px; font-size: 0.86rem; color: var(--muted); }

.preseason-bg { background: var(--brand-gold); color: var(--brand-blue); }
.kickoff-bg { background: var(--brand-green); color: white; }
.qualifier-bg { background: var(--brand-blue); color: white; }
.nationals-bg { background: #7c3aed; color: white; }
.world-bg { background: #c2410c; color: white; }

.preseason-border { border-left-color: var(--brand-gold); }
.kickoff-border { border-left-color: var(--brand-green); }
.qualifier-border { border-left-color: var(--brand-blue); }
.nationals-border { border-left-color: #7c3aed; }
.world-border { border-left-color: #c2410c; }

.parents-list { display: grid; gap: 12px; }
.parent-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}
.parent-check {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--brand-green); color: white;
  display: grid; place-items: center; flex-shrink: 0;
}

/* Achievements */
.achievement-hero {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--brand-blue-light) 0%, var(--brand-blue) 60%);
  max-width: 1100px;
  margin: 0 auto;
}
.achievement-hero-strip { padding: 32px 40px 28px; text-align: center; color: white; }
.achievement-hero-strip h2 { color: white; font-size: 1.5rem; margin-bottom: 12px; }
.achievement-hero-strip p { color: rgba(255,255,255,0.88); max-width: 760px; margin: 0 auto; font-size: 0.98rem; line-height: 1.55; }
.achievement-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 28px 28px;
}
.achievement-stat {
  background: white;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.achievement-stat-icon {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.95;
}
.achievement-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 4px;
}
.achievement-stat-label { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.achievement-banner {
  padding: 18px 28px;
  margin: 0 28px 28px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--brand-blue-light), #2d57e0);
  color: white;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.team-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.team-mark {
  width: 44px; height: 44px; border-radius: 10px;
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 16px; margin-top: 6px;
}
.team-highlight {
  font-size: 0.82rem;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 600;
}

.results-table { background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.results-head, .results-row {
  display: grid;
  grid-template-columns: 120px 1.6fr 1.2fr 1.4fr 1fr;
  padding: 20px 24px;
  align-items: center;
  font-size: 0.93rem;
}
.results-head {
  background: var(--bg-soft);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
}
.results-row + .results-row { border-top: 1px solid var(--line); }

/* Competitions */
.event-featured {
  background: var(--brand-blue);
  color: white;
  border-radius: 24px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.event-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--brand-gold);
  opacity: 0.18;
}
.event-date-big {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: white;
  letter-spacing: -0.03em;
}
.event-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  align-items: center;
}
.event-date-md {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Contact */
.contact-hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 209, 0, 0.2), transparent 28%),
    linear-gradient(180deg, #f6f7fb 0%, #fff 100%);
}
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.location-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.location-map {
  min-height: 280px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.58) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.58) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(255, 209, 0, 0.36), transparent 18%),
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.map-pin {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--brand-gold);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 10px rgba(255, 209, 0, 0.2);
  position: absolute;
  top: calc(50% - 38px);
}
.map-pin::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  position: absolute;
  top: 8px;
  left: 8px;
}
.contact-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-method {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-blue);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
}
.contact-method p { font-size: 0.95rem; }
.contact-method a {
  margin-top: auto;
  color: var(--brand-blue);
  font-weight: 700;
}
.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.visit-list { display: grid; gap: 14px; }
.visit-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  gap: 6px;
}
.visit-item strong { color: var(--ink); font-family: var(--font-display); }
.visit-item span { color: var(--muted); font-size: 0.92rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-info { display: grid; gap: 18px; }
.contact-info-row { display: flex; gap: 14px; align-items: start; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-tint); color: var(--brand-blue);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form .form-grid { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form .label-text { font-size: 0.85rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: white;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-blue); }
.contact-form textarea { resize: vertical; }
.req { color: var(--brand-green); }

.application-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}
.application-stack {
  display: grid;
  gap: 20px;
}
.application-info.card {
  position: sticky;
  top: 102px;
}
.application-steps-top {
  max-width: 760px;
}
.application-steps-top .section-head {
  margin-bottom: 18px !important;
  max-width: 680px;
}
.application-steps-top .section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}
.application-steps-top .application-steps .card {
  padding: 22px;
}
.application-steps-compact {
  max-width: 100%;
}
.application-steps-compact .section-head {
  max-width: 620px;
  margin-bottom: 20px !important;
}
.application-steps-compact .section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}
.application-steps-compact .section-head p {
  font-size: 0.98rem;
  margin-top: 10px;
}
.application-steps-compact .application-steps {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.application-steps-compact .application-steps .card {
  padding: 20px;
}
.application-steps-compact .application-steps .card p {
  font-size: 0.88rem !important;
}
.branch-availability {
  margin-top: 28px;
}
.branch-availability-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.branch-availability-head h3 {
  margin-top: 10px;
}
.branch-last-updated {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
}
.branch-spot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.branch-spot {
  --spot-color: var(--brand-blue);
  --spot-bg: var(--bg-tint);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--spot-color);
  border-radius: 14px;
  background: var(--spot-bg);
}
.branch-spot span {
  font-weight: 700;
  color: var(--ink);
}
.branch-spot strong {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--spot-color);
}
.spot-orange {
  --spot-color: #f97316;
  --spot-bg: rgba(249, 115, 22, 0.1);
}
.spot-green {
  --spot-color: var(--brand-green-dark);
  --spot-bg: rgba(0, 183, 79, 0.12);
}
.spot-red {
  --spot-color: #b42318;
  --spot-bg: rgba(180, 35, 24, 0.1);
}
.branch-spot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}
.branch-spot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--spot-color);
  flex-shrink: 0;
}
.application-form-shell {
  box-shadow: var(--shadow-sm);
}
.application-form-wide {
  width: 100%;
  max-width: 100%;
}
.application-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.application-form-shell select {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: white;
}
.application-form-shell select:focus {
  border-color: var(--brand-blue);
}
.checkbox-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.checkbox-fieldset legend {
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.checkbox-group {
  display: grid;
  gap: 8px;
}
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}
.checkbox-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.93rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.checkbox-item:hover {
  border-color: rgba(0, 36, 156, 0.35);
  background: var(--bg-soft);
}
.checkbox-item input {
  width: 18px;
  height: 18px;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--brand-blue);
}
.checkbox-item span {
  line-height: 1.35;
}
.contact-form .application-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.contact-form .application-consent input {
  margin-top: 4px;
}
.application-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.application-form-message {
  font-size: 0.9rem;
  min-height: 20px;
}
.application-form-message.success {
  color: var(--brand-green-dark);
}
.application-form-message.error {
  color: #b42318;
}

/* Floating chat */
.chat { position: fixed; bottom: 24px; right: 24px; z-index: 50; }
.chat-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-green);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -6px rgba(0, 183, 79, 0.5);
  display: grid; place-items: center;
}
.chat-popover {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 18px 48px -12px rgba(0,0,0,0.25);
  padding: 20px;
  border: 1px solid var(--line);
  display: none;
}
.chat-popover.open { display: block; }
.chat-popover h4 { font-family: var(--font-display); font-weight: 700; margin-bottom: 6px; color: var(--ink); }

/* Faded loading-photo placeholders for variety */
.photo-blue { background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%); color: white; }
.photo-blue::after { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%); }

/* SEO content blocks (FAQ, etc.) */
.faq { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--brand-blue); transition: transform 0.2s; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { margin-bottom: 12px; }

/* Policy / legal content pages */
.policy-doc { max-width: 1080px; margin: 0 auto; }
.policy-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-gold);
  color: var(--ink);
}
.policy-subhead {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--ink);
}
.policy-doc > p,
.policy-doc .policy-lead { margin-bottom: 14px; color: var(--ink-soft); }
.policy-lead { font-size: 1.05rem; }
.policy-list {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 16px 0 20px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}
.policy-list li::marker { color: var(--brand-blue); }
.policy-list-nested {
  margin-top: 10px;
  margin-bottom: 0;
}
.policy-list-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}
@media (max-width: 600px) {
  .policy-list-two-col { grid-template-columns: 1fr; }
}
.policy-callout {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.policy-callout-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: var(--ink);
}
.policy-dl {
  display: grid;
  gap: 22px;
  margin: 0;
}
.policy-dl > div { margin: 0; }
.policy-dl dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-blue);
  margin-bottom: 6px;
}
.policy-dl dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
/* Space stacked blocks inside a definition (paragraphs, nested term lists) */
.policy-dl dd > * + * {
  margin-top: 12px;
}

/* Nested label / detail pairs inside a policy <dd> (e.g. coach-led session details) */
.policy-subdl {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.policy-subdl > div {
  margin: 0;
  padding: 14px 16px 14px 18px;
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(0, 36, 156, 0.03);
}
.policy-subdl dt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-blue);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.policy-subdl dd {
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 960px) {
  .nav, .topbar-cta { display: none; }
  .mobile-toggle { display: block; }
  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 16px 28px 24px;
    gap: 8px;
    align-items: stretch;
  }
  .nav.mobile-open .nav-link { padding: 12px 16px; }
  .featured-grid, .curriculum-grid, .contact-grid, .contact-hero-grid, .visit-grid, .three-pillars,
  .principles, .weekly-rhythm, .mentor-grid, .team-grid, .achievement-stats, .application-steps,
  .hero-stats, .contact-method-grid {
    grid-template-columns: 1fr;
  }
  .application-layout {
    grid-template-columns: 1fr;
  }
  .application-steps-top,
  .application-form-wide {
    max-width: 100%;
  }
  .application-steps-compact .application-steps {
    grid-template-columns: 1fr;
  }
  .application-info.card {
    position: static;
  }
  .application-form-row {
    grid-template-columns: 1fr;
  }
  .branch-availability-head {
    flex-direction: column;
    gap: 12px;
  }
  .branch-last-updated {
    text-align: left;
  }
  .branch-spot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .three-pillars, .mentor-grid, .application-steps { gap: 16px; }
  .phase { grid-template-columns: 1fr; gap: 16px; }
  .phase-items, .phase-items.cols-2 { grid-template-columns: 1fr; }
  .event-featured { grid-template-columns: 1fr; padding: 32px 28px; gap: 24px; }
  .event-row { grid-template-columns: 1fr; gap: 16px; }
  .results-head, .results-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .results-head { display: none; }
  .results-row { font-size: 0.88rem; }
  .section { padding: 56px 0; }
  .cta-card { padding: 32px 24px; }
  .achievement-stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-shell { padding: 18px 20px; border-radius: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { max-width: 880px; }
  .hero-photo img { height: auto; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .achievement-stats, .team-grid { grid-template-columns: 1fr; }
  .branch-spot-grid { grid-template-columns: 1fr; }
  .topbar-inner { height: 64px; }
  .brand-logo { height: 44px; }
}
