/* === Car Details & Gallery (from volvo-xc60.html) === */
.cd-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 120px 0 40px;
  color: #fff;
}
.cd-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.cd-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.cd-hero .breadcrumb a:hover { color: #c9a84c; }
.cd-hero h1 { color: #fff; font-size: clamp(1.6rem,4vw,2.8rem); margin-bottom: 0.5rem; }
.cd-hero .subtitle { color: rgba(255,255,255,0.7); font-size: 1rem; }
.cd-body { padding: 3rem 0 4rem; background: #f5f5f5; }
.cd-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.cd-gallery { flex: 1; min-width: 0; }
.cd-sidebar {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}
.gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
}
.gallery-main .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-main .slide.active { opacity: 1; }
.gallery-main .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,26,46,0.75);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
}
.gal-btn:hover { background: #c9a84c; color: #1a1a2e; }
.gal-btn.prev { left: 12px; }
.gal-btn.next { right: 12px; }
.gal-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(26,26,46,0.75);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 5;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #c9a84c; border-radius: 2px; }
.thumb {
  flex-shrink: 0;
  width: 76px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.thumb.active, .thumb:hover { border-color: #c9a84c; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cd-features {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.cd-features h3 { font-size: 1.1rem; margin-bottom: 1rem; color: #1a1a2e; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #333;
}
.feat-item::before {
  content: '✓';
  color: #c9a84c;
  font-weight: 700;
  flex-shrink: 0;
}
.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  overflow: hidden;
}
.info-card-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 1.5rem;
  color: #fff;
}
.info-card-header h2 { color: #fff; font-size: 1.2rem; margin-bottom: 0.25rem; }
.info-card-header .sub { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.info-price {
  margin-top: 1rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #c9a84c;
}
.info-price small { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 400; }
.info-card-body { padding: 1.25rem; }
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.spec-box {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.spec-icon { font-size: 1.2rem; margin-bottom: 4px; }
.spec-val { font-weight: 700; font-size: 0.82rem; color: #1a1a2e; display: block; }
.spec-lbl { font-size: 0.72rem; color: #888; }
.info-btns { display: flex; flex-direction: column; gap: 10px; }
.info-btns a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-gold { background: #c9a84c; color: #1a1a2e; }
.btn-gold:hover { background: #a07830; color: #fff; transform: translateY(-1px); }
.btn-dark { background: #1a1a2e; color: #fff; }
.btn-dark:hover { background: #16213e; transform: translateY(-1px); }
.btn-outline-dark { border: 2px solid #1a1a2e; color: #1a1a2e; background: transparent; }
.btn-outline-dark:hover { background: #1a1a2e; color: #fff; }
.cd-cta {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 3rem 0;
  text-align: center;
  color: #fff;
}
.cd-cta h2 { color: #fff; margin-bottom: 0.75rem; }
.cd-cta p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.cd-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cd-cta-btns a {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav:hover { background: #c9a84c; color: #1a1a2e; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .cd-layout { flex-direction: column; }
  .cd-sidebar { width: 100%; position: static; }
  .specs-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
}
/* =========================
   CAR DETAILS LAYOUT
========================= */

.cd-body {
  padding: 80px 0;
  background: #f8f9fa;
}

.cd-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

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

/* ===== Gallery ===== */

.gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.slide { display: none; }
.slide.active { display: block; }

.gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 20px;
}

.gal-btn.prev { left: 10px; }
.gal-btn.next { right: 10px; }

.gal-counter {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* ===== Thumbnails ===== */

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.gallery-thumbs img {
  width: 100%;
  border-radius: 8px;
}

.thumb {
  flex: 1;
  cursor: pointer;
  opacity: 0.6;
}

.thumb.active {
  opacity: 1;
  border: 2px solid #c9a84c;
}

/* ===== Sidebar ===== */

.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.info-card-header {
  padding: 25px;
  background: #1a1a2e;
  color: #fff;
}

.info-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 10px;
}

.info-card-body {
  padding: 25px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.spec-box {
  background: #f1f3f5;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.spec-icon {
  font-size: 20px;
}

.spec-val {
  font-weight: 600;
}

.spec-lbl {
  font-size: 0.8rem;
  color: #666;
}

/* ===== Features ===== */

.cd-features {
  margin-top: 40px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 10px;
}

.feat-item {
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 0.9rem;
}

/* ===== CTA ===== */

.cd-cta {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cd-cta h2 {
  margin-bottom: 15px;
}

.cd-cta-btns a {
  display: inline-block;
  margin: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
}
/* =============================================
   AUTOHAUS - Luxury Car Dealership Stylesheet
   ============================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #c9a84c;
  --accent-light: #e8c97a;
  --accent-dark: #a07830;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --gray: #888888;
  --dark-gray: #333333;
  --text: #222222;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.2);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Lato', 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-primary);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

p { margin-bottom: 1rem; color: var(--dark-gray); }

/* --- Utility Classes --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: var(--accent);
  color: var(--primary);
}

.badge-new {
  background: #28a745;
  color: white;
}

.badge-sold {
  background: #dc3545;
  color: white;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: var(--primary);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.navbar-brand .logo-text span {
  color: var(--accent);
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--accent);
  background: rgba(201,168,76,0.1);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-phone {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,46,0.85) 0%,
    rgba(26,26,46,0.5) 50%,
    rgba(26,26,46,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 1s ease;
}

.hero-content .badge {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 3rem;
  background: rgba(26,26,46,0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.3);
}

.hero-stat {
  text-align: center;
  color: var(--white);
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.hero-stat .label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
  padding: 5rem 0;
  background: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

/* =============================================
   FEATURED CARS SECTION
   ============================================= */
.featured-cars {
  padding: 5rem 0;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* =============================================
   CAR CARD
   ============================================= */
.car-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.car-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-card-image img {
  transform: scale(1.05);
}

.car-card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.car-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.car-card:hover .car-card-overlay {
  opacity: 1;
}

.car-card-body {
  padding: 1.5rem;
}

.car-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.car-card-subtitle {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.car-card-specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.car-spec {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--dark-gray);
}

.car-spec .icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

.car-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.car-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.car-price-sub {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 400;
}

/* =============================================
   LISTINGS PAGE
   ============================================= */
.listings-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
}

.listings-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.listings-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

.listings-section {
  padding: 4rem 0;
}

.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.listings-count {
  font-size: 0.95rem;
  color: var(--gray);
}

.listings-count strong {
  color: var(--primary);
}

/* =============================================
   CAR DETAIL PAGE
   ============================================= */
.car-detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 7rem 0 3rem;
  color: var(--white);
}

.car-detail-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.car-detail-header .breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.car-detail-header .breadcrumb a {
  color: var(--accent);
}

.car-detail-header .breadcrumb a:hover {
  text-decoration: underline;
}

.car-detail-section {
  padding: 4rem 0;
}

.car-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 62%) minmax(0, 38%);
  gap: 2rem;
  align-items: start;
}

/* Main Image Slider */
.car-main-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.main-slider-track {
  position: relative;
  height: 480px;
}

.main-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.main-slide.active {
  opacity: 1;
}

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

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,26,46,0.7);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
}

.slider-nav:hover {
  background: var(--accent);
  color: var(--primary);
}

.slider-nav.prev { left: 1rem; }
.slider-nav.next { right: 1rem; }

.slider-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(26,26,46,0.7);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  z-index: 5;
}

/* Thumbnails */
.car-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.car-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.car-thumbnails::-webkit-scrollbar-track {
  background: var(--border);
}

.car-thumbnails::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumb.active,
.thumb:hover {
  border-color: var(--accent);
}

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

/* Car Info Sidebar */
.car-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.car-info-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2rem;
  color: var(--white);
}

.car-info-header h2 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.car-info-header .car-variant {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.car-info-price {
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.car-info-price .vat {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.car-info-body {
  padding: 1.5rem;
}

.car-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  background: var(--light-gray);
  padding: 0.75rem;
  border-radius: var(--radius);
  text-align: center;
}

.spec-item .spec-icon {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.spec-item .spec-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: block;
}

.spec-item .spec-label {
  font-size: 0.75rem;
  color: var(--gray);
}

.car-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.car-contact-buttons .btn {
  justify-content: center;
}

/* Features List */
.car-features-section {
  margin-top: 3rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--light-gray);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.feature-item::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--accent);
  color: var(--primary);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-counter {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* =============================================
   KFZ SERVICE PAGE
   ============================================= */
.service-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
}

.service-header h1 {
  color: var(--white);
}

.service-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

.services-section {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}

.service-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

/* =============================================
   ÜBER UNS PAGE
   ============================================= */
.about-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
}

.about-header h1 {
  color: var(--white);
}

.about-section {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content h2 span {
  color: var(--accent);
}

.about-content p {
  color: var(--dark-gray);
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--radius);
}

.value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
}

/* =============================================
   KONTAKT PAGE
   ============================================= */
.contact-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
}

.contact-header h1 {
  color: var(--white);
}

.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--light-gray);
  border-radius: var(--radius);
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-item-content p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.contact-item-content a {
  color: var(--accent-dark);
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
}

.form-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  border: 1px solid #c3e6cb;
}

.form-success.visible {
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand .logo-text span {
  color: var(--accent);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--primary);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-contact-item .icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* =============================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================= */
.legal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
}

.legal-header h1 {
  color: var(--white);
}

.legal-section {
  padding: 5rem 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--dark-gray);
}

.legal-content p {
  color: var(--dark-gray);
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  color: var(--dark-gray);
  margin-bottom: 0.4rem;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 60%);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .car-detail-grid {
    grid-template-columns: 1fr;
  }

  .car-info-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-stats {
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    bottom: 1.5rem;
  }

  .hero-stat .number {
    font-size: 1.5rem;
  }

  .cars-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .car-specs-list {
    grid-template-columns: 1fr 1fr;
  }

  .main-slider-track {
    height: 280px;
  }

  .lightbox-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .car-specs-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   PAGE LOADER
   ============================================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: var(--white);
}

.loader-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.loader-logo span {
  color: var(--accent);
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loadBar 1.5s ease forwards;
}

@keyframes loadBar {
  from { width: 0; }
  to { width: 100%; }
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  position: relative;
  background: var(--primary);
  padding: 8rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.97) 0%, rgba(22,33,62,0.85) 100%);
  z-index: 1;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.5);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

