/* ==========================================================================
   Second Chance Motors — Global Stylesheet
   Palette: Trustworthy Blue & White
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-light: #16345F;
  --blue: #1E6FEB;
  --blue-light: #4C8DF2;
  --blue-pale: #EAF1FB;
  --sky: #CFE3FF;
  --green: #16A34A;
  --amber: #F5A623;
  --red: #D64545;
  --grey-50: #F7F9FC;
  --grey-100: #EEF1F6;
  --grey-300: #D2DEEE;
  --grey-500: #5B7290;
  --grey-700: #33445E;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.14);
  --maxw: 1180px;
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-pale { background: var(--blue-pale); }
.bg-grey { background: var(--grey-50); }
.bg-navy { background: var(--navy); color: var(--sky); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.bg-navy .eyebrow { background: rgba(255,255,255,0.1); color: var(--sky); }

.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--grey-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(30,111,235,0.3); }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--blue-pale); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--sky);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--sky); }
.topbar strong { color: var(--amber); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  position: relative;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link:hover { text-decoration: none; }
.logo-link .logo-icon { height: 44px; width: auto; display: block; }
.logo-link .logo-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.05;
  color: var(--navy);
  white-space: nowrap;
}
.logo-link .logo-text .logo-accent { color: var(--blue); }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 13px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
nav.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap;
}
nav.main-nav a.active { color: var(--blue); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Mobile menu toggle (checkbox hack, no JS) */
.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-label span { width: 100%; height: 3px; background: var(--navy); border-radius: 2px; }

@media (max-width: 1180px) {
  nav.main-nav ul { gap: 10px; }
  nav.main-nav a { font-size: 0.78rem; }
  .logo-link .logo-text { font-size: 1.05rem; }
}

@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }
  nav.main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--grey-100);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 6px 24px; }
  nav.main-nav ul li { border-bottom: 1px solid var(--grey-100); }
  nav.main-nav ul li a { display: block; padding: 13px 0; font-size: 0.95rem; }
  .nav-toggle-input:checked ~ nav.main-nav { max-height: 640px; }
  .nav-cta { display: none; }
  .site-header .container { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 55%, var(--blue) 130%);
  color: var(--white);
  padding: 90px 0 80px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); font-size: 3rem; }
.hero p.lead { font-size: 1.15rem; color: var(--sky); max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.hero-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 20px 10px; border-radius: 14px; font-size: 0.78rem; line-height: 1.3;
}
.hero-badge i { font-size: 1.6rem; }
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 20px;
}

/* ---------- Homepage hero: live current-stock gallery ---------- */
.hero-current-stock {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 20px;
}
.hero-current-stock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-current-stock-head h3 { color: #fff; margin: 0; font-size: 1rem; font-family: var(--font); }
.hero-current-stock-head a { color: var(--sky); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.hero-stock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-stock-item {
  position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,0.08); display: block; border: none; padding: 0; cursor: pointer;
}
.hero-stock-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stock-item.placeholder img { object-fit: contain; width: 40%; height: 40%; margin: 30% auto; opacity: 0.5; }
.hero-stock-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; font-size: 0.72rem; font-weight: 600; padding: 16px 8px 6px;
}
.hero-stock-price { position: absolute; top: 6px; left: 6px; background: rgba(15,23,42,0.75); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: var(--sky); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: var(--sky); margin-bottom: 12px; }
.breadcrumb a { color: var(--sky); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--grey-100); padding: 28px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-item .icon { font-size: 1.6rem; }
.trust-item strong { font-family: var(--font); color: var(--navy); font-size: 0.92rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Grids & cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 22px; }

