/* =====================================================================
   MAK AUTOPLEX — Storefront design system
   Bold automotive theme: black + red, condensed display type, diagonal cuts.
   ===================================================================== */

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

:root {
  --black:   #0d0d0d;
  --surface: #161616;
  --panel:   #1e1e1e;
  --red:     #D3001B;
  --red-dk:  #a80015;
  --white:   #f0f0f0;
  --mid:     #888;
  --border:  #2a2a2a;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
ul { list-style: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }

[x-cloak] { display: none !important; }

/* ─── FLASH MESSAGES ──────────────────────────────────────── */
.flash {
  padding: 12px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.flash--success { background: #1d6e3a; color: #fff; }
.flash--error   { background: var(--red); color: #fff; }

/* ─── URGENCY BANNER ────────────────────────────────────── */
.urgency-banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 4px 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ─── HEADER ────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1160px;
  margin: 0 auto;
  height: 156px;
}

.site-logo img {
  height: 112px;
  width: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--mid);
}

.header-contact a {
  color: var(--white);
  font-weight: 600;
  transition: color 0.2s;
}
.header-contact a:hover { color: var(--red); }

.header-contact .phone {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.header-contact .phone svg,
.header-contact .phone i { color: var(--red); margin-right: 6px; vertical-align: middle; }

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-links a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social-links svg { width: 14px; height: 14px; fill: currentColor; }

/* ─── NAV ────────────────────────────────────────────────── */
.site-nav {
  background: var(--black);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-nav a {
  display: block;
  padding: 14px 18px;
  color: #868686;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav li.active a {
  color: #868686;
  background: rgba(211,0,27,0.15);
}

.site-nav li.active a {
  border-bottom: 2px solid var(--red);
}

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; }

.mobile-header-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 2px solid var(--red);
}
.mobile-header-row .mobile-logo { flex: none; }
.mobile-header-row img { height: 44px; width: auto; }
.mobile-social-links {
  flex: 1;
  justify-content: center;
}

/* Phone + socials shown only inside the open mobile nav drawer. */
.nav-mobile-extras { display: none; }
.nav-mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.nav-mobile-phone svg { width: 16px; height: 16px; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,13,13,0.7) 38%, rgba(13,13,13,0.15) 100%),
              var(--hero-image) center bottom / cover no-repeat;
  z-index: 0;
}

/* the signature cut — hard diagonal slice at the bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--black);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px 90px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--white);
  max-width: 700px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-headline em {
  color: var(--red);
  font-style: normal;
}

.hero-sub {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #bbb;
  max-width: 540px;
  margin-bottom: 32px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── FINANCE CALLOUT (inline in hero) ─────────────────── */
.finance-card {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(22,22,22,0.95);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 28px 30px;
  min-width: 220px;
  text-align: center;
  z-index: 3;
}

.finance-card .label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.finance-card .tagline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  text-transform: uppercase;
}

.finance-card .tagline .not {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  display: block;
  margin: 6px 0 2px;
}

