/* ============================================================
   Humber Cars — site.css
   Palette: deep charcoal, silver grey, trust blue
   ============================================================ */

:root {
  --ink: #1b2230;
  --ink-soft: #3a4356;
  --grey: #6b7280;
  --grey-light: #eef0f4;
  --silver: #aab2c0;
  --blue: #1a56db;
  --blue-dark: #123f9e;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 34, 48, 0.08);
  --shadow-lift: 0 18px 44px rgba(27, 34, 48, 0.14);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }

.accent { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 86, 219, 0.3);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(26, 86, 219, 0.38); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-small { padding: 0.5rem 1.1rem; font-size: 0.85rem; background: var(--ink); color: #fff; }
.car-card:hover .btn-small { background: var(--blue); }

.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(27, 34, 48, 0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand-logo { height: 84px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #eef2f9 0%, #ffffff 72%);
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

/* Humber Bridge motif behind the hero — sits up and to the right,
   clear of the quick-search bar. Falls back to full-width at the
   bottom on smaller screens (see media queries). */
.hero-scene {
  position: absolute;
  top: 220px;
  /* Left edge is pinned to just past the text column (≤640px wide inside the
     centred container) + a 40px gap, so the motif can never slide under the
     copy at any viewport width. Bleeds off the right edge; height is capped
     so it always sits above the search bar. */
  left: calc((100vw - min(1140px, 92vw)) / 2 + 680px);
  right: -60px;
  bottom: auto;
  width: auto;
  max-width: 760px;
  pointer-events: none;
  line-height: 0;
}
.hero-scene svg { width: 100%; height: auto; display: block; }
.hero-scene .b { fill: none; stroke: var(--silver); stroke-width: 2.4; stroke-linecap: round; opacity: 0.45; }
.hero-scene .car { fill: none; stroke: var(--blue); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }

.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero h1 { margin: 0.4rem 0 1.1rem; }
.hero .lead { max-width: 35rem; }
.hero-actions { display: flex; gap: 0.9rem; margin: 1.8rem 0 1.4rem; flex-wrap: wrap; }

.hero-trust {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 0.45rem; }
.hero-trust svg { width: 19px; height: 19px; color: var(--blue); flex-shrink: 0; }

/* Quick-search bar */
.quick-search {
  margin-top: 2.6rem;
  max-width: 900px;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 1.1rem 1.2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr auto;
  gap: 0.9rem;
  align-items: end;
}
.qs-field { display: flex; flex-direction: column; gap: 0.35rem; }
.qs-field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.quick-search select,
.quick-search input {
  width: 100%;
  padding: 0.7rem 0.7rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--ink);
  background-color: var(--bg-alt);
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}
.quick-search select {
  padding-right: 2rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 14px;
}
.quick-search input::-webkit-outer-spin-button,
.quick-search input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick-search select:focus,
.quick-search input:focus { outline: none; border-color: var(--blue); background-color: #fff; }
.qs-submit { white-space: nowrap; }

/* Browse-by quick links */
.browse-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.browse-label { font-size: 0.85rem; color: var(--grey); font-weight: 600; margin-right: 0.2rem; }
.browse-by a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--grey-light);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.browse-by a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.browse-by .browse-all { color: var(--blue); border-color: rgba(26, 86, 219, 0.35); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }

.section-head { max-width: 38rem; margin-bottom: 2.8rem; }
.section-head h2 { margin-bottom: 0.8rem; }
.section-head p { color: var(--grey); }

.section-grey { background: var(--bg-alt); }

.section-dark {
  background: linear-gradient(160deg, #1b2230 0%, #232c3e 100%);
  color: #fff;
}
.section-dark .section-head p { color: var(--silver); }
.section-dark h2, .section-dark h3 { color: #fff; }

/* ---------- Stock grid ---------- */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.car-card {
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.car-link { display: block; color: inherit; }
.car-link:hover { text-decoration: none; }

.car-photo {
  position: relative;
  background: linear-gradient(150deg, #e8ebf0 0%, #f6f8fa 100%);
  color: var(--silver);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.car-photo svg { width: 100%; padding: 2rem; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }

.car-card.is-sold .car-photo img,
.car-card.is-sold .car-photo svg { opacity: 0.45; filter: grayscale(0.6); }

.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.badge-sold { background: var(--ink); }

.car-body { padding: 1.3rem 1.4rem 1.5rem; }
.car-body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.car-meta { font-size: 0.85rem; color: var(--grey); margin-bottom: 1rem; }

.car-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--ink); }

.stock-note { text-align: center; color: var(--grey); font-size: 0.95rem; margin-top: 1rem; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.feature h3 { margin: 1rem 0 0.5rem; font-size: 1.05rem; }
.feature p { font-size: 0.92rem; color: var(--silver); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(96, 142, 251, 0.16);
  display: grid;
  place-items: center;
}
.feature-icon svg { width: 24px; height: 24px; color: #7da6ff; }

/* ---------- Part-exchange ---------- */
.px-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.px-copy h2 { margin-bottom: 0.9rem; }
.px-copy p { color: var(--grey); }

.check-list { list-style: none; margin: 1.5rem 0 2rem; }
.check-list li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.65rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(26, 86, 219, 0.1);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.px-panel {
  background: var(--bg-alt);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.px-panel h3 { margin-bottom: 1.4rem; }

.steps-list { list-style: none; counter-reset: step; }
.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.4rem;
}
.steps-list li:last-child { margin-bottom: 0; }
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps-list strong { display: block; }
.steps-list span { color: var(--grey); font-size: 0.9rem; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.review {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
}
.stars { color: #f5a623; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 0.8rem; }
.review blockquote { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.review figcaption { font-weight: 700; font-size: 0.9rem; }
.review figcaption span { color: var(--grey); font-weight: 500; margin-left: 0.4rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 0.8rem; }
.contact-info > p { color: var(--grey); }

.contact-list { list-style: none; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.4rem; align-items: flex-start; }
.contact-list svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  box-sizing: border-box;
  color: var(--blue);
  background: rgba(26, 86, 219, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}
.contact-list strong { display: block; font-size: 0.95rem; }
.contact-list span { color: var(--grey); font-size: 0.92rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 1.3rem; }
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.15s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.part-exchange {
  margin: 0.25rem 0 1.25rem;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--grey-light);
  border-radius: 10px;
}
.contact-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.92rem;
}
.contact-form .checkbox-label input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.part-exchange-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-light);
}
.part-exchange-fields[hidden] { display: none; }
.part-exchange-fields .form-row:last-child label { margin-bottom: 0; }

.form-success {
  display: none;
  margin-top: 1rem;
  color: #15803d;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}
.contact-form.sent .form-success { display: block; }

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.form-car-note {
  background: rgba(26, 86, 219, 0.07);
  border: 1px solid rgba(26, 86, 219, 0.18);
  color: var(--ink-soft);
  font-size: 0.88rem;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.contact-form input.has-error,
.contact-form textarea.has-error { border-color: #dc2626; }

.recaptcha-note {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--grey);
  text-align: center;
}
.recaptcha-note a { color: var(--grey); text-decoration: underline; }

/* ---------- Vehicle detail page ---------- */
.vehicle-page { padding-top: 2.5rem; }

.back-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--grey);
  margin-bottom: 1.8rem;
}
.back-link:hover { color: var(--blue); text-decoration: none; }

.vehicle-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.vehicle-gallery {
  min-width: 0;
}

.vehicle-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, #e8ebf0 0%, #f6f8fa 100%);
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo .car-badge { top: 16px; left: 16px; font-size: 0.78rem; }

.vehicle-photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.vehicle-photo-open img {
  display: block;
  transition: transform 0.25s ease;
}

.vehicle-photo-open:hover img { transform: scale(1.015); }

.vehicle-photo-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  pointer-events: none;
}

.vehicle-photo-zoom svg { width: 16px; height: 16px; }

.gallery-arrow,
.lightbox-arrow {
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.2);
  font-size: 2rem;
}

.gallery-arrow:hover { background: #fff; color: var(--blue); }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }

.gallery-count {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.vehicle-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.vehicle-thumbnail {
  aspect-ratio: 16 / 11;
  min-width: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--bg-alt);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.vehicle-thumbnail:hover,
.vehicle-thumbnail.is-active {
  border-color: var(--blue);
  opacity: 1;
}

.vehicle-thumbnail:hover { transform: translateY(-2px); }
.vehicle-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }

.vehicle-lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  height: 92vh;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(8, 12, 20, 0.98);
  color: #fff;
  overflow: hidden;
}

.vehicle-lightbox::backdrop { background: rgba(4, 8, 15, 0.88); backdrop-filter: blur(5px); }

.vehicle-lightbox figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 3rem 4.5rem 2.5rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 0.8rem;
}

.vehicle-lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vehicle-lightbox figcaption { color: #d1d5db; font-size: 0.85rem; font-weight: 700; }

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2.4rem;
}

.lightbox-arrow-prev { left: 16px; }
.lightbox-arrow-next { right: 16px; }

.photo-placeholder {
  color: var(--silver);
  text-align: center;
  width: 100%;
  padding: 2.5rem;
}
.photo-placeholder svg { display: block; width: 70%; margin: 0 auto 0.5rem; }
.photo-placeholder span { font-size: 0.88rem; font-weight: 600; }

.vehicle-summary h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.3rem; }
.vehicle-sub { color: var(--grey); font-weight: 600; }
.vehicle-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0.8rem 0 1.4rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.spec-grid > div {
  background: var(--bg-alt);
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  padding: 0.7rem 1rem;
}
.spec-grid dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
}
.spec-grid dd { font-weight: 700; font-size: 0.98rem; }

.vehicle-specs { margin-top: 3rem; }
.vehicle-specs h2 { font-size: 1.4rem; margin-bottom: 1.2rem; color: var(--ink); }
.spec-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-bottom: 0;
}

