/* ==========================================================================
   Classic Cars Mombasa — site styles
   Palette: navy #0D253F (primary), gold #AB935E (primary action + accents),
   white background. Depth from spacing, borders, colour blocks, type scale.
   ========================================================================== */

:root {
  --navy: #0d253f;
  --navy-deep: #081a2e;
  --navy-ink: #1c3552;
  --navy-tint: #eef2f7;
  --navy-line: #d5dde7;
  --gold: #ab935e;
  --gold-dark: #8f7a4b;
  --gold-tint: #f5f0e4;
  --white: #ffffff;
  --grey-text: #43556b;

  /* Image slots — adjust each ratio when real photos arrive */
  --ar-hero: 16 / 9;
  --ar-card: 4 / 3;
  --ar-detail: 4 / 3;
  --ar-thumb: 4 / 3;
  --ar-avatar: 1 / 1;

  --container: 1180px;
  /* Corner scale — mobile defaults; desktop tightens slightly */
  --r-card: 8px;
  --r-btn: 6px;
  --r-chip: 3px;
  --focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--gold);
}

@media (min-width: 720px) {
  :root { --r-card: 6px; --r-btn: 5px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-tint); color: var(--navy-deep); }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.008em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul { padding-left: 1.2em; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-btn); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 300;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 44px; padding: 0.65rem 1.25rem;
  border: 2px solid transparent; border-radius: var(--r-btn);
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy-tint); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-small { min-height: 40px; padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Two-button row: stays on one line on every screen, compact and even */
.btn-pair { display: flex; gap: 0.5rem; }
.btn-pair .btn {
  flex: 1 1 0; min-width: 0; min-height: 40px; height: 44px;
  padding: 0 0.75rem; font-size: 0.88rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-pair .btn .icon { width: 1em; height: 1em; }
@media (min-width: 900px) {
  .btn-pair .btn { height: 46px; font-size: 0.95rem; }
}
/* When a pair sits inside a narrow column, let it breathe */
.btn-pair.roomy { max-width: 480px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; color: var(--white); text-decoration: none; }
.brand-logo {
  height: 40px; width: auto; max-width: 62vw; display: block; object-fit: contain;
}
@media (min-width: 900px) { .brand-logo { height: 50px; } }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.65rem 0.85rem; color: var(--white);
  text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: var(--r-btn);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,0.12); }
.main-nav a[aria-current="page"] { border-bottom: 3px solid var(--gold); border-radius: var(--r-btn) var(--r-btn) 0 0; }

.header-contacts { display: none; align-items: center; gap: 0.6rem; }
.header-phone { color: var(--white); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--r-btn); min-height: 44px; padding: 0 0.9rem; font: inherit; font-weight: 600;
  cursor: pointer; margin-left: auto;
}
.nav-toggle .bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

@media (max-width: 899px) {
  .main-nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--navy-deep); display: none; margin-left: 0; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0.5rem 0; }
  .main-nav a { padding: 0.85rem 1.25rem; border-radius: 0; }
  .main-nav a[aria-current="page"] { border-bottom: none; background: rgba(255,255,255,0.12); font-weight: 700; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-contacts { display: flex; }
}

