/* =========================================================
   TubeMap Pro — Main Stylesheet
   Structure: Variables > Reset > Base > Layout > Components > Sections > Responsive
   ========================================================= */

/* ---------- 1. CSS Variables (Design Tokens) ---------- */
:root {
  /* Brand palette — transit inspired */
  --color-primary: #0B3D91;      /* deep navy blue */
  --color-primary-dark: #082a66;
  --color-primary-light: #E8EDF9;
  --color-accent: #E32017;       /* vibrant red, used sparingly */
  --color-accent-dark: #b8180f;
  --color-yellow: #FFB81C;       /* secondary accent for highlights */
  --color-green: #00782A;
  --color-purple: #7156A5;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-bg-dark: #0A2A66;

  --color-text: #16213E;
  --color-text-muted: #5B6478;
  --color-border: #E2E6EE;

  /* Typography */
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 61, 145, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 61, 145, 0.12);
  --shadow-lg: 0 16px 40px rgba(11, 61, 145, 0.16);
  --transition: all 0.25s ease;
}

/* ---------- 2. Reset ---------- */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section-bg-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary-light);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-block { width: 100%; }

/* ---------- 4. Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding-block: 0.4rem;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 1100;
}

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

.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); }

/* ---------- 5. Hero Section ---------- */
.hero {
  padding-top: calc(84px + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  background: linear-gradient(160deg, var(--color-primary-light) 0%, #ffffff 55%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: var(--space-sm);
}

.hero-content h1 span { color: var(--color-accent); }

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }

.hero-trust {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-trust div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
}

.hero-trust div span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-visual {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 2px dashed var(--color-primary-light);
  border-radius: calc(var(--radius-lg) + 12px);
  z-index: -1;
}

/* ---------- 6. Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.feature-icon svg { width: 26px; height: 26px; stroke: var(--color-primary); }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- 7. How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: var(--space-md);
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.step-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step-card p { color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------- 8. Cities Grid ---------- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.city-chip {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition);
}

.city-chip:hover { box-shadow: var(--shadow-sm); border-color: var(--color-primary-light); transform: translateY(-3px); }

.city-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.city-chip h4 { font-size: 1rem; color: var(--color-text); }
.city-chip span { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- 9. Map Preview ---------- */
.map-preview-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.map-preview-toolbar .dots { display: flex; gap: 6px; }
.map-preview-toolbar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); }

