/* ================================================================
   AutoDrive Kenya — style.css
   Premium Kenyan Car Dealership — Mobile-First Stylesheet
   Built by Jirani Web Hub | jiraniiwebhub.co.ke
   ================================================================ */

/* ================================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   ================================================================ */
:root {
  /* Core Palette */
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #A07830;
  --black:       #0A0A0A;
  --charcoal:    #1A1A1A;
  --dark-card:   #242424;
  --mid-grey:    #3A3A3A;
  --border:      #2E2E2E;
  --text-primary:#FFFFFF;
  --text-muted:  #9A9A9A;
  --off-white:   #F5F5F5;
  --navy:        #0D1B2A;

  /* Light Mode Overrides (applied via body.light-mode) */
  --bg:          #0A0A0A;
  --bg-2:        #141414;
  --surface:     #1E1E1E;
  --surface-2:   #2A2A2A;
  --txt:         #FFFFFF;
  --txt-muted:   #9A9A9A;
  --brd:         rgba(255,255,255,0.08);
  --brd-gold:    rgba(201,168,76,0.3);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing Scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 20px rgba(201,168,76,0.15);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);

  /* Transitions */
  --t-fast: 0.18s ease;
  --t-mid:  0.3s ease;
  --t-slow: 0.5s ease;

  /* Layout */
  --max-w: 1280px;
  --nav-h: 70px;
}

/* Light Mode Theme */
body.light-mode {
  --bg:       #F5F5F5;
  --bg-2:     #EFEFEF;
  --surface:  #FFFFFF;
  --surface-2:#F0F0F0;
  --txt:      #0A0A0A;
  --txt-muted:#666666;
  --brd:      rgba(0,0,0,0.08);
  --brd-gold: rgba(160,120,48,0.3);
  --gold:     #A07830;
  --gold-light:#C9A84C;
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--t-mid), color var(--t-mid);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--gold-light); }

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: var(--r-full); }

/* ================================================================
   3. UTILITY CLASSES
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s5);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  transition: all var(--t-mid);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 2px solid rgba(255,255,255,0.5);
  transition: all var(--t-mid);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  transform: translateY(-2px);
}

.full-width { width: 100%; justify-content: center; }

.link-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--s12);
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
  padding: var(--s1) var(--s4);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-full);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--txt);
  line-height: 1.2;
  margin-bottom: var(--s4);
}
.section-sub {
  color: var(--txt-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   4. COOKIE BANNER
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--s4);
  left: var(--s4);
  right: var(--s4);
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
  z-index: 9999;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  transform: translateY(120%);
  transition: transform var(--t-slow);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}
.cookie-content i { color: var(--gold); font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.cookie-content p { font-size: 0.875rem; color: var(--txt-muted); }
.cookie-actions {
  display: flex;
  gap: var(--s3);
  justify-content: flex-end;
}
.btn-cookie-accept {
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: #fff;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--t-fast);
}
.btn-cookie-accept:hover { background: var(--gold-light); }
.btn-cookie-decline {
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--txt-muted);
  border: 1px solid var(--brd);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  transition: all var(--t-fast);
}
.btn-cookie-decline:hover { color: var(--txt); border-color: var(--txt-muted); }

/* ================================================================
   5. NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--brd);
  transition: background var(--t-mid), box-shadow var(--t-mid), height var(--t-mid);
}
.navbar.scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
  height: 60px;
}
body.light-mode .navbar {
  background: rgba(245,245,245,0.9);
}
body.light-mode .navbar.scrolled {
  background: rgba(245,245,245,0.98);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--txt);
  letter-spacing: -0.02em;
}
.logo-sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Desktop Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--s1);
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--txt-muted);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: var(--r-full);
  transition: left var(--t-mid), right var(--t-mid);
}
.nav-link:hover,
.nav-link.active {
  color: var(--txt);
}
.nav-link:hover::after,
.nav-link.active::after {
  left: var(--s3);
  right: var(--s3);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.nav-action-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-muted);
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--brd);
  transition: all var(--t-fast);
  text-decoration: none;
}
.nav-action-btn:hover { color: var(--gold); border-color: var(--brd-gold); }

.nav-call { color: #4CAF50 !important; }
.nav-call:hover { background: rgba(76,175,80,0.1) !important; }
.nav-whatsapp { color: #25D366 !important; }
.nav-whatsapp:hover { background: rgba(37,211,102,0.1) !important; }

/* Hamburger */
.hamburger {
  width: 38px; height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--brd);
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--txt);
  border-radius: var(--r-full);
  transition: all var(--t-mid);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 1023px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    right: -100%;
    width: min(300px, 85vw);
    height: calc(100vh - var(--nav-h));
    background: var(--charcoal);
    border-left: 1px solid var(--brd);
    padding: var(--s8) var(--s6);
    gap: var(--s2);
    overflow-y: auto;
    transition: right var(--t-slow);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link {
    font-size: 0.95rem;
    padding: var(--s3) var(--s4);
    border-radius: var(--r-md);
    border: 1px solid transparent;
  }
  .nav-link.active,
  .nav-link:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--brd-gold);
    color: var(--gold);
  }
  .nav-link::after { display: none; }
}

/* Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.nav-overlay.show { display: block; }

/* Search Bar */
.nav-search-bar {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--charcoal);
  border-bottom: 1px solid var(--brd-gold);
  padding: var(--s3) 0;
  display: none;
  z-index: 997;
}
.nav-search-bar.open { display: block; }
.nav-search-bar .nav-container {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.nav-search-bar input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-full);
  padding: var(--s3) var(--s5);
  color: var(--txt);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--t-fast);
}
.nav-search-bar input:focus { border-color: var(--gold); }
.nav-search-bar input::placeholder { color: var(--txt-muted); }
#searchClose {
  color: var(--txt-muted);
  font-size: 1.1rem;
  transition: color var(--t-fast);
}
#searchClose:hover { color: var(--gold); }

/* Desktop nav visible */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    gap: var(--s1);
    overflow: visible;
    transition: none;
  }
  .hamburger { display: none; }
}

/* ================================================================
   6. HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.75) 50%,
    rgba(10,10,10,0.55) 100%
  );
}

/* Gold Speed Lines */
.hero-speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-speed-lines::before,
.hero-speed-lines::after {
  content: '';
  position: absolute;
  top: 30%;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.4) 50%, transparent 100%);
  animation: speedLine 4s ease-in-out infinite;
}
.hero-speed-lines::after {
  top: 65%;
  animation-delay: 2s;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.2) 50%, transparent 100%);
}
@keyframes speedLine {
  0%   { transform: translateX(-100%) skewX(-15deg); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(100%) skewX(-15deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s8) var(--s5);
  padding-bottom: var(--s16);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--s5);
}
.headline-accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  display: inline-block;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--s8);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-bottom: var(--s12);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  max-width: 480px;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s5);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--s1);
}

/* Scroll Cue */
.hero-scroll-cue {
  position: absolute;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  animation: bounce 2s ease infinite;
  z-index: 2;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.hero-scroll-cue:hover { border-color: var(--gold); color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
  .hero-content { padding-bottom: var(--s20); }
}

/* ================================================================
   7. SEARCH SECTION
   ================================================================ */
.search-section {
  position: relative;
  z-index: 3;
  margin-top: -2px;
  padding: var(--s8) 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--brd);
}
.search-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s8);
  box-shadow: var(--shadow-card);
}
.search-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: var(--s5);
  text-align: center;
}
.search-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-muted);
}
.filter-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  color: var(--txt);
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%239A9A9A'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.filter-group select:focus { border-color: var(--gold); outline: none; }
.filter-btn-group { justify-content: flex-end; }
.btn-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.7rem 1.25rem;
  background: transparent;
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  color: var(--txt-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--t-fast);
  align-self: flex-end;
}
.btn-filter-reset:hover { border-color: var(--gold); color: var(--gold); }

