/* ============================================================
   Pinnacle Motors — Premium Dealership UI
   Light theme · White surfaces · Soft grey sections · Blue accent
   ============================================================ */

:root {
  --blue: #0B5ED7;
  --blue-dark: #0A4CB0;
  --blue-soft: #EAF2FE;
  --navy: #0A2540;
  --ink: #22334A;
  --muted: #5B6B7F;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --border: #E4EAF1;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, .06);
  --shadow-md: 0 12px 32px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open, body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; }

::selection { background: var(--blue); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; border-radius: 999px;
  padding: 13px 26px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11, 94, 215, .28); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 94, 215, .34); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost { background: var(--blue-soft); color: var(--blue); }
.btn-ghost:hover { background: #DCE9FD; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .18); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-xs { padding: 7px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 17px;
  box-shadow: 0 6px 14px rgba(11, 94, 215, .3);
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -0.02em; }
.logo-text em { font-style: normal; color: var(--blue); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding: 8px 13px; border-radius: 8px; position: relative;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--blue); background: var(--blue-soft); }
.nav-link.active { color: var(--blue); }
.nav-link.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2.5px; border-radius: 2px; background: var(--blue);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .25s ease, opacity .25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 74px; left: 0; right: 0; bottom: 0; z-index: 190;
  background: #fff; padding: 28px 24px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform .3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-link { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--navy); padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-nav-cta { margin-top: 24px; display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 74px); overflow: hidden; }
