/* ============================================
   NASHMI MOTORS — CUSTOM WEBSITE
   ============================================ */


:root {
  --green:        #4a7c59;
  --green-bright: #5a9a6e;
  --green-dark:   #3a6347;
  --green-glow:   rgba(74,124,89,0.15);
  --dark:         #0d1822;
  --dark-2:       #1a2535;
  --dark-3:       #243040;
  --gray:         #6b7280;
  --gray-light:   #737373;
  --bg:           #f5f7fa;
  --white:        #ffffff;
  --border:       #e5e7eb;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.06);
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.16);
  --radius:       16px;
  --radius-sm:    10px;
  --ease:         cubic-bezier(0.4,0,0.2,1);
}

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

/* ── Prevent ANY element from causing horizontal scroll ────────────────────
   html must also carry overflow-x: hidden — setting it only on body is not
   enough because the browser will honour the body's scroll instead.        */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;          /* stop viewport-wider paint */
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: #374151;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;                 /* never exceed the viewport */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;      /* padding never adds to the 100% width */
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;           /* WCAG 2.1 touch target */
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 14px; min-height: 52px; }
.btn-sm { padding: 10px 16px; font-size: 12px; min-height: 44px; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,124,89,0.35);
}
.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,124,89,0.45);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
}
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--green-glow);
  border-color: var(--green);
}

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-green:hover {
  background: var(--green);
  color: #fff;
}

/* Google Review button — white card with subtle border, G logo inline */
.btn-google-review {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  font-weight: 600;
  min-height: 48px;    /* large enough for thumb tap on mobile */
}
.btn-google-review:hover {
  background: #f8f9fa;
  border-color: #4285F4;
  box-shadow: 0 4px 16px rgba(66,133,244,0.20);
  transform: translateY(-2px);
  color: #3c4043;
}

/* ---- TOP BAR ---- */
.topbar {
  background: #050505;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-right {
  display: flex;
  gap: 20px;
}
.topbar-link {
  color: rgba(255,255,255,0.7);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.topbar-link:hover { color: #fff; }
.topbar-hours { color: rgba(255,255,255,0.5); }

/* ---- HEADER ---- */
.header {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  /* z-index must be above gallery, hero, cards (all ≤ 10) but
     the lang-menu sits at 1100 so it punches through everything */
  z-index: 1000;
  transition: box-shadow 0.3s var(--ease);
  width: 100%;
  max-width: 100vw;
  /* overflow: visible so the lang dropdown can escape the header box.
     Horizontal overflow is already blocked by html/body overflow-x:hidden */
  overflow: visible;
}
.topbar {
  width: 100%;
  max-width: 100vw;
  /* visible so nothing clips the dropdown */
  overflow: visible;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.6); }
.mobile-hours-bar { display: none; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;        /* never let the logo compress on small screens */
  text-decoration: none;
}
.logo img {
  height: 50px;
  max-height: 50px;
  width: auto;
  display: block;
}
@media (max-width: 900px) {
  .logo img {
    height: 52px;
    max-height: 52px;
  }
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 10px 14px;
  min-height: 44px;            /* WCAG touch target */
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.header-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  min-width: 44px;             /* WCAG touch target */
  min-height: 44px;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s;
}

/* ---- HERO SPLIT (new) ---- */
/* ── FULL-WIDTH HERO ─────────────────────────────────────────────────────── */
.hero-full {
  position: relative;
  min-height: calc(100dvh - 90px);
  display: flex;
  align-items: center;
  width: 100%;                 /* prevent hero from overflowing viewport */
  max-width: 100vw;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the car centred — not too high (cuts roof) or too low (cuts wheels) */
  object-position: center 55%;
  opacity: 0.70;
  /* Smooth fade-in when the dynamic Camry swaps in */
  transition: opacity 0.4s ease, src 0s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Left side: strong dark so text stays readable.
     Right side: much lighter so the car is visible.
     Bottom strip: subtle vignette keeps the search bar readable. */
  background:
    linear-gradient(
      to right,
      rgba(10,20,28,0.88) 0%,
      rgba(10,20,28,0.60) 45%,
      rgba(10,20,28,0.18) 100%
    ),
    linear-gradient(
      to top,
      rgba(10,20,28,0.55) 0%,
      transparent 30%
    );
}

.hero-full-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 80px;
  max-width: 740px;
}

/* Eyebrow — light version for dark background */
.hero-eyebrow,
.hero-eyebrow-light {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before,
.hero-eyebrow-light::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--green-bright);
  flex-shrink: 0;
}

.hero-full-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}

.hero-accent { color: var(--green); }
/* Forces a block line-break without the extra empty line a <br> creates */
.hero-h1-line2 { display: block; }
.hero-accent-light {
  background: linear-gradient(95deg, #5dca6b 0%, #a8f0a0 55%, #5dca6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmerText 4s linear 2s infinite;
}
@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-full-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-full-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: #d1d5db;
}
.btn-outline-dark:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

