/* ============================================================
   CarLuxe — Design System Stylesheet
   Zero-dependency, mobile-first, luxury automotive
   ============================================================ */

/* ── CSS Custom Properties (Tokens) ─────────────────────────── */
:root {
  /* Colour palette */
  --bg:          #FAF9F6;
  --bg-alt:      #F5F4F0;
  --ink:         #111111;
  --ink-90:      rgba(17,17,17,0.9);
  --ink-70:      rgba(17,17,17,0.7);
  --ink-50:      rgba(17,17,17,0.5);
  --ink-20:      rgba(17,17,17,0.2);
  --ink-10:      rgba(17,17,17,0.1);
  --ink-05:      rgba(17,17,17,0.05);
  --gold:        #B69A67;
  --gold-light:  #C9AE7C;
  --gold-dark:   #9E8253;
  --gold-10:     rgba(182,154,103,0.10);
  --gold-20:     rgba(182,154,103,0.20);
  --line:        #F2F2F2;
  --line-strong:  #E5E5E3;
  --muted:       #6B6B6B;
  --white:       #FFFFFF;
  --available:   #2E7D32;
  --available-bg:#EAF2EA;
  --alert:       #8B2E2E;
  --alert-bg:    #FDECEA;
  --reserved-bg: #FFF8E1;
  --reserved:    #A9761E;
  --coming-bg:   #F5EFE3;
  --coming:      #8A6D3B;

  /* Gold metallic gradient for primary CTAs */
  --gold-gradient: linear-gradient(135deg, #C9AE7C 0%, #B69A67 50%, #9E8253 100%);

  /* Typography */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid type scale: clamp(min, preferred, max) */
  --text-xs:    clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);   /* 11–13 */
  --text-sm:    clamp(0.8125rem, 0.77rem + 0.2vw, 0.9375rem);   /* 13–15 */
  --text-base:  clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);    /* 15–17 */
  --text-md:    clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);     /* 18–21 */
  --text-lg:    clamp(1.3125rem, 1.2rem + 0.6vw, 1.6875rem);     /* 21–27 */
  --text-xl:    clamp(1.6875rem, 1.5rem + 0.8vw, 2.125rem);      /* 27–34 */
  --text-2xl:   clamp(2.125rem, 1.85rem + 1.2vw, 2.75rem);       /* 34–44 */
  --text-3xl:   clamp(2.75rem, 2.3rem + 2vw, 3.5rem);            /* 44–56 */

  /* Spacing grid (8px base) */
  --space-1: 0.25rem;   /*  4 */
  --space-2: 0.5rem;    /*  8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 2.5rem;    /* 40 */
  --space-8: 3rem;      /* 48 */
  --space-9: 4rem;      /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-11: 6rem;     /* 96 */
  --space-12: 8rem;     /* 128 */

  /* Layout */
  --max-width:     1400px;
  --gutter:        var(--space-5);     /* 24px mobile */
  --gutter-wide:   var(--space-9);     /* 64px desktop */
  --header-height: 72px;
  --cta-bar-height: 56px;

  /* Corners — square/sharp luxury feel */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-pill: 100px;

  /* Motion */
  --ease-out:   cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   200ms;
  --duration-base:   400ms;
  --duration-slow:   600ms;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);

  /* Z-index layers */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}

/* Desktop gutter override */
@media (min-width: 768px) {
  :root {
    --gutter: var(--gutter-wide);
    --header-height: 80px;
  }
}


/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

.label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--gold {
  color: var(--gold);
}

.price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.price--lg {
  font-size: var(--text-xl);
}

.price--xl {
  font-size: var(--text-2xl);
}

.price--was {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
}

.price--monthly {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 400;
}

.text-muted { color: var(--muted); }
.text-gold  { color: var(--gold); }
.text-sm    { font-size: var(--text-sm); }
.text-xs    { font-size: var(--text-xs); }
.text-center { text-align: center; }


/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section--dark {
  background-color: var(--ink);
  color: var(--bg);
}

.section--dark .label { color: var(--gold); }
.section--dark h2,
.section--dark h3 { color: var(--bg); }

.section-header__subtitle { color: var(--muted); }
.section--dark .section-header__subtitle { color: rgba(250,249,246,0.85); }

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

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }


/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.site-header.is-scrolled {
  background-color: rgba(250, 249, 246, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-logo__text {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.header-logo__mark {
  color: var(--gold);
}

/* Desktop nav */
.header-nav {
  display: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width var(--duration-base) var(--ease-out);
}

.header-nav a:hover::after,
.header-nav a.is-active::after {
  width: 100%;
}

.header-nav a:hover { color: var(--ink); }
.header-nav a.is-active { color: var(--gold); }

/* Header actions (phone, CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

@media (min-width: 768px) {
  .header-phone { display: flex; }
}

.header-phone svg { width: 18px; height: 18px; color: var(--gold); }


/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Primary — gold metallic gradient */
.btn--primary {
  background: var(--gold-gradient);
  color: var(--white);
  border: none;
}

.btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(182, 154, 103, 0.35);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* Secondary — outlined */
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn--secondary:hover {
  background-color: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Ghost — minimal */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 16px;
}

.btn--ghost:hover {
  color: var(--gold);
  background-color: var(--gold-10);
}

/* Dark section variants */
.section--dark .btn--secondary {
  color: var(--bg);
  border-color: var(--bg);
}

.section--dark .btn--secondary:hover {
  background-color: var(--bg);
  color: var(--ink);
}

/* Sizes */
.btn--sm {
  font-size: var(--text-xs);
  padding: 10px 20px;
  min-height: 40px;
}

.btn--lg {
  font-size: var(--text-base);
  padding: 18px 40px;
  min-height: 56px;
}

.btn--full { width: 100%; }


/* ── Status Pills ───────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pill--available {
  background-color: var(--available-bg);
  color: var(--available);
}

.pill--sold {
  background-color: var(--alert-bg);
  color: var(--alert);
}

.pill--reserved {
  background-color: var(--reserved-bg);
  color: var(--reserved);
}

.pill--coming {
  background-color: var(--coming-bg);
  color: var(--coming);
}

.pill--featured {
  background-color: var(--gold-10);
  color: var(--gold-dark);
}

.pill--new {
  background-color: var(--ink);
  color: var(--bg);
}


/* ── Vehicle Card ───────────────────────────────────────────── */
.vehicle-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.vehicle-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.vehicle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.vehicle-card:hover .vehicle-card__image img {
  transform: scale(1.03);
}

.vehicle-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.vehicle-card__count {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--white);
  background: var(--ink-50);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.vehicle-card__body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.vehicle-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vehicle-card__subtitle {
  font-size: var(--text-sm);
  color: var(--muted);
}

.vehicle-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--muted);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.vehicle-card__specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.vehicle-card__specs svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.vehicle-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--space-4) var(--space-4);
}

.vehicle-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  background-color: var(--ink);
}

@media (min-width: 768px) {
  .hero {
    height: 88vh;
    max-height: 960px;
  }
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero__slide picture,
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 6.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__slide.is-active img {
  transform: scale(1.07);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,17,17,0.92) 0%,
    rgba(17,17,17,0.55) 38%,
    rgba(17,17,17,0.2) 75%,
    rgba(17,17,17,0.4) 100%
  );
  z-index: 2;
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--gutter) var(--space-10);
  z-index: 3;
}

.hero__badge-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero__slide.is-active .hero__badge-wrap {
  transform: translateY(0);
  opacity: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(182, 154, 103, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  backdrop-filter: blur(8px);
}

.hero__specs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(250, 249, 246, 0.75);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: var(--space-3);
  max-width: 820px;
  letter-spacing: -0.02em;
  transform: translateY(28px);
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.hero__slide.is-active .hero__title {
  transform: translateY(0);
  opacity: 1;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(250, 249, 246, 0.85);
  margin-bottom: var(--space-6);
  max-width: 640px;
  line-height: 1.6;
  transform: translateY(24px);
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero__slide.is-active .hero__subtitle {
  transform: translateY(0);
  opacity: 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s;
}

.hero__slide.is-active .hero__actions {
  transform: translateY(0);
  opacity: 1;
}

/* Hero navigation arrows */
.hero__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(10px);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  border-radius: 2px;
}

@media (min-width: 900px) {
  .hero__nav-btn { display: flex; }
}

.hero__nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(182, 154, 103, 0.4);
}

.hero__nav-btn--prev { left: var(--space-5); }
.hero__nav-btn--next { right: var(--space-5); }

.hero__nav-btn svg {
  width: 22px;
  height: 22px;
}

/* Luxury progress bars */
.hero__progress-bars {
  position: absolute;
  bottom: var(--space-6);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 4;
}

.hero__bar-item {
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width var(--duration-base);
}

.hero__bar-item.is-active {
  width: 72px;
}

.hero__bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
}

