/* ==========================================================
   Lanerr — Self-drive car rental, Coimbatore
   ========================================================== */

:root {
  --ink: #0a1020;
  --ink-2: #111a2e;
  --ink-3: #1a2440;
  --ink-line: rgba(255, 255, 255, 0.08);

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #0e1525;
  --muted: #5b6476;
  --muted-dark: #9aa3b8;
  --line: rgba(14, 21, 37, 0.09);

  --accent: #3355ff;
  --accent-hover: #2443f0;
  --accent-soft: #eaeeff;
  --accent-light: #9aabff;

  --wa: #25d366;
  --wa-ink: #04341a;
  --wa-hover: #1fc05c;
  --success: #12804a;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 21, 37, 0.06);
  --shadow: 0 1px 2px rgba(14, 21, 37, 0.04), 0 8px 24px -10px rgba(14, 21, 37, 0.14);
  --shadow-lg: 0 2px 6px rgba(14, 21, 37, 0.05), 0 28px 56px -20px rgba(14, 21, 37, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.25vw + 14.2px, 17px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-lock { overflow: hidden; }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 600;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.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: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 10px 14px; border-radius: 8px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.i { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .i { width: 18px; height: 18px; }

.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-accent { --bg: var(--accent); --fg: #fff; }
.btn-accent:hover { --bg: var(--accent-hover); box-shadow: 0 12px 28px -12px rgba(51, 85, 255, 0.7); }

.btn-wa { --bg: var(--wa); --fg: var(--wa-ink); }
.btn-wa:hover { --bg: var(--wa-hover); box-shadow: 0 12px 28px -12px rgba(37, 211, 102, 0.7); }

.btn-ghost { --bg: var(--surface); --fg: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { --bg: var(--surface-2); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--text);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; color: var(--accent); }
.logo-mark svg { width: 100%; height: 100%; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.045em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  opacity: 0.78;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav > a:not(.btn):hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-cta { margin-left: 10px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  background: transparent;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 88% 18%, rgba(51, 85, 255, 0.28), transparent 62%),
    radial-gradient(700px 400px at 0% 100%, rgba(37, 211, 102, 0.08), transparent 60%),
    var(--ink);
  color: #fff;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
/* faint lane markings */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.05) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 48px, transparent 48px 96px), linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: repeating-linear-gradient(180deg, #000 0 48px, transparent 48px 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hero h1 .hl { color: var(--accent-light); }
.lead {
  margin-top: 20px;
  max-width: 36rem;
  font-size: clamp(16px, 0.5vw + 14px, 18.5px);
  color: rgba(255, 255, 255, 0.7);
}
.lead strong { color: #fff; font-weight: 600; }

/* Booking card */
.booking {
  margin-top: clamp(26px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  max-width: 580px;
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.field {
  min-width: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field:hover { background: #e7ebf3; }
.field:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-loc { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.control { position: relative; display: flex; align-items: center; gap: 10px; }
.control .i { width: 18px; height: 18px; color: var(--accent); }
.control select,
.control input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.control select { cursor: pointer; text-overflow: ellipsis; }
/* Whole date field opens the native picker; our own icon stays visible */
.control input::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0;
  width: auto; height: auto;
  opacity: 0; cursor: pointer;
}
.booking-submit { grid-column: 1 / -1; border-radius: 14px; }
.booking-submit .i { transition: transform 0.25s var(--ease); }
.booking-submit:hover .i { transform: translateX(3px); }
.booking-error { grid-column: 1 / -1; padding: 2px 8px 4px; font-size: 14px; color: #d12c2c; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .i { width: 18px; height: 18px; color: var(--wa); }

/* Chat preview */
.hero-visual { position: relative; justify-self: center; width: min(100%, 390px); }
.hero-visual::before {
  content: "";
  position: absolute; inset: 8% -12% -6%;
  background: radial-gradient(closest-side, rgba(51, 85, 255, 0.45), transparent);
  filter: blur(40px);
  z-index: -1;
}
.chat {
  border-radius: 28px;
  overflow: hidden;
  background: #efeae2;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 8px rgba(255, 255, 255, 0.06);
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #075e54;
  color: #fff;
}
.chat-head strong { display: block; font-size: 15px; line-height: 1.2; }
.chat-head small { font-size: 12px; opacity: 0.8; }
.chat-avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 14px 18px;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  min-height: 420px;
}
.msg {
  position: relative;
  max-width: 86%;
  padding: 7px 9px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: msgIn 0.5s var(--ease) forwards;
  animation-delay: calc(0.5s + var(--d) * 0.9s);
}
.msg p { padding-right: 4px; }
.msg time { position: absolute; right: 9px; bottom: 4px; font-size: 10.5px; color: #667781; }
.msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 65%;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #cfd8cf;
}
@keyframes msgIn { to { opacity: 1; transform: none; } }

/* ---------- Trust row ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 20px;
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .i {
  width: 42px; height: 42px; padding: 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.trust-item strong { display: block; font-size: 15px; line-height: 1.3; }
.trust-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 20px 48px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.section-sub { color: var(--muted); max-width: 36rem; font-size: clamp(15.5px, 0.4vw + 14px, 17.5px); }

/* ---------- Fleet ---------- */
.trip-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: #1b2a8a;
  border: 1px solid rgba(51, 85, 255, 0.18);
  border-radius: var(--radius);
  animation: drop 0.5s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.trip-info { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; }
.trip-info .i { color: var(--accent); }
.trip-edit { font-size: 14px; font-weight: 600; color: var(--accent); }
.trip-edit:hover { text-decoration: underline; text-underline-offset: 3px; }

.toolbar {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.chips {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip.is-active { background: var(--ink); color: #fff; }
.chip-count {
  min-width: 22px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 12px; font-weight: 600;
}

.toolbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-right: 4px; }

.switch {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 500; cursor: pointer; user-select: none;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  width: 40px; height: 24px; border-radius: 999px;
  background: #cdd3df; position: relative;
  transition: background-color 0.25s;
}
.switch-track span {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease);
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track span { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.select-sm select {
  height: 38px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230e1525' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  font-size: 14px;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.car-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.car-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.car-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(110deg, var(--surface-2) 30%, #f7f8fb 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
  overflow: hidden;
  cursor: zoom-in;
}
.car-media.is-ready { animation: none; }
@keyframes shimmer { to { background-position: -150% 0; } }
.car-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.45s ease;
}
.car-media.is-ready img { opacity: 1; }
.car-card:hover .car-media img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.photo-count {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(10, 16, 32, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px; font-weight: 600;
}
.photo-count .i { width: 14px; height: 14px; }

.car-body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 14px 10px 8px; }
.car-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.car-head h3 { font-size: 19px; letter-spacing: -0.03em; }
.car-meta { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.price { text-align: right; white-space: nowrap; }
.price strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { font-size: 12.5px; color: var(--muted); }

/* Option switch (Manual / Automatic …) */
.seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
}
.seg::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n, 1));
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-sm), 0 2px 6px -2px rgba(14, 21, 37, 0.15);
  transform: translateX(calc(100% * var(--i, 0)));
  transition: transform 0.35s var(--ease);
}
.seg button {
  position: relative;
  z-index: 1;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.seg button[aria-pressed="true"] { color: var(--text); }
.seg-single {
  display: flex; align-items: center; justify-content: center;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}

.specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: #3b4357; }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs .i { width: 15px; height: 15px; color: var(--muted); }
.units { color: var(--success); font-weight: 600; }

.car-foot { margin-top: auto; display: grid; gap: 10px; }
.estimate {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 13.5px;
  color: #1b2a8a;
}
.estimate strong { font-family: var(--font-display); font-size: 15.5px; font-variant-numeric: tabular-nums; }
.car-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.car-actions .btn-ghost { padding: 0 18px; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.fine { margin-top: 24px; font-size: 13.5px; color: var(--muted); }

/* ---------- How ---------- */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.step {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.step-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.step:nth-child(2) .step-icon { background: #dcf8e7; color: var(--success); }
.step-icon .i { width: 22px; height: 22px; }
.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Why ---------- */
.why { background: var(--ink); color: #fff; }
.why .kicker { color: var(--accent-light); }
.why .section-sub { color: rgba(255, 255, 255, 0.66); margin-top: 18px; }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.why-intro .btn { margin-top: 30px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.feature:hover { border-color: rgba(154, 171, 255, 0.4); transform: translateY(-3px); }
.feature .i { width: 26px; height: 26px; color: var(--accent-light); margin-bottom: 20px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: rgba(255, 255, 255, 0.62); }

/* ---------- Trips ---------- */
.trip-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.trip-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--t2), var(--t1));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.trip-card::before,
.trip-card::after {
  content: "";
  position: absolute; left: -10%; right: -10%;
  z-index: -1;
  transition: transform 0.8s var(--ease);
}
.trip-card::before {
  top: 30%; bottom: 0;
  background: color-mix(in srgb, var(--t1) 70%, #fff 30%);
  clip-path: polygon(0 45%, 18% 20%, 34% 38%, 52% 8%, 70% 30%, 86% 14%, 100% 32%, 100% 100%, 0 100%);
}
.trip-card::after {
  top: 52%; bottom: 0;
  background: linear-gradient(180deg, var(--t1), color-mix(in srgb, var(--t1) 60%, #000 40%));
  clip-path: polygon(0 30%, 22% 8%, 40% 30%, 62% 0, 82% 26%, 100% 10%, 100% 100%, 0 100%);
}
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trip-card:hover::before { transform: translateX(-3%); }
.trip-card:hover::after { transform: translateX(3%); }
.trip-km {
  position: absolute; top: 20px; left: 20px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 600;
}
.trip-card h3 { font-size: 26px; letter-spacing: -0.03em; }
.trip-card p { margin-top: 6px; font-size: 14.5px; color: rgba(255, 255, 255, 0.82); }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.docs {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
}
.docs h3 { font-size: 26px; margin-bottom: 20px; }
.checklist { display: grid; gap: 14px; margin-bottom: 28px; }
.checklist li { position: relative; padding-left: 32px; font-size: 15px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") no-repeat center / 12px;
}

.faq-list h2 { margin-bottom: 28px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-of-type { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16.5px, 0.4vw + 15px, 19px);
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230e1525' stroke-width='2' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 16px;
  transition: transform 0.35s var(--ease), background-color 0.2s;
}
.faq-list summary:hover::after { background-color: #e3e7f0; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--muted); }
.faq-list details[open] p { animation: drop 0.4s var(--ease); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(72px, 9vw, 112px); background: var(--surface); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(51, 85, 255, 0.4), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(37, 211, 102, 0.14), transparent 60%),
    var(--ink);
  color: #fff;
}
.cta h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.04em; }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, 0.68); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); padding-top: clamp(56px, 7vw, 88px); font-size: 14.5px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer p + p { margin-top: 8px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink-line);
  font-size: 13.5px;
}

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: scale(0.6) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.fab.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.fab:hover { transform: scale(1.06); }
.fab .i { width: 30px; height: 30px; }

/* ---------- Car details sheet ---------- */
.sheet {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.sheet[open] { display: flex; animation: pop 0.4s var(--ease); }
.sheet::backdrop {
  background: rgba(10, 16, 32, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade 0.3s ease;
}
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}
.sheet-close:hover { transform: rotate(90deg); }
.sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gallery { position: relative; background: var(--ink); min-height: 100%; }
.gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  scroll-snap-align: center;
}
.gallery-nav {
  position: absolute; top: 50%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-top: -20px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.gallery-nav:hover { transform: scale(1.06); }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.prev .i { transform: rotate(180deg); }
.gallery-nav.next { right: 14px; }
.gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 6px;
}
.gallery-dots span {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.35s var(--ease), background-color 0.2s;
}
.gallery-dots span.is-active { width: 22px; background: #fff; }

.sheet-info { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 34px); }
.sheet-info h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.035em; padding-right: 40px; }
.sheet-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.sheet-price strong { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.sheet-price span { color: var(--muted); font-size: 14px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.spec-grid div { padding: 11px 14px; border-radius: 12px; background: var(--surface-2); }
.spec-grid dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-grid dd { margin: 2px 0 0; font-weight: 600; }
.charges { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.charges li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 14.5px; }
.charges li + li { border-top: 1px solid var(--line); }
.charges li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.note {
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff7e6;
  color: #7a4e00;
  font-size: 13.5px;
}
.sheet-info > .btn { margin-top: auto; }

/* ---------- Redirect overlay ---------- */
.redirect {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(10, 16, 32, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade 0.25s ease;
}
@keyframes fade { from { opacity: 0; } }
.redirect-card {
  width: min(360px, 100%);
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop 0.45s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes slideUp { from { transform: translateY(100%); } }
.redirect-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wa); color: #fff;
  position: relative;
}
.redirect-icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--wa); opacity: 0.4;
  animation: ring 1.2s ease-out infinite;
}
@keyframes ring { from { transform: scale(0.9); opacity: 0.6; } to { transform: scale(1.35); opacity: 0; } }
.redirect-icon .i { width: 32px; height: 32px; }
.redirect-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.redirect-sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 96px; z-index: 95;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.35s var(--ease);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Smooth re-layout when filters change (View Transitions API) */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.28s; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .steps, .trip-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--surface);
    color: var(--text);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a:not(.btn) { padding: 15px 6px; font-size: 17px; opacity: 1; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 18px 0 0; height: 52px; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header.menu-open {
    background: var(--surface);
    color: var(--text);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .booking { max-width: none; }
  .hero-visual { width: min(100%, 380px); }
  .chat-body { min-height: 0; }

  .section-head { grid-template-columns: 1fr; }
  .why-grid, .faq-grid { grid-template-columns: 1fr; }
  .docs { position: static; order: 2; }

  /* block flow: a grid row would collapse around the horizontal scroller */
  .sheet { width: min(620px, calc(100% - 32px)); }
  .sheet-body { display: block; }
  .gallery { min-height: 0; }
  .gallery-track { height: auto; aspect-ratio: 4 / 3; }
  .gallery-track img { min-height: 0; height: 100%; }
}

@media (max-width: 640px) {
  .booking { grid-template-columns: 1fr; padding: 6px; border-radius: 18px; }
  .field-loc { grid-column: auto; }
  .hero-points { gap: 8px 16px; font-size: 13.5px; }
  .hero-visual { display: none; }
  .trust-item { padding: 18px 12px; gap: 10px; }
  .trust-item .i { width: 36px; height: 36px; padding: 8px; }
  .trust-item strong { font-size: 14px; }
  .trust-item span { font-size: 12.5px; }

  .toolbar { position: static; padding: 6px; gap: 8px; }
  .toolbar-right { width: 100%; flex-wrap: nowrap; justify-content: space-between; padding: 0 4px 2px; }
  .switch { font-size: 14px; white-space: nowrap; }
  .chips { width: 100%; }

  .steps, .features { grid-template-columns: 1fr; }
  .trip-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .trip-cards::-webkit-scrollbar { display: none; }
  .trip-card { flex: 0 0 78%; scroll-snap-align: start; min-height: 260px; }
  .cta-inner { border-radius: 22px; }
  .cta-inner .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-list details p { padding-right: 0; }
  .fab { width: 54px; height: 54px; }

  .sheet {
    width: 100%; max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .sheet[open] { animation: slideUp 0.45s var(--ease); }
  /* block flow: a grid row would collapse around the horizontal scroller */
  .sheet-body { display: block; }
  .gallery { min-height: 0; }
  .gallery-track { height: auto; aspect-ratio: 4 / 3; }
  .gallery-track img { min-height: 0; height: 100%; }
  .sheet-info { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
