/*!
  Taxi Casablanca Marrakech — modern theme
  Design tokens + components. Mobile-first.
*/

:root {
  --navy-950: #0a1220;
  --navy-900: #0f1c30;
  --navy-800: #16283f;
  --navy-700: #1e3554;
  --amber-400: #ffc157;
  --amber-500: #f5a623;
  --amber-600: #d98c0f;
  --wa-500: #25d366;
  --wa-600: #1ebe5b;
  --ink: #16202c;
  --muted: #5c6b7a;
  --muted-light: #8895a3;
  --bg: #f6f8fa;
  --card: #ffffff;
  --border: #e6eaef;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(15, 28, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 28, 48, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 18, 32, 0.22);
  --container: 1180px;
  --header-h: 76px;
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 4vw + .5rem, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.2vw + .5rem, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber-500);
  color: var(--navy-950);
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: #cfd8e3;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 12px;
  overflow: hidden;
}
.topbar-left { display: flex; gap: 18px; align-items: center; min-width: 0; overflow: hidden; }
.topbar a { color: #cfd8e3; }
.topbar a:hover { color: var(--amber-400); }
.topbar-left span, .topbar-left a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar svg { width: 14px; height: 14px; flex: none; }
.lang-switch { display: flex; gap: 10px; align-items: center; }
.lang-switch a { display: flex; align-items: center; gap: 5px; opacity: .8; }
.lang-switch a.active, .lang-switch a:hover { opacity: 1; color: #fff; }
.lang-switch img, .lang-switch svg { width: 18px; height: 12px; border-radius: 2px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 18, 32, 0.97);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .2s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 0; overflow: hidden; }
.brand img { height: 42px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: hidden; }
.brand-text strong { color: #fff; font-family: var(--font-heading); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { color: var(--amber-400); font-size: .72rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-cta-mobile { display: none; }
.main-nav ul { display: flex; gap: 20px; align-items: center; }
.main-nav a {
  color: #dfe6ee;
  font-weight: 500;
  font-size: .93rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: #fff; border-color: var(--amber-500); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.main-nav { min-width: 0; overflow: hidden; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: .92rem;
  font-family: var(--font-body);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); color: var(--navy-950); box-shadow: 0 8px 20px rgba(245,166,35,.35); }
.btn-amber:hover { box-shadow: 0 10px 26px rgba(245,166,35,.45); }
.btn-wa { background: var(--wa-500); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn-wa:hover { background: var(--wa-600); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: #fff; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .82rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245,166,35,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(37,90,140,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  color: #fff;
  padding: 52px 0 70px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,.14);
  border: 1px solid rgba(245,166,35,.35);
  color: var(--amber-400);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 strong { color: var(--amber-400); font-weight: 700; }
.hero-lead { color: #c6d1dd; font-size: 1.06rem; max-width: 54ch; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .85rem;
  color: #e3e9ef;
}
.hero-badges svg { width: 16px; height: 16px; color: var(--amber-400); flex: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-reassure { margin: 10px 0 0; font-size: .8rem; color: var(--muted-light); }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: #fff; }
.hero-stats div span { font-size: .8rem; color: var(--muted-light); }

/* Booking card */
.booking-card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.booking-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 2px;
  background: linear-gradient(135deg, var(--amber-400), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .6;
  pointer-events: none;
}
.booking-card h2 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.booking-card h2 svg { width: 20px; height: 20px; color: var(--amber-600); }
.booking-sub { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .78rem; font-weight: 600; color: var(--navy-800); }
.field select,
.field input {
  border: 1px solid var(--border);
  background: #fbfcfd;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.field-hint { font-size: .74rem; color: var(--muted-light); }

.booking-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  justify-content: center;
}
.booking-note svg { width: 15px; height: 15px; color: var(--wa-500); flex: none; }
.booking-alt {
  text-align: center;
  margin-top: 10px;
  font-size: .82rem;
  color: var(--muted);
}
.booking-alt a { color: var(--navy-800); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; scroll-margin-top: calc(var(--header-h) + 38px + 16px); }
.section-alt { background: var(--card); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { background: rgba(245,166,35,.12); border-color: rgba(245,166,35,.3); color: var(--amber-600); }
.section-head p { font-size: 1.02rem; }

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feature-card .icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card .icon-wrap svg { width: 24px; height: 24px; color: var(--navy-950); }
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { margin: 0; font-size: .92rem; }

/* Routes */
.route-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  margin-bottom: 26px;
}
@media (min-width: 860px) {
  .route-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}
.route-hero-body { padding: 36px; }
.route-hero-body .eyebrow { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: var(--amber-400); }
.route-hero-body h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.route-hero-body p { color: #c6d1dd; }
.route-path { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 16px 0 20px; flex-wrap: wrap; }
.route-path span { background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 999px; font-size: .88rem; }
.route-path svg { width: 18px; height: 18px; color: var(--amber-400); }
.route-hero-stats {
  display: flex; flex-wrap: wrap; gap: 22px;
  padding: 30px 36px;
  background: rgba(0,0,0,.18);
  align-content: center;
}
.route-hero-stats div strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--amber-400); }
.route-hero-stats div span { font-size: .8rem; color: #c6d1dd; }

.routes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.route-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.route-card .route-from-to { font-weight: 700; color: var(--navy-900); display: flex; align-items: center; gap: 8px; font-size: .98rem; }
.route-card .route-from-to svg { width: 16px; height: 16px; color: var(--amber-600); }
.route-card .route-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted-light); }
.route-card .route-price { font-family: var(--font-heading); font-size: 1.4rem; color: var(--navy-900); margin: 4px 0; }
.route-card .route-price span { font-size: .8rem; color: var(--muted); font-weight: 400; font-family: var(--font-body); }

.route-links-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.route-links-panel h3 { font-size: 1.05rem; color: var(--navy-900); margin-bottom: 14px; }
.route-links-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.route-link-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--navy-800);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.route-link-chip:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* Fleet */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.fleet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.fleet-card figure { margin: 0; background: #eef1f4; padding: 18px; }
.fleet-card figure img { margin: 0 auto; max-height: 130px; object-fit: contain; }
.fleet-card .fleet-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fleet-card .fleet-cap { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.fleet-card .fleet-cap svg { width: 15px; height: 15px; color: var(--amber-600); }
.fleet-card p { font-size: .88rem; margin: 0; flex: 1; }
.fleet-card .btn { margin-top: 10px; }

/* Pricing */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table.price-table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 560px; }
table.price-table th {
  background: var(--navy-900); color: #fff;
  text-align: left; padding: 14px 16px; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase;
}
table.price-table td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: .92rem; }
table.price-table tbody tr:hover { background: #fbf6ec; }
table.price-table td.price { font-family: var(--font-heading); font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.price-tables { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 960px) { .price-tables { grid-template-columns: 1fr 1fr; } }
.price-tables h3 { margin-bottom: 12px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.step .step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--navy-950); font-family: var(--font-heading); font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; font-size: 1.02rem; }
.step p { font-size: .88rem; margin: 0; }

/* SEO content */
.seo-content { max-width: 820px; margin: 0 auto; }
.seo-content h2 { margin-top: 0; }
.seo-content h3 { margin-top: 28px; color: var(--navy-800); }
.seo-content p { font-size: .98rem; }
.seo-content ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; color: var(--muted); }
.seo-content li { margin-bottom: 6px; }
.seo-content a { color: var(--navy-800); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; font-family: var(--font-heading); font-weight: 600; font-size: .98rem; color: var(--navy-900);
}
.faq-q svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; color: var(--amber-600); }
.faq-item[open] .faq-q svg { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; font-size: .92rem; color: var(--muted); }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: rgba(245,166,35,.14); display: flex; align-items: center; justify-content: center;
}
.contact-row .icon-wrap svg { width: 20px; height: 20px; color: var(--amber-600); }
.contact-row strong { display: block; font-size: .82rem; color: var(--muted-light); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.contact-row a, .contact-row span { color: var(--navy-900); font-weight: 600; }
.contact-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius-lg); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); min-height: 320px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c6d1dd; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Footer */
.site-footer { background: var(--navy-950); color: #aab6c4; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-heading); font-size: .95rem; margin-bottom: 16px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: .88rem; color: #aab6c4; }
.footer-grid a:hover { color: var(--amber-400); }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; color: #8b98a8; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: .8rem;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: #6f7c8c;
}
.footer-bottom a { color: #8b98a8; }
.footer-partners {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
}
.footer-partners span.footer-partners-label { font-size: .78rem; color: #6f7c8c; white-space: nowrap; }
.footer-partners ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; }
.footer-partners a { font-size: .82rem; color: #aab6c4; }
.footer-partners a:hover { color: var(--amber-400); }

/* Sticky mobile CTA bar */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
  display: none;
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-cta-bar a { flex: 1; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Responsive ----------
   Note: .container maxes out at 1180px, so it never gets roomier past that
   viewport width — these rules must apply for every viewport >=960px, not
   just up to 1180px, or the squeeze comes back at any wider viewport. */
@media (min-width: 960px) {
  .header-cta .btn-outline { display: none; }
  .main-nav ul { gap: 4px; }
  .main-nav a { font-size: .74rem; padding: 8px 1px; }
}

@media (max-width: 959px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .topbar-left span:nth-child(3) { display: none; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 62px; }
}

@media (max-width: 640px) {
  .form-row.two, .form-row.three { grid-template-columns: 1fr 1fr; }
  .hero { padding: 34px 0 46px; }
  .section { padding: 54px 0; }
  .route-hero-stats { justify-content: space-between; }
  .topbar-left span:nth-child(2) { display: none; }
  .brand-text { max-width: 46vw; }
  .header-cta .btn-amber { padding: 10px 14px; font-size: .84rem; }
}

@media (max-width: 480px) {
  .brand-text span { display: none; }
}

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

/* Mobile nav panel */
.main-nav.open {
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  bottom: 0;
  background: var(--navy-950);
  padding: 20px;
  overflow-y: auto;
  z-index: 480;
}
.main-nav.open ul { flex-direction: column; align-items: stretch; gap: 4px; }
.main-nav.open a { display: block; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.main-nav.open .header-cta-mobile { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.flash {
  animation: flashHighlight 1.1s ease;
}
@keyframes flashHighlight {
  0% { box-shadow: 0 0 0 0 rgba(245,166,35,.55); }
  100% { box-shadow: var(--shadow-lg); }
}