/* ---------- Signature marque (brand motif) ---------- */
.marque { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.marque::before, .marque::after { content: ""; height: 2px; width: 38px; background: var(--gold); }
.marque svg { width: 46px; height: 28px; flex: none; }
.marque span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-dark); white-space: nowrap;
}
.section-on-navy .marque span { color: var(--gold); }
.section-on-navy .marque::before, .section-on-navy .marque::after { background: var(--gold); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 2.5rem 0 2rem; }
.hero h1 { color: var(--white); }
.hero .lede { color: #cdd8e4; font-size: 1.05rem; }
.hero-mark { display: flex; justify-content: center; margin: 0.5rem 0 1.25rem; }
.hero-mark svg { width: min(320px, 70%); height: auto; }

.quick-filter { background: var(--white); color: var(--navy); border-radius: var(--r-card); padding: 1rem; }
.quick-filter form { display: grid; gap: 0.75rem; }
.quick-filter label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-text); }
.quick-filter select, .quick-filter input {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem;
  border: 1px solid var(--navy-line); border-radius: var(--r-btn); padding: 0 0.75rem;
  background-color: var(--white); color: var(--navy);
}
@media (min-width: 720px) {
  .quick-filter form { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
}

/* ---------- Sections ---------- */
.section { padding: 2.75rem 0; }
.section-tint { background: var(--navy-tint); }
.section-on-navy { background: var(--navy); color: var(--white); }
.section-on-navy h2, .section-on-navy h3 { color: var(--white); }
.section-on-navy p { color: #cdd8e4; }
.section-head { margin-bottom: 1.5rem; }
.section-head p { color: var(--grey-text); }
.section-on-navy .section-head p { color: #cdd8e4; }

/* ---------- Body-type shortcuts ---------- */
.body-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.body-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem 0.5rem; background: var(--white); border: 1px solid var(--navy-line);
  border-radius: var(--r-card); text-decoration: none; color: var(--navy);
  font-weight: 600; font-size: 0.85rem; text-align: center;
}
.body-tile:hover { border-color: var(--navy); }
.body-tile svg { width: 56px; height: 30px; }
.body-tile:hover { border-color: var(--navy); }
.body-tile .count { color: var(--grey-text); font-weight: 400; font-size: 0.8rem; }
@media (min-width: 720px) { .body-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .body-grid { grid-template-columns: repeat(8, 1fr); } }

/* ---------- Car cards ---------- */
.car-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 420px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .car-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .car-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.car-card {
  background: var(--white); border: 1px solid var(--navy-line);
  border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column;
}
.car-card:hover { border-color: var(--navy); }
.car-card .card-photo { position: relative; aspect-ratio: var(--ar-card); overflow: hidden; background: var(--navy); }
.car-card .card-photo img { width: 100%; height: 100%; object-fit: cover; }
.car-card .card-body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.car-card .card-title { font-size: 1rem; font-weight: 700; }
.car-card .card-title a { color: inherit; text-decoration: none; }
.car-card .card-title a::after { content: ""; position: absolute; inset: 0; }
.car-card { position: relative; }
.car-card .card-price { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.car-card .card-price small { font-weight: 600; color: var(--grey-text); font-size: 0.78rem; }
.car-card .card-meta { font-size: 0.85rem; color: var(--grey-text); }
.car-card .card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.4rem; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: var(--r-chip);
  border: 1px solid var(--navy-line); color: var(--grey-text); background: var(--white);
}
.tag-status-available { border-color: var(--navy); color: var(--navy); }
.tag-status-reserved { border-color: var(--gold-dark); color: var(--gold-dark); background: var(--gold-tint); }
.tag-status-sold { border-color: #8a97a8; color: #5b6b7d; background: var(--navy-tint); }
.tag-cond { border-color: var(--gold-dark); color: var(--gold-dark); }
.badge-photo {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--navy); color: var(--white); padding: 0.25rem 0.6rem; border-radius: var(--r-chip);
}
.badge-photo.gold { background: var(--gold); color: var(--navy); }

/* ---------- Browse by make ---------- */
.make-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.make-chip {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  border: 1px solid var(--navy-line); background: var(--white); border-radius: var(--r-chip);
  padding: 0.55rem 1rem; text-decoration: none; color: var(--navy); font-weight: 600;
}
.make-chip:hover { border-color: var(--navy); }
.make-chip .count { color: var(--gold-dark); font-size: 0.85rem; font-weight: 700; }

/* ---------- Why us / steps / split blocks ---------- */
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }
@media (min-width: 900px) { .split.wide-left { grid-template-columns: 1.3fr 1fr; } }

.fact-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.fact-list li { position: relative; padding-left: 1.35rem; }
.fact-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--gold); border-radius: 1px;
}
.fact-list strong { display: block; font-size: 1.02rem; }
.fact-list p { margin: 0.15rem 0 0; color: var(--grey-text); font-size: 0.95rem; }