.hero__bar-item.is-active .hero__bar-fill {
  width: 100%;
  transition: width 5.2s linear;
}

/* ── Trust Credentials Ticker / Strip ───────────────────────── */
.trust-strip {
  background: var(--ink);
  color: var(--bg);
  border-bottom: 1px solid rgba(182, 154, 103, 0.25);
  padding: var(--space-4) 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 900px) {
  .trust-strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-strip__icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(182, 154, 103, 0.4);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(182, 154, 103, 0.08);
  flex-shrink: 0;
}

.trust-strip__icon svg {
  width: 20px;
  height: 20px;
}

.trust-strip__content b {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-strip__content span {
  font-size: var(--text-xs);
  color: rgba(250, 249, 246, 0.6);
}

/* ── Interactive Category Filter Pills ──────────────────────── */
.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-pill {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-pill:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-light);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.15);
}

/* ── Editorial Spotlight Split Section ───────────────────────── */
.spotlight {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  position: relative;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .spotlight-grid {
    grid-template-columns: 1.15fr 1fr;
  }
}

.spotlight__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.spotlight:hover .spotlight__media img {
  transform: scale(1.03);
}

.spotlight__media-badge {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid var(--gold);
  padding: 6px 14px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.spotlight__content {
  padding: var(--space-8) var(--gutter);
}

@media (min-width: 1024px) {
  .spotlight__content {
    padding: var(--space-12) var(--space-10);
  }
}

.spotlight__content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: var(--space-4);
}

.spotlight__content p {
  color: rgba(250, 249, 246, 0.8);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.spotlight__specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-6) 0;
  margin: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.spotlight__spec-item b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--gold);
  font-weight: 700;
}

.spotlight__spec-item span {
  font-size: var(--text-xs);
  color: rgba(250, 249, 246, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Testimonials & Journal Grid ────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-7) var(--space-6);
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
  transform: translateY(-2px);
}

.testimonial-card__stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: var(--space-3);
}

.testimonial-card__quote {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
  margin-bottom: var(--space-6);
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.testimonial-card__vehicle {
  font-size: var(--text-xs);
  color: var(--gold-dark);
  font-weight: 500;
}

/* ── VIP Stock Alerts Banner ────────────────────────────────── */
.vip-banner {
  background: linear-gradient(135deg, #181818 0%, #111111 100%);
  border: 1px solid rgba(182, 154, 103, 0.3);
  padding: var(--space-10) var(--space-8);
  position: relative;
  overflow: hidden;
}

.vip-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
}

.vip-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.vip-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-3);
}

.vip-banner p {
  color: rgba(250, 249, 246, 0.75);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

.vip-banner__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 600px) {
  .vip-banner__form {
    flex-direction: row;
  }
  .vip-banner__form input {
    flex: 1;
  }
}

/* ── Timeline Protocol (About Page) ─────────────────────────── */
.protocol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .protocol-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.protocol-step {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-6) var(--space-5);
  position: relative;
  transition: all var(--duration-base);
}

.protocol-step:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.protocol-step__num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.protocol-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.protocol-step__desc {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

/* ── Interactive Finance Calculator Card ─────────────────────── */
.calc-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-md);
}

.calc-range-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.calc-range-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}

.calc-range-header b {
  color: var(--gold);
  font-size: var(--text-base);
}

.calc-slider {
  width: 100%;
  accent-color: var(--gold);
  height: 6px;
  background: var(--line);
  cursor: pointer;
}

.calc-result-box {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-6);
  text-align: center;
  border-top: 3px solid var(--gold);
  margin-top: var(--space-6);
}

.calc-result-box span {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.6);
  display: block;
}

.calc-result-box strong {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--gold-light);
  display: block;
  margin: var(--space-2) 0;
  font-variant-numeric: tabular-nums;
}

/* ── Scroll Reveal Utilities ────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* Body padding when CTA bar is present (mobile only) */
body.has-cta-bar {
  padding-bottom: var(--cta-bar-height);
}

@media (min-width: 1024px) {
  body.has-cta-bar { padding-bottom: 0; }
}


/* ── Sticky Price Header ────────────────────────────────────── */
.sticky-price {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: calc(var(--z-sticky) - 1);
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform var(--duration-base) var(--ease-out);
}

.sticky-price.is-visible {
  transform: translateY(0);
}

.sticky-price__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.sticky-price__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}


/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 16px; /* Prevents iOS zoom */
  line-height: 1.5;
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--ink-20);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-10);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-50);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--alert);
}

/* Honeypot (anti-spam) — visually hidden */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}


/* ── Spec Strip (key specs on vehicle page) ─────────────────── */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-strip__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100px;
}

.spec-strip__label {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-strip__value {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}


/* ── Gallery (CSS scroll-snap, swipeable) ───────────────────── */
.gallery {
  position: relative;
}

.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 2px;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* Gallery counter */
.gallery__counter {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--white);
  background: var(--ink-50);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* Gallery thumbnails (desktop) */
.gallery__thumbs {
  display: none;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .gallery__thumbs { display: flex; }
}

.gallery__thumb {
  width: 72px;
  height: 54px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-out);
  opacity: 0.7;
}

.gallery__thumb.is-active,
.gallery__thumb:hover {
  border-color: var(--gold);
  opacity: 1;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery tabs */
.gallery__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery__tabs::-webkit-scrollbar { display: none; }

.gallery__tab {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-4);
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.gallery__tab:hover { color: var(--ink); }

.gallery__tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}


/* ── Bottom Sheet (mobile filters) ──────────────────────────── */
.bottom-sheet__backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(17,17,17,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.bottom-sheet__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-overlay) + 1);
  background: var(--white);
  border-radius: 16px 16px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.bottom-sheet.is-open {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .bottom-sheet,
  .bottom-sheet__backdrop { display: none !important; }
}

.bottom-sheet__handle {
  display: flex;
  justify-content: center;
  padding: var(--space-3) 0;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.bottom-sheet__handle::before {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--line-strong);
  border-radius: var(--radius-pill);
}

.bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.bottom-sheet__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
}

.bottom-sheet__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bottom-sheet__footer {
  padding: var(--space-4) var(--space-5) var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  gap: var(--space-3);
}


/* ── Filter Chips ───────────────────────────────────────────── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  background: var(--gold-10);
  color: var(--gold-dark);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background-color var(--duration-fast);
}

.filter-chip:hover {
  background: var(--gold-20);
}

.filter-chip svg {
  width: 14px;
  height: 14px;
}

.filter-chip--clear {
  background: var(--ink-05);
  color: var(--muted);
}

.filter-chip--clear:hover {
  background: var(--ink-10);
  color: var(--ink);
}


/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--ink);
  color: var(--bg);
  padding: var(--space-10) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-col__heading {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(250,249,246,0.7);
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-col__text {
  font-size: var(--text-sm);
  color: rgba(250,249,246,0.7);
  line-height: 1.7;
}

.footer-col__text strong {
  color: var(--bg);
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(250,249,246,0.15);
  border-radius: 50%;
  color: rgba(250,249,246,0.6);
  transition: all var(--duration-fast);
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

/* Newsletter form in footer */
.footer-newsletter {
  display: flex;
  gap: 0;
  margin-top: var(--space-3);
}

.footer-newsletter .form-input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  background-color: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--bg);
  font-size: var(--text-sm);
  padding: 12px 16px;
}

.footer-newsletter .form-input::placeholder {
  color: rgba(250,249,246,0.4);
}

.footer-newsletter .form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-10);
}

.footer-newsletter .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 20px;
  min-height: auto;
}

/* Footer bottom bar */
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(250,249,246,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom__copy {
  font-size: var(--text-xs);
  color: rgba(250,249,246,0.4);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-4);
}

.footer-bottom__links a {
  font-size: var(--text-xs);
  color: rgba(250,249,246,0.4);
}

.footer-bottom__links a:hover {
  color: var(--gold);
}


/* ── Cookie Consent Banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: var(--ink);
  padding: var(--space-4) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: rgba(250,249,246,0.8);
  flex: 1;
}

.cookie-banner__text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}


/* ── Collapsible / Accordion ────────────────────────────────── */
.collapsible {}

.collapsible__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.collapsible__trigger svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform var(--duration-base) var(--ease-out);
  flex-shrink: 0;
}

.collapsible__trigger.is-open svg {
  transform: rotate(180deg);
}

.collapsible__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out);
}

.collapsible__content-inner {
  padding: var(--space-4) 0;
}


/* ── Section heading pattern ────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-heading .label {
  margin-bottom: var(--space-2);
}

.section-heading h2 {
  margin-bottom: var(--space-3);
}

.section-heading p {
  font-size: var(--text-md);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Gold hairline after heading */
.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: var(--space-5) auto 0;
}


/* ── Dividers ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: var(--space-6) 0;
}

.divider--gold {
  background: var(--gold-20);
}


/* ── Services Strip ─────────────────────────────────────────── */
.services-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .services-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-strip { grid-template-columns: repeat(4, 1fr); }
}

