/* ============================================================
   JAMHURI ERRAND SERVICES — Design tokens
   Brand: banana yellow / navy / white (shared with Airport Transfers)
   Signature motif: the route line — errands as stops that light up
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@500;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0F1B3D;
  --navy-soft: #1A2C5C;
  --navy-softer: #243a72;
  --yellow: #FFD400;
  --yellow-deep: #E6BF00;
  --white: #FFFFFF;
  --ink: #0B1330;
  --success: #1FAA59;
  --danger: #E0473E;
  --paper: #F7F7F5;
  --grey: #6b7280;
  --line: rgba(15, 27, 61, 0.12);

  --display: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  --headline: 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(15, 27, 61, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 27, 61, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 212, 0, 0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--headline);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-text span {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--yellow);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.15s, background 0.15s;
  display: inline-block;
}
.nav-cta:hover { background: var(--white); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    background: none;
    border: none;
    color: var(--white);
    font-size: 26px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(15,27,61,0.94) 0%, rgba(15,27,61,0.88) 45%, rgba(15,27,61,0.75) 100%),
    url('images/nairobi-cbd-hero.jpg') center 35% / cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 76px 0 110px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(255,212,0,0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,212,0,0.22);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--yellow); }
.hero p.lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--headline);
  font-weight: 800;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,212,0,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.stat b {
  font-family: var(--display);
  font-size: 26px;
  display: block;
  color: var(--yellow);
}
.stat span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Route line signature (hero visual) ---------- */
.route-card {
  background: var(--navy-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(255,212,0,0.16);
  box-shadow: var(--shadow-lg);
}
.route-card h3 {
  font-family: var(--headline);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 22px;
  font-weight: 700;
}
.route {
  position: relative;
  padding-left: 6px;
}
.route-line {
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255,255,255,0.14);
}
.route-line-fill {
  position: absolute;
  left: 17px;
  top: 10px;
  width: 2px;
  background: var(--yellow);
  height: 0%;
  animation: fillRoute 2.6s 0.4s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fillRoute { to { height: 78%; } }
.stop {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding: 14px 0;
}
.stop-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-softer);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  font-size: 15px;
  transition: all 0.3s;
}
.stop.done .stop-dot {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}
.stop-body b {
  display: block;
  font-size: 14.5px;
  color: var(--white);
  margin-bottom: 2px;
}
.stop-body span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ---------- Section shells ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 12px;
}
.section-navy .kicker { color: var(--yellow); }
.section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.section .sub {
  font-size: 16.5px;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.6;
}
.section-navy .sub { color: rgba(255,255,255,0.7); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ---------- How it works (route-as-process, earned use of stops) ---------- */
.howit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 900px) {
  .howit { grid-template-columns: 1fr; gap: 28px; }
}
.howit::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--line);
}
@media (max-width: 900px) { .howit::before { display: none; } }
.howit-step { position: relative; padding: 0 18px; text-align: left; }
.howit-step .dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 19px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  border: 4px solid var(--paper);
}
.howit-step h4 {
  font-family: var(--headline);
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 8px;
}
.howit-step p { font-size: 14.5px; color: var(--grey); line-height: 1.55; margin: 0; }

/* ---------- Plan cards ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.plans-grid-6 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) and (min-width: 901px) {
  .plans-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .plans-grid-6 { grid-template-columns: 1fr; }
}

.kids-card {
  border-color: var(--yellow-deep);
  position: relative;
}
.kids-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  right: auto;
  background: var(--navy);
  color: var(--yellow);
}
.plan-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.featured {
  border-color: var(--yellow);
  background: var(--navy);
  color: var(--white);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-card h3 {
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
}
.plan-card .price {
  font-family: var(--display);
  font-size: 34px;
  margin: 6px 0 4px;
}
.plan-card .price span {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--grey);
}
.plan-card.featured .price span { color: rgba(255,255,255,0.6); }
.plan-card .price-note { font-size: 13px; color: var(--grey); margin-bottom: 22px; }
.plan-card.featured .price-note { color: rgba(255,255,255,0.6); }
.plan-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}
.plan-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.4;
}
.plan-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}
.plan-card.featured .plan-list li::before { color: var(--yellow); }
.plan-cta {
  text-align: center;
  padding: 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14.5px;
  background: var(--navy);
  color: var(--white);
  transition: background 0.15s, transform 0.15s;
}
.plan-card.featured .plan-cta { background: var(--yellow); color: var(--navy); }
.plan-cta:hover { transform: translateY(-2px); }

/* ---------- Custom quote band ---------- */
.custom-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius);
  padding: 44px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
  margin-top: 36px;
}
@media (max-width: 800px) { .custom-band { grid-template-columns: 1fr; padding: 32px 24px; } }
.custom-band h3 {
  font-family: var(--headline);
  font-size: 22px;
  margin: 0 0 10px;
}
.custom-band p { font-size: 15px; color: rgba(255,255,255,0.72); margin: 0; line-height: 1.6; }

