/* ================================================================
   AUTOMARKET THEME — Redesign v2.0
   Inspired by toyota.astra.co.id
   ================================================================ */

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
  --red:        #EB0A1E;
  --red-dark:   #c00817;
  --red-light:  #fff0f0;
  --black:      #1A1A1A;
  --gray-900:   #222222;
  --gray-700:   #444444;
  --gray-500:   #666666;
  --gray-400:   #757575;
  --gray-200:   #E5E5E5;
  --gray-100:   #F5F5F5;
  --white:      #FFFFFF;
  --green-wa:   #25D366;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full:999px;
  --header-h:   64px;
  --transition: 0.25s ease;
  --font:       'Toyota Type', system-ui, -apple-system, sans-serif;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ================================================================
   CONTAINER
   ================================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-fluid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 700; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--black); margin-bottom: 12px; }
.section-subtitle { font-size: 1rem; color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 48px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.9375rem; border: 2px solid transparent; transition: var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-white:hover { background: var(--gray-100); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--gray-900); }
.btn-wa { background: var(--green-wa); color: var(--white); border-color: var(--green-wa); }
.btn-wa:hover { background: #1da851; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn-full { width: 100%; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.site-logo {
  font-size: 1.625rem; font-weight: 900; color: var(--red);
  letter-spacing: 6px; text-transform: uppercase; flex-shrink: 0;
}
.site-logo-container {
  display: flex; align-items: center; height: 100%; max-height: var(--header-h);
}
.site-logo-container img {
  max-height: 36px; width: auto; object-fit: contain; display: block;
}
.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav ul li a {
  display: block; padding: 10px 16px; font-size: 0.9375rem; font-weight: 600;
  color: var(--gray-700); border-radius: var(--radius-sm); transition: var(--transition);
}
.site-nav ul li a:hover, .site-nav ul li a.active { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-wa-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--green-wa); color: var(--white) !important;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 700; transition: var(--transition);
}
.header-wa-btn:hover { background: #1da851; }
.header-wa-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; background: none; border: none;
  padding: 4px;
}
.hamburger span {
  display: block; height: 2px; background: var(--black);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5);
}
.mobile-nav.open { display: flex; }
.mobile-nav-inner {
  background: var(--white); width: 280px; height: 100%;
  display: flex; flex-direction: column; padding: 80px 24px 32px;
  gap: 4px; overflow-y: auto;
}
.mobile-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-list li { padding: 0; margin: 0; }
.mobile-nav-inner a, .mobile-nav-list a {
  display: block; padding: 14px 0; font-size: 1rem; font-weight: 600;
  color: var(--gray-700); border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.mobile-nav-inner a:hover { color: var(--red); }
.mobile-nav-inner a.mobile-nav-wa {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-wa); color: var(--white) !important;
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-weight: 700; margin-top: 16px; justify-content: center;
  border: none;
}
.mobile-nav-inner a.mobile-nav-wa:hover { background: #1da851; color: var(--white) !important; }

/* Main offset */
#main-content { margin-top: var(--header-h); }

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero-slider {
  position: relative; width: 100%; overflow: hidden;
  background: var(--gray-100);
  /* Height set via aspect ratio (16:7 is taller than 21:9) */
  aspect-ratio: 16 / 7;
  max-height: 850px; min-height: 450px;
}
.hero-slides-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
/* Arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5); border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.25rem; transition: var(--transition); cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.45); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
/* Dots */
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: var(--white); transform: scale(1.25); }

/* Hero Quick Actions Bar */
.hero-quick-actions {
  display: flex; background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.hero-quick-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 16px; font-size: 0.9375rem; font-weight: 700; color: var(--gray-700);
  border: none; background: none; border-right: 1px solid var(--gray-200);
  transition: var(--transition); cursor: pointer; text-decoration: none;
}
.hero-quick-btn:last-child { border-right: none; }
.hero-quick-btn:hover { color: var(--red); background: var(--red-light); }
.hero-quick-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }

/* ================================================================
   CAR GRID & CARDS
   ================================================================ */
.cars-section { padding: 72px 0; background: var(--white); }
.cars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.car-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.car-card-image-wrap {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--gray-100); overflow: hidden;
}
.car-card-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.car-card:hover .car-card-image-wrap img { transform: scale(1.04); }
.car-card-image-wrap a { display: block; height: 100%; }