@media (min-width: 600px) {
  .search-filters { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .search-filters { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .search-filters { grid-template-columns: repeat(7, 1fr); align-items: end; }
}

/* ================================================================
   8. INVENTORY
   ================================================================ */
.inventory-section {
  padding: var(--s20) 0;
  background: var(--bg);
}

.inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s8);
}
.result-count {
  font-size: 0.9rem;
  color: var(--txt-muted);
}
.result-count strong { color: var(--txt); }
.sort-group select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  color: var(--txt);
  font-size: 0.875rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%239A9A9A'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.sort-group select:focus { outline: none; border-color: var(--gold); }

/* Car Grid */
.car-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
}
@media (min-width: 580px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .car-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .car-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Car Card */
.car-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  position: relative;
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brd-gold);
}

.car-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.car-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.car-card:hover .car-card-img-wrap img { transform: scale(1.05); }

.car-badge {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-new { background: #1a7a3c; color: #fff; }
.badge-used { background: var(--gold-dark); color: #fff; }

.car-wishlist-btn {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: all var(--t-fast);
  border: 1px solid rgba(255,255,255,0.1);
}
.car-wishlist-btn:hover,
.car-wishlist-btn.active { color: #e74c3c; background: rgba(231,76,60,0.15); }

.car-compare-btn {
  position: absolute;
  bottom: var(--s3);
  right: var(--s3);
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  transition: all var(--t-fast);
  border: 1px solid rgba(255,255,255,0.1);
}
.car-compare-btn:hover,
.car-compare-btn.active { color: var(--gold); }

.car-card-body {
  padding: var(--s5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.car-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s1);
}
.car-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: var(--s3);
  line-height: 1.3;
}
.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.car-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--txt-muted);
  background: var(--surface-2);
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.car-meta-item i { color: var(--gold); font-size: 0.7rem; }
.car-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: var(--s4);
  margin-top: auto;
}
.car-price-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--txt-muted);
  font-family: var(--font-body);
}
.car-card-actions {
  display: flex;
  gap: var(--s3);
}
.btn-view-details {
  flex: 1;
  padding: 0.65rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  transition: all var(--t-fast);
  border: none;
  cursor: pointer;
}
.btn-view-details:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
}
.btn-testdrive {
  padding: 0.65rem 0.85rem;
  background: transparent;
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  color: var(--txt-muted);
  font-size: 0.8rem;
  transition: all var(--t-fast);
}
.btn-testdrive:hover { border-color: var(--gold); color: var(--gold); }

/* No Results */
.no-results {
  text-align: center;
  padding: var(--s20) 0;
  color: var(--txt-muted);
}
.no-results i { font-size: 3rem; color: var(--brd); margin-bottom: var(--s4); }
.no-results h3 { font-size: 1.25rem; color: var(--txt); margin-bottom: var(--s3); }

/* Load More */
.load-more-wrap {
  text-align: center;
  margin-top: var(--s12);
}
.btn-load-more {
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: 2px solid var(--brd-gold);
  border-radius: var(--r-full);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--t-mid);
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
}
.btn-load-more:hover {
  background: rgba(201,168,76,0.1);
  transform: translateY(-2px);
}

/* ================================================================
   9. BRANDS
   ================================================================ */
.brands-section {
  padding: var(--s20) 0;
  background: var(--bg-2);
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
@media (min-width: 600px) {
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .brands-grid { grid-template-columns: repeat(6, 1fr); }
}

.brand-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  cursor: pointer;
  transition: all var(--t-mid);
  text-align: center;
}
.brand-card:hover {
  border-color: var(--brd-gold);
  background: rgba(201,168,76,0.05);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.brand-logo-wrap {
  width: 52px; height: 52px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon { font-size: 1.5rem; color: var(--gold); }
.brand-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--txt);
}
.brand-count {
  font-size: 0.7rem;
  color: var(--txt-muted);
}

/* ================================================================
   10. WHY CHOOSE US
   ================================================================ */
.why-section {
  padding: var(--s20) 0;
  background: var(--bg);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  padding: var(--s6);
  text-align: center;
  transition: all var(--t-mid);
}
.why-card:hover {
  border-color: var(--brd-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.why-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0 auto var(--s4);
  transition: transform var(--t-mid);
}
.why-card:hover .why-icon { transform: scale(1.1) rotate(5deg); }
.why-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: var(--s3);
}
.why-card p { font-size: 0.85rem; color: var(--txt-muted); line-height: 1.6; }