/* HERO INLINE SEARCH */
.hero-search {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  flex-wrap: wrap;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-search-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.hero-select {
  flex: 1;
  min-width: 110px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  font-weight: 500;
  padding: 6px 4px;
  cursor: pointer;
}
.hero-select-dark {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  padding: 10px 14px;
  appearance: auto; /* ensure native dropdown arrow shows */
}
.hero-select-dark:focus {
  outline: none;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
}
.hero-select-dark option { color: #111; background: #fff; }
.hero-select:focus { outline: none; }

/* STAT CHIPS row */
.hero-full-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 28px 0 0;
}
.hero-stat-chip:first-child { padding-left: 0; }
.hero-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  margin-right: 28px;
}

/* Legacy split classes — kept so pages with old markup still render */
.hero-split { position: relative; min-height: calc(100dvh - 90px); overflow: hidden; background: var(--dark); }
.hero-split-left { display:flex; align-items:center; padding:60px 48px; position:relative; z-index:2; }
.hero-split-content { max-width:520px; width:100%; }
.hero-split-right { position:absolute; inset:0; }
.hero-split-img { position:absolute; inset:0; }
.hero-split-img img { width:100%; height:100%; object-fit:cover; opacity:0.5; }
.hero-float-cards { position:absolute; bottom:40px; left:40px; right:40px; display:flex; gap:12px; z-index:2; }
.hero-float-card { flex:1; background:rgba(255,255,255,0.1); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,0.18); border-radius:12px; padding:16px 20px; text-align:center; }
.hero-float-num { display:block; font-family:'Poppins',sans-serif; font-size:22px; font-weight:800; color:#fff; line-height:1; margin-bottom:4px; }
.hero-float-label { font-size:11px; font-weight:600; letter-spacing:0.5px; color:rgba(255,255,255,0.65); text-transform:uppercase; }

/* Legacy aliases (keep old .hero-* classes that pages may still use) */
.text-green { color: var(--green-bright); }
.hero-stats { background: var(--dark); }
.stats-row { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; padding: 32px 0; }
.stat-num { font-family: 'Poppins',sans-serif; font-size:2.2rem; font-weight:900; color:#fff; display:block; }
.stat-label { font-size:12px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:rgba(255,255,255,0.5); display:block; margin-top:2px; }
.stat-divider { width:1px; height:48px; background:rgba(255,255,255,0.12); }

/* ---- TEST DRIVE SECTION ---- */
.testdrive-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.testdrive-text .section-eyebrow { text-align: left; }
.testdrive-text .section-title { text-align: left; margin-bottom: 16px; }
.testdrive-text > p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testdrive-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testdrive-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}
.testdrive-perks li svg {
  color: var(--green);
  flex-shrink: 0;
}

.testdrive-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.testdrive-form h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.testdrive-form input,
.testdrive-form select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fafbfc;
  color: #111827;
  transition: border-color 0.2s;
}
.testdrive-form input:focus,
.testdrive-form select:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px var(--green-glow);
}
.testdrive-form .form-group { margin-bottom: 16px; }
.testdrive-form .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}

/* ---- FEATURE ICON WRAP (SVG icons, replaces emoji) ---- */
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(74,124,89,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-bright);
  flex-shrink: 0;
}

/* ---- SEARCH BAR (legacy, used on other pages) ---- */
.search-bar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  max-width: 780px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
}
.search-field { flex: 1; min-width: 120px; }
.search-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.search-field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  background: #fafbfc;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
}
.search-field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.search-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 24px;
}

/* STATS */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(13,24,34,0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--green-bright);
  line-height: 1;
}
.stat-label {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

/* ---- SECTIONS ---- */
.section { padding: 64px 0; width: 100%; max-width: 100vw; overflow: hidden; }
.section-white { background: var(--white); }
.section-bg { background: var(--bg); }
.section-dark { background: var(--dark); }

.section-header {
  text-align: center;
  margin-bottom: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 15.5px;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---- BODY TYPES ---- */
.body-types {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.body-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  min-width: 120px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.body-type-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px var(--green-glow);
  transform: translateY(-4px);
  color: var(--green);
}
.body-type-icon {
  font-size: 30px;
  line-height: 1;
}

/* ---- SHOP BY BUDGET ---- */
.budget-section { background: var(--dark); }
.budget-section .section-title { color: #fff; }
.budget-section .section-eyebrow { color: var(--green); }
.budget-section .section-desc { color: rgba(255,255,255,0.5); }
.budget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.budget-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
  overflow: hidden;
  min-height: 160px;
}
.budget-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,90,39,0.14) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.budget-card:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: 0 12px 36px rgba(45,90,39,0.25);
}
.budget-card:hover::after { opacity: 1; }
.budget-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}
.budget-range-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.budget-price {
  font-family: 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.budget-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.budget-cta svg { transition: transform 0.2s; }
.budget-card:hover .budget-cta svg { transform: translateX(4px); }
@media (max-width: 768px) {
  .budget-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .budget-price { font-size: 1.7rem; }
  .budget-card { padding: 36px 16px 28px; min-height: 140px; }
}
@media (max-width: 420px) {
  .budget-price { font-size: 1.45rem; }
}

/* ---- CAR CARDS ---- */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.car-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74,124,89,0.2);
}

.car-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #e5e7eb;
}
.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.car-card:hover .car-img img { transform: scale(1.05); }

