/* Quick Car Rental Goa — mobile-first stylesheet */

:root {
  --ink: #1E1442;          /* text, dark bands */
  --ink-2: #4B4566;        /* secondary text (9:1 on white) */
  --ink-3: #6E6889;        /* tertiary text (5.3:1 on white) */
  --violet: #7A2BF0;       /* brand, from the logo */
  --violet-deep: #5A1BC2;  /* links, focus, pressed states */
  --lilac: #F4F0FD;        /* quiet surfaces */
  --line: #E6E0F5;
  --orange: #FF6A00;       /* logo accent: route dots, small marks only */
  --wa: #128C4B;
  --wa-deep: #0D7139;
  --paper: #FFFFFF;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: 16px;
  --radius: 14px;
  --dock-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

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

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

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn .i { width: 20px; height: 20px; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lilac); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-call { background: var(--lilac); color: var(--violet-deep); border-color: var(--line); padding: 0 14px; }
.btn-call:hover { border-color: var(--violet); }

/* ---------- Header ---------- */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand img { height: 52px; width: auto; }
.top-nav { display: none; }
.top-call {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.top-call:hover { border-color: var(--violet); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 0; background: #fff; }
.hero-title {
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: .96;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  max-width: 12ch;
  text-wrap: balance;
}
.hero-lede {
  margin-top: 14px; max-width: 38ch;
  font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2);
}
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.hero-facts li {
  padding: 7px 12px; border-radius: 999px; background: var(--lilac);
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.hero-facts strong { font-weight: 700; }
.hero-cta { display: grid; gap: 10px; margin-top: 22px; }
.hero-offer { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.hero-art { display: none; } /* desktop only; lazy image is not fetched while hidden */

/* Route line: the one bold element. */
.route { margin-top: 30px; padding: 22px 0 26px; background: var(--ink); color: #fff; }
.route-title {
  font: 600 1rem/1.35 var(--f-body); letter-spacing: 0; max-width: 34ch; color: #E8E3F7;
}
.route-track {
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch;
  scrollbar-width: none; margin-top: 18px;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.route-track::-webkit-scrollbar { display: none; }
.stops {
  position: relative; display: flex; width: max-content;
  padding: 0 var(--gutter);
}
.stops::before {
  content: ""; position: absolute; left: calc(var(--gutter) + 7px); right: 60px; top: 7px;
  height: 2px; background: rgba(255,255,255,.35);
  transform-origin: left center;
}
.stop { position: relative; width: 128px; padding-right: 14px; scroll-snap-align: start; }
.stop-dot {
  position: relative; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--orange);
}
.stop:first-child .stop-dot, .stop:nth-child(2) .stop-dot { background: var(--orange); }
.stop-name { display: block; margin-top: 10px; font: 600 15px/1.25 var(--f-display); letter-spacing: -0.005em; }
.stop-more .stop-dot { border-color: rgba(255,255,255,.5); }
.stop-more .stop-name { color: #C9C1E6; font-family: var(--f-body); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .js .stops::before { animation: draw 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }
  .js .stop-dot { animation: pop .35s ease-out both; }
  .js .stop:nth-child(1) .stop-dot { animation-delay: .15s; }
  .js .stop:nth-child(2) .stop-dot { animation-delay: .27s; }
  .js .stop:nth-child(3) .stop-dot { animation-delay: .39s; }
  .js .stop:nth-child(4) .stop-dot { animation-delay: .51s; }
  .js .stop:nth-child(5) .stop-dot { animation-delay: .63s; }
  .js .stop:nth-child(6) .stop-dot { animation-delay: .75s; }
  .js .stop:nth-child(7) .stop-dot { animation-delay: .87s; }
  .js .stop:nth-child(8) .stop-dot { animation-delay: .99s; }
  .js .stop:nth-child(9) .stop-dot { animation-delay: 1.11s; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.2); } to { transform: scale(1); } }

/* ---------- Fleet ---------- */
.fleet { padding-top: 34px; }
.fleet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fleet-head h2 { font-size: clamp(1.75rem, 6.5vw, 2.5rem); font-weight: 800; line-height: 1.05; }
.fleet-count { color: var(--ink-3); font-size: 15px; white-space: nowrap; }

.filters {
  position: sticky; top: 0; z-index: 20;
  margin-top: 14px; padding: 10px 0;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.filters-in { display: flex; flex-direction: column; gap: 10px; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 600 15px/1 var(--f-body); cursor: pointer;
}
.chip:hover { border-color: var(--violet); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; cursor: pointer; align-self: flex-start; min-height: 32px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui {
  position: relative; width: 40px; height: 24px; border-radius: 999px; background: #D6CFEA; transition: background-color .15s;
}
.toggle-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(30,20,66,.3); transition: transform .15s;
}
.toggle input:checked + .toggle-ui { background: var(--violet-deep); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid var(--violet-deep); outline-offset: 2px; }

/* Car rows (mobile): photo + name/specs on top, price + booking button below. */
.fleet-note { margin-top: 6px; color: var(--ink-3); font-size: 14px; }
.cars { margin-top: 2px; }
.car {
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-areas: "media body" "foot foot";
  gap: 12px 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.car-media {
  grid-area: media; align-self: start;
  aspect-ratio: 4 / 3; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.car-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.car-body { grid-area: body; min-width: 0; }
.car-name {
  font-size: 1.0625rem; line-height: 1.22; font-weight: 700; letter-spacing: -0.01em;
}
.specs { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 7px; color: var(--ink-2); font-size: 13.5px; }
.specs li { display: inline-flex; align-items: center; gap: 5px; }
.specs .i { width: 15px; height: 15px; color: var(--ink-3); }

.car-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { display: flex; flex-direction: column; min-width: 0; }
.price-from { font-size: 12.5px; color: var(--ink-3); line-height: 1.2; }
.price-val { display: flex; align-items: baseline; gap: 3px; }
.price-amt { font: 800 1.5rem/1.1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-per { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.car-actions { display: flex; gap: 8px; flex: none; }
/* On phones the bottom bar already has Call, so each row keeps one clear action. */
.car-actions .btn-call { display: none; }
.btn-call-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.group-intro { padding: 30px 0 10px; border-bottom: 1px solid var(--line); }
.group-intro h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.15; max-width: 30ch; }
.group-intro p { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }

.empty { padding: 32px 0; text-align: left; }
.empty p { color: var(--ink-2); margin-bottom: 12px; }

/* ---------- Why ---------- */
.why { margin-top: 48px; padding: 44px 0; background: var(--ink); color: #fff; }
.why h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; line-height: 1.08; max-width: 18ch; }
.why-list { display: grid; gap: 22px; margin: 26px 0 28px; }
.why-item { padding-left: 16px; border-left: 3px solid var(--orange); }
.why-item dt { font: 700 1.125rem/1.25 var(--f-display); }
.why-item dd { margin-top: 6px; color: #D8D2EC; max-width: 52ch; }

/* ---------- About ---------- */
.about { padding: 44px 0; background: var(--lilac); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; }
.prose p { margin-top: 14px; color: var(--ink-2); line-height: 1.65; }
.more { margin-top: 6px; }
.more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px;
}
.more summary::-webkit-details-marker { display: none; }
.more .more-close { display: none; }
.more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }

/* ---------- Closing call to action ---------- */
.cta-band { padding: 40px 0; border-bottom: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; line-height: 1.08; }
.cta-band p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }

/* Desktop floating WhatsApp (the old site had one; phones use the bottom bar) */
.float-wa { display: none; }

/* ---------- Contact ---------- */
.contact-intro { margin-top: 8px; color: var(--ink-2); }
.contact { padding: 44px 0 36px; }
.contact h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; }
.contact-list { margin-top: 18px; display: grid; gap: 4px; }
.contact-list a {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.contact-list .i { width: 22px; height: 22px; margin-top: 2px; color: var(--violet); }
.c-label { display: block; font-size: 13px; color: var(--ink-3); }
.c-value { display: block; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover .c-value { color: var(--violet-deep); text-decoration: underline; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #CFC8E6; padding: 32px 0; font-size: 14px; }
.foot-in { display: grid; gap: 20px; }
.foot-name { color: #fff; font: 700 1.05rem/1.3 var(--f-display); margin-bottom: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a, .foot-legal a { color: #fff; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot-links a:hover, .foot-legal a:hover { text-decoration: underline; }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.dock-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 12px; text-decoration: none; font: 600 16px/1 var(--f-body);
}
.dock-btn .i { width: 20px; height: 20px; }
.dock-call { background: var(--ink); color: #fff; }
.dock-wa { background: var(--wa); color: #fff; }

/* ---------- Privacy page ---------- */
.legal { padding: 36px 0 56px; }
.legal h1 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; line-height: 1.05; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 28px; }
.legal .updated { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-top: 10px; color: var(--ink-2); }
.legal li { margin-top: 6px; }

/* ---------- Larger phones / small tablets ---------- */
@media (min-width: 480px) {
  .hero-cta { grid-template-columns: auto auto; justify-content: start; }
  .car { grid-template-columns: 148px 1fr; gap: 18px; }
}

/* ---------- Tablet ---------- */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  body { font-size: 17px; }
  .hero { padding-top: 48px; }
  .hero-lede { font-size: 1.2rem; }
  .filters-in { flex-direction: row; align-items: center; justify-content: space-between; }
  .chips { margin-inline: 0; padding-inline: 0; }
  .cars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
  .car {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr auto;
    grid-template-areas: "media" "body" "foot";
    gap: 0; padding: 0; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; background: #fff;
  }
  .car-media { aspect-ratio: 16 / 10; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
  .car-media img { padding: 12px; }
  .car-body { padding: 16px 18px 0; }
  .car-name { font-size: 1.15rem; min-height: 2.44em; }
  .car-foot { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 18px 18px; }
  .car-actions .btn-wa { flex: 1; }
  .car-actions .btn-call { display: inline-flex; }
  .group-intro { grid-column: 1 / -1; border: 0; padding: 26px 0 4px; }
  .group-intro h3 { font-size: 1.6rem; }
  .why-list { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .contact-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .foot-in { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .foot-legal { grid-column: 1 / -1; }
  .btn-call-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .float-wa {
    position: fixed; right: 24px; bottom: 24px; z-index: 40;
    display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px;
    border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none;
    font: 600 16px/1 var(--f-body); box-shadow: 0 6px 20px rgba(18, 140, 75, .35);
  }
  .float-wa:hover { background: var(--wa-deep); }
  .float-wa .i { width: 22px; height: 22px; }
  .top-nav { display: flex; gap: 26px; margin-left: 36px; }
  .top-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
  .top-nav a:hover { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 4px; }
  .hero-title { max-width: 14ch; }
  .hero > .wrap { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 48px; align-items: center; }
  .hero > .wrap > * { grid-column: 1; }
  .hero-art {
    display: block !important; grid-column: 2 !important; grid-row: 1 / span 6;
    aspect-ratio: 4 / 3; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden;
  }
  .hero-art img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
  .route { margin-top: 46px; }
  .route-track { mask-image: none; overflow: visible; scroll-snap-type: none; }
  .stops { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }
  .stops::before { left: calc(var(--gutter) + 7px); right: var(--gutter); }
  .stop { flex: 1 1 0; width: auto; }
  .cars { grid-template-columns: repeat(3, 1fr); }
}

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