/* ================================================
   APEX KARTING ACADEMY — STYLES
   Colors: Black / Red / White (matching brand logo)
   Fonts: Bebas Neue (headings), Oswald (sub), Roboto (body)
   ================================================ */

/* --- VARIABLES --- */
:root {
  /* Brand colors (fixed, never change) */
  --red: #e8000d;
  --red-dark: #b30009;
  --red-light: #ff2030;

  /* Semantic colors (dark mode defaults) */
  --bg:             #0a0a0a;
  --bg-alt:         #111111;
  --bg-raised:      #1a1a1a;
  --bg-card:        #222222;
  --border:         #2d2d2d;
  --text-heading:   #ffffff;
  --text-body:      #f0f0f0;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted:     #888888;
  --header-bg:      rgba(10, 10, 10, 0.85);
  --header-scroll:  rgba(10, 10, 10, 0.97);
  --header-shadow:  0 2px 24px rgba(0, 0, 0, 0.5);
  --header-border:  rgba(255, 255, 255, 0.06);
  --nav-hover-bg:   rgba(255, 255, 255, 0.08);
  --card-hover-shadow: 0 8px 32px rgba(232, 0, 13, 0.12);
  --overlay-bg:     rgba(0, 0, 0, 0.6);

  /* Fonts */
  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-sub: 'Oswald', 'Roboto', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;

  /* Layout */
  --transition: 0.25s ease;
  --max-width: 1200px;
  --header-h: 72px;
}

/* --- LIGHT THEME VARIABLE OVERRIDES --- */
[data-theme="light"] {
  --bg:             #ffffff;
  --bg-alt:         #f5f5f5;
  --bg-raised:      #eeeeee;
  --bg-card:        #ffffff;
  --border:         #e0e0e0;
  --text-heading:   #1a1a1a;
  --text-body:      #333333;
  --text-secondary: #444444;
  --text-muted:     #666666;
  --header-bg:      rgba(255, 255, 255, 0.92);
  --header-scroll:  rgba(255, 255, 255, 0.98);
  --header-shadow:  0 2px 20px rgba(0, 0, 0, 0.08);
  --header-border:  rgba(0, 0, 0, 0.08);
  --nav-hover-bg:   rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --overlay-bg:     rgba(0, 0, 0, 0.3);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- UTILITY --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.highlight { color: var(--red); }
.lead { font-size: 1.2rem; line-height: 1.7; color: var(--text-heading); font-weight: 300; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 0 20px rgba(232, 0, 13, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--text-heading);
}
.btn-outline:hover {
  background: var(--text-heading);
  color: var(--bg);
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; display: block; margin-top: 24px; }

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: var(--header-scroll);
  box-shadow: var(--header-shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-logo img { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; gap: 4px; }
.nav-link {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  color: var(--text-body);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-heading);
  background: var(--nav-hover-bg);
}
.nav-cta { margin-left: 16px; padding: 10px 24px; font-size: 0.85rem; }

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  color: var(--text-body);
  transition: all var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}
.theme-toggle:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(232, 0, 13, 0.08);
}
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO (always dark — image-backed)
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.6) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-logo {
  width: 340px;
  margin: -20px auto 0;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}
.hero .btn-outline:hover {
  background: #ffffff;
  color: #0a0a0a;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ================================================
   SECTIONS (shared)
   ================================================ */
.section {
  padding: 100px 0;
  transition: background-color 0.3s ease;
}
.section-dark { background: var(--bg-raised); }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-label {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 0.02em;
  color: var(--text-heading);
  line-height: 1;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.6;
}
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }

/* ================================================
   ABOUT
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}
.about-text p { margin-bottom: 20px; color: var(--text-secondary); }
.about-text p strong { color: var(--text-heading); }
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), background-color 0.3s ease;
}
.stat-card:hover {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(232, 0, 13, 0.15);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}
.stat-card:last-child .stat-number { font-size: 1.6rem; }
.stat-label {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ================================================
   PROGRAMS
   ================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color 0.3s ease;
}
.program-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--card-hover-shadow);
}
.program-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--red);
}
.program-icon svg { width: 100%; height: 100%; }
.program-card h3 {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-heading);
}
.program-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.programs-cta { text-align: center; }

/* ================================================
   FACILITY
   ================================================ */
