/* ============================================
   Central Texas Youth Sports — Shared Styles
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1f38;
  --deep: #1a3358;
  --gold: #f5a623;
  --gold-light: #fdd17a;
  --cream: #f5f0e8;
  --warm-white: #fdfaf4;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --border: rgba(0,0,0,0.08);
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-nav: 30;
  --z-modal: 40;
}

html { font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
}

/* NAV */
nav {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--navy);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  transition: transform 0.2s;
}

/* HERO (shared base) */
.hero {
  background: var(--navy);
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-base);
}

/* EYEBROW */
.eyebrow {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

/* HEADINGS */
h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}

/* SECTIONS */
.section {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.section h2, .s-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.section > p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

h3 { text-wrap: balance; }
li { text-wrap: pretty; }

/* BUTTONS */
.btn-primary {
  padding: 0.9rem 1.75rem;
  background: var(--gold);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s;
}
.btn-secondary:hover { color: white; }

/* CARDS (light bg) */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,31,56,0.08);
}

/* CARDS (dark bg) */
.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.75rem;
}

/* TAG */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  width: fit-content;
}

/* SPORT TAGS */
.sport-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(15,31,56,0.06);
  color: var(--navy);
}
.sport-tag.on-dark {
  background: rgba(245,166,35,0.15);
  color: var(--gold-light);
}

/* DIVIDER */
.divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  max-width: 960px;
  margin: 0 auto;
}

/* FOOTER */
footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid rgba(0,0,0,0.06);
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation: fadeUp 0.6s 0.1s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.2s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s ease both; }

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--warm-white);
    padding: 1.25rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(15,31,56,0.08);
  }
  .nav-links.open .nav-link {
    padding: 0.6rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open .nav-link:last-of-type {
    border-bottom: none;
  }
  .nav-links.open .nav-cta {
    display: none;
  }
  .nav-toggle { display: block; }
}

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