/* ============ Base ============ */
:root {
  --ink: #17202a;
  --ink-soft: #4a5768;
  --paper: #f7f8fa;
  --card: #ffffff;
  --line: #e3e7ec;
  --accent: #1f6fb2;       /* Buick-ish steel blue */
  --accent-dark: #17557f;
  --shadow: 0 10px 30px rgba(23, 32, 42, .12);
  --shadow-sm: 0 4px 14px rgba(23, 32, 42, .08);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; } /* no scroll-padding: sections have their own top padding */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.brand-year { color: var(--ink-soft); font-weight: 600; letter-spacing: .06em; }
.brand-name em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14px;
  transition: color .15s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: .2s;
}

/* ============ Hero ============ */
.hero {
  background:
    linear-gradient(180deg, rgba(23,32,42,.82), rgba(23,32,42,.68)),
    url('assets/photos/photo-08.jpg') center 62% / cover no-repeat;
  color: #fff;
  padding: 96px 24px 88px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #cfe3f3;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800; letter-spacing: -.01em; line-height: 1.12;
}
.hero h1 .accent { color: #7fb7e6; }
.hero-sub { margin-top: 14px; font-size: clamp(1rem, 2.4vw, 1.25rem); color: rgba(255,255,255,.85); }

.hero-specs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 34px 0 38px;
}
.spec-chip {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 10px 18px;
  display: flex; flex-direction: column; align-items: center; min-width: 108px;
}
.spec-chip strong { font-size: 1.02rem; }
.spec-chip span { font-size: .78rem; color: rgba(255,255,255,.72); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  border-radius: 999px; padding: 13px 28px; transition: .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-secondary:hover { background: rgba(255,255,255,.22); }
.btn-large { padding: 16px 36px; font-size: 16px; }

/* ============ Sections ============ */
.section { padding: 72px 24px; }
.section-alt { background: #eef1f5; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.01em;
}
.section-sub { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

/* ============ Gallery ============ */
.gallery-stage { position: relative; }
.gal-viewport {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: #101720; box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  touch-action: pan-y;
}
.gal-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.gal-slide.active { opacity: 1; pointer-events: auto; }
.gal-slide img, .gal-slide video {
  width: 100%; height: 100%; object-fit: contain; cursor: zoom-in;
}
.gal-slide video { cursor: default; background: #000; }

.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(16,23,32,.55); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.gal-arrow:hover { background: rgba(16,23,32,.8); }
.gal-prev { left: 14px; }
.gal-next { right: 14px; }

.gal-counter {
  position: absolute; bottom: 14px; right: 16px; z-index: 10;
  background: rgba(16,23,32,.65); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.gal-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px; margin-top: 14px;
}
.gal-thumb {
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  padding: 0; cursor: pointer; background: none;
  transition: border-color .15s, transform .15s;
}
.gal-thumb img { width: 100%; height: 62px; object-fit: cover; }
.gal-thumb:hover { transform: translateY(-2px); }
.gal-thumb.active { border-color: var(--accent); }

/* Video badge on thumbnails */
.gal-thumb.video-thumb { position: relative; }
.gal-thumb.video-thumb::after {
  content: "▶"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
  background: rgba(16,23,32,.4);
}

/* ============ Video section ============ */
.video-wrap { max-width: 900px; margin: 0 auto; }
.video-player {
  width: 100%; border-radius: var(--radius);
  background: #000; box-shadow: var(--shadow); display: block;
}
.video-note { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 14px; }

/* ============ Details ============ */
.details-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.detail-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.detail-card h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 16px;
}
.detail-card dl div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.detail-card dl div:last-child { border-bottom: 0; }
.detail-card dt { color: var(--ink-soft); font-size: 14px; flex-shrink: 0; }
.detail-card dd { text-align: right; font-weight: 600; font-size: 14px; }
.detail-card .vin {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .03em;
}

/* ============ Features ============ */
.features-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-col {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.feature-col h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 14px;
}
.feature-col ul { list-style: none; }
.feature-col li {
  position: relative; padding: 6px 0 6px 24px;
  font-size: 14.5px; color: var(--ink);
}
.feature-col li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); opacity: .8;
}

/* ============ Condition disclosure ============ */
.section-disclosure { background: #fdf9f0; }
.disclosure-card {
  max-width: 760px; margin: 0 auto;
  background: var(--card);
  border: 1px solid #ecd9b0;
  border-left: 5px solid #d9a428;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.disclosure-list { list-style: none; }
.disclosure-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0e6cc;
  display: flex; flex-direction: column; gap: 3px;
}
.disclosure-list li:last-child { border-bottom: 0; }
.disclosure-list strong { font-size: 15px; }
.disclosure-list span { font-size: 14px; color: var(--ink-soft); }
.disclosure-note {
  margin-top: 14px; padding-top: 16px;
  border-top: 2px solid #f0e6cc;
  font-size: 14.5px; color: var(--ink);
}
.disclosure-positives {
  margin-top: 20px;
  background: #f2f7f0;
  border: 1px solid #cfe0c8;
  border-radius: 10px;
  padding: 16px 20px;
}
.disclosure-positives h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: #3f7a3a; margin-bottom: 8px;
}
.disclosure-positives ul { list-style: none; }
.disclosure-positives li {
  padding: 4px 0 4px 22px; position: relative;
  font-size: 14px; color: var(--ink);
}
.disclosure-positives li::before {
  content: "✓"; position: absolute; left: 0;
  color: #3f7a3a; font-weight: 700;
}
.issue-flag { font-style: normal; font-size: 12.5px; color: #9a7414; font-weight: 600; }

/* ============ Sticker ============ */
.sticker-link {
  display: block; max-width: 940px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.sticker-link img { width: 100%; }
.sticker-zoom {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(16,23,32,.75); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ============ Contact ============ */
.section-contact {
  background:
    linear-gradient(180deg, rgba(23,32,42,.88), rgba(23,32,42,.8)),
    url('assets/photos/photo-06.jpg') center 55% / cover no-repeat;
  color: #fff; text-align: center;
}
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; }
.contact-inner p { margin: 16px 0 30px; color: rgba(255,255,255,.85); }

/* ============ Footer ============ */
.site-footer {
  padding: 30px 24px; text-align: center;
  color: var(--ink-soft); font-size: 13px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,14,20,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw; max-height: 88vh;
  object-fit: contain; border-radius: 6px;
}
.lb-close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  background: none; border: 0; color: #fff; font-size: 34px;
  cursor: pointer; line-height: 1;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lb-arrow:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ============ Responsive ============ */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 24px; }
  .site-nav .nav-cta {
    background: none; color: var(--accent); padding: 13px 24px;
    border-top: 1px solid var(--line); border-radius: 0;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 72px 20px 64px; }
  .spec-chip { min-width: 96px; padding: 8px 12px; }

  .gal-arrow { width: 38px; height: 38px; font-size: 16px; }
  .lb-arrow { width: 42px; height: 42px; }

  .section { padding: 54px 18px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
