:root {
  --navy: #0b2050;
  --navy-2: #16306b;
  --teal: #1d6f7a;
  --accent: #e42c7c;
  --accent-dark: #c11b64;
  --ink: #1a2b3c;
  --muted: #5b6b7a;
  --card: #ffffff;
  --page-bg: #f6f5fa;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 32, 80, 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(--accent-dark); }

/* ---------- Hero ---------- */
/* Flat fill matching the banner artwork's bottom badge bar (#001a3c, sampled
   from banner.webp bottom-edge pixels) so the poster sits on its own color. */
.hero {
  background: #001a3c;
  color: #fff;
  padding: 28px 0 72px;
}
.hero-inner { text-align: center; }

/* The banner artwork is full-bleed (no feathered edges), so present it as a
   rounded poster card instead of blending it into the background. */
.hero-banner {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0 auto 26px;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.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: #e3d9ee;
}

/* ---------- 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(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

/* ---------- Content sections (Routes / 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(--accent);
  color: #fff;
  font-size: 0.9rem;
}
.steps p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.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;
}
.brand-mark { color: var(--accent); }
.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: 16px 0 56px; }
  .steps { grid-template-columns: 1fr; }
  .content { padding: 40px 0; }
}