.car-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9edf2 0%, #d1d5db 100%);
  color: #9ca3af;
  font-size: 48px;
}

@keyframes badge-pop {
  0%,100% { transform: scale(1) rotate(-2deg); opacity: 1; }
  50%     { transform: scale(1.06) rotate(-2deg); opacity: 0.82; }
}
.car-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #e63946;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  transform: rotate(-2deg);
  animation: badge-pop 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}

/* ── CarFax Value Badges ───────────────────────────────────── */
.cfx-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 5px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 2;
}
.cfx-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.cfx-label {
  background: #003399;
  color: #fff;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.cfx-value {
  padding: 5px 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.cfx-great .cfx-value { background: #1aa34a; }
.cfx-good  .cfx-value { background: #2563eb; }
.cfx-fair  .cfx-value { background: #ea580c; }

/* ── SHOW ME THE CARFAX badge (real SVG from CarFax CDN) ─────────────────── */
.smtc-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  cursor: pointer;
}
.smtc-badge img { height: 38px; width: auto; display: block; max-width: 100%; aspect-ratio: auto; }
.smtc-badge-lg img {
  height: 38px;
}
.smtc-badge:hover { transform: translateY(-1px); opacity: 0.9; }

/* ── Featured Carousel ───────────────────────────────── */
.featured-carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding-bottom: 52px; /* room for dots below slides */
}
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}
.carousel-slide .car-card {
  max-width: 480px;
  margin: 0 auto;
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-prev:hover,
.carousel-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--green);
  transform: scale(1.3);
}
@media (max-width: 600px) {
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
}

/* Value badge overlay on car photo (real SVG) */
.cfx-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.15s;
  line-height: 0;
}
.cfx-badge-wrap img { height: 54px; width: auto; display: block; }
.cfx-badge-wrap:hover { transform: translateY(-1px); }

.car-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 16px;
  transition: all 0.2s;
}
.car-save:hover { transform: scale(1.15); }

.car-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.car-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.car-price {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
}
.car-price-was {
  font-size: 13px;
  color: var(--gray-light);
  text-decoration: line-through;
}

.car-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.car-title a:hover { color: var(--green); }

.car-specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.car-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--gray);
  font-weight: 500;
}

.car-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.car-actions .btn { flex: 1; justify-content: center; }

/* ---- FEATURES GRID ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  background: rgba(74,124,89,0.1);
  border-color: rgba(74,124,89,0.3);
  transform: translateY(-4px);
}
.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}

/* ---- ABOUT STRIP ---- */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-strip-text .section-eyebrow { text-align: left; }
.about-strip-text .section-title { text-align: left; margin-bottom: 16px; }
.about-strip-text p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.about-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.about-img-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-2);
}
.about-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--green);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.badge-num {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.badge-text {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.88;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 60px 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
}
.cta-banner-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: var(--gray-light);
  padding-top: 60px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { margin-bottom: 14px; }
@media (max-width: 900px) {
  .footer-brand img {
    display: none;
  }
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 240px;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 44px;                 /* WCAG touch target */
  height: 44px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
.footer-links h3, .footer-contact h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-bright); }
.footer-contact p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-contact a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-contact a:hover { color: var(--green-bright); }

.footer-bottom {
  padding: 18px 0;
  /* push above iPhone home bar / Android gesture strip */
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ---- SCROLL ANIMATIONS ---- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s var(--ease) forwards;
}
/* Scroll animations — only active when JS has run (js class on <html>).
   Without JS: elements are always visible. */
.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js .animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { animation-delay: 0.12s; transition-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; transition-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; transition-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; transition-delay: 0.48s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(74,124,89,0.12) 0%, transparent 70%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.45); }
.breadcrumb a:hover { color: var(--green-bright); }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* ---- INVENTORY PAGE ---- */
.inventory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 40px 0 60px;
}

.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: 90px;
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.filter-header h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray);
}
.filter-reset {
  font-size: 11.5px;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.filter-reset:hover { color: var(--green-dark); }

.filter-group {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.filter-group:last-child { border-bottom: none; }
.filter-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 4px;           /* min 44px tap target height */
  min-height: 44px;
}
.filter-option input[type="checkbox"] {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.filter-option label {
  font-size: 13.5px;
  color: #374151;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s;
}
.filter-option:hover label { color: var(--green); }
.filter-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--gray-light);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 50px;
  font-weight: 600;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.price-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.2s;
}
.price-input:focus {
  outline: none;
  border-color: var(--green);
}

.inventory-main {}
.inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.results-count span { color: var(--green); }
.sort-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 36px 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}
.sort-select:focus { outline: none; border-color: var(--green); }

#no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  display: none;
}
#no-results h3 { font-size: 20px; margin-bottom: 8px; color: var(--dark); }

/* ---- INVENTORY PAGINATION ---- */
.inv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0 8px;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pg-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}
.pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pg-info {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  min-width: 100px;
  text-align: center;
}

