/* ==========================================================================
   18 Cabs — website styles
   Brand: Deep Indigo #1A237E, Amber #FFC107 (shared with the mobile apps).
   Plain CSS on purpose: no build step, no CDN, nothing to go stale.
   ========================================================================== */

:root {
  --indigo: #1a237e;
  --indigo-600: #283593;
  --indigo-400: #3949ab;
  --indigo-50: #eef0fb;
  --amber: #ffc107;
  --amber-600: #e5a900;

  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --canvas: #f4f6fc;
  --ok: #2e7d32;
  --ok-bg: #eaf5ea;
  --error: #c62828;
  --error-bg: #fdecec;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px rgba(26, 35, 126, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 35, 126, 0.14);

  --max: 1140px;
  --gap: 1.5rem;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--indigo-400); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--indigo); }

img { max-width: 100%; height: auto; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

strong { color: var(--ink); }

small { font-size: 0.85rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 35, 126, 0.97);
  border-bottom: 3px solid var(--amber);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: blur(8px); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand-mark { width: 34px; height: 34px; flex: none; }

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav li { margin: 0; }

.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.site-nav a[aria-current='page'] {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-phone:hover { color: var(--amber); }

.nav-toggle,
.nav-toggle-label { display: none; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--amber);
  color: #231b00;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}
.btn-accent:hover { background: var(--amber-600); color: #231b00; }

.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-600); color: #fff; }

.btn-outline {
  border-color: currentColor;
  color: var(--indigo);
  background: transparent;
}
.btn-outline:hover { background: var(--indigo-50); color: var(--indigo); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.btn-block { width: 100%; }

/* ─── Sections ───────────────────────────────────────────────────────────── */

main { display: block; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-tight { padding: clamp(1.75rem, 4vw, 2.75rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--indigo-400);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead { font-size: 1.08rem; color: var(--body); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
  color: #fff;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, 0.92); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.6rem;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
}

.hero-points li::before {
  content: '✓';
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: #231b00;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.hero-card {
  background: var(--surface);
  color: var(--body);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg);
}

/* ─── Cards & grids ──────────────────────────────────────────────────────── */

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-list { list-style: none; padding: 0; margin: 1rem 0 0; }

.card-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.94rem;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1.2;
}

.stat-label { font-size: 0.88rem; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--indigo-50);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-amber { background: #fff6da; color: #7a5a00; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }

/* ─── Fleet / spec list ──────────────────────────────────────────────────── */

.spec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.spec li { margin: 0; }
.spec strong { color: var(--ink); }

.price-tag {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--indigo);
}

.price-tag span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* ─── Tables ─────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { background: var(--indigo-50); color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */

.form { display: grid; gap: 1.1rem; }

.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { display: grid; gap: 0.35rem; }

.field label { font-size: 0.9rem; font-weight: 700; color: var(--ink); }

.field .hint { font-size: 0.82rem; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
}

.field textarea { min-height: 7.5rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--indigo-400);
  outline: 2px solid rgba(57, 73, 171, 0.18);
  outline-offset: 0;
}

.field-error input,
.field-error select,
.field-error textarea { border-color: var(--error); }

.error-text { color: var(--error); font-size: 0.85rem; font-weight: 600; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 0.9rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 0.5rem; }

.radio-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.radio-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
}

.radio-card:hover { border-color: var(--indigo-400); }
.radio-card input { margin: 0; accent-color: var(--indigo); }

.otp-input {
  letter-spacing: 0.5em;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.flash {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
}

.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: #c6e4c6; }
.flash-error { background: var(--error-bg); color: var(--error); border-color: #f3c9c9; }

.notice {
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--amber);
  background: #fff9e6;
  border-radius: var(--radius-sm);
  color: #5a4300;
  font-size: 0.94rem;
}

.notice-info { border-left-color: var(--indigo-400); background: var(--indigo-50); color: #263164; }

/* ─── Steps ──────────────────────────────────────────────────────────────── */

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.25rem; height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-weight: 800;
}

.steps h3 { margin-bottom: 0.25rem; }

.progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.progress li { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.progress li::after { content: '→'; color: var(--line); }
.progress li:last-child::after { content: ''; }
.progress .is-current { color: var(--indigo); }
.progress .is-done { color: var(--ok); }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */

details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 0.75rem;
}

details.faq summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--indigo-400); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq .faq-body { padding: 0 1.25rem 1.1rem; }

/* ─── Legal pages ────────────────────────────────────────────────────────── */

.page-legal .legal-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}

.page-legal .legal-body h2 {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
}

.page-legal .legal-body > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.page-legal .legal-body h3 { margin-top: 1.5rem; font-size: 1.05rem; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-toc {
  background: var(--indigo-50);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  margin-bottom: 2rem;
}

.legal-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; border: 0; padding: 0; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.93rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--indigo);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-col h2 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.93rem; }

.footer-col a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer-col a:hover { color: var(--amber); text-decoration: underline; }

.brand-footer { color: #fff; margin: 0 0 0.85rem; font-size: 1.1rem; }
.footer-about p { font-size: 0.93rem; }
.footer-apps, .footer-social { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.9rem; margin-top: 0.85rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
}

.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.82); }

/* ─── Utilities ──────────────────────────────────────────────────────────── */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-2 { margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.cta-band {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin: 0; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 60px; }
  .header-phone { display: none; }

  .nav-toggle-label {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    order: 3;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px; height: 2px;
    background: #fff;
    border-radius: 2px;
  }

  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    padding-bottom: 0.75rem;
  }

  .nav-toggle:checked ~ .site-nav { display: block; }

  .site-nav ul { flex-direction: column; gap: 0.15rem; }
  .site-nav a { padding: 0.7rem 0.85rem; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .header-actions .btn { width: auto; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .skip-link { display: none; }
  body { background: #fff; }
  .page-legal .legal-body { border: 0; box-shadow: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