.services-strip__item {
  padding: var(--space-6) var(--space-5);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  transition: background-color var(--duration-base);
}

.services-strip__item:hover {
  background: var(--bg-alt);
}

.services-strip__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.services-strip__icon svg {
  width: 32px;
  height: 32px;
}

.services-strip__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.services-strip__text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}


/* ── Enquiry Form Panel ─────────────────────────────────────── */
.enquiry-panel {
  background: var(--bg-alt);
  padding: clamp(var(--space-5), 5vw, var(--space-8)) clamp(var(--space-4), 4vw, var(--space-6));
  border: 1px solid var(--line);
  max-width: 100%;
  min-width: 0;
}

.enquiry-panel h3 {
  margin-bottom: var(--space-2);
}

.enquiry-panel p {
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.enquiry-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .enquiry-form__row { grid-template-columns: repeat(2, 1fr); }
}


/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-top: var(--space-8);
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all var(--duration-fast);
  padding: 0 var(--space-3);
}

.pagination__link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination__link.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.pagination__link.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}


/* ── Lightbox / Fullscreen Gallery ──────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(17,17,17,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  z-index: 2;
}

.lightbox__close:hover { color: var(--gold); }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}


/* ── Animations ─────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .stagger > * {
    opacity: 1;
    transform: none;
  }

  .vehicle-card:hover .vehicle-card__image img {
    transform: none;
  }
}


/* ── Utility ────────────────────────────────────────────────── */
.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;
}

.hide-mobile  { display: none !important; }
.hide-desktop { display: block !important; }

@media (min-width: 1024px) {
  .hide-mobile  { display: block; }
  .hide-desktop { display: none; }
}

.no-scroll {
  overflow: hidden;
}

/* ── Luxury Stats Counter Strip ──────────────────────────────── */
.stats-strip {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
  padding: var(--space-8) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  position: relative;
  padding: var(--space-3) var(--space-4);
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 249, 246, 0.7);
  font-weight: 500;
}

/* ── Feature Cards Grid (4 & 3 Columns) ─────────────────────── */
.feature-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .feature-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .feature-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-7) var(--space-6);
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--gold);
  border: 1px solid var(--line);
  margin-bottom: var(--space-4);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color var(--duration-fast);
}

.faq-item:hover {
  border-color: var(--gold);
}

.faq-trigger {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  gap: var(--space-4);
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: transform var(--duration-base);
  flex-shrink: 0;
}

.faq-trigger.is-open svg {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out);
}

.faq-body-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-90);
  line-height: 1.75;
  border-top: 1px solid var(--line);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
}

/* ── Comparison Table (Sell vs Consignment) ─────────────────── */
.comp-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.comp-table th,
.comp-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.comp-table td {
  color: var(--ink);
}

.comp-table th {
  background: var(--bg-alt);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.comp-table th.highlight,
.comp-table td.highlight {
  background: rgba(182, 154, 103, 0.06);
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.comp-table th.highlight {
  color: var(--gold-dark);
  font-weight: 700;
}

/* ── Legal Policy Layout ────────────────────────────────────── */
.legal-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .legal-container {
    grid-template-columns: 280px 1fr;
  }
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: fit-content;
}

.legal-sidebar-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.legal-nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--duration-fast);
}

.legal-nav-link:hover {
  color: var(--ink);
  border-left-color: var(--line-strong);
  background: var(--bg-alt);
}

.legal-nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--gold);
  background: var(--bg-alt);
}

.legal-article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  font-size: var(--text-sm);
  line-height: 1.85;
  color: var(--ink-90);
}

.legal-article h2 {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line-strong);
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article h3 {
  font-size: var(--text-md);
  color: var(--ink);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-article p {
  margin-bottom: var(--space-4);
}

.legal-article ul,
.legal-article ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-article li {
  margin-bottom: var(--space-2);
}

.legal-callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   THE OCTANE COLLECTION LUXURY THEME
   ============================================================ */

/* ============================================================
   THE MODERN OCTANE COLLECTION LUXURY THEME
   ============================================================ */

body.oc-theme {
  background-color: var(--bg-alt);
  color: #111111;
  font-family: var(--font-body);
}

.oc-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.oc-header {
  background-color: #000000;
  border-bottom: 1px solid #161616;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.oc-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.oc-logo__svg {
  width: 44px;
  height: 22px;
}

.oc-logo__titles {
  display: flex;
  flex-direction: column;
}

.oc-logo__sub {
  font-size: 10px;
  color: #888888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}

.oc-logo__main {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.oc-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.oc-nav a {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(250,249,246,0.72);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.oc-nav a:hover,
.oc-nav a.is-active {
  color: #B69A67;
}

.oc-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.oc-icon-btn {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.oc-icon-btn:hover {
  color: #B69A67;
}

.oc-btn-enquire {
  border: 1px solid #B69A67;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.oc-btn-enquire:hover {
  background-color: #B69A67;
  color: #000000;
}

@media (max-width: 992px) {
  .oc-nav {
    display: none;
  }
}

/* ── Hero Banner ── */
.oc-hero {
  position: relative;
  background-color: #000000;
  padding: 80px 0 90px;
  overflow: hidden;
  color: #ffffff;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.oc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.oc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.65;
}

.oc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.75) 45%, rgba(0,0,0,0.2) 100%);
}

.oc-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oc-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #B69A67;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.oc-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 12px;
}

.oc-hero__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.oc-hero__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.oc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.oc-btn--gold {
  background-color: #C9AE7C;
  color: #000000;
  padding: 12px 22px;
  border: none;
}

.oc-btn--gold:hover {
  background-color: #d8c295;
  color: #000000;
}

.oc-btn--outline-play {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 11px 20px;
  background: transparent;
}

.oc-btn--outline-play:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.oc-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 9px;
  padding-left: 2px;
}

.oc-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
}

@media (max-width: 900px) {
  .oc-hero__badge {
    display: none;
  }
}

.oc-hero__badge-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.oc-hero__badge-text {
  font-size: 10px;
  color: #888888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oc-hero__badge-line {
  width: 32px;
  height: 2px;
  background-color: #B69A67;
}

/* ── Inventory Section Layout (Left Filter + Grid) ── */
.oc-stock-section {
  background-color: var(--bg-alt);
  padding: 40px 0 80px;
  width: 100%;
  overflow-x: hidden;
}

.oc-stock-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

@media (max-width: 992px) {
  .oc-stock-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Sidebar Filters ── */
.oc-sidebar {
  width: 100%;
  min-width: 0;
}

.oc-filter-card {
  background-color: #ffffff;
  border: 1px solid var(--line-strong);
  padding: 20px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.oc-filter-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.oc-filter-card__title {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111111;
  text-transform: uppercase;
}

.oc-filter-card__reset {
  font-size: 11px;
  color: #888888;
  text-decoration: underline;
  cursor: pointer;
}

.oc-form-group {
  margin-bottom: 12px;
}

.oc-form-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #333333;
  margin-bottom: 4px;
  display: block;
  text-transform: uppercase;
}

.oc-select-wrap {
  position: relative;
  width: 100%;
}

.oc-select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background-color: #ffffff;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #444444;
  border-radius: 2px;
  font-family: var(--font-body);
  box-sizing: border-box;
}

.oc-select:focus {
  outline: none;
  border-color: #111111;
}

.oc-btn--black-full {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  margin-top: 6px;
  box-sizing: border-box;
}

.oc-btn--black-full:hover {
  background-color: #222222;
  color: #ffffff;
}

/* Sell Promo Card */
.oc-sell-card {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #ffffff;
}

.oc-sell-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.oc-sell-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.oc-sell-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2) 100%);
}

.oc-sell-card__content {
  position: relative;
  z-index: 2;
}

.oc-sell-card__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.oc-sell-card__text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  line-height: 1.4;
}

.oc-btn--outline-gold {
  border: 1px solid #B69A67;
  color: #B69A67;
  padding: 8px 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: transparent;
}

.oc-btn--outline-gold:hover {
  background-color: #B69A67;
  color: #000000;
}

/* ── Main Inventory Column ── */
.oc-inventory-main {
  width: 100%;
  min-width: 0;
}

/* ── Inventory Toolbar ── */
.oc-inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.oc-eyebrow-dark {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: #888888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.oc-inventory-count {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #111111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oc-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.oc-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oc-sort-label {
  font-size: 11.5px;
  color: #666666;
}

.oc-sort-select {
  border: 1px solid var(--line-strong);
  background-color: #ffffff;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #333333;
  border-radius: 2px;
}

.oc-view-toggles {
  display: flex;
  gap: 4px;
}

.oc-view-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid var(--line-strong);
  color: #888888;
  cursor: pointer;
  border-radius: 2px;
}