/* ---- ABOUT PAGE ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 60px 0;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s var(--ease);
}
.value-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px var(--green-glow);
  transform: translateY(-3px);
}
.value-icon { font-size: 28px; margin-bottom: 12px; }
.value-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--gray); line-height: 1.7; }

/* ---- CONTACT PAGE ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 60px 0;
}
.contact-info h2 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.contact-info p { color: var(--gray); font-size: 15px; line-height: 1.75; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-detail h4 { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-detail p { font-size: 13.5px; color: var(--gray); line-height: 1.6; margin: 0; }
.contact-detail a { color: var(--green); font-weight: 600; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 7px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #fafbfc;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ---- APPLY PAGE ---- */
.apply-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding: 60px 0;
}
.apply-info h2 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.apply-info p { color: var(--gray); font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
.apply-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.apply-perks li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}
.apply-perks li::before { content: '✓'; color: var(--green); font-weight: 900; font-size: 16px; }

/* ---- MAP ---- */
.map-section { padding: 60px 0; background: var(--bg); }
.map-section h2 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 24px; text-align: center; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-embed iframe { display: block; }

/* ---- REVIEWS SECTION ---- */
.reviews-rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.reviews-score {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}
.reviews-summary-right { display: flex; flex-direction: column; gap: 4px; }
.stars-row { display: flex; gap: 3px; }
.star-svg { width: 20px; height: 20px; color: #FBBF24; }
.reviews-source { font-size: 13px; color: var(--gray); font-weight: 500; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74,124,89,0.15);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.reviewer-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
}
.reviewer-meta {
  font-size: 12px;
  color: var(--gray-light);
  font-weight: 500;
}
.review-google-icon { margin-left: auto; flex-shrink: 0; }

.review-stars { display: flex; gap: 2px; }
.review-stars .star-svg { width: 16px; height: 16px; }

.review-text {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.8;
  font-style: italic;
}

/* ---- REVIEWS CAROUSEL ---- */
.rc-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 0 12px;
}
.rc-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.rc-track:active { cursor: grabbing; }

/* Individual review card inside carousel */
.rc-track .review-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  scroll-snap-align: start;
}

/* Arrow buttons */
.rc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--dark);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  line-height: 1;
}
.rc-arrow:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.rc-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.rc-prev { left: -18px; }
.rc-next { right: -18px; }

/* Dot indicators */
.rc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.rc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}
.rc-dot.active {
  background: var(--green);
  width: 24px;
  border-radius: 4px;
}

/* Skeleton loader */
.rc-skeleton {
  flex: 0 0 calc(33.333% - 16px);
  min-height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: rc-shimmer 1.4s infinite;
}
@keyframes rc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Reviewer photo (Google profile photo) */
.reviewer-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Forest green stars */
.review-stars .star-svg,
.stars-row .star-svg {
  color: #2D5A27;
}

/* Responsive carousel card widths */
@media (max-width: 899px) {
  .rc-track .review-card { flex: 0 0 calc(50% - 12px); }
  .rc-skeleton              { flex: 0 0 calc(50% - 12px); }
  .rc-prev { left: 4px; }
  .rc-next { right: 4px; }
}
@media (max-width: 599px) {
  .rc-track { gap: 16px; }
  .rc-track .review-card { flex: 0 0 calc(100% - 0px); }
  .rc-skeleton              { flex: 0 0 100%; }
  .rc-prev { left: 4px; }
  .rc-next { right: 4px; }
  .rc-arrow { width: 36px; height: 36px; font-size: 15px; }
}

/* ---- CAR CARD (generated by app.js) ---- */
.car-img-container {
  position: relative;
  display: block;
}
.car-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #e5e7eb;
}
.car-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.car-card:hover .car-img-wrap img { transform: scale(1.05); }
.car-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9edf2, #d1d5db);
}
.car-no-photo-svg { width: 65%; max-width: 200px; height: auto; }
.car-info { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.car-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.car-old-price { font-size: 13px; color: var(--gray-light); text-decoration: line-through; }
.car-title { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.car-title a { color: inherit; }
.car-title a:hover { color: var(--green); }
.car-meta { display: flex; gap: 10px; font-size: 12px; color: var(--gray); font-weight: 500; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 10px; margin-bottom: 14px; margin-top: auto; }
.car-meta span { display: flex; align-items: center; gap: 4px; }
.car-btn { margin-top: auto; display: block; text-align: center; }

/* ---- FILTER SIDEBAR extras ---- */
.filter-group h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 4px;           /* min 44px tap target */
  min-height: 44px;
}
.filter-group input[type="checkbox"] { accent-color: var(--green); cursor: pointer; }
.filter-clear { font-size: 11.5px; color: var(--green); font-weight: 600; cursor: pointer; background: none; border: none; transition: color 0.2s; }
.filter-clear:hover { color: var(--green-dark); }

.filter-toggle-btn { display: none; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { flex: 1; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; transition: border-color 0.2s; background: #fafbfc; }
.price-inputs input:focus { outline: none; border-color: var(--green); }
.price-inputs span { color: var(--gray-light); font-size: 12px; flex-shrink: 0; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); }
.sort-wrap select { border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-family: inherit; background: var(--white); cursor: pointer; }
.sort-wrap select:focus { outline: none; border-color: var(--green); }
.no-results { flex-direction: column; align-items: center; padding: 60px 20px; color: var(--gray); text-align: center; gap: 8px; }
.no-results span { font-size: 40px; }
.no-results h3 { font-size: 20px; color: var(--dark); margin: 0; }
.no-results p { font-size: 14px; margin: 0 0 16px; }

/* ---- CONTACT PAGE extras ---- */
.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 14px;
}
.contact-card-icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; color: var(--green); display: flex; align-items: center; }
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--gray); line-height: 1.6; margin: 2px 0 0; }
.contact-card-link { font-size: 14.5px; font-weight: 700; color: var(--green); display: block; margin-bottom: 2px; }
.contact-map { margin-top: 8px; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 11px 14px; font-size: 14px; font-family: inherit; background: #fafbfc;
  transition: border-color 0.2s; color: #111827;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px var(--green-glow);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form .form-group label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--gray); margin-bottom: 6px;
}