.hero-slider { position: absolute; inset: 0; }
.hero-track { display: flex; height: 100%; transition: transform .75s cubic-bezier(.65, 0, .35, 1); }
.hero-slide { position: relative; flex: 0 0 100%; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 38%, rgba(255, 255, 255, .45) 65%, rgba(255, 255, 255, .05) 88%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0; max-width: 640px; }
.hero-slide .hero-content > * { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.hero-slide.active .hero-content > * { opacity: 1; transform: translateY(0); }
.hero-slide.active .hero-content > *:nth-child(1) { transition-delay: .20s; }
.hero-slide.active .hero-content > *:nth-child(2) { transition-delay: .30s; }
.hero-slide.active .hero-content > *:nth-child(3) { transition-delay: .40s; }
.hero-slide.active .hero-content > *:nth-child(4) { transition-delay: .50s; }
.hero-slide.active .hero-content > *:nth-child(5) { transition-delay: .60s; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: var(--blue); color: #fff; }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hero-dots .dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(10, 37, 64, .25); transition: all .25s ease; }
.hero-dots .dot.active { background: var(--blue); width: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--navy); }
.hero-stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- Brand cards ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #C9D9F2; }
.brand-mono {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  font-family: var(--font-head); font-weight: 800; font-size: 24px; margin-bottom: 12px;
  transition: background-color .25s ease, color .25s ease;
}
.brand-card:hover .brand-mono { background: var(--blue); color: #fff; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--navy); }
.brand-tagline { font-size: 13px; color: var(--muted); min-height: 20px; }
.brand-meta { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 7px; }
.brand-meta i { transition: transform .25s ease; }
.brand-card:hover .brand-meta i { transform: translateX(4px); }

/* ---------- Vehicle cards ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vehicle-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vc-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.vc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vehicle-card:hover .vc-media img { transform: scale(1.05); }
.vc-chip-brand, .vc-chip-fuel {
  position: absolute; top: 14px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.vc-chip-brand { left: 14px; background: rgba(255, 255, 255, .94); color: var(--navy); }
.vc-chip-fuel { right: 14px; background: var(--blue); color: #fff; }
.vc-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.vc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.vc-title { font-size: 20px; font-weight: 800; }
.vc-variant { font-size: 13px; color: var(--muted); margin-top: 3px; }
.vc-price { text-align: right; flex-shrink: 0; }
.vc-price span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vc-price strong { font-family: var(--font-head); font-size: 19px; color: var(--blue); font-weight: 800; }
.vc-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); font-weight: 600; }
.vc-meta i { color: var(--blue); margin-right: 5px; }
.vc-desc { font-size: 14px; color: var(--muted); flex: 1; }
.vc-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 21px; margin-bottom: 20px;
}
.why-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* ---------- Finance & Insurance ---------- */
.fi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fi-panel {
  border-radius: var(--radius); padding: 40px 36px; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.fi-panel.finance { background: linear-gradient(135deg, #0A2540 0%, #103A66 100%); border: none; }
.fi-panel.finance h3, .fi-panel.finance .fi-item strong { color: #fff; }
.fi-panel.finance .fi-item span, .fi-panel.finance > p { color: rgba(255, 255, 255, .72); }
.fi-panel.finance .fi-icon { background: rgba(255, 255, 255, .12); color: #7FB3F5; }
.fi-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.fi-head-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 20px;
}
.fi-panel h3 { font-size: 24px; font-weight: 800; }
.fi-panel > p { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }
.fi-list { display: grid; gap: 18px; }
.fi-item { display: flex; gap: 16px; align-items: flex-start; }
.fi-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 16px;
}
.fi-item strong { display: block; font-size: 15.5px; color: var(--navy); font-weight: 800; }
.fi-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(120deg, var(--blue) 0%, #0A3D91 100%);
  padding: 72px 60px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band::before {
  content: '\f1b9'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: -30px; bottom: -70px; font-size: 300px;
  color: rgba(255, 255, 255, .06); transform: rotate(-8deg);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 520px; font-size: 16px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.testi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testi-stars { color: #F5A623; font-size: 14px; letter-spacing: 2px; }
.testi-review { font-size: 14px; color: var(--ink); flex: 1; }
.testi-person { display: flex; align-items: center; gap: 13px; padding-top: 16px; border-top: 1px solid var(--border); }
.testi-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-person strong { display: block; font-size: 14.5px; color: var(--navy); }
.testi-person span { font-size: 12.5px; color: var(--muted); }

/* ---------- Dealers ---------- */
.dealer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dealer-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dealer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dealer-city {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.dealer-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.dealer-line { font-size: 14px; color: var(--muted); margin-bottom: 9px; display: flex; gap: 10px; align-items: flex-start; }
.dealer-line i { color: var(--blue); margin-top: 4px; }
.dealer-line a { color: var(--blue); font-weight: 700; }
.dealer-branches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dealer-branches span {
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 5px 13px; border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding: 72px 24px 56px; }
.logo-light .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; margin: 18px 0 22px; max-width: 320px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px;
  transition: background-color .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--blue); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 18px; letter-spacing: .04em; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 13.5px; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: #7FB3F5; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Floating action buttons ---------- */
.fab-stack { position: fixed; right: 22px; bottom: 24px; z-index: 180; display: flex; flex-direction: column; gap: 12px; }
body.has-sticky-cta .fab-stack { bottom: 96px; }
.fab {
  display: flex; align-items: center; height: 52px; width: 52px; padding: 0 15px; border-radius: 999px;
  color: #fff; font-size: 18px; overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: width .35s ease, transform .2s ease, box-shadow .2s ease;
}
.fab i { flex-shrink: 0; width: 22px; text-align: center; }
.fab span { font-size: 13.5px; font-weight: 700; white-space: nowrap; margin-left: 10px; opacity: 0; transition: opacity .25s ease; }
.fab:hover { width: 200px; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.fab:hover span { opacity: 1; }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--navy); }
.fab-enquiry { background: #fff; color: var(--blue); border: 1.5px solid var(--border); }
.fab-testdrive { background: var(--blue); width: 200px; }
.fab-testdrive span { opacity: 1; }

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 37, 64, .5);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; inset: 0; z-index: 310; display: grid; place-items: center;
  padding: 24px; pointer-events: none;
}
.modal-card {
  width: 100%; max-width: 640px; max-height: calc(100vh - 60px); overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 38px 36px; position: relative;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(26px) scale(.98);
  transition: opacity .28s ease, transform .28s ease;
}
.modal.open { pointer-events: auto; }
.modal.open .modal-card { opacity: 1; transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink); font-size: 15px;
  transition: background-color .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--border); transform: rotate(90deg); }
.modal-head { text-align: center; margin-bottom: 28px; }
.modal-icon {
  width: 60px; height: 60px; border-radius: 18px; display: inline-grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 24px; margin-bottom: 16px;
}
.modal-head h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-head p { font-size: 14px; color: var(--muted); max-width: 420px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; background: #fff; outline: none; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(11, 94, 215, .12);
}
.field textarea { resize: vertical; }

/* ---------- Listing page ---------- */
.page-hero { background: var(--bg-soft); padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 560px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 12px; }
.filter-pill {
  font-size: 14px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1.5px solid var(--border); border-radius: 999px;
  padding: 10px 20px; transition: all .2s ease;
}
.filter-pill em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-pill.active em { color: rgba(255, 255, 255, .8); }
.listing-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; gap: 14px; flex-wrap: wrap; }
.listing-meta h2 { font-size: 24px; font-weight: 800; }
.listing-meta span { font-size: 14px; color: var(--muted); font-weight: 600; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- Detail page ---------- */
.detail-wrap { padding: 40px 0 96px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.breadcrumb a { font-weight: 600; transition: color .2s ease; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb i { font-size: 10px; }
.breadcrumb span { color: var(--navy); font-weight: 700; }
.detail-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.detail-title-row h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.detail-variant { color: var(--muted); font-size: 16px; margin-top: 6px; }
.detail-price { text-align: right; }
.detail-price span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.detail-price strong { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--blue); }
.detail-price em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }

.detail-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: start; margin-bottom: 72px; }
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.carousel-track { display: flex; transition: transform .45s ease; }
.carousel-slide { flex: 0 0 100%; aspect-ratio: 16 / 10; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 14px;
  box-shadow: var(--shadow-sm); transition: background-color .2s ease, color .2s ease;
}
.carousel-btn:hover { background: var(--blue); color: #fff; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.carousel-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: all .2s ease; }
.carousel-dots .dot.active { background: #fff; width: 26px; border-radius: 999px; }

.detail-side { display: flex; flex-direction: column; gap: 22px; }
.hl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--ink); background: #fff; border: 1px solid var(--border);
  padding: 9px 15px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hl-chip i { color: var(--blue); }
.detail-side-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.detail-side-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.detail-side-card .btn { margin-top: 8px; }
.side-cta { display: grid; gap: 10px; }

.detail-section { margin-bottom: 72px; }
.detail-section h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; margin-bottom: 8px; }
.detail-section .section-sub { color: var(--muted); margin-bottom: 32px; max-width: 620px; }
.overview-text { font-size: 16px; color: var(--ink); max-width: 860px; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec-item {
  display: flex; gap: 15px; align-items: center; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.spec-item:hover { border-color: #C9D9F2; box-shadow: var(--shadow-sm); }
.spec-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 16px;
}
.spec-key { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.spec-val { font-size: 14.5px; color: var(--navy); font-weight: 700; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 28px; list-style: none; max-width: 860px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink); font-weight: 600; }
.feature-list i { color: var(--blue); margin-top: 4px; }

.variant-table { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.variant-row {
  display: grid; grid-template-columns: 1.6fr .8fr 1fr .9fr 1.3fr; gap: 14px;
  align-items: center; padding: 17px 24px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.variant-row:last-child { border-bottom: none; }
.variant-row:not(.variant-head):hover { background: var(--bg-soft); }
.variant-head { background: var(--navy); color: #fff; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.vr-name { font-weight: 700; color: var(--navy); }
.vr-price { font-weight: 800; color: var(--blue); font-family: var(--font-head); }
.vr-actions { display: flex; gap: 8px; justify-content: flex-end; }

.color-swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700;
  color: var(--ink); background: #fff; border: 1.5px solid var(--border);
  padding: 9px 16px; border-radius: 999px; transition: all .2s ease;
}
.swatch-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.swatch:hover { border-color: var(--blue); }
.swatch.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.selected-color-note { font-size: 14px; color: var(--muted); }
.selected-color-note strong { color: var(--navy); }

.fi-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fi-panel-sm { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.fi-panel-sm h3 { font-size: 19px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 11px; }
.fi-panel-sm h3 i { color: var(--blue); }
.fi-mini { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.fi-mini i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 15px; }
.fi-mini strong { display: block; font-size: 14.5px; color: var(--navy); }
.fi-mini span { font-size: 13px; color: var(--muted); }

.dealer-info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); max-width: 720px; }
.dealer-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.dealer-note a { color: var(--blue); font-weight: 700; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 170;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 30px rgba(10, 37, 64, .08);
}
.sticky-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.sticky-cta-info strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--navy); }
.sticky-cta-info span { font-size: 13px; color: var(--muted); font-weight: 600; }
.sticky-cta-actions { display: flex; gap: 10px; }
body.has-sticky-cta { padding-bottom: 78px; }

/* ---------- Thank you page ---------- */
.ty-wrap { min-height: calc(100vh - 74px); display: flex; align-items: center; padding: 80px 0; background: var(--bg-soft); }
.ty-card {
  max-width: 640px; margin: 0 auto; background: #fff; border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  padding: 60px 52px; text-align: center;
}
.ty-icon {
  width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 50%;
  background: #E7F7EE; color: #1E9E5A; display: grid; place-items: center; font-size: 38px;
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ty-card h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 14px; }
.ty-card > p { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.ty-ref {
  display: inline-block; margin: 18px 0 30px; font-family: var(--font-head); font-weight: 800;
  color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 9px 22px; font-size: 15px;
}
.ty-steps { text-align: left; background: var(--bg-soft); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 34px; }
.ty-steps h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.ty-steps ol { margin-left: 18px; display: grid; gap: 9px; font-size: 14px; color: var(--ink); }
.ty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .variant-row { grid-template-columns: 1.4fr .7fr .9fr .8fr; }
  .vr-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .fi-grid, .fi-panels { grid-template-columns: 1fr; }
  .cta-band { padding: 52px 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid, .why-grid, .testi-grid, .dealer-grid, .spec-grid, .feature-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero-content { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .variant-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .variant-head { display: none; }
  .vr-actions { grid-column: 1 / -1; }
  .sticky-cta-info span { display: none; }
  .sticky-cta-actions .btn { padding: 11px 16px; font-size: 13.5px; }
  .ty-card { padding: 44px 26px; }
  .modal-card { padding: 30px 22px; }
  .fab { height: 48px; width: 48px; }
  .fab:hover { width: 48px; }
  .fab-testdrive, .fab-testdrive:hover { width: 180px; }
  .hero-arrow { display: none; }
}