.oc-view-btn.is-active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* ── 3-Column Vehicle Card Grid (Defends Against Overflow) ── */
.oc-car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .oc-car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.oc-car-grid__item {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
}

/* ── Modern Vehicle Card ── */
.oc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  background-color: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.oc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.oc-card__image-box {
  position: relative;
  width: 100%;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.oc-card__image-box img {
  width: 100%;
  height: 100%;
  max-height: 166px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.oc-card:hover .oc-card__image-box img {
  transform: scale(1.04);
}

.oc-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888888;
  transition: all 0.2s;
  z-index: 3;
}

.oc-card__fav:hover,
.oc-card__fav.is-active {
  color: #E53935;
  fill: #E53935;
}

.oc-card__status {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #000000;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  text-transform: uppercase;
}

.oc-card__status--sold {
  background-color: #8B2E2E;
}

.oc-card__status--reserved {
  background-color: #B69A67;
  color: #000000;
}

.oc-card__info {
  padding: 12px 14px 14px;
  background-color: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.oc-card__row--top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  gap: 8px;
  min-width: 0;
}

.oc-card__title {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  color: #111111;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.oc-card__price {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  color: #111111;
  white-space: nowrap;
  flex-shrink: 0;
}

.oc-card__row--bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2px;
  min-width: 0;
}

.oc-card__specs {
  font-size: 10px;
  color: #777777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.oc-card__arrow {
  font-size: 12px;
  color: #111111;
  margin-left: 6px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.oc-card:hover .oc-card__arrow {
  transform: translateX(3px);
}

/* ── Pagination ── */
.oc-pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.oc-pagination {
  display: flex;
  gap: 6px;
}

.oc-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background-color: #ffffff;
  color: #444444;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
}

.oc-page-btn.is-active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.oc-page-btn:hover:not(.is-active) {
  border-color: #000000;
}

.oc-pagination-info {
  font-size: 11.5px;
  color: #777777;
}

/* ── Philosophy Mid-Page Banner ── */
.oc-philosophy-section {
  position: relative;
  background-color: #000000;
  padding: 90px 0;
  color: #ffffff;
  overflow: hidden;
}

.oc-philosophy__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.oc-philosophy__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.oc-philosophy__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.3) 100%);
}

.oc-philosophy__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oc-philosophy__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 6px 0 12px;
}

.oc-philosophy__text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.oc-philosophy__logo-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

@media (max-width: 900px) {
  .oc-philosophy__logo-side {
    display: none;
  }
}

.oc-philosophy__logo-text {
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.06em;
}

/* ── Modern Footer ── */
.oc-footer {
  background-color: #000000;
  color: #888888;
  padding: 60px 0 0;
  font-size: 12px;
  border-top: 1px solid #141414;
}

.oc-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (max-width: 992px) {
  .oc-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .oc-footer__inner {
    grid-template-columns: 1fr;
  }
}

.oc-logo--footer {
  margin-bottom: 14px;
}

.oc-footer__desc {
  font-size: 11.5px;
  line-height: 1.6;
  color: #888888;
  margin-bottom: 16px;
}

.oc-footer__socials {
  display: flex;
  gap: 12px;
}

.oc-footer__socials a {
  color: #888888;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  transition: color 0.2s;
}

.oc-footer__socials a:hover {
  color: #B69A67;
}

.oc-footer__heading {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.oc-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.oc-footer__links a {
  color: #888888;
  text-decoration: none;
  font-size: 11.5px;
  transition: color 0.2s;
}

.oc-footer__links a:hover {
  color: #B69A67;
}

.oc-footer__contact-info p {
  margin-bottom: 8px;
  font-size: 11.5px;
  line-height: 1.5;
}

.oc-footer__contact-info a {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s;
}

.oc-footer__contact-info a:hover {
  color: #ffffff;
}

.oc-footer__address {
  color: #888888;
  margin-top: 10px;
}

.oc-footer-form {
  position: relative;
  margin: 14px 0 20px;
}

.oc-footer-input {
  width: 100%;
  background-color: #111111;
  border: 1px solid #222222;
  color: #ffffff;
  font-size: 11.5px;
  padding: 9px 36px 9px 12px;
  border-radius: 0;
  box-sizing: border-box;
}

.oc-footer-input:focus {
  outline: none;
  border-color: #B69A67;
}

.oc-footer-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #B69A67;
  font-size: 16px;
  cursor: pointer;
}

.oc-footer-motto {
  display: flex;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 700;
  color: #B69A67;
  letter-spacing: 0.12em;
  align-items: center;
}

.oc-footer-motto__line {
  height: 1px;
  background-color: #B69A67;
  flex: 1;
}

.oc-footer__bottom {
  border-top: 1px solid #141414;
  padding: 18px 0;
  background-color: #000000;
  font-size: 11px;
  color: #555555;
}

.oc-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.oc-footer__legal-links {
  display: flex;
  gap: 10px;
}

.oc-footer__legal-links a {
  color: #777777;
  text-decoration: none;
}

.oc-footer__legal-links a:hover {
  color: #B69A67;
}


/* ── Header ── */
.octane-header {
  background-color: #000000;
  border-bottom: 1px solid #161616;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.octane-header__inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.octane-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.octane-logo__svg {
  width: 44px;
  height: 22px;
}

.octane-logo__text-group {
  display: flex;
  flex-direction: column;
}

.octane-logo__sub {
  font-size: 10px;
  color: #888888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}

.octane-logo__main {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ═════════════════════════════════════════════════════════════
   THE CARLILUXE OCTANE DESIGN SYSTEM (ZERO-OVERFLOW ARCHITECTURE)
   ═════════════════════════════════════════════════════════════ */

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

html, body.oc-theme {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

.oc-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── 1. Header ── */
.oc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #000000;
  border-bottom: 1px solid #161616;
  padding: 14px 0;
}

.oc-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.oc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.oc-logo__svg {
  width: 36px;
  height: 18px;
}

.oc-logo__titles {
  display: flex;
  flex-direction: column;
}

.oc-logo__sub {
  font-family: 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #B69A67;
  text-transform: uppercase;
  line-height: 1;
}

.oc-logo__main {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
}

.oc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.oc-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #B69A67;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.oc-nav a:hover,
.oc-nav a.is-active {
  color: #ffffff;
}

.oc-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.oc-icon-btn {
  color: #B69A67;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.oc-icon-btn:hover {
  color: #ffffff;
}

.oc-btn-enquire {
  border: 1px solid #B69A67;
  color: #B69A67;
  padding: 6px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.oc-btn-enquire:hover {
  background-color: #B69A67;
  color: #000000;
}

/* ── 2. Hero Banner ── */
.oc-hero {
  position: relative;
  background-color: #000000;
  padding: 80px 0 70px;
  overflow: hidden;
  width: 100%;
}

.oc-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.oc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  display: block;
}

.oc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 100%);
}

.oc-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.oc-hero__content {
  max-width: 620px;
}

.oc-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #B69A67;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.oc-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  line-height: 1.1;
}

.oc-hero__sub {
  font-size: 13px;
  color: #cccccc;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.oc-hero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.oc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.oc-btn--gold {
  background: #B69A67;
  color: #000000;
  border: 1px solid #B69A67;
}

.oc-btn--gold:hover {
  background: #C9AE7C;
  border-color: #C9AE7C;
}

.oc-btn--outline-play {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.oc-btn--outline-play:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.oc-play-icon {
  font-size: 12px;
  color: #B69A67;
}

.oc-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.oc-hero__badge-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.oc-hero__badge-text {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #888888;
  margin: 6px 0 8px 0;
}

.oc-hero__badge-line {
  width: 48px;
  height: 2px;
  background: #B69A67;
}

/* ── 3. Stock Section & Grid Layout ── */
.oc-stock-section {
  background-color: var(--bg-alt);
  padding: 48px 0 80px;
  width: 100%;
  overflow: hidden;
}

.oc-stock-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ── Left Sidebar Filter & Mobile Drawer ── */
.oc-sidebar {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.oc-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  background-color: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.oc-mobile-filter-btn svg {
  width: 13px;
  height: 13px;
  color: #B69A67;
}

.oc-mobile-filter-btn:hover {
  background-color: #333333;
}

.oc-filter-badge {
  background-color: #B69A67;
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 6px;
  line-height: 1.2;
}

.oc-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #111111;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.oc-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.oc-sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.oc-filter-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  padding: 20px;
  box-sizing: border-box;
}

.oc-filter-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.oc-filter-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  margin: 0;
}

.oc-filter-card__reset {
  font-size: 11px;
  color: #888888;
  text-decoration: none;
}

.oc-filter-card__reset:hover {
  color: #111111;
  text-decoration: underline;
}

.oc-filter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oc-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.oc-form-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111111;
  text-transform: uppercase;
}

.oc-select-wrap {
  position: relative;
  width: 100%;
}

