/* maxusja.css — additions unique to MAXUS Jamaica.
   Layered on top of main.css, which already carries the MAXUS CI/VI tokens.
   Everything here is the scroll-driven film showcase and the dealer handoff
   to China Wheels; nothing overrides the shared design system. */

/* ── Scroll film sections ────────────────────────────────────────────────
   One full-height panel per vehicle that has real footage. The video is
   pinned behind the copy and plays while the panel is on screen. */

.filmstage {
  position: relative;
  background: #05070d;
  color: #fff;
}

.filmpanel {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.filmpanel__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.filmpanel__media video,
.filmpanel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Legibility floor for white copy over unpredictable footage. */
.filmpanel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(3, 6, 14, 0.92) 0%,
    rgba(3, 6, 14, 0.55) 38%,
    rgba(3, 6, 14, 0.12) 70%,
    rgba(3, 6, 14, 0.45) 100%
  );
}

.filmpanel__body {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg) clamp(48px, 9vh, 104px);
}

.filmpanel__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 var(--space-sm);
}

.filmpanel__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  color: #fff;
}

.filmpanel__lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 var(--space-lg);
}

.filmpanel__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
}

.filmpanel__stats div {
  min-width: 0;
}

.filmpanel__stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  color: #fff;
}

.filmpanel__stat-l {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.filmpanel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ── Film strip ──────────────────────────────────────────────────────────
   A single marquee track. The tiles are duplicated in markup so the loop
   has no gap; the copy is aria-hidden so screen readers hear each item once. */

.strip {
  background: #05070d;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.strip__head {
  max-width: var(--container-max);
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-lg);
  color: #fff;
}

.strip__head h2 {
  color: #fff;
  margin: 0 0 var(--space-sm);
}

.strip__head p {
  color: rgba(255, 255, 255, 0.66);
  max-width: 62ch;
  margin: 0;
}

.strip__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.strip__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: strip-scroll 64s linear infinite;
}

.strip__viewport:hover .strip__track,
.strip__viewport:focus-within .strip__track {
  animation-play-state: paused;
}

@keyframes strip-scroll {
  from { transform: translate3d(0, 0, 0); }
  /* The track holds exactly two copies of the tile set, so travelling
     half its width lands on an identical frame and the loop is seamless. */
  to   { transform: translate3d(-50%, 0, 0); }
}

.strip__tile {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 24vw, 330px);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1018;
}

.strip__tile video,
.strip__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strip__tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(3, 6, 14, 0.85), transparent);
}

/* ── Dealer handoff band ─────────────────────────────────────────────────
   maxusja.com is the brand showroom; every buying action belongs to the
   dealer, so this band repeats on every page. */

.dealer-band {
  background: var(--bg-dark);
  color: #fff;
  padding: var(--space-2xl) 0;
}

.dealer-band__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .dealer-band__grid { grid-template-columns: 1.15fr 1fr; align-items: center; }
}

.dealer-band h2 { color: #fff; margin: 0 0 var(--space-sm); }
.dealer-band p  { color: rgba(255, 255, 255, 0.78); margin: 0 0 var(--space-md); }

.dealer-band__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.dealer-band__card dl { margin: 0 0 var(--space-lg); }
.dealer-band__card dt {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-md);
}
.dealer-band__card dt:first-child { margin-top: 0; }
.dealer-band__card dd { margin: 4px 0 0; color: #fff; }
.dealer-band__card a { color: #fff; }

.dealer-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* WhatsApp float — brand blue, not WhatsApp green, not orange accent. */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent, #1E5FAD);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(5, 32, 87, 0.28);
}
.wa-float:hover { background: var(--accent-hover, #1D4680); color: #fff; }

/* ── Motion and data-saving preferences ──────────────────────────────────
   Anyone who has asked for less motion gets the poster frame and a still
   strip instead of autoplaying film. */

@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; transform: none; flex-wrap: wrap; width: 100%; }
  .filmpanel__media video { display: none; }
  .filmpanel__media img.filmpanel__poster { display: block; }
}

.filmpanel__media img.filmpanel__poster { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .filmpanel__media img.filmpanel__poster { display: none; }
}