.car-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: var(--white);
  font-size: 0.6875rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em;
}
.car-badge.sold { background: var(--gray-500); }
.car-badge.new { background: #0070c0; }

.car-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.car-card-tipe {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 6px;
}
.car-card-name {
  font-size: 1.0625rem; font-weight: 700; color: var(--black);
  margin-bottom: 4px; line-height: 1.3;
}
.car-card-varian {
  font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 12px;
}
.car-card-price {
  font-size: 1.3125rem; font-weight: 800; color: var(--red);
  margin-bottom: 12px; margin-top: auto;
}
.car-card-specs {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.car-card-spec { font-size: 0.8rem; color: var(--gray-500); display: flex; align-items: center; gap: 5px; }
.car-card-spec svg { width: 13px; height: 13px; fill: var(--gray-400); }

.car-card-actions { display: flex; gap: 8px; }
.car-card-actions .btn-detail {
  flex: 1; padding: 10px 0; border: 2px solid var(--red); color: var(--red);
  background: transparent; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.875rem; text-align: center; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.car-card-actions .btn-detail:hover { background: var(--red); color: var(--white); }
.car-card-actions .btn-wa-sm {
  background: var(--green-wa); color: var(--white);
  border: none; border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; align-items: center; transition: var(--transition);
}
.car-card-actions .btn-wa-sm:hover { background: #1da851; }
.car-card-actions .btn-wa-sm svg { width: 18px; height: 18px; fill: currentColor; }

.section-view-all { text-align: center; margin-top: 40px; }

/* ================================================================
   PILIH MOBIL SECTION
   ================================================================ */
.pilih-mobil-tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 32px;
  overflow-x: auto;
  white-space: nowrap;
}
.pilih-mobil-tab {
  background: none;
  border: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-500);
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
  transition: var(--transition);
}
.pilih-mobil-tab:hover {
  color: var(--black);
}
.pilih-mobil-tab.active {
  color: var(--black);
}
.pilih-mobil-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.pilih-mobil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pilih-mobil-card {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 16px 20px;
  background: var(--white);
  transition: var(--transition);
  text-decoration: none;
}
.pilih-mobil-card:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow-sm);
}

.pm-info {
  flex: 1;
  padding-right: 16px;
}
.pm-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.2;
}
.pm-price-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.pm-price {
  font-weight: 700;
  color: var(--black);
}
.pm-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-badge {
  display: inline-block;
  border: 1px solid var(--gray-700);
  color: var(--black);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.pm-image {
  width: 180px;
  flex-shrink: 0;
}
.pm-image img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* ================================================================
   PROMO SECTION
   ================================================================ */
.promo-section {
  padding: 80px 0; background: var(--red); color: var(--white); text-align: center;
}
.promo-section .section-label { color: rgba(255,255,255,0.7); }
.promo-section .section-title { color: var(--white); }
.promo-section .section-subtitle { color: rgba(255,255,255,0.8); max-width: 600px; }
.promo-tag {
  display: inline-block; background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius-full);
  padding: 4px 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.promo-section .btn-white { margin-top: 28px; border-radius: var(--radius-full); }

/* ================================================================
   SALES PROFILE SECTION
   ================================================================ */
.sales-section { padding: 80px 0; background: var(--gray-100); }
.sales-card {
  display: flex; align-items: center; gap: 48px;
  max-width: 920px; margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.sales-img-wrap {
  flex-shrink: 0; width: 220px; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sales-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sales-info { flex: 1; border-left: 4px solid var(--red); padding-left: 32px; }
.sales-info .section-label { margin-bottom: 8px; }
.sales-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--black); margin-bottom: 12px; }
.sales-info p { color: var(--gray-500); margin-bottom: 24px; line-height: 1.8; }
.sales-name { font-size: 1.125rem; font-weight: 700; color: var(--black); margin-bottom: 16px; }
.sales-contacts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.sales-contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-weight: 700; font-size: 1rem;
  transition: var(--transition);
}
.sales-contact-link:hover { color: var(--red-dark); }
.sales-contact-link svg { width: 20px; height: 20px; fill: currentColor; }

/* ================================================================
   WHY US / FEATURES
   ================================================================ */
.features-section { padding: 80px 0; background: var(--gray-100); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2.25rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section { padding: 80px 0; background: var(--black); text-align: center; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.65); margin-bottom: 32px; font-size: 1.0625rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--white); border-top: 1px solid var(--gray-200); padding-top: 0; }
.footer-top {
  display: flex; justify-content: center; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid var(--gray-200);
}
.back-to-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--gray-700); font-weight: 600;
  background: none; border: none; transition: var(--transition);
}
.back-to-top:hover { color: var(--red); }
.footer-body { padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .site-logo, .footer-brand .site-logo-container { margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gray-200); color: var(--gray-500);
  font-size: 1rem; transition: var(--transition);
}
.footer-social-link:hover { border-color: var(--red); color: var(--red); }