.finance-card .tagline .past {
  color: var(--red);
  font-style: italic;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: var(--red-dk); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

.btn-block { display: block; width: 100%; text-align: center; margin-top: 14px; }

/* Original prototype-style hero buttons (used on home hero) */
.btn-hero {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 12px 22px;
  border: 1px solid #FFFFFF;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-align: center;
}
.btn-hero:hover { transform: translateY(-1px); }

.btn-hero--solid {
  background: #FFFFFF;
  color: #686868;
}
.btn-hero--solid:hover { background: rgba(255,255,255,0.2); color: #FFFFFF; }

.btn-hero--ghost {
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
}
.btn-hero--ghost:hover { background: #FFFFFF; color: #686868; }

/* ─── LOCATION STRIP ─────────────────────────────────────── */
.location-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.location-strip-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
}

.loc-item {
  flex: 1 1 200px;
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.loc-item:last-child { border-right: none; }

.loc-item .loc-icon {
  font-size: 20px;
  color: var(--red);
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-item .loc-icon svg { width: 20px; height: 20px; }

.loc-item .loc-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 2px;
}

.loc-item .loc-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.loc-item a.loc-value { transition: color 0.2s; }
.loc-item a.loc-value:hover { color: var(--red); }

/* ─── SECTION COMMONS ────────────────────────────────────── */
.section {
  padding: 64px 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1;
}

.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; }

/* ─── INVENTORY (home / featured) ────────────────────────── */
.inventory-section {
  background: var(--black);
  padding: 64px 0 48px;
}
.inventory-section .section-title { color: #868686; }

.inventory-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ─── FEATURED CAROUSEL ──────────────────────────────────── */
.featured-carousel {
  position: relative;
  --slide-gap: 16px;
  --slides-visible: 4;
}

.featured-track {
  display: flex;
  gap: var(--slide-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
  cursor: grab;
}
.featured-track::-webkit-scrollbar { display: none; }
.featured-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.featured-track.is-dragging a { pointer-events: none; }
.carousel-static .carousel-arrow { display: none; }

.featured-slide {
  flex: 0 0 calc((100% - (var(--slides-visible) - 1) * var(--slide-gap)) / var(--slides-visible));
  min-width: 0;
  scroll-snap-align: start;
}
.featured-slide > .admin-card-wrap,
.featured-slide > .vehicle-card { width: 100%; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.carousel-arrow:hover { background: var(--red-dk); transform: translateY(-50%) scale(1.05); }
.carousel-arrow[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow--prev { left: -10px; }
.carousel-arrow--next { right: -10px; }

@media (max-width: 991px) {
  .featured-carousel { --slides-visible: 2; }
}
@media (max-width: 599px) {
  .featured-carousel { --slides-visible: 1; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-arrow--prev { left: 4px; }
  .carousel-arrow--next { right: 4px; }
}

.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
  color: inherit;
}

.vehicle-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.vehicle-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--panel);
  overflow: hidden;
}

.vehicle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vehicle-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  font-size: 12px;
}

.vehicle-price {
  background: var(--red);
  color: #fff;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.vehicle-info { padding: 12px; }

.vehicle-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vehicle-miles {
  font-size: 12px;
  color: var(--mid);
}

.view-all-wrap { text-align: center; margin-top: 32px; }

/* ─── INVENTORY (full listing — one item per row) ───────── */
.inventory-page {
  padding: 0 0 80px;
  background: var(--black);
}
.inventory-page > .container { max-width: 1360px; }

.inventory-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}

.inventory-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 24px 20px;
  align-self: start;
}

.inventory-filters h5 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.inventory-filters__group { margin-bottom: 18px; }
.inventory-filters__group:last-of-type { margin-bottom: 24px; }

.inventory-filters input[type=search],
.inventory-filters select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 2px;
  outline: none;
}
.inventory-filters input[type=search]::placeholder { color: #666; }
.inventory-filters input[type=search]:focus,
.inventory-filters select:focus { border-color: var(--red); }

.inventory-filters__actions { display: flex; gap: 8px; }
.inventory-filters__actions .btn { flex: 1; padding: 10px 14px; font-size: 13px; }

.inventory-listing__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.inventory-listing__count {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
}

.inventory-listing__sort { display: flex; align-items: center; gap: 8px; }
.inventory-listing__sort label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
}
.inventory-listing__sort select {
  background: var(--panel);
  color: var(--white);
  border: 1px solid var(--border);
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 2px;
  outline: none;
}

/* List card — one item per row */
.vehicle-list { display: flex; flex-direction: column; gap: 20px; }

.vehicle-card {
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s;
}
.vehicle-card:hover { border-color: var(--red); }

.vehicle-card__top {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  padding: 20px;
  gap: 28px;
}

.vehicle-card__image {
  width: 280px;
  height: 200px;
  display: block;
  background: #2a2a2a;
  overflow: hidden;
  position: relative;
}
.vehicle-card__image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.vehicle-card__image .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid); font-family: var(--font-display);
  letter-spacing: 2px; text-transform: uppercase; font-size: 12px;
}

