/* Cascade Carpool – Clean dark theme with gold accents */
:root {
  --bg: #0d0d0d;
  --bg-elevated: #161616;
  --bg-card: #1c1c1c;
  --gold: #c9a227;
  --gold-light: #e0c15a;
  --gold-dark: #a6851e;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --border: #2a2a2a;
  --success: #4ade80;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: rgba(13, 13, 13, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #111;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: #111;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-light);
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a1608 0%, var(--bg) 70%);
}

.hero-logo {
  width: 180px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(201, 162, 39, 0.25));
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Quick Schedule */
.quick-schedule {
  padding: 3.5rem 0;
  background: var(--bg-elevated);
}

.quick-schedule h2,
.features h2,
.contact h2,
.page-header h1 {
  text-align: center;
  margin-bottom: 1.75rem;
  font-size: 1.75rem;
}

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

.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.schedule-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.schedule-card.muted {
  opacity: 0.65;
}

.schedule-card h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.schedule-card ul {
  list-style: none;
}

.schedule-card li {
  margin: 0.4rem 0;
}

.time {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Features */
.features {
  padding: 3.5rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}

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

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding: 3.5rem 0;
  background: var(--bg-elevated);
  text-align: center;
}

.contact p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea {
  margin-bottom: 1rem;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Page Header */
.page-header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a1608 0%, var(--bg) 70%);
}

.page-header p {
  color: var(--text-muted);
}

/* Schedule / Calendar */
.schedule-section {
  padding: 2rem 0 4rem;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.morning {
  background: var(--gold);
}

.legend-dot.afternoon {
  background: #60a5fa;
}

.legend-dot.off {
  background: #404040;
}

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

.month-title {
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  min-height: 100px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem;
  position: relative;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day.other-month {
  background: #121212;
  color: #555;
}

.calendar-day.today {
  background: rgba(201, 162, 39, 0.08);
}

.calendar-day.no-service {
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.025) 8px 16px);
}

.calendar-day.no-service .time-badge.off {
  color: #999;
}

.day-number {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.day-times {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.time-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  text-align: center;
  line-height: 1.2;
}

.time-badge.morning {
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-light);
}

.time-badge.afternoon {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

.time-badge.off {
  background: #2a2a2a;
  color: #666;
  font-weight: 500;
}

.time-reference {
  text-align: center;
}

.time-reference h3 {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.time-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.time-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.time-card h4 {
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.time-card.muted {
  opacity: 0.6;
}

/* Drivers */
.drivers-section {
  padding: 2rem 0 4rem;
}

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

.driver-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.driver-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.driver-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2410, #1a1608);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.avatar-initials {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.driver-info h2 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.driver-role {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.driver-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.drivers-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 80px;
    padding: 0.35rem;
  }

  .time-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.25rem;
  }

  .day-number {
    font-size: 0.8rem;
  }

  .calendar-header {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 140px;
  }

  .calendar-day {
    min-height: 70px;
  }

  .time-badge {
    font-size: 0.6rem;
  }
}
