:root {
  --amtrak-blue: #003b71;
  --amtrak-red: #c8102e;
  --amtrak-gray: #f4f6f8;
  --amtrak-dark: #1b2733;
  --amtrak-light: #ffffff;
}

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

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--amtrak-dark);
  background: var(--amtrak-gray);
}

.bg {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f5 45%, #f4f6f8 100%);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 64px;
  background: var(--amtrak-light);
  border-bottom: 4px solid var(--amtrak-red);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--amtrak-blue);
}

.mark {
  background: var(--amtrak-blue);
  color: var(--amtrak-light);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.wordmark {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--amtrak-dark);
  font-weight: 500;
}

.call-btn {
  border: none;
  background: var(--amtrak-red);
  color: var(--amtrak-light);
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(200, 16, 46, 0.2);
}

.call-btn.large {
  padding: 14px 26px;
  font-size: 1rem;
}

.call-btn.outline {
  background: transparent;
  color: var(--amtrak-blue);
  border: 2px solid var(--amtrak-blue);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--amtrak-blue);
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amtrak-red);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.subhead {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #4d5a67;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.secondary {
  color: var(--amtrak-blue);
  text-decoration: none;
  font-weight: 600;
}

.disclaimer {
  font-size: 0.85rem;
  color: #6a7a89;
}

.hero-card {
  background: var(--amtrak-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--amtrak-blue);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 20px;
}

.status {
  color: var(--amtrak-red);
}

.metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric .label {
  color: #6b7b89;
}

.route {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--amtrak-red);
  border-radius: 50%;
}

.route-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--amtrak-red), var(--amtrak-blue));
}

.card-note {
  font-size: 0.9rem;
  color: #52606d;
}

.section {
  padding: 48px 64px;
}

.section h2 {
  color: var(--amtrak-blue);
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tile {
  background: var(--amtrak-light);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--amtrak-red);
}

.tile h3 {
  margin-bottom: 10px;
  color: var(--amtrak-blue);
}

.safety {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--amtrak-blue);
  color: var(--amtrak-light);
}

.safety h2 {
  color: var(--amtrak-light);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 64px;
  background: var(--amtrak-dark);
  color: var(--amtrak-light);
  font-size: 0.9rem;
  gap: 12px;
  flex-wrap: wrap;
}

.affiliation {
  color: #b9c4ce;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 33, 0.6);
}

.modal-card {
  position: relative;
  background: var(--amtrak-light);
  padding: 32px;
  border-radius: 16px;
  width: min(420px, 90vw);
  z-index: 1;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.modal-card h2 {
  color: var(--amtrak-blue);
  margin-bottom: 12px;
}

.phone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0;
  font-weight: 600;
}

.phone a {
  color: var(--amtrak-red);
  text-decoration: none;
  font-size: 1.2rem;
}

.close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .section {
    padding: 40px 24px;
  }

  .safety {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
  }
}
