@charset "utf-8";

/* ==========================================================================
   RoadStar Cars Rent — Valencia
   Utility-first rental tool. The page's job is to get someone from "I need a
   car" to a priced WhatsApp message in under a minute, so density and
   scannability beat decoration everywhere.

   Two signatures carry the design:
     1. The plate badge — a Spanish licence plate proportion holding the daily
        rate. Automotive, unmistakably Spanish, and it encodes the one number
        the visitor is scanning for rather than decorating the card.
     2. Live re-pricing — dates entered once in the hero re-price every card in
        the grid to the visitor's actual trip total.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Violet-cast neutrals, pulled toward the client's existing brand purple so
     the palette reads as one family rather than grey plus an accent. */
  --ink: #17111c;
  --ink-2: #443a4e;
  --ink-3: #6e6478;
  --rule: #e2dce9;
  --rule-soft: #eee9f2;
  --paper: #ffffff;
  --haze: #f6f3f8;
  --haze-2: #efeaf4;

  /* The client's mark is #A848C0. That fails contrast as an action colour, so
     the interactive purple is darkened and the original is kept for tints. */
  --brand: #8a25a8;
  --brand-deep: #5f186f;
  --brand-haze: #f7eafb;
  --brand-line: #e6c9ef;

  /* EU plate blue. Structural, not decorative: it only ever appears on the
     plate badge's country strip. */
  --plate-blue: #12369e;

  --go: #0b7a4b;
  --go-haze: #e7f4ee;
  --flag: #9a4a06;
  --flag-haze: #fdf1e3;

  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --t-2xs: 0.6875rem;
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.15rem, 1.6vw, 1.375rem);
  --t-xl: clamp(1.5rem, 3vw, 2.125rem);
  --t-2xl: clamp(2rem, 4.6vw, 3.125rem);

  --gap: 1rem;
  --pad: clamp(1rem, 4vw, 2rem);
  --shell: 1280px;
  --radius: 6px;
  --radius-lg: 10px;

  --ring: 0 0 0 3px var(--brand-line);
  --lift: 0 1px 2px rgba(23, 17, 28, 0.05), 0 8px 24px -12px rgba(23, 17, 28, 0.22);

  --speed: 160ms;
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--haze);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

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

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }

button, input, select, textarea { font: inherit; color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.shell--narrow { max-width: 760px; }

.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band--tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.band--paper { background: var(--paper); border-block: 1px solid var(--rule); }
.band--ink { background: var(--ink); color: #fff; }

.band-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.band-head p { color: var(--ink-3); max-width: 62ch; margin-top: 0.5rem; }
.band--ink .band-head p { color: #b9b0c4; }

/* Eyebrow labels. Used only where the label names a real category of content,
   never as ornament. */
.eyebrow {
  display: block;
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.55rem;
}
.band--ink .eyebrow { color: #cf94e2; }

/* --------------------------------------------------------------------------
   5. Plate badge — signature element
   Spanish plates run 520x110mm. The proportions here follow that so the shape
   reads as a plate at a glance even at card size.
   -------------------------------------------------------------------------- */

.plate {
  display: inline-flex;
  align-items: stretch;
  height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  line-height: 1;
  flex: none;
}

.plate__eu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  background: var(--plate-blue);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 700;
}

.plate__num {
  display: flex;
  align-items: center;
  padding-inline: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plate--lg { height: 44px; border-width: 2px; border-radius: 4px; }
.plate--lg .plate__eu { width: 28px; font-size: var(--t-base); }
.plate--lg .plate__num { font-size: 1.625rem; padding-inline: 0.7rem; }

.plate-set { display: flex; align-items: center; gap: 0.5rem; }
.plate-set__unit {
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.1rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) ease, border-color var(--speed) ease,
    color var(--speed) ease, transform var(--speed) ease;
}
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--haze); border-color: var(--ink-3); color: var(--ink); }

.btn--wa { background: #1faa53; }
.btn--wa:hover { background: #17853f; }

.btn--lg { padding: 0.8rem 1.5rem; font-size: var(--t-base); }
.btn--block { width: 100%; }

.btn svg { width: 1em; height: 1em; flex: none; }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.masthead__row {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 58px;
}

/* The client's own mark. It is a low-resolution raster with a grunge texture,
   so it is displayed well below its native width to keep it looking sharp, and
   sits on the dark bar the artwork was drawn for. */
.brandmark {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  line-height: 0;
}
.brandmark img {
  height: 42px;
  width: auto;
}
@media (max-width: 520px) {
  .brandmark img { height: 34px; }
}

.mainnav { display: flex; align-items: center; gap: 0.25rem; }
.mainnav a {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  color: #ddd6e4;
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}
.mainnav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mainnav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.12); }

.masthead__cta { display: flex; align-items: center; gap: 0.5rem; }

.callnow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.callnow:hover { color: #cf94e2; }

.navtoggle {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 860px) {
  .navtoggle { display: inline-flex; }
  .mainnav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .mainnav[data-open='true'] { display: flex; }
  .mainnav a { padding: 0.7rem 0.5rem; }
  .callnow span { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero — the search tool is the hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.hero__lede { max-width: 46ch; }
.hero h1 { color: #fff; }

/* For the visitor who would rather skip the form and just ask. Placed opposite
   the headline because that space is otherwise dead at desktop width. */
.hero__aside {
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}
.hero__aside h2 { font-size: var(--t-md); color: #fff; margin-bottom: 0.4rem; }
.hero__aside p { font-size: var(--t-sm); color: #b9b0c4; margin-bottom: 0.9rem; }
.hero__aside .btn { width: 100%; }
.hero__aside .btn + .btn { margin-top: 0.5rem; border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.hero__aside .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hero__sub {
  margin-top: 0.85rem;
  color: #b9b0c4;
  font-size: var(--t-md);
  max-width: 54ch;
}

/* Facts, not slogans. Every value here is one the business actually publishes. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  padding-inline: 0;
}
.facts li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: var(--t-sm);
  color: #b9b0c4;
}
.facts b {
  color: #fff;
  font-size: var(--t-md);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   9. Search panel
   -------------------------------------------------------------------------- */

.searchbar {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.6);
}

/* min() on the track floor keeps auto-fit from demanding more width than the
   viewport has. Date inputs have a wide min-content size and will otherwise
   push the whole page sideways on a phone. */
.searchbar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 0.625rem;
  align-items: end;
}

@media (max-width: 640px) {
  .searchbar__grid { grid-template-columns: minmax(0, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }

.field > label {
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--ink);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.field textarea { min-height: 88px; resize: vertical; }

.field input:hover,
.field select:hover { border-color: var(--ink-3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.field--pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 0.3rem; }
.field--pair > label { grid-column: 1 / -1; }

.field__note { font-size: var(--t-2xs); color: var(--ink-3); }

.searchbar__go { display: flex; }
.searchbar__go .btn { width: 100%; height: 42px; }

/* Feedback line under the search bar. Reserves its own row so the layout does
   not jump when a message appears. */
.searchbar__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: 1.4rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.searchbar__status:empty { display: none; }
.searchbar__status b { color: var(--ink); font-weight: 700; }
.searchbar__status[data-tone='error'] { color: var(--flag); }

.chip-clear {
  padding: 0.15rem 0.5rem;
  background: var(--haze);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--t-2xs);
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.chip-clear:hover { background: var(--haze-2); }

/* --------------------------------------------------------------------------
   10. Fleet browser
   -------------------------------------------------------------------------- */

.browser {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 900px) {
  .browser { grid-template-columns: minmax(0, 1fr); }
}

/* A <details> so it can collapse on a phone, where an open rail would push the
   fleet a full screen down. The script closes it below 900px at load; the
   summary is hidden entirely on wider screens, where the rail is always open. */
.filters {
  position: sticky;
  top: 74px;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.filters__summary { display: none; }

@media (max-width: 900px) {
  .filters { position: static; padding: 0.5rem 1rem 1rem; }

  .filters__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -0.5rem -1rem 0;
    padding: 0.85rem 1rem;
    font-size: var(--t-base);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .filters__summary::-webkit-details-marker { display: none; }
  .filters__summary::after {
    content: '';
    width: 9px; height: 9px;
    border-right: 2px solid var(--ink-3);
    border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--speed) ease;
    flex: none;
  }
  .filters[open] > .filters__summary { border-bottom: 1px solid var(--rule-soft); margin-bottom: 0.75rem; }
  .filters[open] > .filters__summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
}

.filters__group + .filters__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
}

.filters__title {
  margin-bottom: 0.6rem;
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0;
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
}
.check input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.check span { flex: 1; }
.check em { font-style: normal; color: var(--ink-3); font-size: var(--t-xs); }
.check:hover { color: var(--brand); }

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.results-bar__count { font-size: var(--t-sm); color: var(--ink-2); }
.results-bar__count b { color: var(--ink); font-weight: 700; }
.results-bar__sort { display: flex; align-items: center; gap: 0.5rem; }
.results-bar__sort label {
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.results-bar__sort select {
  padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: var(--t-sm);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.empty {
  padding: 2.5rem 1.5rem;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-2);
}
.empty h3 { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   11. Vehicle card
   -------------------------------------------------------------------------- */

.car {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease,
    transform var(--speed) ease;
}
.car:hover {
  border-color: var(--brand-line);
  box-shadow: var(--lift);
  transform: translateY(-2px);
}

.car__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: linear-gradient(175deg, var(--paper) 0%, var(--haze) 100%);
}
.car__media img { width: 100%; height: 100%; object-fit: contain; }

.car__flag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.18rem 0.45rem;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.car__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.875rem;
  border-top: 1px solid var(--rule-soft);
  flex: 1;
}

.car__name { font-size: var(--t-md); font-weight: 700; letter-spacing: -0.02em; }
.car__name a { color: inherit; text-decoration: none; }
.car__name a:hover { color: var(--brand); }

.car__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  font-size: var(--t-xs);
  color: var(--ink-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.car__spec li { display: flex; align-items: center; gap: 0.45rem; }
.car__spec li + li::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--rule);
}

.car__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule-soft);
}

/* Filled in by the quote script once the visitor has picked dates. */
.car__total {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--go);
  text-align: right;
  line-height: 1.3;
}
.car__total:empty { display: none; }
.car__total b { display: block; font-size: var(--t-base); font-weight: 800; }

.car__go { padding: 0.5rem 0.8rem; }

/* --------------------------------------------------------------------------
   12. Vehicle detail
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-block: 0.875rem;
  font-size: var(--t-xs);
  color: var(--ink-3);
  list-style: none;
  margin: 0;
}
.crumbs li + li::before { content: '/'; margin-right: 0.4rem; color: var(--rule); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}
@media (max-width: 940px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
}

.showcase {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.showcase__main {
  aspect-ratio: 3 / 2;
  background: linear-gradient(175deg, var(--paper) 0%, var(--haze) 100%);
}
.showcase__main img { width: 100%; height: 100%; object-fit: contain; }

.showcase__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}
.showcase__strip img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--haze); width: 100%; }
.showcase__strip figure { margin: 0; background: var(--paper); }
.showcase__strip figcaption {
  padding: 0.35rem 0.5rem;
  font-size: var(--t-2xs);
  color: var(--ink-3);
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.specs th,
.specs td {
  padding: 0.6rem 0.875rem;
  text-align: left;
  font-size: var(--t-sm);
  border-bottom: 1px solid var(--rule-soft);
}
.specs tr:last-child th,
.specs tr:last-child td { border-bottom: 0; }
.specs th {
  width: 42%;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--haze);
}
.specs td { font-weight: 600; }

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.taglist li {
  padding: 0.3rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   13. Quote panel
   -------------------------------------------------------------------------- */

.quote {
  position: sticky;
  top: 74px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 940px) { .quote { position: static; } }

.quote__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--ink);
  color: #fff;
}
.quote__head h2 { font-size: var(--t-md); color: #fff; }
.quote__head .plate { flex: none; }

.quote__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; }

.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
@media (max-width: 420px) { .quote__row { grid-template-columns: 1fr; } }

/* Running total. Lives in a tinted block so it reads as an output, not another
   input. */
.tally {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem;
  background: var(--haze);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--t-sm);
}
.tally__line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tally__line span { color: var(--ink-3); }
.tally__line b { font-weight: 700; }
.tally__line--total {
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
  font-size: var(--t-md);
}
.tally__line--total span { color: var(--ink); font-weight: 700; }
.tally__line--total b { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.tally__note { font-size: var(--t-2xs); color: var(--ink-3); line-height: 1.45; }

.alert {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: var(--t-sm);
  font-weight: 600;
}
.alert[hidden] { display: none; }
.alert--warn { background: var(--flag-haze); color: var(--flag); border: 1px solid #f0d6b4; }

.quote__foot {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--t-2xs);
  color: var(--ink-3);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. Content blocks
   -------------------------------------------------------------------------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Heading beside its content, rather than three equal columns. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 780px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.tile {
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.tile h3 { margin-bottom: 0.4rem; font-size: var(--t-md); }
.tile p { font-size: var(--t-sm); color: var(--ink-2); }

/* Numbered because these genuinely are a sequence — the order is the meaning. */
.steps { counter-reset: step; }
.steps .tile { position: relative; padding-top: 2.4rem; }
.steps .tile::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: var(--t-base);
}
.ticks svg { width: 20px; height: 20px; color: var(--go); margin-top: 1px; }

.termsgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
.termsgrid li { padding: 1rem; background: var(--paper); }
.termsgrid dt {
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}
.termsgrid dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.termsgrid small { display: block; font-size: var(--t-xs); font-weight: 500; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   15. Prose and FAQ
   -------------------------------------------------------------------------- */

.prose { max-width: 68ch; font-size: var(--t-md); }
.prose h2 { margin-top: 2.25rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: var(--t-base); }
.prose th, .prose td { padding: 0.55rem 0.7rem; border: 1px solid var(--rule); text-align: left; }
.prose th { background: var(--haze); font-weight: 700; }

.qa {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.qa details + details { border-top: 1px solid var(--rule-soft); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  font-size: var(--t-md);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--speed) ease;
  flex: none;
}
.qa details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.qa summary:hover { background: var(--haze); }
.qa__answer { padding: 0 1rem 1rem; font-size: var(--t-base); color: var(--ink-2); }
.qa__answer > :last-child { margin-bottom: 0; }

/* Marks copy that must come from the client before launch. Deliberately loud:
   it should be impossible to ship one of these by accident. */
.needed {
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--flag-haze);
  border: 1px solid #f0d6b4;
  border-left: 4px solid var(--flag);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  color: #6a3405;
}
.needed strong {
  display: block;
  font-size: var(--t-2xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 0.3rem;
}
.needed ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.needed li { margin-bottom: 0.25rem; }

/* --------------------------------------------------------------------------
   16. Contact and footer
   -------------------------------------------------------------------------- */

.contactgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contactcard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.contactcard dt {
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contactcard dd { margin: 0; font-size: var(--t-md); font-weight: 600; }
.contactcard a { text-decoration: none; }
.contactcard a:hover { text-decoration: underline; }

.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--haze-2);
}

.colophon {
  background: var(--ink);
  color: #b9b0c4;
  padding-block: clamp(2rem, 4vw, 3rem) 1.25rem;
  font-size: var(--t-sm);
}
.colophon__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.colophon h2 {
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.7rem;
}
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.colophon a { color: #b9b0c4; text-decoration: none; }
.colophon a:hover { color: #fff; text-decoration: underline; }
.colophon__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  font-size: var(--t-xs);
}

/* Fixed WhatsApp affordance on small screens, where the sticky quote panel is
   scrolled past rather than pinned. */
/* Hidden until the hero scrolls away, otherwise it lands on top of the search
   button. Script toggles data-show; without script it simply never appears,
   and every page still has WhatsApp links inline. */
.wa-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: none;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}
@media (max-width: 940px) {
  .wa-dock[data-show='true'] { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */

@media print {
  .masthead, .searchbar, .filters, .wa-dock, .quote__foot, .btn { display: none !important; }
  body { background: #fff; }
  .car, .tile, .specs, .showcase { border-color: #bbb; box-shadow: none; }
}