/* ================================================================
   11. FINANCING
   ================================================================ */
.financing-section {
  padding: var(--s20) 0;
  background: var(--bg-2);
}
.financing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
}
@media (min-width: 900px) {
  .financing-layout { grid-template-columns: 1fr 1fr; }
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-xl);
  padding: var(--s8);
  box-shadow: var(--shadow-card);
}
.calc-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.calc-card h3 i { color: var(--gold); }
.calc-field {
  margin-bottom: var(--s5);
}
.calc-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: var(--s2);
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  color: var(--txt);
  font-size: 0.95rem;
  transition: border-color var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.calc-field input:focus,
.calc-field select:focus { border-color: var(--gold); outline: none; }
.calc-btn { width: 100%; justify-content: center; margin-bottom: var(--s6); }

.calc-result {
  background: var(--surface-2);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-lg);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.result-item span { color: var(--txt-muted); }
.result-item strong { font-family: var(--font-display); font-weight: 700; color: var(--txt); }
.highlight-gold { color: var(--gold) !important; font-size: 1.1rem !important; }

.banks-panel {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-xl);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.banks-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt);
}
.banks-panel p { font-size: 0.875rem; color: var(--txt-muted); }
.banks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.bank-card {
  background: var(--surface-2);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  text-align: center;
  transition: all var(--t-fast);
}
.bank-card:hover { border-color: var(--brd-gold); background: rgba(201,168,76,0.05); }
.bank-card i { color: var(--gold); font-size: 1.25rem; }
.bank-card span { font-size: 0.75rem; font-weight: 600; color: var(--txt); }

.mpesa-note {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  padding: var(--s4);
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-md);
}
.mpesa-note > i { color: var(--gold); font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.mpesa-note strong { display: block; font-size: 0.9rem; color: var(--txt); margin-bottom: 2px; }
.mpesa-note p { font-size: 0.8rem; color: var(--txt-muted); }

/* ================================================================
   12. TRADE-IN
   ================================================================ */
.tradein-section {
  padding: var(--s20) 0;
  background: var(--bg);
}
.tradein-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s10);
  align-items: center;
}
@media (min-width: 900px) {
  .tradein-layout { grid-template-columns: 1fr 1fr; }
}

.tradein-info .section-eyebrow { display: inline-block; margin-bottom: var(--s3); }
.tradein-info .section-title { text-align: left; }
.tradein-info p {
  color: var(--txt-muted);
  line-height: 1.7;
  margin-bottom: var(--s6);
  font-size: 0.95rem;
}
.tradein-perks {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.tradein-perks li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.9rem;
  color: var(--txt-muted);
}
.tradein-perks li i { color: #27ae60; font-size: 1rem; flex-shrink: 0; }

.tradein-form-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-xl);
  padding: var(--s8);
  box-shadow: var(--shadow-card);
}
.tradein-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: var(--s6);
}

/* Form Shared */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
@media (min-width: 500px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  color: var(--txt);
  font-size: 0.9rem;
  transition: border-color var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); outline: none; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--txt-muted); }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #e74c3c; }
.form-error {
  font-size: 0.75rem;
  color: #e74c3c;
  min-height: 1em;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: var(--r-md);
  color: #27ae60;
  font-size: 0.9rem;
  margin-top: var(--s4);
}

/* ================================================================
   13. SERVICES
   ================================================================ */
.services-section {
  padding: var(--s20) 0;
  background: var(--bg-2);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brd-gold);
}
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: var(--s4);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: var(--s3);
}
.service-card p { font-size: 0.85rem; color: var(--txt-muted); line-height: 1.6; }

/* ================================================================
   14. TESTIMONIALS
   ================================================================ */
.testimonials-section {
  padding: var(--s20) 0;
  background: var(--bg);
  overflow: hidden;
}
.testimonials-carousel-wrap { position: relative; }
.testimonials-carousel {
  display: flex;
  gap: var(--s5);
  overflow: hidden;
  padding-bottom: var(--s4);
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s6);
  min-width: 100%;
  transition: border-color var(--t-mid);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.testimonial-card.active { border-color: var(--brd-gold); }