.step-list { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.step-list .step-dot {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.step-list .step-dot svg { width: 22px; height: 22px; }
.step-list strong { display: block; color: var(--white); font-size: 1.05rem; }
.step-list p { margin: 0.15rem 0 0; font-size: 0.95rem; }

.img-slot {
  width: 100%; object-fit: cover; display: block; border-radius: var(--r-card);
  border: 1px solid var(--navy-line);
}
.img-hero { aspect-ratio: var(--ar-hero); }

/* ---------- Reviews: single-line looping strip ---------- */
.review-strip { overflow: hidden; }
.review-track {
  display: flex; gap: 1rem; width: max-content;
  animation: review-scroll 110s linear infinite;
}
.review-strip:hover .review-track,
.review-track:focus-within { animation-play-state: paused; }
@keyframes review-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}
.review-card {
  margin: 0; width: 280px; flex: none; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--r-card); padding: 1.25rem;
}
@media (max-width: 480px) { .review-card { width: 236px; padding: 1rem; } }
@media (prefers-reduced-motion: reduce) {
  .review-strip { overflow-x: auto; }
  .review-track { animation: none; }
}
.review-card .stars { color: var(--gold-dark); font-size: 0.85rem; letter-spacing: 0.15em; }
.review-card blockquote { margin: 0.6rem 0 0.9rem; font-size: 0.95rem; }
.review-card figcaption { font-size: 0.85rem; color: var(--grey-text); }
.review-card figcaption strong { color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--navy-line); }
.faq-item summary {
  cursor: pointer; padding: 1rem 0.25rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dark); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0.25rem 1.25rem; color: var(--grey-text); max-width: 68ch; }

/* ---------- CTA band / sell teaser ---------- */
.cta-band { background: var(--gold); color: var(--navy); }
.cta-band .container { display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.cta-band h2, .cta-band p { color: var(--navy); margin: 0; }
@media (min-width: 800px) {
  .cta-band .container { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Filter page ---------- */
.cars-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
  .cars-layout { grid-template-columns: 280px 1fr; align-items: start; }
}

.filter-panel { background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--r-card); }
.filter-panel .filter-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1rem; border-bottom: 1px solid var(--navy-line); font-weight: 700;
}
.filter-panel .filter-body { padding: 0.5rem 1rem 1rem; }
.f-group { border-bottom: 1px solid var(--navy-tint); padding: 0.85rem 0; }
.f-group:last-child { border-bottom: none; }
.f-group legend, .f-group .f-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-text); margin-bottom: 0.5rem; }
.f-group fieldset { border: none; margin: 0; padding: 0; }
.f-option { display: flex; align-items: center; gap: 0.6rem; min-height: 36px; font-size: 0.95rem; }
.f-option input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.f-option .opt-count { margin-left: auto; color: var(--grey-text); font-size: 0.8rem; }
.f-option.zero { opacity: 0.45; }
.f-option input:disabled + .opt-name { text-decoration: none; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.f-input, .f-select {
  width: 100%; min-height: 44px; font: inherit; font-size: 1rem;
  border: 1px solid var(--navy-line); border-radius: var(--r-btn); padding: 0 0.65rem; background-color: var(--white);
}
.f-input:focus, .f-select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 2px var(--gold-tint); }

/* Custom dropdown chevron — every select, site-wide */
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230d253f' stroke-width='2.4' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 16px;
  padding-right: 2.3rem !important;
}
.price-bands { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.band-btn {
  border: 1px solid var(--navy-line); background: var(--white); border-radius: var(--r-chip);
  padding: 0.35rem 0.8rem; font: inherit; font-size: 0.82rem; cursor: pointer; color: var(--navy);
}
.band-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

.range-wrap { position: relative; height: 30px; margin: 0.25rem 0 0.5rem; }
.range-wrap input[type="range"] {
  position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; background: transparent; pointer-events: none;
}
.range-wrap input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--navy-line); border-radius: 2px; }
.range-wrap input[type="range"]::-webkit-slider-thumb {
  appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: -9px;
  border-radius: 50%; background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--gold-dark); cursor: pointer;
}
.range-wrap input[type="range"]::-moz-range-track { height: 4px; background: var(--navy-line); }
.range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--gold-dark); cursor: pointer;
}