/* ---------- Icon badges (used to accompany steps / feature cards) ---------- */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.icon-badge i { color: var(--navy); font-size: 24px; }
.step .icon-badge { margin-top: 2px; }
.bg-navy .icon-badge, .cta-banner .icon-badge { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.bg-navy .icon-badge i, .cta-banner .icon-badge i { color: var(--white); }

/* ---------- Small inline icons (trust strip, hero badges, checklists) ---------- */
.icon-inline { color: currentColor; font-size: 1.05rem; vertical-align: -2px; margin-right: 6px; }
.trust-item .icon { font-size: 1.6rem; color: var(--blue); display: block; }
.hero-badge i, .doc-list .doc-icon i, .stage-card .icon-inline { color: inherit; }

/* ---------- Car listing card ---------- */
.car-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.car-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.car-media { position: relative; background: var(--blue-pale); }
.car-media img { width: 100%; }
.car-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font); font-size: 0.72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 6px; color: var(--white);
  letter-spacing: 0.5px;
}
.tag-catn { background: var(--blue); }
.tag-cats { background: var(--navy); }
.tag-diy { background: var(--amber); color: var(--navy); }
.car-tag.mot { left: auto; right: 12px; background: var(--green); }
.car-tag.nomot { left: auto; right: 12px; background: var(--grey-500); }

/* ---------- Warning / disclaimer callout ---------- */
.callout-warning {
  background: #FFF6E5;
  border: 1px solid #F4D9A0;
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.callout-warning h3 { color: var(--navy); margin-bottom: 8px; }
.callout-warning p, .callout-warning li { color: var(--grey-700); }
.callout-warning ul { margin: 10px 0 0; }
.car-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.car-body h3 { margin-bottom: 4px; font-size: 1.08rem; }
.car-price { font-family: var(--font); font-size: 1.35rem; color: var(--navy); font-weight: 700; margin: 8px 0; }
.car-price span { font-size: 0.78rem; color: var(--grey-500); font-weight: 400; }
.car-specs {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  font-size: 0.82rem; color: var(--grey-500);
}
.car-specs li strong { color: var(--grey-700); }
.car-body .btn { margin-top: auto; }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
  background: var(--grey-100); padding: 5px 12px; border-radius: 999px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 20px 20px; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 700;
  box-shadow: 0 4px 10px rgba(30,111,235,0.4);
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial cite { display: block; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--navy); }

/* ---------- Comparison table ---------- */
table.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--grey-100); font-size: 0.94rem; }
table.compare th { background: var(--navy); color: var(--white); font-family: var(--font); }
table.compare tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 600; color: var(--navy); width: 28%; }

/* ---------- FAQ accordion (no JS, uses <details>) ---------- */
.faq-item { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font); font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--blue); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--grey-500); }

/* ---------- Forms ---------- */
form.form-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--font); font-weight: 600; color: var(--navy); font-size: 0.88rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--grey-300); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--grey-50); color: var(--grey-700);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--blue); background: var(--white); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue), var(--navy));
  color: var(--white); border-radius: var(--radius);
  padding: 48px; text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--sky); }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.filter-bar select, .filter-bar input { padding: 10px 12px; border: 1px solid var(--grey-300); border-radius: 8px; background: var(--grey-50); font-family: var(--font-body); }
@media (max-width: 900px) { .filter-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .filter-bar { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: var(--sky); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a { color: var(--sky); }
.footer-logo-badge {
  display: inline-block;
  background: var(--white);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  line-height: 0;
}
.footer-logo img { height: auto; width: 180px; display: block; }
.footer-grid p { color: var(--sky); font-size: 0.9rem; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0; font-size: 0.8rem; color: var(--grey-500);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--grey-500); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Hero before/after slideshow ---------- */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.hero-slideshow .slide {
  position: absolute; inset: 0; opacity: 0;
  display: flex;
  animation: heroFade 20s infinite;
}
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: -5s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: -10s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: -15s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  21% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}
.slide-half { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 18px; }
.slide-half.before { background: rgba(214,69,69,0.14); }
.slide-half.after { background: rgba(255,255,255,0.07); }
.slide-half img { width: 68%; }
.slide-half.before img { filter: grayscale(0.6) contrast(0.9) brightness(0.85); }
.slide-half .impact-mark {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0%, rgba(214,69,69,0) 70%);
  top: 38%; left: 55%;
}
.slide-tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 6px; color: var(--white);
}
.slide-tag.before-tag { background: var(--red); }
.slide-tag.after-tag { background: var(--green); }
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(11,37,69,0.78); color: var(--white);
  font-family: var(--font); font-size: 0.82rem; text-align: center; padding: 9px 10px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .slide { animation: none; opacity: 0; }
  .hero-slideshow .slide:first-child { opacity: 1; }
}