.testimonial-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--txt);
  flex: 1;
  font-style: italic;
  position: relative;
}
.testimonial-quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  line-height: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-top: var(--s4);
  border-top: 1px solid var(--brd);
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--txt);
}
.author-info {
  font-size: 0.75rem;
  color: var(--txt-muted);
}
.testimonial-car {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  margin-top: var(--s8);
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--brd);
  color: var(--txt-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.carousel-dots { display: flex; gap: var(--s2); }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brd);
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  padding: 0;
}
.carousel-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .testimonials-carousel { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .testimonial-card { min-width: unset; }
  .carousel-controls { display: none; }
}

/* ================================================================
   15. GALLERY
   ================================================================ */
.gallery-section {
  padding: var(--s20) 0;
  background: var(--bg-2);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--surface);
}
.gallery-item:first-child { aspect-ratio: auto; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201,168,76,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  opacity: 0;
  transition: all var(--t-mid);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay {
  opacity: 1;
  background: rgba(10,10,10,0.4);
}

/* ================================================================
   16. FAQ
   ================================================================ */
.faq-section {
  padding: var(--s20) 0;
  background: var(--bg);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item.open { border-color: var(--brd-gold); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s6);
  background: none;
  color: var(--txt);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast);
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--t-mid);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-mid);
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 var(--s6) var(--s5);
  font-size: 0.9rem;
  color: var(--txt-muted);
  line-height: 1.7;
}

/* ================================================================
   17. CONTACT
   ================================================================ */
.contact-section {
  padding: var(--s20) 0;
  background: var(--bg-2);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 1.2fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
}
.cd-icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--txt); margin-bottom: 2px; }
.contact-detail p, .contact-detail a { font-size: 0.875rem; color: var(--txt-muted); line-height: 1.6; }
.contact-detail a:hover { color: var(--gold); }

.map-embed {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--brd);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-xl);
  padding: var(--s8);
  box-shadow: var(--shadow-card);
}
.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: var(--s6);
}

/* ================================================================
   18. FOOTER
   ================================================================ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--brd);
}
.footer-top { padding: var(--s16) 0 var(--s10); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s10);
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  margin-bottom: var(--s4);
}
.footer-logo i { font-size: 1.5rem; color: var(--gold); }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: var(--s5);
  max-width: 280px;
}
.footer-socials { display: flex; gap: var(--s3); }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  transition: all var(--t-fast);
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.1); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-col > p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--s5);
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: var(--s2);
  margin-bottom: var(--s5);
}
.newsletter-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  color: #fff;
  font-size: 0.875rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form button {
  padding: 0.65rem 1rem;
  background: var(--gold);
  border-radius: var(--r-md);
  color: #fff;
  transition: background var(--t-fast);
}
.newsletter-form button:hover { background: var(--gold-light); }
.footer-legal { display: flex; gap: var(--s4); flex-wrap: wrap; }
.footer-legal a { font-size: 0.75rem; color: rgba(255,255,255,0.3); transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--gold); }

.footer-bottom {
  padding: var(--s5) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: var(--gold); }
.heart { color: #e74c3c; }

/* ================================================================
   19. CAR DETAIL MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  overflow-y: auto;
}
.modal-container {
  background: var(--surface);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 900px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn var(--t-mid) ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: sticky;
  top: var(--s4);
  float: right;
  margin: var(--s4) var(--s4) 0 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--brd);
  color: var(--txt-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--t-fast);
}
.modal-close:hover { color: var(--gold); border-color: var(--brd-gold); }

.modal-gallery {
  clear: both;
  padding: 0 var(--s5) var(--s5);
}
.modal-main-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: var(--s3);
}
@media (min-width: 600px) {
  .modal-main-img { height: 340px; }
}
.modal-thumbs {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--s2);
}
.modal-thumbs::-webkit-scrollbar { display: none; }
.modal-thumb {
  flex-shrink: 0;
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.modal-thumb.active, .modal-thumb:hover { border-color: var(--gold); }

.modal-body { padding: var(--s5) var(--s6) var(--s8); }
.modal-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.modal-condition {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}
.modal-header-info h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: var(--s2);
}
.modal-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
}
.btn-wishlist-modal {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.btn-wishlist-modal:hover,
.btn-wishlist-modal.active { color: #e74c3c; border-color: rgba(231,76,60,0.4); }

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s6);
}
@media (min-width: 600px) {
  .modal-specs { grid-template-columns: repeat(3, 1fr); }
}
.modal-spec-item {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
}
.modal-spec-item span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-muted);
  margin-bottom: 2px;
}
.modal-spec-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--txt);
}

.modal-features h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--txt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s4);
}
.modal-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}
.feature-tag {
  padding: 5px 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: var(--gold);
}

.modal-finance-est {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--brd-gold);
  border-radius: var(--r-md);
  margin-bottom: var(--s6);
}
.modal-finance-est i { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; }
.modal-finance-est strong { display: block; font-size: 0.85rem; color: var(--txt); margin-bottom: 2px; }
.modal-finance-est p { font-size: 0.8rem; color: var(--txt-muted); }

.modal-actions {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}
.btn-whatsapp-modal {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.85rem 1.75rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.btn-whatsapp-modal:hover {
  background: #1da851;
  transform: translateY(-2px);
  color: #fff;
}

/* ================================================================
   20. FLOATING ELEMENTS
   ================================================================ */