.footer-col h3 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--black); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem; color: var(--gray-500); transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--red); }
.footer-col .footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--gray-500); margin-bottom: 10px;
}
.footer-col .footer-contact-item svg { width: 16px; height: 16px; fill: var(--gray-400); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  background: var(--gray-100); margin-top: 48px;
  padding: 16px 24px; text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--gray-400); }

/* ================================================================
   FLOATING WA BUTTON
   ================================================================ */
.floating-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-wa); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.floating-wa:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 24px rgba(37,211,102,0.55); }
.floating-wa svg { width: 30px; height: 30px; fill: var(--white); }

/* ================================================================
   SINGLE MOBIL PAGE
   ================================================================ */
.single-car-page { padding: 40px 0 80px; }
.car-detail-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
.car-gallery { margin-bottom: 24px; }
.gallery-main-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--gray-100); }
.gallery-main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 80px; height: 56px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.car-detail-right { position: sticky; top: calc(var(--header-h) + 24px); }
.car-detail-panel { padding: 0; }
.car-detail-badge { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.car-detail-badge .car-badge { position: static; display: inline-block; }
.car-detail-tipe { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
.car-detail-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--black); margin-bottom: 6px; }
.car-detail-varian { font-size: 1rem; color: var(--gray-500); margin-bottom: 20px; }
.car-detail-price { font-size: 2rem; font-weight: 800; color: var(--red); margin-bottom: 24px; }
.car-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.spec-row { display: contents; }
.spec-label, .spec-value { padding: 14px 18px; font-size: 0.875rem; border-bottom: 1px solid var(--gray-200); }
.spec-label { color: var(--gray-500); background: var(--gray-100); font-weight: 600; }
.spec-value { color: var(--black); font-weight: 600; }
.spec-label:last-of-type, .spec-value:last-of-type { border-bottom: none; }
.car-detail-actions { display: flex; flex-direction: column; gap: 12px; }
.car-detail-actions .btn { border-radius: var(--radius-sm); width: 100%; font-size: 1rem; }

/* Sticky WA bar mobile */
.sticky-wa-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--white); border-top: 1px solid var(--gray-200);
  padding: 12px 16px; gap: 10px;
}

/* Lightbox Overlay */
.lightbox-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9); z-index: 9999;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; color: var(--white);
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* Related cars */
.related-cars-section { padding: 64px 0; background: var(--gray-100); }

/* ================================================================
   CATALOG / ARCHIVE PAGE
   ================================================================ */
.catalog-section { padding: 40px 0 80px; }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.catalog-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

/* Filter Card */
.filter-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.filter-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.filter-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--black); }
.filter-reset-btn { font-size: 0.8125rem; color: var(--red); font-weight: 600; background: none; border: none; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-group-label { font-size: 0.8125rem; font-weight: 700; color: var(--black); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.875rem; color: var(--gray-700); }
.filter-option input[type="radio"] { accent-color: var(--red); width: 15px; height: 15px; }
.filter-option:hover { color: var(--red); }

.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.catalog-header h1 { font-size: 1.25rem; font-weight: 700; }
.catalog-count { font-size: 0.875rem; color: var(--gray-500); }
.filter-mobile-toggle {
  display: none; align-items: center; gap: 8px;
  background: var(--black); color: var(--white); padding: 10px 18px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.875rem; border: none;
}

/* Empty state */
.cars-empty { text-align: center; padding: 80px 24px; }
.cars-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.cars-empty h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.cars-empty p { color: var(--gray-500); }

/* ================================================================
   QUICK SEARCH BAR (Homepage)
   ================================================================ */
.quick-search-section { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 24px 0; }
.quick-search-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 140px; }
.form-group label { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; }
.form-group select, .form-group input {
  height: 44px; padding: 0 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 0.9375rem; color: var(--black);
  background: var(--white); outline: none; transition: var(--transition);
}
.form-group select:focus, .form-group input:focus { border-color: var(--red); }

/* ================================================================
   PAGE TEMPLATES
   ================================================================ */
