/* ==========================================================================
   BULL SOCCER ACADEMY — GLOBAL DESIGN SYSTEM
   Design tokens, reset, base typography, utilities
   ========================================================================== */

:root {
  /* Brand Colors */
  --black: #0a0a0a;
  --black-2: #111111;
  --surface: #141414;
  --surface-2: #1c1c1e;
  --surface-3: #2c2c2e;
  --white: #f5f5f7;
  --white-2: #e8e8ed;
  --white-3: #b0b0b8;
  --gold: #C9A84C;
  --gold-light: #e8c97a;
  --gold-dark: #8a6f28;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --red: #8B1A1A;
  --red-light: #c44;
  --green: #2ecc71;
  --border: rgba(201, 168, 76, 0.18);
  --border-subtle: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Spacing */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;

  /* Radii */
  --r1: 8px; --r2: 14px; --r3: 20px; --r4: 32px; --r-full: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 40px rgba(201,168,76,0.2);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.5);

  /* Layout */
  --container: 1280px;
  --nav-h: 72px;
}

/* Light theme override (portal) */
body.theme-light {
  --black: #f5f5f7;
  --black-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --surface-3: #e8e8ed;
  --white: #0a0a0a;
  --white-2: #1c1c1e;
  --white-3: #4a4a4f;
  --border-subtle: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.16);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { list-style: none; }

/* Selection */
::selection { background: var(--gold); color: var(--black); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.h-display { font-size: clamp(64px, 9vw, 108px); line-height: 0.92; }
.h1 { font-size: clamp(48px, 6vw, 72px); }
.h2 { font-size: clamp(40px, 5vw, 56px); }
.h3 { font-size: clamp(28px, 3vw, 36px); }
.h4 { font-size: 22px; line-height: 1.15; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--white-2);
  line-height: 1.5;
  font-weight: 400;
}

.muted { color: var(--white-3); }
.gold { color: var(--gold); }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4);
}
@media (min-width: 768px) { .container { padding: 0 var(--s6); } }

.section { padding: var(--s9) 0; }
.section-tight { padding: var(--s8) 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-darker { background: var(--surface); color: var(--white); }
.section-light { background: #f5f5f7; color: #0a0a0a; }
.section-light .eyebrow { color: var(--gold-dark); }
.section-light .muted { color: #4a4a4f; }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 1024px) {
  .grid-2-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
}

.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
