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

:root {
  --primary-maroon: #5D1725;
  --dark-maroon: #3c0f17;
  --white: #FFFFFF;
  --light-gray: #f0f0f0;
  --dark-gray: #222;
  --text-primary: #111;
  --text-secondary: #666;
  --accent-gold: #d4a574;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--light-gray);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

header {
  background: var(--white);
  border-bottom: 2px solid var(--primary-maroon);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-maroon);
  letter-spacing: -0.5px;
}

/* HAMBURGER BUTTON - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary-maroon);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Animate to X when open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-maroon);
  border-bottom-color: var(--primary-maroon);
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-maroon) 0%, var(--dark-maroon) 100%);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  background: var(--white);
  color: var(--primary-maroon);
  padding: 0.9rem 2rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.hero-cta:hover {
  background: var(--accent-gold);
  transform: translateY(-1px);
}

.main-container {
  max-width: 1440px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-maroon);
  letter-spacing: -0.5px;
}

.view-all {
  font-size: 0.9rem;
  color: var(--primary-maroon);
  font-weight: 600;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--dark-maroon);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.game-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.game-card:hover {
  box-shadow: 0 4px 12px rgba(94,24,37,0.15);
  border-color: var(--primary-maroon);
  transform: translateY(-2px);
}

.game-header {
  background: var(--primary-maroon);
  color: var(--white);
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-content {
  padding: 1.5rem;
}

.game-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.matchup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.team {
  flex: 1;
  text-align: center;
}

.team-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-record {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.vs {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.game-time {
  text-align: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-maroon);
}

.game-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  text-align: center;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.player-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s;
}

.player-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.player-number {
  background: var(--primary-maroon);
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  padding: 2rem 0.5rem;
}

.player-info {
  padding: 1rem 0.75rem;
}

.player-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.player-position {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.player-grade {
  display: inline-block;
  background: var(--light-gray);
  color: var(--primary-maroon);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--primary-maroon);
  box-shadow: 0 4px 12px rgba(94,24,37,0.1);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-maroon);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
}

footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.85;
}

.footer-section a {
  color: var(--white);
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.5rem; }
  .games-grid { grid-template-columns: 1fr; }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

  /* Always show hamburger on mobile */
  .nav-toggle {
    display: flex !important;
    order: 3;
  }

  /* Hide desktop nav, replaced by dropdown */
  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column !important;
    gap: 0 !important;
    border-top: 2px solid var(--primary-maroon);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 0;
  }

  /* Show dropdown when toggled open */
  .nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block !important;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-bottom: none;
    width: 100%;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: #fdf8f8;
    color: var(--primary-maroon);
    border-bottom-color: transparent;
  }

  header {
    position: sticky;
    top: 0;
    padding: 0.5rem 0;
  }

  .header-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 1rem;
  }

  /* Spacer on left to balance hamburger on right */
  .header-container::before {
    content: "";
    width: 40px;
    flex-shrink: 0;
  }

  /* Logo centered */
  .header-container a:first-child {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  /* Nav element takes no space - dropdown only */
  .header-container nav {
    position: static;
    flex-shrink: 0;
  }

  /* Hamburger on far right */
  .nav-toggle {
    display: flex !important;
    flex-shrink: 0;
  }
}

/* LOGO IMAGE */
.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 52px;
  }
}