/* ---------- Car detail: spec highlight bar ---------- */
.spec-highlight {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  background: var(--blue-pale); border-radius: var(--radius); padding: 22px; margin: 24px 0;
}
.spec-highlight div { text-align: center; }
.spec-highlight .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey-500); margin-bottom: 4px; }
.spec-highlight .value { font-family: var(--font); font-weight: 700; color: var(--navy); font-size: 1.08rem; }
@media (max-width: 960px) { .spec-highlight { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .spec-highlight { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Car detail: photo & stage galleries ---------- */
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-tile {
  background: var(--grey-50); border: 1px dashed var(--grey-300); border-radius: 8px;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px; color: var(--grey-500); font-size: 0.78rem; text-align: center; padding: 8px;
}
.photo-tile img { width: 38%; opacity: 0.55; }
@media (max-width: 760px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Car detail: real photo gallery with lightbox ---------- */
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-thumb {
  position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--grey-100); cursor: pointer; background: var(--grey-50); padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb.placeholder img { object-fit: contain; width: 38%; height: 38%; margin: 31% auto; opacity: 0.55; }
.gallery-more-badge {
  position: absolute; bottom: 8px; right: 8px; background: rgba(15,23,42,0.72); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
@media (max-width: 760px) { .gallery-thumbs { grid-template-columns: repeat(2, 1fr); } }

.lightbox-overlay {
  display: none; position: fixed; inset: 0; background: rgba(10,14,25,0.92); z-index: 1000;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: min(1000px, 90vw); max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 6px 10px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12);
  border: none; color: #fff; font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; background: rgba(255,255,255,0.12); padding: 4px 12px; border-radius: 20px;
}
.stage-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 620px; margin: 0 auto; }
.stage-card { text-align: center; }
.stage-card .photo-tile { aspect-ratio: 1/1; margin-bottom: 10px; }
.photo-tile.has-photo { padding: 0; border-style: solid; overflow: hidden; cursor: pointer; }
.photo-tile.has-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.photo-tile.has-photo span { display: none; }
.stage-card h4 { font-family: var(--font); color: var(--navy); font-size: 0.95rem; margin: 0 0 4px; }
.stage-card p { font-size: 0.82rem; color: var(--grey-500); margin: 0; }
@media (max-width: 760px) { .stage-gallery { grid-template-columns: 1fr; } }

/* ---------- Car detail: documentation list ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--grey-100); border-radius: 8px; padding: 14px 16px; }
.doc-list .doc-icon { font-size: 1.3rem; flex-shrink: 0; }
.doc-list .doc-text strong { display: block; color: var(--navy); }
.doc-list .doc-text span { font-size: 0.82rem; color: var(--grey-500); }

/* ---------- Car detail: price comparison ---------- */
.price-compare { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; }
.price-box { flex: 1; min-width: 220px; border-radius: var(--radius); padding: 26px; text-align: center; }
.price-box.market { background: var(--grey-50); border: 1px solid var(--grey-100); }
.price-box.ours { background: var(--navy); }
.price-box .price-label { font-family: var(--font); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.price-box.market .price-label { color: var(--grey-500); }
.price-box.ours .price-label { color: var(--sky); }
.price-box .amount { font-family: var(--font); font-size: 1.9rem; font-weight: 700; }
.price-box.market .amount { color: var(--grey-500); text-decoration: line-through; }
.price-box.ours .amount { color: var(--white); }
.savings-banner {
  background: var(--green); color: var(--white); text-align: center; padding: 14px;
  border-radius: var(--radius); font-family: var(--font); font-weight: 700; margin-top: 16px;
}
@media (max-width: 620px) { .price-compare { flex-direction: column; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tint-1 { filter: hue-rotate(0deg); }
.tint-2 { filter: hue-rotate(150deg) saturate(1.3); }
.tint-3 { filter: hue-rotate(260deg) saturate(0.9); }
.tint-4 { filter: grayscale(0.6) brightness(0.95); }
.tint-5 { filter: hue-rotate(60deg) saturate(1.1); }
.tint-6 { filter: hue-rotate(320deg) saturate(1.2); }