.float-whatsapp {
  position: fixed;
  bottom: var(--s8);
  right: var(--s5);
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--t-mid);
  text-decoration: none;
}
.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  color: #fff;
}
.float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-full);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--charcoal);
}
.float-whatsapp:hover .float-tooltip { opacity: 1; }

.back-to-top {
  position: fixed;
  bottom: var(--s8);
  left: var(--s5);
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--brd-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.95rem;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-mid);
  box-shadow: var(--shadow-card);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
}

/* ================================================================
   21. COMPARISON TRAY
   ================================================================ */
.compare-tray {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--charcoal);
  border-top: 2px solid var(--gold);
  z-index: 950;
  padding: var(--s3) var(--s5);
  animation: slideUp var(--t-mid) ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.compare-tray-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}
.compare-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.compare-items { display: flex; gap: var(--s3); flex: 1; overflow-x: auto; }
.compare-chip {
  background: var(--surface-2);
  border: 1px solid var(--brd);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--txt);
  white-space: nowrap;
}
.compare-tray-actions { display: flex; gap: var(--s3); margin-left: auto; flex-shrink: 0; }
.btn-compare {
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background var(--t-fast);
}
.btn-compare:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-compare:not(:disabled):hover { background: var(--gold-light); }
.btn-compare-clear {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--brd);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  color: var(--txt-muted);
  transition: all var(--t-fast);
}
.btn-compare-clear:hover { color: #e74c3c; border-color: rgba(231,76,60,0.4); }

/* ================================================================
   22. TOAST NOTIFICATION
   ================================================================ */
.toast {
  position: fixed;
  top: calc(var(--nav-h) + var(--s4));
  right: var(--s5);
  background: var(--surface);
  border: 1px solid var(--brd-gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s5);
  font-size: 0.875rem;
  color: var(--txt);
  z-index: 3000;
  max-width: 300px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateX(120%);
  transition: all var(--t-mid);
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================================
   23. SKELETON LOADING
   ================================================================ */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.skeleton-img { height: 180px; border-radius: 0; }
.skeleton-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.skeleton-line { height: 14px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

/* ================================================================
   24. MEDIA QUERIES — LARGE SCREENS
   ================================================================ */
@media (min-width: 1200px) {
  :root { --nav-h: 76px; }
  .container { padding: 0 var(--s8); }
  .hero-content { padding: var(--s10) var(--s8); padding-bottom: var(--s20); }
  .search-card { padding: var(--s10); }
}

@media (min-width: 1440px) {
  .hero-headline { font-size: 6.5rem; }
}

/* ================================================================
   25. PRINT STYLES
   ================================================================ */
@media print {
  .navbar, .float-whatsapp, .back-to-top, .cookie-banner,
  .compare-tray, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}