.vehicle-card__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.vehicle-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.vehicle-card__title a { color: inherit; }
.vehicle-card__title a:hover { color: var(--red); }

.vehicle-card__price-mileage { display: flex; }
.vehicle-card__price-mileage .stat { padding-right: 28px; }
.vehicle-card__price-mileage .stat + .stat {
  border-left: 1px solid #fff;
  padding-left: 28px;
}
.vehicle-card__price-mileage .stat-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.vehicle-card__price-mileage .stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.vehicle-card__specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: 1fr;
  row-gap: 18px;
  column-gap: 28px;
}
.vehicle-card__spec {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}
.vehicle-card__spec-text {
  text-align: right;
  padding-right: 16px;
  border-right: 1px solid #fff;
  min-width: 0;
  flex: 1 1 auto;
}
.vehicle-card__spec-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: block;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.vehicle-card__spec-value {
  font-size: 14px;
  line-height: 1.3;
  color: #ddd;
  display: block;
  word-break: break-word;
  min-height: 1.1em;
}
.vehicle-card__spec--empty .vehicle-card__spec-value::before {
  content: "—";
  color: #555;
}
.vehicle-card__spec-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vehicle-card__spec-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.vehicle-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2b2b2b;
  padding: 16px 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.vehicle-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  color: #fff;
  background: var(--red);
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
}
.vehicle-card__btn:hover { background: var(--red-dk); color: #fff; }
.vehicle-card__btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.vehicle-card__btn[disabled],
.vehicle-card__btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.vehicle-card__actions-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}
.inventory-empty h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.inventory-empty p { color: var(--mid); }
.inventory-empty a { color: var(--red); }