.oc-select {
  width: 100%;
  height: 36px;
  padding: 6px 28px 6px 10px;
  font-size: 12px;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #D1D5DB;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  box-sizing: border-box;
}

.oc-select:focus {
  outline: none;
  border-color: #111111;
}

.oc-btn--black-full {
  width: 100%;
  height: 40px;
  background: #000000;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s ease;
}

.oc-btn--black-full:hover {
  background: #222222;
}

/* Sell Card Promo */
.oc-sell-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background-color: #000000;
  box-sizing: border-box;
}

.oc-sell-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.oc-sell-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  display: block;
}

.oc-sell-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.88) 100%);
}

.oc-sell-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oc-sell-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.oc-sell-card__text {
  font-size: 11px;
  color: #cccccc;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.oc-btn--outline-gold {
  background: transparent;
  color: #B69A67;
  border: 1px solid #B69A67;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.oc-btn--outline-gold:hover {
  background: #B69A67;
  color: #000000;
}

/* ── Right Main Inventory Area ── */
.oc-inventory-main {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.oc-inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  gap: 16px;
}

.oc-eyebrow-dark {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #888888;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.oc-inventory-count {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111111;
  text-transform: uppercase;
  margin: 0;
}

.oc-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ── Filter Chips (Active Filters) ── */
.oc-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.oc-filter-chips__label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #888888;
  text-transform: uppercase;
}

.oc-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #D1D5DB;
  text-decoration: none;
  transition: all 0.2s ease;
}

.oc-filter-chip:hover {
  border-color: #111111;
  background-color: #F9FAFB;
}

.oc-filter-chip--clear {
  background-color: transparent;
  border: 1px solid transparent;
  color: #B69A67;
  font-weight: 700;
  text-decoration: underline;
}

.oc-filter-chip--clear:hover {
  color: #856E43;
  background-color: transparent;
}

.oc-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oc-sort-label {
  font-size: 12px;
  color: #666666;
  white-space: nowrap;
}

.oc-sort-select {
  height: 32px;
  font-size: 12px;
  color: #111111;
  border: 1px solid #D1D5DB;
  background-color: #ffffff;
  padding: 0 24px 0 8px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

.oc-view-toggles {
  display: flex;
  border: 1px solid #D1D5DB;
}

.oc-view-btn {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: none;
  color: #888888;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.oc-view-btn.is-active {
  background: #111111;
  color: #ffffff;
}

/* ── 3-Column Vehicle Grid (Zero Overflow) ── */
.oc-car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.oc-car-grid__item {
  width: 100%;
  min-width: 0;
  display: flex;
  box-sizing: border-box;
}

/* ── Octane Vehicle Card ── */
.oc-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.oc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.oc-card__image-box {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.oc-card__image-box img {
  width: 100%;
  height: 100%;
  max-height: 176px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.oc-card:hover .oc-card__image-box img {
  transform: scale(1.03);
}

.oc-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  padding: 0;
}

.oc-card__fav:hover,
.oc-card__fav.is-active {
  color: #E11D48;
  border-color: #E11D48;
}

.oc-card__status {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #111111;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  text-transform: uppercase;
  z-index: 2;
}

.oc-card__status--reserved {
  background: #B69A67;
  color: #000000;
}

.oc-card__status--sold {
  background: #991B1B;
  color: #ffffff;
}

.oc-card__info {
  padding: 14px 16px 16px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border-top: 1px solid var(--line);
  flex: 1;
  justify-content: space-between;
  box-sizing: border-box;
}

.oc-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.oc-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111111;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.oc-card__price {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111111;
  white-space: nowrap;
  flex-shrink: 0;
}

.oc-card__specs {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #777777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.oc-card__arrow {
  font-size: 14px;
  color: #111111;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.oc-card:hover .oc-card__arrow {
  transform: translateX(3px);
  color: #B69A67;
}

/* ── Pagination ── */
.oc-pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  flex-wrap: wrap;
  gap: 16px;
}

.oc-pagination {
  display: flex;
  gap: 4px;
}

.oc-page-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D1D5DB;
  background: #ffffff;
  color: #111111;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.oc-page-btn:hover {
  border-color: #111111;
}

.oc-page-btn.is-active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.oc-page-btn--nav {
  font-size: 16px;
}

.oc-pagination-info {
  font-size: 12px;
  color: #888888;
}

.oc-empty-text {
  color: #666666;
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

/* ── 4. Editorial "MORE THAN CARS" Section ── */
.oc-philosophy-section {
  position: relative;
  background-color: #000000;
  padding: 80px 0;
  overflow: hidden;
  width: 100%;
}

.oc-philosophy__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.oc-philosophy__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  display: block;
}

.oc-philosophy__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 100%);
}

.oc-philosophy__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.oc-philosophy__content {
  max-width: 580px;
}

.oc-philosophy__title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}

.oc-philosophy__text {
  font-size: 13px;
  color: #cccccc;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.oc-philosophy__logo-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* The mark already carries the wordmark, so no separate caption. */
.oc-philosophy__logo-img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.oc-philosophy__logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-transform: uppercase;
}

/* ── 5. Octane Footer ── */
.oc-footer {
  background-color: #000000;
  color: #888888;
  padding: 60px 0 0;
  border-top: 1px solid #161616;
  width: 100%;
}