.zoom-controls { display: flex; gap: 0.5rem; }
.zoom-controls button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: var(--transition);
}
.zoom-controls button:hover { background: var(--color-primary); color: #fff; }

.map-preview-canvas {
  padding: var(--space-md);
  overflow: auto;
  position: relative;
  max-height: 640px;
  background:
    linear-gradient(90deg, rgba(11,61,145,0.04) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(rgba(11,61,145,0.04) 1px, transparent 1px) 0 0/24px 24px,
    #fff;
}

.map-station {
  cursor: pointer;
  transition: var(--transition);
}
.map-station:hover circle { r: 9; }

.map-tooltip {
  position: absolute;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 5;
}

.map-preview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.map-preview-legend span { display: flex; align-items: center; gap: 0.4rem; color: var(--color-text-muted); }
.legend-swatch { width: 16px; height: 4px; border-radius: 2px; }

/* ---------- 9b. Real Map Search Section ---------- */
.map-search-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-search-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.map-search-box {
  position: relative;
  flex: 1 1 320px;
  min-width: 220px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.map-search-box input[type="search"] {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.4rem;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  font-size: 0.98rem;
  font-family: var(--font-body);
  background: #fff;
  transition: var(--transition);
}
.map-search-box input[type="search"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  max-height: 320px;
  overflow-y: auto;
  z-index: 20;
}

.search-suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-size: 0.92rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover,
.search-suggestion-item.active { background: var(--color-primary-light); }

.suggestion-dots { display: flex; gap: 3px; flex-shrink: 0; }
.suggestion-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.suggestion-name { flex: 1; font-weight: 500; }
.suggestion-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: #fdeceb;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.search-result-panel {
  min-height: 0;
  padding: 0 var(--space-md);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.search-result-panel.visible {
  max-height: 220px;
  padding: var(--space-sm) var(--space-md);
}

.search-status-title { font-weight: 600; color: var(--color-primary); margin-bottom: 0.5rem; }
.search-status.not-found { color: var(--color-accent-dark); font-weight: 500; }

.line-chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.line-chip {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.legend-item { cursor: pointer; }

.station-ring {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0;
  opacity: 0;
}

.map-station.station-highlighted .station-ring {
  stroke-width: 3;
  opacity: 1;
  animation: stationPulse 1.4s ease-out infinite;
}

.map-station.station-highlighted circle:first-child {
  fill: var(--color-accent);
  stroke: var(--color-accent-dark);
}

@keyframes stationPulse {
  0%   { r: 8;  opacity: 0.9; stroke-width: 3; }
  100% { r: 22; opacity: 0;   stroke-width: 0.5; }
}

.map-station { cursor: pointer; }
.map-station .station-label { pointer-events: none; user-select: none; }
.tube-line { transition: opacity 0.2s ease; }

#mapSvg {
  transition: transform 0.25s ease;
  transform-origin: top left;
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .map-search-toolbar { padding: var(--space-sm); }
  .map-search-box { flex-basis: 100%; }
  .map-preview-canvas { max-height: 420px; padding: var(--space-sm); }
  .map-station .station-label { font-size: 8px; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .map-preview-canvas { max-height: 520px; }
}


/* ---------- 10. Why Use / Benefits ---------- */
.benefits-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

.benefits-list { display: flex; flex-direction: column; gap: var(--space-md); }

.benefit-item { display: flex; gap: var(--space-sm); align-items: flex-start; }

.benefit-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.benefit-item h4 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.benefit-item p { color: var(--color-text-muted); font-size: 0.92rem; }

.benefits-panel {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.benefits-panel h3 { color: #fff; font-size: 1.4rem; margin-bottom: var(--space-sm); }
.benefits-panel p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-md); }

/* ---------- 11. Popular Routes ---------- */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.route-card {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-primary);
  transition: var(--transition);
}

.route-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.route-card .route-name { font-weight: 700; font-family: var(--font-heading); margin-bottom: 0.3rem; }
.route-card .route-meta { font-size: 0.85rem; color: var(--color-text-muted); display: flex; justify-content: space-between; }

/* ---------- 12. Stats Counters ---------- */
.stats-section {
  background: var(--color-primary);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-yellow);
}

.stat-item .stat-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* ---------- 13. Testimonials ---------- */
.testimonial-slider {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.testimonial-track {
  overflow: hidden;
}

.testimonial-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: var(--space-lg);
  text-align: center;
}

.testimonial-quote {
  font-size: 1.15rem;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.author-info strong { display: block; font-size: 0.95rem; }
.author-info span { font-size: 0.82rem; color: var(--color-text-muted); }

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: center;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  font-size: 1.1rem;
  transition: var(--transition);
}
.testimonial-arrow:hover { background: var(--color-primary); color: #fff; }

.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
  transition: var(--transition);
}
.testimonial-dots button.active { background: var(--color-accent); width: 22px; border-radius: 5px; }

/* ---------- 14. FAQ Accordion ---------- */
.faq-list { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-sm); }

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1rem;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1.1rem;
  color: var(--color-primary);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--color-accent); color: #fff; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- 15. CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--space-xs); }
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  margin-inline: auto;
}
.cta-banner .hero-cta { justify-content: center; }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .brand { color: #fff; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.9rem; max-width: 300px; margin-bottom: var(--space-sm); }

.social-icons { display: flex; gap: 0.6rem; }
.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--color-accent); }
.social-icons svg { width: 16px; height: 16px; stroke: #fff; }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--color-yellow); }

.footer-contact li { font-size: 0.9rem; margin-bottom: 0.6rem; }

.footer-bottom {
  text-align: center;
  padding-block: var(--space-md);
  font-size: 0.85rem;
}

/* ---------- 17. Scroll Reveal ---------- */
/* IMPORTANT: elements are visible by default (no opacity:0 here).
   JavaScript adds .js-enabled only after it confirms it's running,
   which then hides elements until they scroll into view. This means
   if JS is blocked, delayed, or fails for any reason, all content
   still renders normally instead of staying invisible. */
.reveal.js-enabled {
  opacity: 0;
  transform: translateY(24px);
}
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 18. Legal Pages ---------- */
.legal-page {
  padding-top: calc(84px + var(--space-xl));
  padding-bottom: var(--space-2xl);
}

.legal-page .container { max-width: 860px; }

.legal-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.5rem; }
.legal-updated { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-lg); }

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-page p, .legal-page li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-size: 0.98rem;
}

.legal-page ul { padding-left: 1.4rem; list-style: disc; }
.legal-page a.inline-link { color: var(--color-primary); text-decoration: underline; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- 18b. About & Contact Pages ---------- */
.page-intro {
  padding-top: calc(84px + var(--space-xl));
  padding-bottom: var(--space-md);
}

.page-intro .section-header { margin-bottom: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  font-size: 0.98rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.form-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: var(--space-md);
}
.form-success.visible { display: flex; }

.contact-info-panel {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: #fff;
}
.contact-info-panel h3 { color: #fff; font-size: 1.3rem; margin-bottom: var(--space-sm); }
.contact-info-panel p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-md); }

.contact-info-list { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-md); }
.contact-info-item { display: flex; gap: var(--space-sm); align-items: flex-start; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; stroke: #fff; }
.contact-info-item strong { display: block; font-size: 0.95rem; }
.contact-info-item span, .contact-info-item a { font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.contact-info-item a:hover { color: var(--color-yellow); }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- 19. Responsive Breakpoints ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-layout { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; margin-inline: auto; }
  .cta-banner { padding: var(--space-lg) var(--space-md); }
}

/* Mobile nav + single column */
@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80%);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    gap: var(--space-md);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 720px) {
  .features-grid,
  .steps-grid,
  .cities-grid,
  .routes-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section { padding-block: var(--space-xl); }
  .hero { padding-top: calc(76px + var(--space-xl)); }
  .hero-trust { gap: var(--space-md); }
  .cta-banner {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
  }
  .cta-banner .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-banner .hero-cta .btn {
    width: 100%;
  }
  .hero-visual { display: none; }
}