/* =============================================
   MOBILE OVERLAY
   ============================================= */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  display: none;
}
.mobile-overlay.active {
  display: block;
}

/* =============================================
   ANIMATE ON SCROLL (alias)
   ============================================= */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE GRID FIXES FOR INNER PAGES
   ============================================= */
@media (max-width: 768px) {
  .page-header { padding: 6rem 0 3rem; }
  .page-header h1 { font-size: 1.8rem; }
}


/* =============================================
   COMPREHENSIVE MOBILE FIXES v2
   ============================================= */

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Navbar mobile */
@media (max-width: 768px) {
  .navbar { padding: 0.6rem 0; }
  .navbar .container { padding: 0 1rem; }
  .navbar-brand img { height: 36px; }
  .navbar-nav { display: none !important; }
  .navbar-cta { display: none !important; }
  .hamburger { display: flex !important; z-index: 10001; position: relative; }
}

/* Mobile Menu open state */
.mobile-menu.open {
  display: flex !important;
  transform: translateX(0) !important;
}

/* Hero mobile */
@media (max-width: 768px) {
  .hero { min-height: 70vh; height: 70vh; }
  .hero-content { padding: 0 1rem; }
  .hero-content h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); line-height: 1.25; }
  .hero-content p { font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { display: none !important; }
}
@media (max-width: 480px) {
  .hero { min-height: 55vh; height: 55vh; }
  .hero-content h1 { font-size: 1.4rem; }
}

