:root {
  --navy: #082649;
  --navy-2: #0f3a5f;
  --teal: #1d6f7a;
  --orange: #ea7a1d;
  --orange-dark: #cf6913;
  --ink: #1a2b3c;
  --muted: #5b6b7a;
  --card: #ffffff;
  --page-bg: #f4f7fa;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(8, 38, 73, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-dark); }

/* ---------- Hero ---------- */
/* Flat fill matching the banner image's baked background (#00152e, sampled
   from banner.webp edge pixels) exactly — no gradients here, or the banner's
   edges become visible against the hero. The banner's right edge is feathered
   into this same color during export (see DEPLOY.md). */
.hero {
  background: #00152e;
  color: #fff;
  padding: 0 0 72px;
}
.hero-inner { text-align: center; }

/* The banner artwork carries the Reliable / Convenient / Affordable badges. */
.hero-banner {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0 auto 10px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-sub {
  margin: 0 auto 32px;
  max-width: 640px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #d7e3ee;
}

/* ---------- Search card ---------- */
.search-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  max-width: 940px;
  margin: 0 auto;
  text-align: left;
  color: var(--ink);
  min-height: 96px;
}
#distribusion-search { width: 100%; }

.search-fallback[hidden] { display: none; }
.search-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.search-fallback-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); }

/* ---------- Content sections (How it works / About / FAQ) ---------- */
.content { padding: 56px 0; }
.content-alt { background: #ffffff; }
.content h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.content p { max-width: 760px; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.steps h3::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.9rem;
}
.steps p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Route pages ---------- */
.hero-compact { padding-top: 28px; }
.breadcrumb {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: #9fb2c4;
}
.breadcrumb a { color: #d7e3ee; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.route-facts {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 980px;
}
.route-facts li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--muted);
}
.route-facts strong {
  display: block;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.content h3 {
  margin: 26px 0 8px;
  font-size: 1.1rem;
  color: var(--navy);
}

.popular-searches a {
  color: inherit;
  text-decoration: none;
}
.popular-searches a:hover { color: var(--orange-dark); }

.popular-title {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  color: var(--navy);
}
.popular-searches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}
.popular-searches li {
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 7px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 20px;
  margin-bottom: 12px;
  max-width: 760px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.faq-item p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd9e4;
  padding: 32px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.footer-copy { margin: 0 0 4px; font-size: 0.9rem; }
.footer-note { margin: 0; font-size: 0.8rem; color: #9fb2c4; }
.footer-note a { color: #cdd9e4; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 0 0 56px; }
  .steps { grid-template-columns: 1fr; }
  .content { padding: 40px 0; }
}