.inventory-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.inventory-pagination a,
.inventory-pagination span {
  min-width: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.inventory-pagination a:hover { background: var(--red); border-color: var(--red); }
.inventory-pagination .is-current { background: var(--red); border-color: var(--red); }
.inventory-pagination .is-disabled { opacity: 0.35; pointer-events: none; }

/* ─── SEO FILTERS ────────────────────────────────────────── */
.filters-section {
  background: var(--surface);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }

.filter-heading {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-links a {
  font-size: 12px;
  color: var(--mid);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}

.filter-links a:hover { color: var(--white); border-color: var(--mid); }
.filter-links .count { color: #555; margin-left: 3px; font-size: 11px; }

/* ─── LOOKING FOR CTA ────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 88px 24px;
  text-align: center;
  overflow: hidden;
  background: var(--surface);
}

.cta-section.with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13,13,13,0.78), rgba(13,13,13,0.78)),
              var(--cta-image) center center / cover no-repeat;
  z-index: 0;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 60px;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

.cta-sup {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #868686;
  margin-bottom: 8px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  text-transform: uppercase;
  color: #868686;
  line-height: 1;
  margin-bottom: 16px;
}

.cta-title span { color: #868686; }

.cta-desc {
  color: #868686;
  font-size: 15px;
  margin-bottom: 28px;
}

.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-section {
  background: var(--surface);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

.about-img img {
  width: 100%;
  border: 1px solid var(--border);
}

.about-text {
  font-size: 15px;
  color: #bbb;
  line-height: 1.8;
}

.about-text + .about-text { margin-top: 14px; }

/* About page values grid */
.values-section { background: var(--black); padding: 72px 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 28px 24px;
  text-align: center;
}
.value-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.value-card p { color: var(--mid); font-size: 14px; }

/* ─── LOCATIONS MODULE ───────────────────────────────────── */
.locations-module {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.locations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.loc-block {
  flex: 1 1 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 28px 24px;
  text-align: center;
}

.loc-block h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #868686;
  margin-bottom: 14px;
}

.loc-block a, .loc-block p {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--mid);
  transition: color 0.2s;
  font-weight: 500;
}

.loc-block a:hover { color: var(--white); }
.loc-block .icon { color: var(--red); margin-right: 6px; display: inline-flex; vertical-align: middle; }
.loc-block .icon svg { width: 14px; height: 14px; }

/* ─── HOME HERO (prototype look) ─────────────────────────── */
.hero--home { min-height: 780px; }
.hero--home::after { display: none; }

.hero--home::before {
  background: linear-gradient(105deg, rgba(13,13,13,0.45) 38%, rgba(13,13,13,0.05) 100%),
              var(--hero-image) 30% bottom / cover no-repeat;
}

.hero--home .hero-content {
  padding: 90px 24px 280px;
  font-family: "Montserrat", sans-serif;
  max-width: 1250px;
}

.hero--home .hero-eyebrow { display: none; }

.hero--home .hero-headline {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(38px, 5.4vw, 75px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0;
  color: #868686;
  text-transform: none;
  max-width: 720px;
  margin-bottom: 14px;
}
.hero--home .hero-headline span {
  color: #FF0000;
  font-weight: 700;
}

.hero--home .hero-sub {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(15px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  color: #cccccc;
  text-transform: capitalize;
  max-width: 641px;
  margin-bottom: 28px;
}

.hero--home .hero-actions { gap: 18px; }

/* ─── WHY CHOOSE (home) ──────────────────────────────────── */
/*
 * The section background is intentionally transparent: with the
 * card's negative margin-top pulling the box up, a solid bg here
 * would paint over the hero image. The page body is already black,
 * so the area below the card stays the right colour.
 */
.why-choose-section {
  background: transparent;
  padding: 0 0 56px;
  border-top: none;
  position: relative;
  z-index: 2;
}

.why-choose-section .container { max-width: 1250px; }

.why-choose-card {
  max-width: 1036px;
  margin: -230px auto 0;
  position: relative;
  z-index: 3;
}

.why-choose-card {
  background: #2D2D2F;
  border: none;
  border-radius: 30px;
  padding: 30px 30px 20px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.why-choose-card .section-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: #868686;
  margin-bottom: 10px;
}

.why-choose-card .section-title span {
  color: #FF0000;
  font-weight: 400;
}

.why-choose-intro {
  font-family: "Montserrat", sans-serif;
  color: #575757;
  font-size: 19px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 720px;
  margin: 0 auto 10px;
}

.why-choose-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 14px 0 6px;
}

.why-choose-features .feature {
  position: relative;
  padding: 8px 22px;
  border: none;
  background: transparent;
  text-align: center;
}

.why-choose-features .feature + .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  border-left: 1px solid;
  border-image-source: linear-gradient(180deg, rgba(255, 255, 255, 0) 5.2%, #ffffff 43.96%, rgba(255, 255, 255, 0) 100%);
  border-image-slice: 1;
  opacity: 0.4;
}

.why-choose-features .feature-icon {
  width: auto;
  height: 33px;
  margin: 0 auto 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.why-choose-features .feature-icon img {
  height: 33px;
  width: auto;
  object-fit: contain;
}

.why-choose-features h6 {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #868686;
  margin-bottom: 7px;
  line-height: 1.2;
}

.why-choose-features .feature p {
  font-family: "Montserrat", sans-serif;
  color: #868686;
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
}

/* ─── FINANCE BLOCK (standalone) ─────────────────────────── */
.finance-block {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.finance-block .container { max-width: 1250px; }

.finance-block-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 28px;
  align-items: center;
}

.finance-block-grid .loc-block {
  padding: 24px 22px;
}

.finance-block-grid .loc-block h4 {
  font-size: 17px;
  margin-bottom: 14px;
}

.finance-block-grid .loc-block a,
.finance-block-grid .loc-block p {
  font-size: 13px;
  padding: 4px 0;
  line-height: 1.45;
}

.finance-block-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.finance-block-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #868686;
  margin-bottom: 14px;
}

.finance-block-tagline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  color: #868686;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.finance-block-tagline .not {
  font-size: 0.45em;
  font-weight: 400;
  color: #868686;
  display: block;
  margin: 8px 0 4px;
  letter-spacing: 2px;
}

.finance-block-tagline .past {
  color: var(--red);
  font-style: italic;
}

/* ─── CONTACT PAGE ───────────────────────────────────────── */
.contact-section { background: var(--black); padding: 72px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 32px 28px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-field { margin-bottom: 12px; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: #666; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #ff7080;
}

.contact-info p { color: #bbb; margin-bottom: 16px; line-height: 1.7; }
.contact-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.contact-info a { color: var(--white); }
.contact-info a:hover { color: var(--red); }

.contact-map {
  padding: 0 0 64px;
  background: var(--black);
}
.contact-map iframe {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  filter: invert(0.92) hue-rotate(180deg);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  color: var(--mid);
  font-family: "Montserrat", sans-serif;
}
.site-footer * { font-family: inherit; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.site-footer__brand img {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
}

.site-footer__brand p {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 18px;
  max-width: 320px;
}

.site-footer h5 {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #868686;
  margin-bottom: 16px;
}

.site-footer ul li { margin-bottom: 9px; font-size: 13px; }
.site-footer ul li a { color: var(--mid); transition: color 0.2s; }
.site-footer ul li a:hover { color: var(--red); }
.site-footer ul li a svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 6px; }

.site-footer__bottom {
  max-width: 1160px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* ─── MODAL (vehicle request) ───────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  width: 100%;
  max-width: 560px;
  padding: 32px;
  position: relative;
}

.modal__close {
  background: transparent;
  border: none;
  color: var(--white);
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px;
  cursor: pointer;
}
.modal__close svg { width: 22px; height: 22px; }

.modal__header { margin-bottom: 18px; }
.modal__header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 8px;
}
.modal__header h2 span { color: var(--red); }
.modal__header p { color: var(--mid); font-size: 14px; }

.modal__footer-note { font-size: 12px; color: #777; margin-top: 12px; text-align: center; }

.btn--full { display: block; width: 100%; margin-top: 6px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dk); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  /* Header still shown — drop the address so the right side fits. */
  .header-address { display: none; }
  .header-contact { gap: 16px; }
  .finance-card { display: none; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .why-choose-card { margin-top: -100px; }
  .why-choose-features { grid-template-columns: 1fr; }
  .why-choose-features .feature + .feature::before { display: none; }
  .finance-block-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .finance-block-grid > .finance-block-inner { order: 1; }
  .finance-block-grid > .loc-block:first-child { order: 2; }
  .finance-block-grid > .loc-block:last-child  { order: 3; }
  .hero--home .hero-content { padding: 70px 24px 120px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 360px; }
  .loc-item { min-width: 50%; }
  .inventory-layout { grid-template-columns: 1fr; }
  .vehicle-card__top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .vehicle-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  .vehicle-card__specs { row-gap: 14px; column-gap: 20px; }
  .vehicle-card__spec {
    justify-content: flex-start;
    flex-direction: row-reverse;
  }
  .vehicle-card__spec-text {
    text-align: left;
    padding-right: 0;
    padding-left: 14px;
    border-right: none;
    border-left: 1px solid #fff;
  }
  .vehicle-card__actions { flex-direction: column; align-items: stretch; }
  .vehicle-card__actions-right { justify-content: stretch; }
  .vehicle-card__btn { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { display: none; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0; }
  .site-nav ul li { width: 100%; }
  .site-nav a { padding: 16px 24px; }
  .mobile-header-row { display: flex; }
  .nav-toggle { display: block; }
  .nav-mobile-extras {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-phone { width: 100%; justify-content: center; color: #fff; }
  .nav-mobile-address {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    padding: 12px 16px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.3;
  }
  .nav-mobile-address svg { width: 16px; height: 16px; color: #fff; flex: none; }
}

@media (max-width: 599px) {
  .featured-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 48px; }
  .loc-item { min-width: 100%; }
  .cta-btns { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* When the mobile header gets really tight, drop optional socials
   (Instagram) so the essentials — Facebook + WhatsApp — still fit. */
@media (max-width: 400px) {
  .mobile-social-links .social-optional { display: none; }
}