.page-hero { padding: 60px 0 40px; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: var(--gray-500); font-size: 1rem; }
.page-body { padding: 60px 0 80px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.contact-form-group label { font-size: 0.875rem; font-weight: 700; color: var(--black); }
.contact-form-group input, .contact-form-group textarea, .contact-form-group select {
  padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.9375rem; transition: var(--transition); background: var(--white);
}
.contact-form-group input:focus, .contact-form-group textarea:focus { border-color: var(--red); outline: none; }
.contact-form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; width: 44px; height: 44px; background: var(--red-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.contact-info-item h4 { font-size: 0.875rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.contact-info-item p { font-size: 0.875rem; color: var(--gray-500); }

/* Visi Misi */
.visi-misi { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.visi-misi-card { background: var(--gray-100); border-radius: var(--radius-lg); padding: 32px; border-top: 4px solid var(--red); }
.visi-misi-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; color: var(--red); }
.visi-misi-card p { color: var(--gray-700); line-height: 1.8; }

/* Promo page */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promo-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.promo-card-image { aspect-ratio: 16/9; background: var(--gray-200); overflow: hidden; }
.promo-card-image img { width: 100%; height: 100%; object-fit: cover; }
.promo-card-body { padding: 20px; }
.promo-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.promo-card-body p { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 16px; }
.promo-card-footer { padding: 0 20px 20px; }

/* ================================================================
   ALERTS / NOTICES
   ================================================================ */
.site-alert { padding: 16px 24px; background: #fff3cd; border-left: 4px solid #ffc107; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.9375rem; }

/* ================================================================
   RESPONSIVE — TABLET (max 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .header-inner { padding: 0 20px; }
  .site-nav ul { gap: 2px; }
  .site-nav ul li a { padding: 10px 12px; font-size: 0.875rem; }
  .cars-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 240px 1fr; gap: 24px; }
  .car-detail-layout { grid-template-columns: 1fr 380px; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sales-card { gap: 40px; }
  .sales-img-wrap { width: 200px; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { gap: 32px; }
}

/* ================================================================
   RESPONSIVE — MOBILE (max 768px)
   ================================================================ */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .container { padding: 0 16px; }
  .container-fluid { padding: 0 16px; }

  /* Header */
  .site-nav { display: none; }
  .header-wa-btn span { display: none; }
  .header-wa-btn { padding: 8px 10px; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-slider { aspect-ratio: 16 / 9; max-height: 450px; min-height: 200px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .hero-quick-actions { flex-direction: column; }
  .hero-quick-btn { padding: 14px 16px; justify-content: flex-start; border-right: none; border-bottom: 1px solid var(--gray-200); }
  .hero-quick-btn:last-child { border-bottom: none; }

  /* Cars Grid */
  .cars-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pilih-mobil-grid { grid-template-columns: 1fr; gap: 12px; }
  .pilih-mobil-tabs { margin-bottom: 24px; }
  .pilih-mobil-tab { font-size: 0.75rem; padding: 12px 16px; }
  .pilih-mobil-card { padding: 12px 16px; }
  .pm-image { width: 140px; }
  .pm-name { font-size: 0.9375rem; }
  
  .car-card-body { padding: 12px 14px 14px; }
  .car-card-spec { font-size: 0.75rem; }

  /* Sections */
  .cars-section, .tipe-section, .promo-section, .sales-section, .features-section, .cta-section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature-card { padding: 24px 16px; }
  .feature-icon { font-size: 1.75rem; }
  .feature-card h3 { font-size: 0.9375rem; }
  .sales-card { flex-direction: row; gap: 16px; align-items: center; padding: 24px 20px; }
  .sales-img-wrap { width: 110px; max-width: 110px; align-self: center; border-radius: var(--radius-md); }
  .sales-info { border-left: 3px solid var(--red); border-top: none; padding-left: 16px; padding-top: 0; }
  .sales-info .section-label { font-size: 0.65rem; margin-bottom: 4px; }
  .sales-info h2 { font-size: 1.125rem; margin-bottom: 4px; line-height: 1.3; }
  .sales-info p { display: none; }
  .sales-name { font-size: 0.9375rem; margin-bottom: 12px; }
  .sales-contacts { gap: 6px; margin-bottom: 16px; }
  .sales-contact-link { font-size: 0.8125rem; }
  .sales-contact-link svg { width: 16px; height: 16px; }
  .sales-info .btn { padding: 8px 12px; font-size: 0.8125rem; }

  /* Quick Search */
  .quick-search-form { flex-direction: column; gap: 12px; }
  .form-group { min-width: 100%; }

  /* Catalog */
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; display: none; }
  .catalog-sidebar.open { display: block; }
  .filter-mobile-toggle { display: flex; }

  /* Single mobil */
  .car-detail-layout { grid-template-columns: 1fr; }
  .car-gallery { position: static; }
  .sticky-wa-bar { display: flex; }
  .floating-wa { bottom: 80px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .floating-wa { bottom: 24px; }

  /* Page templates */
  .contact-layout { grid-template-columns: 1fr; }
  .visi-misi { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .car-specs-grid { grid-template-columns: 1fr; }
  .spec-label, .spec-value { border-right: none; }
}

@media (max-width: 480px) {
  .cars-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tipe-pills { gap: 8px; }
  .tipe-pill { padding: 10px 18px; font-size: 0.875rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