/* ---------- Categories ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }

.city-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 760px) { .city-strip { grid-template-columns: 1fr; } }
.city-strip figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.city-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.city-strip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(15,27,61,0.88) 70%);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.cat-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.cat-card .ic { font-size: 26px; margin-bottom: 12px; display: block; }
.cat-card h4 { font-size: 15px; font-weight: 800; margin: 0 0 4px; font-family: var(--headline); }
.cat-card p { font-size: 13px; color: var(--grey); margin: 0; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-grid a, .footer-grid p { display: block; font-size: 14px; margin-bottom: 10px; line-height: 1.5; }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Forms (booking) ---------- */
.form-shell {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) { .form-shell { padding: 24px 18px; } }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--navy);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: var(--body);
  background: var(--paper);
  transition: border-color 0.15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--yellow-deep);
  outline: none;
  background: var(--white);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.helptext { font-size: 12.5px; color: var(--grey); margin-top: 6px; }

.steps-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.steps-bar .seg {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.steps-bar .seg.active { background: var(--yellow-deep); }
.steps-bar .seg.done { background: var(--success); }

.plan-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .plan-pick { grid-template-columns: 1fr; } }
.plan-pick-opt {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.plan-pick-opt:hover { border-color: var(--yellow-deep); }
.plan-pick-opt.selected { border-color: var(--yellow-deep); background: #FFFBEA; }
.plan-pick-opt b { display: block; font-size: 14px; margin-bottom: 2px; }
.plan-pick-opt span { font-size: 12.5px; color: var(--grey); }

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 560px) { .pay-methods { grid-template-columns: 1fr; } }
.pay-opt {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.15s;
}
.pay-opt .pe { font-size: 22px; display: block; margin-bottom: 6px; }
.pay-opt.selected { border-color: var(--yellow-deep); background: #FFFBEA; }

.total-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.total-box .lbl { font-size: 13px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.total-box .amt { font-family: var(--display); font-size: 26px; color: var(--yellow); }

.btn-block { width: 100%; justify-content: center; padding: 16px; font-size: 15.5px; }
.btn-secondary-block {
  width: 100%;
  justify-content: center;
  padding: 14px;
  background: var(--paper);
  color: var(--navy);
  border: 1.5px solid var(--line);
}

/* ---------- Status tracker ---------- */
.tracker-shell {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 600px) { .tracker-shell { padding: 26px 18px; } }
.tracker-head { text-align: center; margin-bottom: 36px; }
.tracker-head .tid { font-size: 13px; color: var(--grey); letter-spacing: 0.04em; }
.tracker-head h2 { font-family: var(--headline); font-size: 22px; margin: 10px 0 0; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.hidden { display: none !important; }
.error-msg {
  background: #FDEDEC;
  color: var(--danger);
  border: 1px solid #F5C6C3;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.success-msg {
  background: #E9F8EF;
  color: var(--success);
  border: 1px solid #BCEBCF;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(15,27,61,0.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.btn-primary .spinner { border-color: rgba(15,27,61,0.25); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Floating WhatsApp chat button (site-wide) ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 640px) {
  .wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ---------- Small button variants (used by brochures + map picker buttons) ---------- */
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--headline);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn-sm:hover { transform: translateY(-1px); }
.btn-sm-primary { background: var(--yellow); color: var(--navy); }
.btn-sm-primary:hover { background: var(--yellow-deep); }
.btn-sm-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-sm-ghost:hover { background: var(--paper); }