.cars-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.cars-toolbar .results-count { font-weight: 700; }
.cars-toolbar .toolbar-right { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.cars-search { flex: 1 1 200px; position: relative; }
.cars-search input { width: 100%; min-height: 48px; padding: 0 1rem 0 2.6rem; border: 1px solid var(--navy-line); border-radius: var(--r-btn); font: inherit; font-size: 1rem; }
.cars-search svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--grey-text); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--gold-tint); border: 1px solid var(--gold-dark); color: var(--navy);
  border-radius: var(--r-chip); padding: 0.35rem 0.5rem 0.35rem 0.85rem; font-size: 0.85rem; font-weight: 600;
}
.chip button {
  border: none; background: var(--navy); color: var(--white); width: 22px; height: 22px;
  border-radius: 50%; font-size: 0.8rem; line-height: 1; cursor: pointer; padding: 0;
}
.chip-clear { border: none; background: none; color: var(--navy); font: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 44px; }

.filter-fab {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 0.5rem;
}
@media (min-width: 1024px) { .filter-fab, .filter-panel .filter-head { display: none; } }

/* mobile filter sheet */
@media (max-width: 1023px) {
  .filter-panel {
    position: fixed; inset: 0; z-index: 150; border: none; border-radius: 0;
    display: none; flex-direction: column; overflow: hidden;
  }
  .filter-panel.open { display: flex; }
  .filter-panel .filter-head { display: flex; padding: 0.75rem 1rem; }
  .filter-panel .filter-body { flex: 1; overflow-y: auto; padding-bottom: 6rem; }
  .filter-sheet-bar {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 1rem;
    background: var(--white); border-top: 1px solid var(--navy-line);
    display: flex; gap: 0.75rem;
  }
  .filter-sheet-bar .btn { flex: 1; }
}
.filter-sheet-bar { display: none; }
@media (max-width: 1023px) { .filter-panel.open .filter-sheet-bar { display: flex; } }

.load-more-wrap { text-align: center; margin-top: 1.5rem; }

.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--navy-line); border-radius: var(--r-card); }
.empty-state svg { width: 64px; height: 40px; margin: 0 auto 1rem; }

/* ---------- Car detail ---------- */
.car-hero { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .car-hero { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.gallery-main { aspect-ratio: var(--ar-detail); overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--navy-line); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.5rem; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-chip); overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery-thumbs img { aspect-ratio: var(--ar-thumb); object-fit: cover; width: 100%; }

.car-summary { background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--r-card); padding: 1.25rem; }
.car-summary .price { font-size: 1.75rem; font-weight: 800; }
.car-summary .price small { font-size: 0.85rem; font-weight: 600; color: var(--grey-text); }
.key-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem 1rem; margin: 1rem 0; padding: 0; list-style: none; }
.key-facts li { font-size: 0.95rem; font-weight: 700; border-top: 1px solid var(--navy-tint); padding-top: 0.5rem; }
.key-facts .k { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-text); margin-bottom: 0.1rem; }
.key-facts .v { font-weight: 700; }
@media (min-width: 480px) { .key-facts { grid-template-columns: repeat(3, 1fr); } }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--navy-tint); vertical-align: top; }
.spec-table th { color: var(--grey-text); font-weight: 600; width: 42%; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.feature-tags .tag { text-transform: none; letter-spacing: 0; font-size: 0.8rem; font-weight: 500; padding: 0.3rem 0.7rem; }

.contact-actions { display: grid; gap: 0.6rem; margin-top: 1.25rem; }

/* floating contact buttons */
.float-contact { position: fixed; right: 1rem; bottom: 1.5rem; z-index: 95; display: flex; flex-direction: column; gap: 0.6rem; }
.float-contact a {
  width: 52px; height: 52px; aspect-ratio: 1 / 1; flex: none; padding: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; border: 2px solid var(--white); font-size: 0; line-height: 0;
}
.float-contact .fc-wa { background: #25d366; color: #ffffff; }
.float-contact .fc-tel { background: var(--navy); color: var(--white); }
.float-contact svg { width: 24px; height: 24px; }
body.filters-open .float-contact { display: none; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--r-card); padding: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-text); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem; color: var(--navy);
  border: 1px solid var(--navy-line); border-radius: var(--r-btn); padding: 0.6rem 0.75rem; background-color: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 2px var(--gold-tint); }