/* ---- APPLY PAGE extras ---- */
.apply-layout { grid-template-columns: 1.6fr 1fr; }
.apply-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.apply-form input, .apply-form select, .apply-form textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 11px 14px; font-size: 14px; font-family: inherit; background: #fafbfc;
  transition: border-color 0.2s; color: #111827;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px var(--green-glow);
}
.apply-form textarea { resize: vertical; }
.apply-form .form-group { margin-bottom: 16px; }
.apply-form .form-group label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--gray); margin-bottom: 6px;
}
.apply-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.apply-section:last-of-type { border-bottom: none; }
.apply-section-title {
  font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.apply-step {
  width: 28px; height: 28px; background: var(--green); color: #fff;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.apply-consent { margin-bottom: 24px; }
.apply-sidebar { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 90px; }
.apply-sidebar-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.apply-sidebar-card h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--dark); margin-bottom: 14px;
}
.apply-sidebar-card p { font-size: 13.5px; color: var(--gray); line-height: 1.65; margin-bottom: 4px; }
.apply-sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.apply-sidebar-card li { font-size: 13.5px; color: #374151; font-weight: 500; padding-left: 20px; position: relative; }
.apply-sidebar-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---- ABOUT PAGE extras ---- */
.about-grid-img { position: relative; }
.about-grid-text .section-eyebrow { text-align: left; }
.about-grid-text .section-title { text-align: left; margin-bottom: 16px; }
.stats-row { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; padding: 32px 0; }

/* ---- CAR CARD extras ---- */
.car-savings {
  font-size: 11px;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  padding: 2px 7px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}
.car-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.car-btn { flex: 1; text-align: center; justify-content: center; }
.car-btn-alt {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.car-btn-alt:hover {
  background: var(--green);
  color: #fff;
}

/* ---- HOURS GRID ---- */
.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
}
.hours-grid .closed { color: var(--gray-light); text-decoration: line-through; }
.hours-grid strong { color: var(--dark); }

/* ---- STEPS GRID (sell page) ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s var(--ease);
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(74,124,89,0.2); }
.step-num {
  width: 48px; height: 48px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--gray); line-height: 1.75; }

/* ---- LOCATION GRID (about page) ---- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.location-details { display: flex; flex-direction: column; gap: 24px; }
.location-item { display: flex; gap: 14px; }
.location-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--green); display: inline-flex; align-items: center; }
.location-icon svg { width: 22px; height: 22px; }
.location-item strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.location-item p { font-size: 14px; color: #374151; line-height: 1.65; margin: 0; }
.location-item a { color: var(--green); font-weight: 600; }
.location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
}
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 480px) {
  .location-map { aspect-ratio: 4 / 3; min-height: 240px; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f0f2f5; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }
::selection { background: rgba(74,124,89,0.18); color: var(--dark); }

/* Mobile CTA row — hidden on desktop, shown in @media (max-width: 900px) */
.mobile-cta-row { display: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  /* ── Nav collapses to hamburger at 900px ── */
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #000; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 800; max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav .nav-link { color: rgba(255,255,255,0.85); padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0; background: none; font-size: 15px; }
  .nav .nav-link:last-child { border-bottom: none; }
  .nav .nav-link:hover, .nav .nav-link.active { color: #fff; background: rgba(255,255,255,0.06); }
  .hamburger { display: flex; }
  .header-cta { display: none; }

  /* Match header black to logo PNG background (#000) so blend is seamless */
  .header { background: #000; }

  /* Thin hours strip — only visible on mobile, sits above logo row */
  .mobile-hours-bar {
    display: block;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    padding: 6px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0.2px;
  }

  /* Header layout on mobile: controls on right, logo absolutely centred */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
  }
  .lang-switcher { position: relative; z-index: 1; }
  .hamburger     { position: relative; z-index: 1; margin-left: 0; }
  /* Hide desktop nav links on mobile */
  .nav           { display: none; }

  .hero-full { min-height: 85vh; }
  .hero-full-content { padding: 60px 0; }
  .hero-full-title { font-size: 2.6rem; line-height: 1.01; }
  .hero-full-stats { gap: 0; flex-wrap: wrap; }
  /* legacy split fallback */
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split-left { padding: 48px 24px 40px; }
  .hero-split-left::after { display: none; }
  .hero-split-right { min-height: 300px; }
  .hero-float-cards { bottom: 20px; left: 20px; right: 20px; gap: 8px; }
  .hero-float-card { padding: 12px 10px; }
  .hero-float-num { font-size: 18px; }
  .testdrive-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip-img { display: none; }
  .about-strip-text { margin-bottom: 8px; }
  .inventory-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; display: none; }
  .filter-sidebar.open { display: block; }
  .filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .filter-toggle-btn.active {
    border-color: var(--green);
    background: #f0fdf4;
    color: var(--green);
  }

  /* Accordion filter groups on mobile */
  .filter-group-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    padding: 4px 0;
    user-select: none;
  }
  .filter-group-toggle::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .filter-group.open .filter-group-toggle::after { transform: rotate(-135deg); }
  .filter-group-body { display: none; padding-top: 4px; }
  .filter-group.open .filter-group-body { display: block; }

  /* Hide "Sort by:" text label on mobile — just show the dropdown */
  .sort-wrap label { display: none; }

  /* ── Mobile CTA row (Email Us / Call Us) ─────────────────── */
  .mobile-cta-row {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0a0a0a;
    justify-content: center;
  }
  .mobile-cta-email,
  .mobile-cta-call {
    flex: 1;
    max-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .mobile-cta-email {
    background: var(--green);
    color: #fff;
    border: none;
  }
  .mobile-cta-call {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
  }
  .mobile-cta-email:hover,
  .mobile-cta-call:hover { opacity: 0.85; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .apply-layout { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .features-grid[style*="repeat(3"] { grid-template-columns: 1fr 1fr !important; }
  .apply-sidebar { position: static; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  /* CarFax widget is desktop-only (498px wide, fixed height) — hide on mobile */
  .cfx-widget-wrap { display: none !important; }
  /* Inventory card images — full width, no overflow */
  .car-img, .car-img-wrap { width: 100%; max-width: 100%; }
  .car-img img, .car-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .topbar-left { display: none; }
  .hero-content { padding: 60px 24px 100px; }
  .search-bar { flex-direction: column; gap: 12px; }
  .search-field { width: 100%; }
  .stats-row { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-title { letter-spacing: -1px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; gap: 4px; text-align: center; }
  .cars-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
  .hero-split-title { font-size: 2.2rem; }
  .hero-full-title { font-size: 2rem; letter-spacing: -0.5px; }
  .hero-full-sub { font-size: 15px; }
  .hero-full-actions { flex-direction: column; }
  .hero-search { flex-direction: column; align-items: stretch; }
  .hero-select { min-width: 100%; }
  .hero-stat-chip { padding: 0 16px 0 0; }
  .hero-stat-divider { margin-right: 16px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .body-types { gap: 10px; }
  .body-type-card { padding: 20px 22px; min-width: 100px; }
  /* ── CarFax badge fixes (inventory cards) ──────────────────────────────
     .car-img-wrap img above sets width:100%;height:100% on every img inside
     the card — that rule stretches the CarFax badge SVG to fill the photo.
     Override width and height here with !important so the badge stays small. */
  .car-img-wrap, .car-img {
    position: relative !important;   /* anchor for absolute-positioned badges */
    overflow: hidden !important;
  }
  .cfx-badge-wrap {
    position: absolute !important;
    top: 10px !important;
    bottom: auto !important;
    left: 10px !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    width: auto !important;
    z-index: 10 !important;
    line-height: 0 !important;
  }
  .cfx-badge-wrap img {
    width: auto !important;
    height: 44px !important;
    max-width: none !important;
    display: block !important;
    object-fit: unset !important;
  }
  /* Show Me The CarFax link in action row — inline, sized to match button */
  .smtc-badge {
    display: inline-flex !important;
    width: auto !important;
  }
  .smtc-badge img {
    width: auto !important;
    height: 38px !important;
    max-width: none !important;
    object-fit: unset !important;
  }
  /* Mobile CarFax + actions */
  .car-actions { flex-wrap: wrap; gap: 8px; }
  .car-actions .btn { font-size: 12px; padding: 9px 12px; min-height: 44px; }
  /* Map iframe is invisible/blank on mobile — hide it; Get Directions button handles navigation */
  .location-map { display: none; }
}

/* ================================================================
   TABLET  ·  max-width: 768px
   ================================================================ */
@media (max-width: 768px) {
  /* Section spacing — less vertical breathing room on tablets */
  .section { padding: 44px 0; }
  .cta-banner { padding: 48px 0; }
  .page-hero { padding: 48px 0; }

  /* Cars grid — 2 columns on tablet instead of auto-fill */
  .cars-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Footer — always 2-col on tablet */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Reviews — 1 column on tablet */
  .reviews-grid { grid-template-columns: 1fr; }

  /* About values — 2-col stays fine, no change needed */

  /* Reduce large gap on 2-col grids */
  .testdrive-layout { gap: 32px; }
  .about-strip { gap: 40px; }

  /* CTA banner — stack sooner */
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }

  /* Form rows — keep 2-col but tighter */
  .contact-form-wrap,
  .apply-form-wrap,
  .testdrive-form-wrap { padding: 28px 24px; }

  /* Hero stat chips — wrap gracefully */
  .hero-full-stats { flex-wrap: wrap; gap: 16px 0; }
  .hero-stat-chip { padding: 0 20px 0 0; }
  .hero-stat-divider { margin-right: 20px; }

  /* Steps grid — 2-col on tablet */
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   SMALL PHONES  ·  max-width: 480px
   ================================================================ */
@media (max-width: 480px) {
  /* Tighten container padding */
  .container { padding: 0 12px; }

  /* Section spacing — compact */
  .section { padding: 32px 0; }
  .cta-banner { padding: 40px 0; }
  .page-hero { padding: 36px 0; }

  /* Hero — scale down aggressively for tiny screens */
  .hero-full { min-height: 100svh; }
  /* On mobile the text covers the full width so push the car to stay
     centred (not cut off at the side like on desktop) */
  .hero-bg img { object-position: center 50%; }
  .hero-full-content { padding: 48px 0 48px; }
  .hero-full-title { font-size: 1.85rem; letter-spacing: -0.5px; }
  .hero-full-sub { font-size: 14px; margin-bottom: 24px; }
  .hero-full-actions { flex-direction: column; gap: 10px; }
  .hero-full-actions .btn { width: 100%; justify-content: center; }

  /* Stat chips — stack 2×2 */
  .hero-full-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stat-chip { padding: 0; }
  .hero-stat-divider { display: none; }

  /* Cars — single column, tighter */
  .cars-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Body type cards — scroll row on very small screens */
  .body-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .body-type-card { padding: 16px 8px; min-width: 0; font-size: 11px; }
  .body-type-icon { font-size: 24px; }

  /* Buttons — full width in hero/CTA contexts */
  .hero-full-actions .btn,
  .cta-banner-actions .btn { width: 100%; }

  /* Form padding — compact */
  .contact-form-wrap,
  .apply-form-wrap,
  .testdrive-form-wrap { padding: 20px 16px; }
  .contact-form { padding: 20px 16px; }
  .contact-form-wrap h3,
  .apply-form-wrap h3 { font-size: 17px; }

  /* Form rows — always single col on tiny phones */
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* About values — 1-col */
  .about-values { grid-template-columns: 1fr; gap: 14px; }
  .about-grid { padding: 48px 0; }

  /* Steps — 1-col */
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Reviews — 1-col (already set at 640px but be explicit) */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Footer — 1-col */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom .container { flex-direction: column; gap: 4px; text-align: center; }

  /* Car card actions — View Details + CarFax side by side */
  .car-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .car-actions .btn { width: 100%; }
  .car-actions .smtc-badge { align-self: center; }

  /* Inventory layout padding */
  .inventory-layout { padding: 24px 0 48px; }

  /* Contact/Apply layout padding */
  .contact-layout,
  .apply-layout { padding: 36px 0; }

  /* CTA banner */
  .cta-banner-inner { gap: 20px; }
  .cta-banner-actions { flex-direction: column; gap: 10px; width: 100%; }
  .cta-banner-actions .btn { width: 100%; }

  /* Page hero title */
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* Topbar — hide on very small */
  .topbar { display: none; }

  /* Section title minimum */
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Map height — shorter */
  .map-embed iframe { height: 220px !important; }

  /* Price inputs side by side still fine (1fr 1fr) */

  /* Reduce hero stat chip font */
  .hero-stat-num { font-size: 18px; }
  .hero-stat-label { font-size: 10px; }
}

/* ================================================================
   GOOGLE TRANSLATE WIDGET
   ================================================================ */

/* The widget sits in the header next to the hamburger on mobile */
/* ── Google Translate — widget must stay in the DOM to initialise ──
   NEVER use display:none — it prevents .goog-te-combo from rendering,
   so the select element never exists and setLanguage() has nothing to
   trigger. Instead we park it far off-screen.                        ── */
#google_translate_element {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  /* No width/height/overflow constraints — GT needs to render the combo at natural size */
}

/* ═══════════════════════════════════════════════════════════════
   GOOGLE TRANSLATE — NUCLEAR BANNER SUPPRESSION
   ═══════════════════════════════════════════════════════════════ */

/* 1. Hide the actual bar and all popups */
.goog-te-banner-frame,
.goog-te-banner,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

/* 2. Stop the body from moving down */
body {
  top: 0 !important;
  position: static !important;
}
body.translated-ltr,
body.translated-rtl { top: 0 !important; margin-top: 0 !important; }
html                 { top: 0 !important; margin-top: 0 !important; }

/* 3. Hide the blue highlight when hovering over translated text */
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* 4. Hide GT's own branding / gadget text */
.goog-logo-link  { display: none !important; }
.goog-te-gadget  { color: transparent !important; font-size: 0 !important; }

/* 5. Newer obfuscated GT class names */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-yAWNEb-L7lbkb,
.goog-tooltip,
.goog-tooltip-content { display: none !important; visibility: hidden !important; }
.VIpgJd-yAWNEb-L7lbkb         { display: none !important; }

/* 4. Hide GT's own visible UI (we replaced it with our custom switcher) */
.goog-logo-link                    { display: none !important; }
.goog-te-gadget                    { font-size: 0 !important; }
.goog-te-gadget .goog-te-combo     { font-size: 12px !important; }

/* ── Custom Language Switcher ──────────────────────────────────── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  min-height: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.lang-chevron {
  transition: transform 0.2s var(--ease);
  opacity: 0.6;
}
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

/* Dropdown panel — sits above header (1000), gallery, modals, everything */
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  /* 2-column grid — 300px gives each column ~140px, comfortable for any flag+label */
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 9999;   /* above header (1000), gallery stacking contexts, modals */
  overflow: hidden;
  animation: langMenuIn 0.15s var(--ease);
}
/* Open state: grid with 2 equal columns */
.lang-menu.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@keyframes langMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* The switcher container itself needs a stacking context above the header */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
  z-index: 9999;
  isolation: isolate;  /* creates its own stacking context */
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  min-height: 44px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  /* Right-column items get a left divider so rows look clean */
  border-right: none;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  box-sizing: border-box;
}
/* Add a subtle divider between columns */
.lang-option:nth-child(odd) {
  border-right: 1px solid var(--border);
}
/* Kill bottom border on last two items (both cells of last row) */
.lang-option:nth-last-child(-n+2) { border-bottom: none; }
.lang-option:hover { background: var(--green-glow); color: var(--green-dark); }
.lang-option.active {
  background: var(--green-glow);
  color: var(--green);
  font-weight: 700;
}
.lang-flag { display: none; }
.lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  background: #e8e8e8;
  color: #444;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  line-height: 1.4;
}
.lang-option.active .lang-code {
  background: var(--green);
  color: #fff;
}
.lang-option:hover .lang-code {
  background: var(--green-dark, #1e3d1b);
  color: #fff;
}

/* Mobile: position:fixed breaks out of every stacking context.
   left/width are set dynamically by toggleLangMenu() JS so the
   menu always anchors to wherever the globe button actually is. */
@media (max-width: 900px) {
  .lang-menu {
    position: fixed !important;
    /* top is set by JS; these are CSS fallbacks */
    top: 70px;
    right: 0;
    left: auto;
    /* left & width controlled by JS — CSS just guards against overflow */
    max-width: calc(100vw - 20px) !important;
    min-width: 280px !important;
    z-index: 9999 !important;
    /* Scrollable if 15 languages exceed screen height */
    max-height: 60vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    /* Green-themed border + shadow so it pops over hero/images */
    border: 1.5px solid var(--green) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(74,124,89,0.18) !important;
    border-radius: 12px !important;
  }
  /* Bigger touch targets on mobile */
  .lang-option {
    min-height: 48px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
  }
}
/* Very small phones — menu fills near-full width */
@media (max-width: 380px) {
  .lang-btn { padding: 7px 10px; font-size: 12px; gap: 5px; }
  .lang-option { font-size: 13px !important; padding: 11px 10px !important; }
}

/* ── Mobile language accordion (inside #nav) ────────────────────────────── */
/* Hidden on desktop — only rendered inside the slide-down mobile nav */
.mobile-lang-section { display: none; }
.mobile-lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mobile-lang-toggle:hover,
.mobile-lang-toggle:active { background: rgba(255,255,255,0.06); color: #fff; }
.ml-chevron { margin-left: auto; opacity: 0.5; transition: transform 0.2s; }
.mobile-lang-toggle[aria-expanded="true"] .ml-chevron { transform: rotate(180deg); }
.mobile-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px 16px 14px;
}
.mobile-lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s;
}
.mobile-lang-opt.active { background: rgba(45,90,39,0.55); border-color: var(--green); color: #fff; }
.mobile-lang-opt:active  { background: rgba(255,255,255,0.12); }

@media (max-width: 900px) {
  /* Language is now in the header — hide the in-nav accordion */
  .mobile-lang-section { display: none; }
  /* Move lang-switcher to the left of the header, symmetrical with hamburger */
  .lang-switcher { order: -1; margin-right: auto; }
}

/* ── Animated Hero ───────────────────────────────────────────────────────── */
.hero-animated {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #111 40%, #0d1a0d 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(45,90,39,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(45,90,39,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero-anim-eyebrow {
  animation: eyebrowReveal 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-anim-title {
  animation: titleReveal 1.1s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-anim-sub {
  animation: fadeRise 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-anim-actions {
  animation: fadeRise 0.7s 1.0s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-anim-search {
  animation: fadeRise 0.7s 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-anim-stats {
  animation: fadeRise 0.7s 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes eyebrowReveal {
  from { opacity: 0; letter-spacing: -0.02em; transform: translateY(16px); }
  to   { opacity: 1; letter-spacing: 1.5px;   transform: translateY(0); }
}
@keyframes titleReveal {
  from { opacity: 0; transform: translateY(48px) skewY(-1.5deg); }
  to   { opacity: 1; transform: translateY(0)    skewY(0); }
}
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RTL support (Arabic + Urdu) ─────────────────────────────────── */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .header-inner,
html[dir="rtl"] .nav,
html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .footer-inner,
html[dir="rtl"] .cta-banner-inner { flex-direction: row-reverse; }
html[dir="rtl"] .section-header { text-align: right; }
html[dir="rtl"] .form-group label { text-align: right; }
html[dir="rtl"] .lang-menu { right: 0; left: auto; }
