/* Legacy Auto NJ — cinematic front site */
:root {
  --red: #e01b24;
  --black: #0c0c0e;
  --dark: #141417;
  --white: #f7f7f5;
  --gray: #9a9aa0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
.red { color: var(--red); }
a { color: inherit; text-decoration: none; }

/* buttons */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 30px rgba(224, 27, 36, 0.35); }
.btn-red:hover { background: #f22833; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.6); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ===== nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { background: rgba(12, 12, 14, 0.92); backdrop-filter: blur(12px); box-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.nav-logo img { height: 52px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.85)) drop-shadow(0 0 2px rgba(255,255,255,0.9)); }
.nav-links { display: flex; gap: 34px; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.nav-links a { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--red); }
.nav-cta { padding: 12px 24px; font-size: 14px; }

/* ===== the journey: one video, scrubbed by scroll =====
   street → lot → through the door → the desk */
.journey { position: relative; height: 600vh; background: #050507; }
.journey-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.journey-sticky video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* overlays fade in/out on story beats */
.j-overlay {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.j-overlay.on { opacity: 1; pointer-events: auto; }

/* beat 1 — the street: headline over a soft shade */
.j-hero {
  display: flex; align-items: center;
  background: linear-gradient(100deg, rgba(5,5,7,0.72) 0%, rgba(5,5,7,0.35) 45%, rgba(5,5,7,0.05) 75%),
              linear-gradient(to top, rgba(5,5,7,0.65) 0%, transparent 35%);
}
.j-hero-inner { padding: 0 6vw; max-width: 900px; }
.j-hero h1 { font-size: clamp(52px, 8.5vw, 118px); line-height: 0.98; text-transform: uppercase; }
.hero-sub { margin: 26px 0 36px; font-size: clamp(16px, 1.6vw, 21px); color: #c9c9cf; font-weight: 500; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.chev { animation: bob 1.6s ease-in-out infinite; font-size: 18px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* beat 2 — inside the office: the approval moment */
.j-approve {
  display: flex; align-items: flex-end; justify-content: flex-start;
  background: linear-gradient(to top, rgba(5,5,7,0.82) 0%, rgba(5,5,7,0.25) 45%, transparent 70%);
}
.j-approve-inner { padding: 0 6vw 12vh; max-width: 860px; }
.j-approve h2 { font-size: clamp(34px, 4.6vw, 62px); text-transform: uppercase; }
.j-approve p { margin: 18px 0 30px; font-size: clamp(15px, 1.5vw, 19px); color: #d9d9de; line-height: 1.6; max-width: 620px; }

/* fallback (mobile / reduced motion): section is one viewport, video simply plays */
.journey.fallback { height: 100vh; }
.journey.fallback .j-approve { display: none; }

/* ===== customers ===== */
.customers { padding: 120px 5vw; background: var(--dark); }
.cust-head { text-align: center; margin-bottom: 60px; }
.cust-head h2, .fin-copy h2, .visit-content h2 { font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; }
.cust-head p { color: var(--gray); margin-top: 14px; font-size: 18px; }
.cust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1300px; margin: 0 auto; }
.cust-grid figure { border-radius: 12px; overflow: hidden; position: relative; }
.cust-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; transition: transform 0.5s ease; }
.cust-grid figure:hover img { transform: scale(1.04); }
.cust-grid figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-weight: 600; font-size: 15px;
}
.trust-chips { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.trust-chips span {
  border: 1px solid rgba(255,255,255,0.25); border-radius: 100px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray);
}

/* ===== financing ===== */
.financing {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 6vw; padding: 120px 7vw; max-width: 1500px; margin: 0 auto;
}
.fin-img img { width: 100%; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
.fin-copy p { color: var(--gray); font-size: 18px; line-height: 1.65; margin: 22px 0 34px; }
.fin-copy .btn { margin-right: 14px; margin-bottom: 12px; }

/* ===== visit ===== */
.visit { position: relative; padding: 160px 5vw; overflow: hidden; text-align: center; }
.visit-bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; opacity: 0.45; will-change: transform; }
.visit::after { content: ""; position: absolute; inset: 0; background: rgba(5,5,7,0.35); }
.visit-content { position: relative; z-index: 2; }
.visit-addr { margin-top: 22px; font-size: 20px; font-weight: 600; }
.visit-note { color: #d9d9de; margin: 10px 0 34px; font-size: 17px; }
.visit .hero-ctas { justify-content: center; }

/* ===== footer ===== */
.footer { text-align: center; padding: 60px 5vw 90px; background: #050507; color: var(--gray); font-size: 15px; }
.footer-logo { height: 60px; margin-bottom: 18px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.85)); }
.footer a { color: var(--white); font-weight: 600; }
.footer-fine { margin-top: 10px; font-size: 13px; opacity: 0.6; }

/* ===== sticky CTA ===== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 12px 5vw;
  background: rgba(12,12,14,0.94); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(100%); transition: transform 0.35s ease;
  font-weight: 600;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { padding: 10px 22px; font-size: 14px; }

/* ===== reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== responsive ===== */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .cust-grid { grid-template-columns: 1fr; max-width: 480px; }
  .financing { grid-template-columns: 1fr; padding: 80px 6vw; }
  .customers { padding: 80px 5vw; }
  .visit { padding: 110px 6vw; }
}
