/* Youth Sports Site Template — Styles */
/* Brand colors are injected via site.json → base.njk :root overrides */

:root {
  /* Fallback brand colors (overridden per-client in base.njk) */
  --color-blue: #1a3a5c;
  --color-blue-light: #2a5a8c;
  --color-blue-dark: #0f2440;
  --color-gold: #d4a017;
  --color-gold-light: #f0c040;
  /* Neutrals (shared across all clients) */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;
}

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

body {
  font-family: var(--font-body, 'Inter', system-ui, -apple-system, sans-serif);
  color: var(--color-gray-800);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, var(--font-body));
}

/* ── Navigation ── */
.nav {
  background: var(--color-blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
}
.nav-brand span.gold { color: var(--color-gold); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}
.nav-links a.active {
  border-bottom: 2px solid var(--color-gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-blue-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 60%, var(--color-blue-light) 100%);
  color: var(--color-white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Hero style: solid */
.hero-solid .hero {
  background: var(--color-blue-dark);
}
.hero-solid .hero::before { display: none; }
/* Hero style: banner — adds a subtle accent stripe at the top */
.hero-banner .hero {
  background: var(--color-blue-dark);
  border-top: 5px solid var(--color-gold);
}
.hero-banner .hero::before { display: none; }
.hero-banner .page-header {
  border-top: 5px solid var(--color-gold);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,160,23,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}
.hero h1 .gold { color: var(--color-gold-light); }
.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-blue-dark);
}
.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,160,23,0.4);
}
.btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}
.btn-blue {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn-blue:hover {
  background: var(--color-blue-light);
  transform: translateY(-1px);
}

/* ── Sections ── */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-alt {
  background: var(--color-gray-50);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-blue-dark);
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--color-gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.gold-bar {
  width: 60px;
  height: 4px;
  background: var(--color-gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ── Cards Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
/* Card style: border variant */
.card-style-border .card {
  box-shadow: none;
  border: 2px solid var(--color-gray-200);
}
.card-style-border .card:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
}
/* Card style: flat variant */
.card-style-flat .card {
  box-shadow: none;
  background: var(--color-gray-50);
}
.card-style-flat .card:hover {
  background: var(--color-gray-100);
  transform: none;
}
/* Card style: shadow (default) */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(26,58,92,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-blue-dark);
}
.card p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

/* ── Page Header (for interior pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
  color: var(--color-white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
}

/* ── Schedule Table ── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.schedule-table thead {
  background: var(--color-blue-dark);
  color: white;
}
.schedule-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.schedule-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 0.95rem;
}
.schedule-table tbody tr:hover {
  background: var(--color-gray-50);
}
.schedule-table tbody tr:last-child td {
  border-bottom: none;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-practice {
  background: rgba(212,160,23,0.15);
  color: #92700a;
}
.badge-game {
  background: rgba(26,58,92,0.1);
  color: var(--color-blue);
}
.badge-event {
  background: rgba(34,197,94,0.1);
  color: #166534;
}

@media (max-width: 768px) {
  .schedule-table { font-size: 0.85rem; }
  .schedule-table th, .schedule-table td { padding: 0.75rem; }
}

/* ── Contact Form ── */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gray-800);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-blue);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ── Info Box ── */
.info-box {
  background: rgba(26,58,92,0.04);
  border-left: 4px solid var(--color-gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}
.info-box h3 {
  color: var(--color-blue-dark);
  margin-bottom: 0.5rem;
}
.info-box p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

/* ── Footer ── */
.footer {
  background: var(--color-blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--color-gold-light); }
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