.oc-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.oc-footer__heading {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.oc-footer__desc {
  font-size: 12px;
  color: #888888;
  line-height: 1.6;
  margin: 14px 0;
}

.oc-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-footer__links a {
  color: #888888;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.oc-footer__links a:hover {
  color: #B69A67;
}

.oc-footer__contact-info p {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #888888;
}

.oc-footer__contact-info a {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.oc-footer__contact-info a:hover {
  color: #ffffff;
}

.oc-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.oc-footer__socials a {
  color: #666666;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oc-footer__socials a:hover {
  color: #B69A67;
}

.oc-footer-form {
  display: flex;
  gap: 0;
  margin-top: 12px;
}

.oc-footer-input {
  flex: 1;
  height: 38px;
  background-color: #111111;
  border: 1px solid #222222;
  border-right: none;
  padding: 0 12px;
  color: #ffffff;
  font-size: 12px;
}

.oc-footer-input:focus {
  outline: none;
  border-color: #B69A67;
}

.oc-footer-submit {
  width: 40px;
  height: 38px;
  background-color: #B69A67;
  border: 1px solid #B69A67;
  color: #000000;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.oc-footer-submit:hover {
  background-color: #C9AE7C;
}

.oc-footer-motto {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #555555;
}

.oc-footer-motto__line {
  flex: 1;
  height: 1px;
  background-color: #222222;
}

.oc-footer__bottom {
  border-top: 1px solid #141414;
  padding: 18px 0;
  font-size: 11px;
  color: #555555;
}

.oc-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.oc-footer__legal-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.oc-footer__legal-links a {
  color: #666666;
  text-decoration: none;
}

.oc-footer__legal-links a:hover {
  color: #B69A67;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1200px) {
  .oc-car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .oc-stock-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .oc-mobile-filter-btn {
    display: inline-flex;
  }

  .oc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 24px 20px 40px;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .oc-sidebar.is-open {
    transform: translateX(0);
  }

  .oc-sidebar-close {
    display: block;
  }

  .oc-filter-card {
    border: none;
    padding: 0;
  }

  .oc-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .oc-hero__badge {
    align-self: flex-start;
    text-align: left;
    align-items: flex-start;
  }
  .oc-nav {
    display: none;
  }
  .oc-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .oc-philosophy__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .oc-car-grid {
    grid-template-columns: 1fr;
  }
  .oc-inventory-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Grid/list switch is hidden on phones: the listing is single-column
     here anyway, and no behaviour is bound to those buttons. */
  .oc-view-toggles { display: none; }

  /* Filters and Sort share the full width, one half each. */
  .oc-toolbar-controls {
    width: 100%;
    gap: 10px;
    flex-shrink: 1;
  }

  .oc-mobile-filter-btn,
  .oc-sort-wrap {
    flex: 1 1 0;
    min-width: 0;
  }

  .oc-mobile-filter-btn {
    justify-content: center;
    height: 46px;
  }

  /* The select shows the active sort ("Latest Arrivals"), so the separate
     label only steals room. It stays for screen readers via aria-label. */
  .oc-sort-label { display: none; }

  .oc-sort-select {
    width: 100%;
    height: 46px;
    /* 16px stops iOS Safari zooming the page when the select is tapped */
    font-size: 16px;
    padding: 0 30px 0 12px;
    background-position: right 10px center;
  }
  .oc-hero__title {
    font-size: 32px;
  }
  /* ── Section rhythm ─────────────────────────────────────────
     80px top and bottom is desktop spacing; on a phone it reads
     as dead space between blocks. Applies site-wide. */
  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  /* !important because these spacings are set inline on the
     elements themselves, which otherwise outranks any class. */
  .section-header {
    margin-bottom: var(--space-6) !important;
  }

  .editorial-split {
    gap: var(--space-6) !important;
  }

  /* ── Stats strip: stop long labels overflowing ──────────────
     Wide letter-spacing plus 16px side padding pushed labels
     past the right edge on a 360px screen. */
  .stats-strip {
    padding: var(--space-6) 0;
  }

  .stats-grid {
    gap: var(--space-5) var(--space-2);
  }

  .stat-item {
    padding: var(--space-2);
    min-width: 0;
  }

  .stat-number {
    font-size: clamp(1.25rem, 6.5vw, 1.75rem);
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  /* With two columns the left-hand items would draw a divider
     against the page edge. */
  .stat-item:nth-child(odd)::before {
    display: none;
  }

  /* ── Stock listing: close the gap before the dark band ──────
     80px of section padding plus 64px above the pagination left
     a large empty stretch under the last card on a phone. */
  .oc-stock-section {
    padding: 32px 0 28px;
  }

  .oc-pagination-wrap {
    margin-top: 24px;
    padding-top: 16px;
    gap: 12px;
  }

  /* ── "More Than Cars" editorial band ────────────────────────
     Stacks on mobile, so everything aligns to the same left edge
     and the mark is separated by a rule instead of floating. */
  .oc-philosophy-section {
    padding: 44px 0 48px;
  }

  /* The desktop overlay runs left-to-right, which leaves the lower
     half of a stacked mobile layout too light to read against. */
  .oc-philosophy__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.92) 100%);
  }

  .oc-philosophy__inner {
    gap: 26px;
  }

  .oc-philosophy__title {
    font-size: 30px;
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .oc-philosophy__text {
    font-size: 14px;
    line-height: 1.65;
    max-width: 36ch;
    margin-bottom: 22px;
  }

  .oc-philosophy__inner .oc-btn--outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
  }

  /* Hidden on phones: the footer sits immediately below this band and
     carries the same mark, so it read as the logo printed twice. */
  .oc-philosophy__logo-side {
    display: none;
  }

  /* ── Footer: two columns on mobile ──────────────────────────
     Links and Contact sit side by side; the brand block and the
     newsletter span the full width, the newsletter centred. */
  .oc-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    padding-bottom: 22px;
  }

  .oc-footer__col--brand,
  .oc-footer__col--newsletter {
    grid-column: 1 / -1;
  }

  .oc-footer__col--newsletter {
    text-align: center;
    margin-top: 4px;
  }

  .oc-footer__col--newsletter .oc-footer__heading {
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .oc-footer__col--newsletter .oc-footer__desc {
    font-size: 13px;
    line-height: 1.65;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .oc-footer__col--newsletter .oc-footer-form {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .oc-footer-motto {
    justify-content: center;
    font-size: 10px;
    margin-top: 16px;
  }

  /* Copyright: centred, slightly larger, and tucked up against the
     block above it rather than floating in dead space. */
  .oc-footer__bottom {
    padding: 12px 0 18px;
    font-size: 12px;
  }

  .oc-footer__bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .oc-footer__legal-links {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 12px;
  }
}

/* ============================================================
   CARLUXE — HEADER, MOBILE NAVIGATION & VEHICLE DETAIL
   Canonical block. Everything here is scoped so that no rule
   can leak onto pages it was not written for.
   ============================================================ */


/* ------------------------------------------------------------
   1. HEADER
   Charcoal (#111111) per the brand palette, not pure black.
   ------------------------------------------------------------ */
.oc-header {
  position: sticky;
  top: 0;
  /* Must sit ABOVE .mobile-nav (1000). A sticky element creates its own
     stacking context, so .menu-toggle's z-index cannot lift the close
     button out from under the open nav panel — the header itself has to
     outrank it. The filter drawer is raised above this in turn. */
  z-index: 1100;
  background-color: var(--ink);
  border-bottom: 1px solid rgba(182, 154, 103, 0.18);
  padding: 12px 0;
  padding-top: calc(12px + env(safe-area-inset-top));
}

.oc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

/* Logo must never squash the toggle off-screen on small phones */
.oc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 1;
}

/* Brand mark. Intrinsic size is 456x160; height drives it and width follows,
   so the aspect ratio is fixed and the header does not shift while it loads. */
.oc-logo__img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  flex-shrink: 1;
  object-fit: contain;
}

@media (max-width: 480px) {
  .oc-logo__img { height: 32px; }
}

.oc-logo--footer .oc-logo__img { height: 44px; }

.oc-logo__svg { width: 38px; height: 19px; flex-shrink: 0; }

.oc-logo__titles {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.oc-logo__sub {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

.oc-logo__main {
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--bg);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oc-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.oc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--bg);
  opacity: 0.75;
  transition: opacity var(--dur-fast, 180ms) var(--ease-out);
}
.oc-icon-btn:hover { opacity: 1; color: var(--gold); }


/* ------------------------------------------------------------
   2. MENU TOGGLE
   Was invisible: the bars inherited --ink (#111) and sat on a
   near-black header. They are warm white now, and stay warm
   white when the panel is open so the close action is findable.
   ------------------------------------------------------------ */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle__bar,
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--bg);
  transition: transform 300ms var(--ease-out),
              opacity 180ms linear,
              background-color 200ms linear;
}

.menu-toggle::before    { top: 15px; }
.menu-toggle__bar       { top: 21px; }
.menu-toggle::after     { top: 27px; }

.menu-toggle:hover::before,
.menu-toggle:hover::after,
.menu-toggle:hover .menu-toggle__bar { background-color: var(--gold); }

.menu-toggle.is-open::before      { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar { opacity: 0; }
.menu-toggle.is-open::after       { transform: translateY(-6px) rotate(-45deg); }

.menu-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ------------------------------------------------------------
   3. MOBILE NAVIGATION PANEL
   Full-screen charcoal panel so it reads as one surface with
   the header. Scrolls internally when the viewport is short.
   ------------------------------------------------------------ */
.mobile-nav {
  position: fixed;
  inset: 0;
  /* Above the header (1100) so the panel owns the whole screen and its
     own close button is reachable. Relying on the header's hamburger
     turning into an X made closing depend on stacking order. */
  z-index: 1300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: calc(72px + env(safe-area-inset-top)) 28px
           calc(32px + env(safe-area-inset-bottom));
  background-color: var(--ink);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 320ms var(--ease-out),
              transform 320ms var(--ease-out),
              visibility 0s linear 320ms;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.mobile-nav__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.mobile-nav__close:hover,
.mobile-nav__close:focus-visible {
  color: var(--bg);
  transform: rotate(90deg);
}

.mobile-nav a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  color: var(--bg);
  border-bottom: 1px solid rgba(250, 249, 246, 0.09);
  transition: color 200ms var(--ease-out);
}

.mobile-nav a:last-of-type { border-bottom: 0; }

.mobile-nav a:hover,
.mobile-nav a.is-active { color: var(--gold); }

.mobile-nav__contact {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(182, 154, 103, 0.28);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav__contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-bottom: 0;
  color: var(--gold);
}

.mobile-nav__contact svg { flex-shrink: 0; opacity: 0.85; }


/* Breakpoint: swap desktop nav for the toggle */
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .oc-nav,
  .hide-mobile,
  .oc-btn-enquire { display: none !important; }
}

@media (min-width: 1025px) {
  .mobile-nav { display: none; }
}
/* ------------------------------------------------------------
   4. VEHICLE DETAIL PAGE
   Dark presentation for this page only.

   EVERY rule below is scoped to `body.page-vehicle`. An earlier
   version left them global, which meant the dark form styling
   leaked onto `.enquiry-form` on the contact, finance, sell,
   sourcing and part-exchange pages — black inputs on white
   cards. Keep the scope when adding rules here.
   ------------------------------------------------------------ */

body.page-vehicle {
  background-color: #000;
  color: #e5e5e5;
}

body.page-vehicle .oc-main-wrap { background-color: #000; }

body.page-vehicle .octane-layout-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  background-color: transparent;
}

/* Letterbox band behind the hero image. Full-bleed via viewport
   width rather than the old `width:8000px; margin-left:-3000px`,
   which forced a horizontal scrollbar on every phone. */
body.page-vehicle .carheadline-background {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 252px;
  background-color: #fff;
}

body.page-vehicle .carDetail.headline {
  margin-top: -252px;
  margin-bottom: 20px;
  min-height: 252px;
  max-height: 252px;
  overflow: hidden;
  text-align: center;
}

body.page-vehicle .carDetail.headline img.cropped {
  display: block;
  margin: 0 auto;
  max-height: 252px;
  object-fit: contain;
}

@media (max-width: 767px) {
  body.page-vehicle .carheadline-background { height: 190px; }
  body.page-vehicle .carDetail.headline {
    margin-top: -190px;
    min-height: 190px;
    max-height: 190px;
  }
  body.page-vehicle .carDetail.headline img.cropped { max-height: 190px; }
}