.facility-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.facility-image {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.facility-image img { width: 100%; display: block; }
.facility-info .lead { margin-bottom: 28px; }
.facility-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.facility-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}
.facility-features li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--red);
}

/* ================================================
   CTA BANNER (always red)
   ================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1;
}
.cta-banner .highlight { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-banner .btn-primary {
  background: #ffffff;
  color: var(--red-dark);
  border-color: #ffffff;
}
.cta-banner .btn-primary:hover {
  background: #0a0a0a;
  color: #ffffff;
  border-color: #0a0a0a;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
}

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 28px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), background-color 0.3s ease;
}
.contact-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--red);
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-card h3 {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-heading);
}
.contact-card a, .contact-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.contact-card a:hover { color: var(--red); }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); }
.footer-links h4 {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ================================================
   PAGE HEADER (subpages)
   ================================================ */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--bg-raised);
  color: var(--text-heading);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.page-header .section-label { color: var(--red); }
.page-header h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.page-header-sub {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* ================================================
   CAMP INFO & SESSION CARDS
   ================================================ */
.camp-info {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.camp-session-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.session-card {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition), background-color 0.3s ease;
}
.session-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 0, 13, 0.4);
  border-top-color: var(--red);
  box-shadow: var(--card-hover-shadow);
}
.session-card h3 {
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.session-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.session-date {
  font-family: var(--font-sub);
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--red) !important;
  margin-bottom: 4px;
}
.camp-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================
   REGISTRATION FORM
   ================================================ */
.reg-form-wrap {
  max-width: 660px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-heading);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), background-color 0.3s ease, color 0.3s ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); color: var(--text-heading); }

/* Section titles */
.reg-section-title {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.reg-section-title:first-child { margin-top: 0; }
.reg-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.reg-legend .reg-required { font-size: 1rem; }
.reg-required { color: var(--red); font-weight: 700; margin-left: 2px; }
.reg-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Collapsible */
.reg-collapsible {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reg-collapsible::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.reg-collapsible.active::after { transform: rotate(-135deg); }
.reg-collapse-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.reg-collapse-body.open { max-height: 2000px; }

/* Checkbox / Radio grid */
.reg-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.reg-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.15s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 0;
}
.reg-check-label:hover { background: var(--nav-hover-bg); }
.reg-check-label:nth-child(2n) { border-right: none; }
.reg-check-label:nth-last-child(-n+2) { border-bottom: none; }
.reg-checks:has(.reg-check-label:nth-child(odd):last-child) .reg-check-label:last-child { border-right: none; }
.reg-check-label input[type="checkbox"],
.reg-check-label input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.reg-check-label input[type="checkbox"] { border-radius: 3px; }
.reg-check-label input[type="radio"] { border-radius: 50%; }

/* ================================================
   ANIMATIONS (scroll reveal)
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { flex-direction: row; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* Mobile nav */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-alt);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 24px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s ease, background-color 0.3s ease;
    border-left: 1px solid var(--border);
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { padding: 14px 16px; font-size: 1rem; }
  .nav-cta { margin: 16px 0 0; text-align: center; }
  .header-inner { position: relative; }
  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .mobile-toggle { display: flex; }
  .theme-toggle { margin-left: auto; margin-right: 8px; }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-overlay.active { opacity: 1; pointer-events: auto; }

  /* Page header */
  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Sections */
  .section { padding: 72px 0; }
  .hero-logo { width: 260px; margin: -16px auto 0; }
  .hero-content { padding: 100px 16px 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about-stats { flex-direction: column; }
  .programs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }
  .cta-banner { padding: 56px 0; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
  .hero-title { letter-spacing: 0.02em; }
  .reg-form-wrap { padding: 20px 14px; }
  .reg-section-title { margin-top: 24px; margin-bottom: 12px; font-size: 1rem; }
  .reg-checks { grid-template-columns: 1fr; }
  .reg-check-label { border-right: none !important; }
  .reg-check-label:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .reg-check-label:last-child { border-bottom: none !important; }
  .reg-note { font-size: 0.85rem; }
}
