:root {
  --bg: #081a2f;
  --bg-soft: #102845;
  --panel: #ffffff;
  --panel-alt: #f3f6fb;
  --text: #112037;
  --muted: #5f6b7a;
  --line: #dce3ef;
  --accent: #ff6b00;
  --accent-2: #ff8e3c;
  --success: #1f8f4e;
  --danger: #c8392b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 35px rgba(11, 26, 49, 0.12);
  --shadow-hover: 0 18px 40px rgba(11, 26, 49, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f1f5fb;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 0%, rgba(255,107,0,0.07), transparent 35%);
  z-index: -1;
}

.container {
  width: min(1220px, 92%);
  margin: 0 auto;
}

.topbar {
  background: #041224;
  color: #d8e3f3;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(8, 26, 47, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
}

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

.menu-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.main-nav {
  display: none;
  width: 100%;
  padding: 0.8rem 0 0.2rem;
}

.main-nav.open { display: block; }

.main-nav a {
  color: #e8eef7;
  display: block;
  padding: 0.58rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover { color: var(--accent); }
.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
}

.hero {
  position: relative;
  padding: 5.2rem 0;
  color: #fff;
  background:
    linear-gradient(118deg, rgba(6, 21, 40, 0.95), rgba(16, 40, 69, 0.88)),
    url("../images/cars/VP164.jpg") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(8,26,47,0.4));
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.hero p {
  margin: 0 0 1.4rem;
  max-width: 700px;
  color: #dce8f7;
  font-size: 1.05rem;
}
.hero-badge {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #f3f7fc;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-tags span {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: #e8eef8;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.24rem 0.58rem;
}
.page-hero {
  position: relative;
  padding: 3.4rem 0 2.8rem;
  color: #fff;
  background: linear-gradient(120deg, #081a2f, #17395e);
}
.page-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
}
.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #d8e3f3;
}
.compact-hero {
  padding: 2.6rem 0 2.1rem;
}
.page-hero--inventory {
  background:
    linear-gradient(120deg, rgba(8,26,47,0.92), rgba(20,45,73,0.88)),
    url("../images/cars/VP152/03.jpg") center/cover;
}
.page-hero--financing {
  background:
    linear-gradient(120deg, rgba(8,26,47,0.94), rgba(20,45,73,0.9)),
    url("../images/cars/VP151/04.jpg") center/cover;
}
.page-hero--about {
  background:
    linear-gradient(120deg, rgba(8,26,47,0.94), rgba(20,45,73,0.9)),
    url("../images/cars/VP154/03.jpg") center/cover;
}
.page-hero--contact {
  background:
    linear-gradient(120deg, rgba(8,26,47,0.94), rgba(20,45,73,0.9)),
    url("../images/cars/VP145/02.jpg") center/cover;
}
.page-hero--terms {
  background: linear-gradient(120deg, #0a1d34, #17385b);
}
.page-hero--detail {
  background: linear-gradient(120deg, #0b1f37, #1a3f66);
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 0.76rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.35);
}

.btn-outline {
  background: #fff;
  color: #102845;
  border: 1px solid #d7dfeb;
}

.section { padding: 3.6rem 0; }
.stats-strip {
  padding: 1.7rem 0 0.9rem;
}
.section-soft {
  background: linear-gradient(180deg, #eef3f9 0%, #f7f9fd 100%);
}
.section-lead {
  margin: -0.2rem 0 1.1rem;
  max-width: 760px;
  color: var(--muted);
}
.premium-band {
  background: linear-gradient(130deg, #091a30, #112c4c);
  color: #e7eef8;
}
.premium-band .section-title {
  color: #fff;
  margin-bottom: 1.2rem;
}
.premium-headline {
  max-width: 760px;
}
.premium-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.premium-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 1.1rem;
  backdrop-filter: blur(2px);
}
.premium-card h3 {
  margin: 0 0 0.4rem;
  color: #fff;
}
.premium-card p {
  margin: 0;
  color: #d4dfed;
}
.premium-cta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.section-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  letter-spacing: 0.1px;
}

.grid { display: grid; gap: 1rem; }

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

.card {
  background: var(--panel);
  border: 1px solid #e5ebf4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.car-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eaf0f8;
}

.card-body { padding: 1rem; }
.stock-line {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: #6f7e90;
  font-weight: 700;
}

.car-title {
  margin: 0 0 0.32rem;
  font-size: 1.1rem;
}

.car-meta { color: var(--muted); margin: 0 0 0.55rem; }
.car-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.car-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #41546f;
  background: #edf3fb;
  border: 1px solid #d8e2f0;
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
}
.card-cta {
  width: 100%;
  text-align: center;
}