@media (max-width: 480px) {
  body.page-vehicle .carheadline-background { height: 150px; }
  body.page-vehicle .carDetail.headline {
    margin-top: -150px;
    min-height: 150px;
    max-height: 150px;
  }
  body.page-vehicle .carDetail.headline img.cropped { max-height: 150px; }
}

body.page-vehicle .octane-layout-container img,
body.page-vehicle .img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Title and price row */
body.page-vehicle .cardeatilBox {
  width: 100%;
  padding: 0;
  margin-bottom: 20px;
  background-color: transparent;
}

body.page-vehicle .heading-border-silver {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px dotted #a1a1a1;
}

body.page-vehicle .left.heading-border-silver.singlecar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding-bottom: 15px;
  border-bottom: 1px dotted #a1a1a1;
}

body.page-vehicle .carName,
body.page-vehicle .carPrice {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0;
}

body.page-vehicle .carName { text-transform: uppercase; }

body.page-vehicle .carPrice { float: none; white-space: nowrap; }

@media (max-width: 600px) {
  body.page-vehicle .carName  { font-size: 18px; }
  body.page-vehicle .carPrice { font-size: 20px; }
}

/* Specification list — two columns, collapsing to one on phones */
body.page-vehicle .specificationBox { padding: 10px 0; }

body.page-vehicle .specificationBox h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: normal;
  text-transform: uppercase;
  color: #b7b7b7;
  margin-bottom: 10px;
}

body.page-vehicle .specificationBox ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 20%;
}

body.page-vehicle .specificationBox ul li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  line-height: 22px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #b7b7b7;
}

/* The markup is `<li><span>VALUE</span> Label: </li>` — the value comes
   first in the DOM and the label is a bare text node. The original design
   floated the span right; converting to flexbox made DOM order win, so
   value and label appeared swapped. `order: 2` puts the value back on the
   right (anonymous text nodes are always order 0 and cannot be reordered). */
body.page-vehicle .specificationBox ul li span {
  order: 2;
  float: none;
  font-weight: normal;
  color: #fff;
  text-align: right;
  padding-left: 12px;
}

@media (min-width: 768px) {
  body.page-vehicle .specificationBox ul { grid-template-columns: 40% 40%; }
}

/* Narrative copy */
body.page-vehicle .carDetail h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 30px 0 12px;
}

body.page-vehicle .carDetail p,
body.page-vehicle .carDetail div {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #b7b7b7;
}

/* Gallery */
body.page-vehicle .imageBox.slider {
  margin-top: 20px;
  margin-bottom: 40px;
}

body.page-vehicle .imageBox.slider img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gallery board — every uploaded photo shown at once, three per row.
   This was a one-at-a-time horizontal carousel, which is why only a
   single image appeared to be there. */
body.page-vehicle .gallery__track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  body.page-vehicle .gallery__track {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Each slide is a <button> so it is keyboard and screen-reader reachable. */
body.page-vehicle .gallery__slide {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(250, 249, 246, 0.1);
  background-color: #0d0d0d;
  cursor: zoom-in;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* `contain`, so the whole photo is visible rather than cropped to fill.
   The tile keeps a fixed 3:2 box so the grid stays even; the letterbox
   area takes a slightly lifted background so it reads as intentional
   rather than as a gap. */
body.page-vehicle .gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background-color: #0d0d0d;
  transition: transform 600ms var(--ease-out), opacity 300ms linear;
}

body.page-vehicle .gallery__slide:hover img,
body.page-vehicle .gallery__slide:focus-visible img {
  transform: scale(1.05);
}

body.page-vehicle .gallery__slide:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Share / print row */
body.page-vehicle .carDetail.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 45px;
  margin-bottom: 30px;
  border-bottom: 1px solid #A7A9AC;
}

body.page-vehicle .social-icons { display: flex; gap: 5px; }

body.page-vehicle .social-icons span {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: #fff;
  background-color: #333;
  border-radius: 2px;
}

body.page-vehicle .share-buttons { display: flex; flex-wrap: wrap; gap: 15px; }

body.page-vehicle .proEnquire a,
body.page-vehicle .print a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  color: #b7b7b7;
  background-color: #222;
  border: 1px solid #444;
}

body.page-vehicle .proEnquire a:hover,
body.page-vehicle .print a:hover { color: #fff; border-color: #666; }

body.page-vehicle .proEnquire input { background: none; }

/* Enquiry form — dark treatment applies ONLY on this page.
   The light-page version of .enquiry-form lives with the rest
   of the form styling earlier in this stylesheet. */
body.page-vehicle .enquiry-form { margin: 30px 0; }

body.page-vehicle .enquiry-form label {
  display: block;
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #b7b7b7;
}

body.page-vehicle .enquiry-form input,
body.page-vehicle .enquiry-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: Arial, sans-serif;
  /* 16px keeps iOS Safari from zooming the page on focus */
  font-size: 16px;
  color: #fff;
  background: #000;
  border: 1px solid #444;
}

body.page-vehicle .enquiry-form input:focus,
body.page-vehicle .enquiry-form textarea:focus {
  outline: none;
  border-color: #888;
}

body.page-vehicle .enquiry-form textarea { resize: vertical; min-height: 120px; }

body.page-vehicle .enquiry-form button[type="submit"] {
  min-height: 44px;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #b7b7b7;
  background: #222;
  border: 1px solid #444;
  cursor: pointer;
}

body.page-vehicle .enquiry-form button[type="submit"]:hover { color: #fff; border-color: #666; }

@media (max-width: 600px) {
  body.page-vehicle .enquiry-form button[type="submit"] { width: 100%; }
}

/* Print helper — genuinely global, no on-screen effect */
@media print {
  .hidden-print { display: none !important; }
}


/* ------------------------------------------------------------
   5. GLOBAL MOBILE GUARDS
   ------------------------------------------------------------ */

/* Legacy grid classes from the detail markup — full width, no floats.
   Deliberately no `.row { margin: 0 }` here: the detail wrapper carries
   both `row` and `octane-layout-container`, so zeroing the margin
   cancelled the container's `margin: 0 auto` and pinned the whole page
   to the left. There is no Bootstrap loaded, so `.row` needs no reset. */
.col-xs-12, .col-sm-12, .col-md-12 { width: 100%; padding: 0; float: none; }
.clearfix::after { content: ''; display: table; clear: both; }
.pull-right { float: none; }

@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
}

/* Nothing may push the page sideways */
html, body { max-width: 100%; overflow-x: hidden; }

/* `overflow-x: hidden` on html/body turns them into a scroll container,
   which silently disables `position: sticky` on the header. `clip` stops
   the sideways scroll WITHOUT creating that container, so the sticky
   header keeps working. Older engines fall back to `hidden` above:
   no sticky there, but still no horizontal scroll. */
@supports (overflow-x: clip) {
  html,
  body,
  body.oc-theme {
    overflow-x: clip;
  }
}

img, svg, video, canvas, iframe { max-width: 100%; }

/* Wide tables scroll instead of widening the page. `.comp-table` is
   excluded: it already sits in `.comp-table-wrap`, which scrolls it
   properly. Forcing `display: block` on it collapses the column
   structure so every row stacks. */
@media (max-width: 767px) {
  table:not(.comp-table) { display: block; width: 100%; overflow-x: auto; }
}

/* No input on any page should trigger the iOS zoom-on-focus */
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px; }
}

/* Comfortable thumb targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  a, button, [role="button"], input[type="submit"] { -webkit-tap-highlight-color: rgba(182, 154, 103, 0.18); }
}

/* Focus states are gold everywhere — never the browser default blue */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ------------------------------------------------------------
   6. FLOATING WIDGETS
   Cookie notice and WhatsApp bubble. Both previously sat at
   bottom:20px, which put them on top of the sticky mobile CTA
   bar. They now stack above it and respect the safe area.
   ------------------------------------------------------------ */


body.has-cta-bar .cookie-banner {
  bottom: calc(var(--cta-bar-height) + 20px + env(safe-area-inset-bottom));
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-banner__accept {
  min-height: 44px;
  padding: 0 26px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-gradient);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.cookie-banner__reject {
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: transparent;
  border: 1px solid rgba(250, 249, 246, 0.28);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out);
}
.cookie-banner__reject:hover { border-color: var(--gold); color: var(--gold); }