.field input[type="file"] {
  border-style: dashed; background: var(--navy-tint); padding: 0.7rem; cursor: pointer;
}
.card-body > p:last-child, .car-summary > p:last-child, .form-card > p:last-child { margin-bottom: 0; }
.field .err { color: #9b2226; font-size: 0.85rem; margin-top: 0.3rem; }
.field input[aria-invalid="true"] { border-color: #9b2226; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9rem; color: var(--grey-text); }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice { border-radius: var(--r-card); padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-weight: 500; }
.notice-ok { background: var(--gold-tint); border: 1px solid var(--gold-dark); color: var(--navy); }
.notice-err { background: #fbeaea; border: 1px solid #c46; color: #7c1d1d; }

/* ---------- Blog ---------- */
.pill-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px;
  border: 1px solid var(--navy-line); background: var(--white); border-radius: var(--r-chip);
  padding: 0.4rem 0.9rem; font: inherit; font-size: 0.88rem; font-weight: 600;
  color: var(--navy); cursor: pointer; text-decoration: none;
}
.pill-btn .n { color: var(--grey-text); font-weight: 500; }
.pill-btn[aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pill-btn[aria-current="page"] .n { color: #cdd8e4; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prose { line-height: 1.7; }
.prose h2 { font-size: 1.4rem; margin: 1.8rem 0 0.6rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.3rem; }
.prose blockquote {
  margin: 1.2rem 0; padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--gold); color: var(--grey-text); font-size: 1.05rem;
}
.prose img { border-radius: var(--r-card); }
.prose a { color: var(--navy); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #cdd8e4; padding: 2.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.site-footer a { color: #cdd8e4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.footer-brand { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand .brand-logo-footer { height: 52px; max-width: none; }

/* ---------- Admin ---------- */
.admin-shell { max-width: 1100px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.admin-nav a { padding: 0.5rem 0.9rem; border-radius: var(--r-btn); text-decoration: none; font-weight: 600; font-size: 0.9rem; background: var(--navy-tint); color: var(--navy); }
.admin-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--navy-tint); }
.admin-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-text); }
.admin-table .row-actions { white-space: nowrap; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--r-card); padding: 1rem; }
.stat-card .num { font-size: 1.8rem; font-weight: 800; }
.stat-card .lbl { color: var(--grey-text); font-size: 0.85rem; }

/* ---------- Misc ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--grey-text); margin-bottom: 1rem; }
.breadcrumb a { color: var(--navy); }
.page-head { padding: 2rem 0 0.5rem; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.75em; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: 0.4rem; }
.text-muted { color: var(--grey-text); }
.mt-0 { margin-top: 0; }
.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; }

/* ==========================================================================
   Small phones (<=599px): card grids go 2-up to cut scroll debt, and every
   horizontal spacing layer is 6px — container edge padding = card gap =
   card inner padding. Steps, forms and long-form blocks stay single-column.
   ========================================================================== */
@media (max-width: 599px) {
  .container { padding: 0 6px; }
  .car-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .car-card .card-body { padding: 6px; }
  .car-card .card-title { font-size: 0.9rem; }
  .car-card .card-price { font-size: 1.02rem; }
  .car-card .card-meta { font-size: 0.76rem; }
  .car-card .tag { font-size: 0.6rem; padding: 0.15rem 0.4rem; }
  .body-grid { gap: 6px; }
  .body-tile { padding: 8px 6px; font-size: 0.76rem; }
  .review-card { padding: 6px; }
  .gallery-thumbs { gap: 6px; }
  .chips { gap: 6px; }
  .stat-cards, .key-facts { gap: 6px; }
  .form-card, .car-summary { padding: 6px; }
  .quick-filter { padding: 6px; }
}
