/* ===================================================================
   CabsWay V2 — Design system
   Theme: "Night Highway" — deep navy road at night, marigold cab-light
   accent (nod to taxi yellow + the marigold garlands sold at Shirdi/
   Trimbakeshwar), fare numbers set like a taxi meter in monospace.
   =================================================================== */

:root {
  /* Palette */
  --navy: #14213D;
  --navy-2: #1D2F52;
  --navy-3: #26375E;
  --marigold: #F2A63A;
  --marigold-dark: #D98C1F;
  --paper: #F7F7F4;
  --paper-dim: #EFEDE6;
  --ink: #1A1D24;
  --slate: #5B6472;
  --line: #E1DFD6;
  --signal-red: #D64545;
  --success: #3D8B5F;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(20, 33, 61, 0.10);
  --shadow-hard: 0 4px 0 rgba(20, 33, 61, 0.9);
  --container: 1180px;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--marigold-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--marigold-dark);
  display: inline-block;
}

section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper-dim); }
.section-dark { background: var(--navy); color: #E9EBF2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #B7C0D4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.btn-primary {
  background: var(--marigold);
  color: var(--navy);
  box-shadow: var(--shadow-hard);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--marigold-dark); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(20,33,61,.9); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: inherit;
}
.btn-outline:hover { border-color: var(--marigold); color: var(--marigold); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .82rem; border-radius: 8px; }
.btn-danger { background: var(--signal-red); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #C6CCDC; font-size: .92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--marigold); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 880px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 12px 24px 24px; display: none; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.hide-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 500px at 85% -10%, rgba(242,166,58,.16), transparent 60%), var(--navy);
  color: #fff;
  padding: 68px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero-sub { color: #B7C0D4; font-size: 1.05rem; max-width: 46ch; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat b { font-family: var(--font-mono); font-size: 1.5rem; color: var(--marigold); display: block; }
.hero-stat span { font-size: .78rem; color: #9AA5BF; text-transform: uppercase; letter-spacing: .06em; }

/* Signature route-line graphic */
.route-line {
  position: relative;
  height: 46px;
  margin: 30px 0 6px;
}
.route-line svg { width: 100%; height: 100%; }
.route-line .car {
  animation: drive 5s linear infinite;
}
@keyframes drive {
  0% { transform: translateX(0); }
  100% { transform: translateX(340px); }
}
@media (max-width: 500px) { .route-line .car { animation: none; } .route-line { display:none; } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(242,166,58,.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.icon-badge img { width: 24px; height: 24px; }

.feature-card { transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

/* ---------- Booking form ---------- */
.booking-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: .95rem;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--marigold);
  background: #fff;
}
.vehicle-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .vehicle-pick { grid-template-columns: 1fr 1fr; } }
.vehicle-option {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.vehicle-option img { height: 46px; margin: 0 auto 8px; }
.vehicle-option small { display:block; color: var(--slate); font-size: .72rem; }
.vehicle-option.selected, .vehicle-option:hover { border-color: var(--marigold); background: #FFF7EA; }
.vehicle-option input { display: none; }

/* Meter-style fare display (signature element) */
.meter {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.meter::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.meter .meter-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8D97B3; }
.meter .meter-value {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  color: var(--marigold);
  text-shadow: 0 0 18px rgba(242,166,58,.55);
  margin: 4px 0 2px;
}
.meter .meter-breakdown { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .82rem; color: #C6CCDC; padding: 6px 0; border-top: 1px dashed rgba(255,255,255,.15); margin-top: 12px; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: .75rem; font-weight: 600; }
.pill-open { background: #E3F2E9; color: var(--success); }
.pill-full { background: #FBEAEA; color: var(--signal-red); }
.pill-completed { background: #E7EAF2; color: var(--navy); }
.pill-paid { background: #E3F2E9; color: var(--success); }
.pill-pending { background: #FDF1DD; color: var(--marigold-dark); }
.pill-partial { background: #FDF1DD; color: var(--marigold-dark); }
.pill-cancelled { background: #FBEAEA; color: var(--signal-red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B7C0D4; padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .9rem; }
.footer-grid a:hover { color: var(--marigold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--navy); font-family: var(--font-display); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--marigold-dark); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; padding-top: 10px; }

/* ---------- Table (generic) ---------- */
table.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); }
.data-table tr:hover td { background: var(--paper-dim); }

/* ---------- Two-column responsive layout (booking, contact, etc.) ---------- */
.split-layout {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 32px;
  align-items: start;
}
.split-layout-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .split-layout, .split-layout-even { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-14 { gap: 14px; }
.between { justify-content: space-between; }
.text-sm { font-size: .85rem; }
.muted { color: var(--slate); }
.badge-count { font-family: var(--font-mono); }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: none; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--marigold); color: var(--navy); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.toast {
  position: fixed; bottom: 94px; right: 24px; z-index: 300;
  background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 10px;
  box-shadow: var(--shadow-soft); font-size: .9rem; max-width: 320px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- Public-site modal (WhatsApp confirmation, etc.) ---------- */
.site-modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,33,61,.65);
  display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px;
  backdrop-filter: blur(2px);
}
.site-modal-backdrop.open { display: flex; }
.site-modal {
  background: #fff; border-radius: var(--radius-lg); padding: 30px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  border: 3px solid var(--marigold);
  box-shadow: 0 20px 60px rgba(20,33,61,.35);
  animation: cwPopIn .25s ease;
}
@keyframes cwPopIn {
  from { transform: scale(.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.site-modal .modal-icon { font-size: 2.4rem; margin-bottom: 6px; }
.site-modal h3 { margin-top: 0; }

/* ---------- Floating WhatsApp button (site-wide) ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 250;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 26px rgba(37, 211, 102, .55);
}
.floating-whatsapp img { width: 30px; height: 30px; }
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: cwWaPulse 2.2s ease-out infinite;
}
@keyframes cwWaPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp::before { animation: none; }
}
@media (max-width: 560px) {
  .floating-whatsapp { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .floating-whatsapp img { width: 26px; height: 26px; }
}