/* Features grid mobile */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr !important; }
}

/* Car cards grid mobile */
@media (max-width: 900px) {
  .cars-grid { grid-template-columns: 1fr 1fr !important; gap: 1.25rem; }
}
@media (max-width: 580px) {
  .cars-grid { grid-template-columns: 1fr !important; }
}

/* Listings page mobile */
@media (max-width: 768px) {
  .listings-header { padding: 6rem 0 2.5rem; }
  .listings-header h1 { font-size: 1.8rem; }
  .listings-toolbar { flex-direction: column !important; gap: 1rem; align-items: stretch !important; }
  .listings-section { padding: 2rem 0; }
}

/* Services grid mobile */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr !important; }
}

/* Section titles mobile */
@media (max-width: 480px) {
  .section-title h2 { font-size: 1.4rem; }
  .section-title p { font-size: 0.88rem; }
}

/* Page header mobile */
@media (max-width: 768px) {
  .page-header { padding: 5.5rem 0 2.5rem; }
  .page-header h1 { font-size: 1.7rem; }
  .page-header p { font-size: 0.9rem; }
}

/* Footer mobile */
@media (max-width: 768px) {
  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.75rem; }
  .footer-brand img { height: 40px; }
  .footer-bottom { flex-direction: column !important; gap: 0.5rem; text-align: center; }
  .footer-bottom-links { justify-content: center !important; }
}

/* About page mobile */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .about-values { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .about-values { grid-template-columns: 1fr !important; }
}

/* Container padding mobile */
@media (max-width: 480px) {
  .container { padding: 0 0.875rem; }
}

/* Scroll-top button */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: #c9a84c;
  color: #1a1a2e;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 500;
  transition: all 0.2s;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: #a07830; color: #fff; transform: translateY(-2px); }

/* Car detail page mobile */
@media (max-width: 900px) {
  .cd-layout { flex-direction: column !important; }
  .cd-sidebar { width: 100% !important; position: static !important; }
  .specs-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 600px) {
  .specs-grid { grid-template-columns: 1fr 1fr !important; }
  .feat-grid { grid-template-columns: 1fr !important; }
  .cd-hero h1 { font-size: 1.5rem !important; }
  .gallery-thumbs .thumb { width: 60px !important; height: 45px !important; }
}
