/* Flagstaff Avalanche Ice Hockey Club Inc — Design System */
:root {
  --navy-900: #0a1628;
  --navy-800: #122240;
  --navy-700: #1a2f4a;
  --navy-600: #243b5c;
  --gold-500: #c9a227;
  --gold-400: #d4af37;
  --gold-300: #e8c84a;
  --green-500: #2d6a4f;
  --green-400: #40916c;
  --sky-400: #4ea8de;
  --sky-300: #74c0fc;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-500); }

.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.brand:hover { color: var(--gold-300); }

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-500);
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1.2; }
.brand-tag { font-size: 0.7rem; color: var(--gold-400); text-transform: uppercase; letter-spacing: 0.08em; }

.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }

.nav-desktop a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--white);
  background: rgba(201, 162, 39, 0.15);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400)) !important;
  color: var(--navy-900) !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300)) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg { width: 28px; height: 28px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: 8px;
}

.nav-mobile a:hover { background: rgba(201, 162, 39, 0.12); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  margin-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(26,47,74,0.75) 50%, rgba(10,22,40,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold-300);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--gold-400); }

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-color: var(--gold-500);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
  color: var(--navy-900);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-navy {
  background: var(--navy-700);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green-500);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-400);
  color: var(--white);
}

/* ── Sections ── */
section { padding: 5rem 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

.section-label {
  display: inline-block;
  color: var(--gold-500);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.section-header p { color: var(--gray-600); font-size: 1.05rem; }

.bg-light { background: var(--gray-50); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy .section-header h2 { color: var(--white); }
.bg-navy .section-header p { color: rgba(255,255,255,0.7); }
.bg-navy .section-label { color: var(--gold-400); }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-4px); }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img { height: 220px; object-fit: cover; width: 100%; }

.card-body { padding: 1.75rem; }

.card-tag {
  display: inline-block;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-500);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.card-body h3 {
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.card-body p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 1rem; }

.card-link {
  font-weight: 600;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover { color: var(--gold-500); }

/* ── Impact Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item:first-child { grid-row: span 2; aspect-ratio: auto; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(10,22,40,0.9));
  color: var(--white);
}

.gallery-caption h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.gallery-caption p { font-size: 0.8rem; opacity: 0.8; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  margin-top: 72px;
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a { color: var(--gold-400); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.35rem; }

/* ── Footer ── */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.85rem; line-height: 1.5; }

.footer-col h4 {
  color: var(--gold-400);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
}

.footer-legal { color: rgba(255,255,255,0.4); }

/* ── Utilities ── */
.text-gold { color: var(--gold-500); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-row: span 1; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { min-height: 75vh; }
}
