/* ============================================
   BEST BALL AT WOODLEY LAKES — Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  --red: #dc3545;
  --red-dark: #b02a37;
  --navy: #1e3a5f;
  --navy-light: #2a4f7f;
  --gold: #ffc107;
  --gold-dark: #e0a800;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --black: #212529;

  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --nav-height: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: 0.2s ease;
}

/* --- 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-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red-dark);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
}

.section-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section--gray {
  background: var(--light-gray);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  height: var(--nav-height);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--navy);
}

.nav__brand img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--red);
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.5rem;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* Mobile menu overlay */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 2rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  text-decoration: none;
}

.nav__mobile a:hover {
  color: var(--red);
}

.nav__mobile .btn {
  margin-top: 1rem;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--red) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* --- Info Block (Hours & Location) --- */
.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-block__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-top: 1rem;
}

.info-block__label:first-child {
  margin-top: 0;
}

.info-block__value {
  font-size: 0.95rem;
  color: var(--dark-gray);
}

/* --- Feature List (The Vibe) --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}

.feature-list__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid #dee2e6;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e3a5f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Inline email signup */
.form-inline {
  display: flex;
  gap: 0.5rem;
}

.form-inline input {
  flex: 1;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.form-inline input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-inline input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

/* --- Placeholder State --- */
.placeholder-block {
  background: var(--light-gray);
  border: 2px dashed #dee2e6;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--medium-gray);
}

.placeholder-block p {
  margin-bottom: 0.5rem;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 3rem 1.25rem;
}

.cta-banner h2 {
  margin-bottom: 0.75rem;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  color: var(--medium-gray);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

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

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.95rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Page Header (non-home pages) --- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Spaces Cards (Events) --- */
.space-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}

.space-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.space-card h3 {
  margin-bottom: 0.5rem;
}

.space-card p {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* --- Sport Package Cards (Games) --- */
.sport-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.sport-card__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.sport-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

/* --- Quote Block (About) --- */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.5rem;
  background: var(--light-gray);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.quote-block p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0;
}

/* --- Photo Placeholder --- */
.photo-placeholder {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* --- Game Tiles --- */
.game-tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
  border-left: 4px solid transparent;
  transition: box-shadow var(--transition);
}

.game-tile:hover {
  box-shadow: var(--shadow-lg);
}

.game-tile--live {
  border-left-color: var(--red);
}

.game-tile--final {
  opacity: 0.9;
}

.game-tile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.game-tile__sport {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--medium-gray);
  letter-spacing: 0.04em;
}

.game-tile__time {
  color: var(--medium-gray);
  font-weight: 500;
}

.game-tile__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.game-tile__status--live {
  background: var(--red);
  color: var(--white);
  animation: pulse-badge 2s ease-in-out infinite;
}

.game-tile__status--final {
  background: var(--medium-gray);
  color: var(--white);
}

.game-tile__status--halftime {
  background: var(--gold);
  color: var(--navy);
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.game-tile__teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.game-tile__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--light-gray);
  text-align: center;
  transition: all var(--transition);
}

.game-tile__team--winner {
  border-color: #16a34a;
  background: #f0fdf4;
}

.game-tile__team--loser {
  border-color: #dee2e6;
  background: var(--light-gray);
  opacity: 0.75;
}

.game-tile__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.game-tile__logo-fallback {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
}

.game-tile__abbr {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.game-tile__name {
  font-size: 0.75rem;
  color: var(--medium-gray);
  display: none;
}

@media (min-width: 768px) {
  .game-tile__name {
    display: block;
  }
}

.game-tile__score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
}

.game-tile__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--medium-gray);
  text-align: center;
}

.game-tile__network {
  background: var(--light-gray);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.game-tile__detail {
  font-size: 0.8rem;
  color: var(--medium-gray);
}

/* Sport group header */
.sport-group {
  margin-bottom: 1.5rem;
}

.sport-group__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.sport-group__games {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .sport-group__games {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sport-group__games {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Date tabs */
.date-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.date-tabs__tab {
  flex: 1;
  padding: 0.6rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--medium-gray);
  cursor: pointer;
  transition: all var(--transition);
}

.date-tabs__tab:hover {
  color: var(--navy);
}

.date-tabs__tab--active {
  background: var(--white);
  color: var(--red);
  box-shadow: var(--shadow);
}

/* No games state */
.no-games {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--medium-gray);
}

.no-games p {
  margin-bottom: 0.5rem;
}

/* Games loading state */
.games-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--medium-gray);
}

/* Homepage compact game tiles */
.home-games {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-games {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-games {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--medium-gray); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