.vehicle-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: #1da851; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.38); }
.btn-whatsapp svg { width: 20px; height: 20px; }

.vehicle-trust { margin-top: 0.4rem; }

.sold-note {
  background: var(--bg-alt);
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.vehicle-description {
  max-width: 46rem;
  margin-top: 3rem;
  color: var(--ink-soft);
}
.vehicle-description h2 { font-size: 1.4rem; margin-bottom: 0.8rem; color: var(--ink); }

.vehicle-enquiry { align-items: center; }
.vehicle-enquiry .contact-info { max-width: 30rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--silver);
  padding: 3.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
}
.footer-wordmark em { font-style: normal; color: #7da6ff; }
.footer-brand p { margin-top: 0.8rem; font-size: 0.9rem; }

.footer-links h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.footer-links a, .footer-links span {
  display: block;
  color: var(--silver);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
  font-size: 0.8rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ---------- Multi-page additions ---------- */

/* Active nav state */
.main-nav a.active { color: var(--blue); }

/* Light ghost button for dark sections */
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Centred call-to-action under a grid */
.section-cta { text-align: center; margin-top: 2.6rem; }

/* Page header (interior pages) */
.page-head { max-width: 46rem; margin-bottom: 2.2rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.7rem; }
.page-head p { color: var(--grey); }
.container.narrow { width: min(760px, 92%); }
.page-intro { padding-bottom: 1rem; }

/* ---------- Stock listing ---------- */
.stock-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.filters-head h2 { font-size: 1.1rem; }
.filters-clear { font-size: 0.82rem; font-weight: 700; }

.filter-field { display: block; margin-bottom: 1rem; }
.filter-field > span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.filter-pair { display: flex; align-items: center; gap: 0.5rem; }
.filter-pair-sep { color: var(--grey); font-size: 0.85rem; }

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  cursor: pointer;
}
.filter-check input { width: 16px; height: 16px; accent-color: var(--blue); }

/* Native select styling shared by filters + sort */
.filters select,
.results-sort select {
  width: 100%;
  padding: 0.6rem 2rem 0.6rem 0.7rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--ink);
  background-color: var(--bg-alt);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 14px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.filters select:focus,
.results-sort select:focus { outline: none; border-color: var(--blue); background-color: #fff; }

/* Free-type price inputs, styled to match the selects */
.filters input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--ink);
  background-color: var(--bg-alt);
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}
.filters input[type="number"]:focus { outline: none; border-color: var(--blue); background-color: #fff; }
.filters input[type="number"]::-webkit-outer-spin-button,
.filters input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter-pair select { min-width: 0; }

/* Results column */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.results-count { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.results-sort label { display: flex; align-items: center; gap: 0.6rem; }
.results-sort label span { font-size: 0.85rem; color: var(--grey); font-weight: 600; white-space: nowrap; }
.results-sort select { width: auto; min-width: 190px; }

/* Results grid flexes to the narrower column */
.stock-grid-results { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.no-results {
  background: var(--bg-alt);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2.8rem 2rem;
  text-align: center;
}
.no-results h3 { margin-bottom: 0.5rem; }
.no-results p { color: var(--grey); max-width: 34rem; margin: 0 auto; }

/* Pagination */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
}
.page-link {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--grey-light);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.page-link:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.page-link.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-link.disabled { color: var(--silver); background: var(--bg-alt); }
.page-link.dots { border: 0; background: none; }

/* ---------- How it works: process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.process-step {
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.process-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.92rem; color: var(--grey); }

/* CTA band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.cta-band p { color: var(--grey); }
.cta-band-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Home: section header row ---------- */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}
.section-head-row .eyebrow { margin-bottom: 0.5rem; }
.section-head-row h2 { margin: 0; }
.head-link { font-weight: 700; font-size: 0.92rem; white-space: nowrap; }

/* ---------- Home: about band ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-copy h2 { margin: 0.6rem 0 1rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-copy .btn { margin-top: 0.4rem; }
.about-stats { display: grid; gap: 1rem; }
.stat {
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.stat strong { font-size: 1.8rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat span { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- Home: warmth touches ---------- */
.hero-card-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--silver);
  margin-bottom: 0.9rem;
}