.cookie-banner__link {
  align-self: center;
  color: rgba(250, 249, 246, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__link:hover { color: var(--gold); }

/* Actions wrap rather than overflow on narrow phones */
@media (max-width: 400px) {
  .cookie-banner__actions { flex-wrap: wrap; gap: 10px; }
  .cookie-banner__accept,
  .cookie-banner__reject { flex: 1 1 auto; padding: 0 14px; }
}



/* WhatsApp bubble — charcoal and gold to stay on palette.
   Swap background-color to #25D366 if the brand green is wanted. */
.wa-float {
  position: fixed;
  right: var(--gutter);
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--gold);
  background-color: var(--ink);
  border: 1px solid rgba(182, 154, 103, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 220ms var(--ease-out), color 220ms var(--ease-out);
}

.wa-float:hover { transform: translateY(-2px); color: var(--gold-light); }

.wa-float svg { width: 27px; height: 27px; }

/* On a vehicle page the CTA bar already carries WhatsApp —
   showing both is clutter on a phone. */
body.has-cta-bar .wa-float { display: none; }

@media (min-width: 1024px) {
  body.has-cta-bar .wa-float { display: flex; }
}


/* ------------------------------------------------------------
   7. STICKY MOBILE CTA BAR
   ------------------------------------------------------------ */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: flex;
  align-items: stretch;
  background-color: var(--ink);
  border-top: 1px solid rgba(182, 154, 103, 0.3);
  padding-bottom: env(safe-area-inset-bottom);
}

.cta-bar__btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--cta-bar-height);
  padding: 8px 4px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  border-right: 1px solid rgba(250, 249, 246, 0.12);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.cta-bar__btn:last-child { border-right: 0; }

.cta-bar__btn svg { width: 19px; height: 19px; color: var(--gold); }

.cta-bar__btn:active { background-color: rgba(182, 154, 103, 0.16); }

.cta-bar__btn--whatsapp { color: var(--gold); }
.cta-bar__btn--whatsapp svg { color: var(--gold); }

@media (min-width: 1024px) {
  .cta-bar { display: none; }
  body.has-cta-bar { padding-bottom: 0; }
}


/* ------------------------------------------------------------
   8. CONTACT PAGE
   Classes replace the inline styles the page previously carried,
   so spacing can respond to viewport width instead of being
   fixed at desktop values.
   ------------------------------------------------------------ */

/* Shared page hero / closing-banner padding. These were flat 128px
   top and bottom inline, which swallowed the screen on a phone.
   Used by the About and Contact pages. */
.page-hero,
.contact-hero {
  padding-top: clamp(2.25rem, 8vw, 7rem);
  padding-bottom: clamp(2.25rem, 8vw, 7rem);
}

.page-cta {
  padding-top: clamp(2.75rem, 8vw, 7rem);
  padding-bottom: clamp(2.75rem, 8vw, 7rem);
}

/* Background-image hero. The page supplies the picture via a --hero-image
   custom property on the element, so one class serves every page.
   `isolation` keeps the overlay behind the text without needing a z-index
   on every child. */
.page-hero--image {
  position: relative;
  isolation: isolate;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.80) 0%, rgba(17, 17, 17, 0.93) 100%);
}

/* Phones get a heavier wash: the crop shows less of the image and the
   text sits over a busier part of it. */
@media (max-width: 640px) {
  .page-hero--image::before {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.86) 0%, rgba(17, 17, 17, 0.95) 100%);
  }
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-10);
  }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(var(--space-5), 5vw, var(--space-8));
  box-shadow: var(--shadow-sm);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--gold);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

/* min-width:0 lets long values (an email address) wrap instead
   of forcing the flex row wider than the card. */
.contact-row__body {
  min-width: 0;
  flex: 1 1 auto;
}

.contact-note {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--gold-dark);
  padding: clamp(var(--space-5), 5vw, var(--space-7));
}

@media (max-width: 640px) {
  .contact-row {
    gap: var(--space-3);
  }

  .contact-row__icon {
    width: 38px;
    height: 38px;
  }

  .contact-row__icon svg {
    width: 17px;
    height: 17px;
  }

  /* The form panel carries generous desktop padding. */
  .enquiry-panel {
    padding: var(--space-5);
  }
}


/* ------------------------------------------------------------
   9. FINANCE PAGE
   The calculator was overflowing to the right on phones: the
   slider rows are flex with space-between and no wrapping, and
   the result box carries long uppercase labels with wide
   letter-spacing. Both are constrained here.
   ------------------------------------------------------------ */

.finance-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

/* A grid item defaults to `min-width: auto`, so its min-content size can
   force the track — and therefore the whole page — wider than the
   viewport. This is what pushed the calculator, the "why choose" box and
   the quotation form off the right edge on phones. */
.finance-main-grid > *,
.contact-main-grid > *,
.enquiry-form__row > *,
.form-group {
  min-width: 0;
}

@media (min-width: 1024px) {
  .finance-main-grid {
    grid-template-columns: 1.1fr 1.2fr;
    gap: var(--space-10);
  }
}

/* Label and value share a line when there is room and wrap when
   there is not, instead of forcing the row wider than the card. */
.calc-range-header {
  flex-wrap: wrap;
  gap: 4px var(--space-3);
  min-width: 0;
}

.calc-range-header > span {
  min-width: 0;
  overflow-wrap: break-word;
}

.calc-range-header > b {
  margin-left: auto;
  white-space: nowrap;
}

.calc-card {
  padding: clamp(var(--space-5), 5vw, var(--space-8)) clamp(var(--space-4), 4vw, var(--space-6));
  overflow: hidden;
}

.calc-result-box {
  padding: clamp(var(--space-4), 4vw, var(--space-6));
  overflow-wrap: break-word;
}

/* Range inputs have an intrinsic minimum width in some browsers,
   which is enough to push a narrow card sideways. */
.calc-slider {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  .calc-range-header {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .calc-range-wrap {
    margin-bottom: var(--space-4);
  }

  .calc-result-box {
    margin-top: var(--space-5);
  }

  .calc-result-box span {
    font-size: 10px;
    letter-spacing: 0.05em;
    line-height: 1.5;
  }

  .calc-result-box strong {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
    margin: 6px 0;
  }
}


/* ------------------------------------------------------------
   10. PAGE LAYOUT GRIDS
   Each of these two-column layouts was defined in an inline
   <style> block inside its own page file, so none of them had
   the overflow guard the finance and contact grids received.
   Consolidated here.
   ------------------------------------------------------------ */

/* A grid item defaults to `min-width: auto`, meaning its minimum size is
   its min-content size. Anything inside that cannot shrink — a long
   heading, an input, a nowrap price — then forces the track, the
   container and the page wider than the viewport. This is what pushed
   forms and panels off the right edge on phones. */
.sell-main-grid > *,
.px-main-grid > *,
.sourcing-main-grid > *,
.finance-main-grid > *,
.contact-main-grid > *,
.vehicle-layout-grid > *,
.oc-stock-layout > *,
.editorial-split > *,
.feature-grid-3 > *,
.feature-grid-4 > *,
.options-grid > *,
.protocol-grid > *,
.grid > *,
.grid--3 > * {
  min-width: 0;
}

/* Desktop two-column split. `!important` is required because these
   elements carry `grid-template-columns: 1fr` in a style attribute,
   which outranks any stylesheet rule. */
@media (min-width: 1024px) {
  .sell-main-grid,
  .px-main-grid,
  .sourcing-main-grid {
    grid-template-columns: 1.2fr 1fr !important;
  }

  .editorial-split {
    grid-template-columns: 1.15fr 1fr !important;
  }
}

/* Cards and panels must never exceed their column. */
.calc-card,
.contact-card,
.contact-note,
.enquiry-panel {
  max-width: 100%;
}

/* Long unbroken strings (an email address, a reference number) wrap
   instead of widening the layout. */
.contact-card a,
.enquiry-panel a {
  overflow-wrap: break-word;
}


/* ------------------------------------------------------------
   11. LIGHTBOX (gallery zoom)
   The base rules sit earlier in this file at z-index 400, which
   is below the header (1100) and mobile nav (1300) — it would
   have opened behind them. Raised here, with prev/next controls.
   ------------------------------------------------------------ */

.lightbox {
  z-index: 1400;
  padding: 56px 12px;
}

.lightbox img {
  max-width: min(94vw, 1600px);
  max-height: 84vh;
  object-fit: contain;
  user-select: none;
  /* The image spans nearly the full width and sits over the prev/next
     buttons. Without this it swallows those taps and navigation appears
     dead. Clicks pass through to the controls and the backdrop instead. */
  pointer-events: none;
}

/* Controls stay above the image and always receive input. */
.lightbox__close,
.lightbox__nav,
.lightbox__counter {
  z-index: 3;
  pointer-events: auto;
}

.lightbox__close {
  top: calc(10px + env(safe-area-inset-top));
  right: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.lightbox__close:hover { transform: rotate(90deg); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--bg);
  background: rgba(17, 17, 17, 0.55);
  border: 1px solid rgba(250, 249, 246, 0.18);
  cursor: pointer;
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  color: var(--gold);
  background: rgba(17, 17, 17, 0.85);
}

.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* Hidden when there is only one image to show. */
.lightbox__nav[hidden] { display: none; }

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(250, 249, 246, 0.75);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .lightbox { padding: 48px 6px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox img { max-height: 78vh; }
}