.price {
  margin: 0 0 0.8rem;
  font-size: 1.32rem;
  font-weight: 800;
}

.features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #e3e9f3;
  padding: 1.15rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature h3 { margin: 0.2rem 0 0.25rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: #fff2e8;
  color: var(--accent);
  font-size: 1.2rem;
}

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

.testimonial {
  background: #fff;
  border: 1px solid #e4eaf4;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.layout {
  display: grid;
  gap: 1rem;
}

.sidebar,
.form-card,
.info-card,
.specs {
  background: #fff;
  border: 1px solid #e2e9f3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.filter-group { margin-bottom: 0.8rem; }

label {
  display: block;
  margin-bottom: 0.32rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #cdd8e8;
  border-radius: 9px;
  padding: 0.62rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8eb4e1;
  box-shadow: 0 0 0 4px rgba(142, 180, 225, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.inventory-toolbar {
  background: #fff;
  border: 1px solid #e0e8f3;
  border-radius: 12px;
  padding: 0.8rem;
  box-shadow: var(--shadow);
}

.detail-wrap { display: grid; gap: 1.2rem; }
.detail-gallery { padding: 0.7rem; }
.detail-main-image {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.gallery-controls .btn {
  padding: 0.45rem 0.95rem;
}
.gallery-counter {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.thumb-btn {
  border: 2px solid #d9e3f0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  line-height: 0;
}
.thumb-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.thumb-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.15);
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 21, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}
.lightbox.open {
  display: flex;
}
.lightbox-image {
  width: min(1200px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  color: #e5ecf7;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.88rem;
}

.spec-list {
  display: grid;
  gap: 0.38rem;
}

.spec-item {
  border-bottom: 1px dashed #d6e0ee;
  padding-bottom: 0.34rem;
}

.notice,
.sms-notice {
  background: #fff5ec;
  border: 1px solid #ffd7ba;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.8rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  margin: 0.7rem 0;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
}

.checkbox-row label {
  margin: 0;
  font-weight: 500;
}

.inline-msg { margin-top: 0.55rem; font-size: 0.92rem; }
.inline-msg.error { color: var(--danger); }
.inline-msg.success { color: var(--success); }
.contact-layout {
  grid-template-columns: 1fr;
}
.contact-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.contact-actions .btn {
  min-width: 170px;
  text-align: center;
}
.story-layout {
  display: grid;
  gap: 1rem;
}
.legal-layout {
  display: grid;
  gap: 1rem;
}
.legal-nav p {
  margin: 0 0 0.5rem;
}
.legal-nav a {
  color: #233f62;
  font-weight: 600;
}
.legal-card {
  margin-bottom: 1rem;
}
.light-card {
  color: #112037;
  background: #fff;
  border: 1px solid #dfe8f3;
}
.light-card h3 {
  color: #112037;
}
.light-card p {
  color: #5a6777;
}
.finance-form-shell {
  margin-top: 1.2rem;
}

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

.team-member {
  background: #fff;
  border: 1px solid #e2e9f3;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 0.55rem;
  display: grid;
  place-items: center;
  background: #fff1e6;
  color: #cc4f00;
  font-weight: 700;
}

.footer {
  margin-top: 2.2rem;
  background: #071728;
  color: #d8e3f3;
}

.footer-grid {
  display: grid;
  gap: 1.1rem;
  padding: 2rem 0 1.2rem;
}
.footer p {
  color: #c3d0e3;
}

.footer h4 { margin: 0 0 0.55rem; color: #fff; }
.footer a { color: #d8e3f3; }
.footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.82rem 0;
  font-size: 0.9rem;
}

.small-print {
  margin-top: 0.6rem;
  color: #f0c9a6;
  font-size: 0.84rem;
}

@media (min-width: 760px) {
  .menu-toggle { display: none; }
  .main-nav {
    display: flex;
    width: auto;
    gap: 1.1rem;
    padding: 0;
  }
  .main-nav a { border: 0; padding: 0; }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout { grid-template-columns: 300px 1fr; }
  .detail-wrap { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
  .premium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .story-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .legal-layout {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
  .legal-nav {
    position: sticky;
    top: 94px;
  }
}

@media (min-width: 1120px) {
  .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