.welcome-inner { text-align: center; }
.welcome-inner h2 { margin: 0.6rem 0 1.1rem; }
.welcome-inner p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.welcome-sign {
  margin-top: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
}

/* Below this width the right-hand gap gets too tight for the motif, so it
   drops to a full-width band along the bottom of the hero (clear of all text). */
@media (max-width: 1080px) {
  .hero-scene {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }
  /* Reserve room for the full-width bridge band so the copy, search and
     chips always sit above it. The tower tops reach ~0.22 × viewport-width
     above the hero's bottom edge. */
  .hero { padding-bottom: calc(22vw + 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .vehicle-photo-open img,
  .vehicle-thumbnail { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner,
  .px-inner,
  .contact-inner,
  .vehicle-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .stock-grid,
  .features-grid,
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* Stock filters move above the results and stop sticking */
  .stock-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .filters { position: static; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .quick-search { grid-template-columns: 1fr 1fr; }
  .quick-search .qs-submit { grid-column: 1 / -1; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 4%;
    box-shadow: 0 16px 30px rgba(27, 34, 48, 0.12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.9rem 0.4rem; border-bottom: 1px solid var(--grey-light); }
  .main-nav .nav-cta {
    margin: 0.9rem 0.4rem 1rem;
    text-align: center;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding-top: 3rem; }

  .stock-grid,
  .features-grid,
  .reviews-grid,
  .form-row,
  .footer-inner,
  .spec-grid,
  .process-steps { grid-template-columns: 1fr; }

  .stock-grid-results { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .results-bar { align-items: flex-start; }
  .results-sort label { width: 100%; }
  .results-sort select { flex: 1; }

  .cta-band { padding: 1.6rem 1.5rem; }

  .quick-search { grid-template-columns: 1fr; }

  .brand-logo { height: 64px; }

  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }
  .gallery-arrow-prev { left: 8px; }
  .gallery-arrow-next { right: 8px; }
  .vehicle-photo-zoom { padding: 0.42rem; }
  .vehicle-photo-zoom svg { width: 18px; height: 18px; }
  .vehicle-photo-zoom { font-size: 0; }
  .vehicle-thumbnails { grid-auto-columns: 82px; }
  .vehicle-lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
  .vehicle-lightbox figure { padding: 3.5rem 1rem 4.5rem; }
  .lightbox-arrow {
    top: auto;
    bottom: 14px;
    transform: none;
  }
  .lightbox-arrow-prev { left: calc(50% - 62px); }
  .lightbox-arrow-next { right: calc(50% - 62px); }
}

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 2.4rem; }
.legal-body { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.legal-body h3 {
  color: var(--ink);
  font-size: 1.15rem;
  margin: 1.8rem 0 0.6rem;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1rem 1.2rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a { color: var(--blue); }

/* ---------- Footer trading details ---------- */
.footer-trading { color: var(--silver); }

/* ---------- Reviews attribution ---------- */
.reviews-attribution {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.82rem;
  color: var(--grey);
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; font-size: 0.88rem; line-height: 1.5; min-width: 14rem; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }

/* ---------- Vehicle features & equipment ---------- */
.vehicle-features {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--grey-light);
}
.vehicle-features h2 { margin-bottom: 1.2rem; }
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.7rem 1.6rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.feature-list svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
