/* ============================================================================
   MAXUS Caribbean — Modern design layer (2026-06-04)
   Loaded AFTER main.css. Restyles the homepage + vehicle surfaces in the
   en.saicmaxus.com global-site idiom: full-bleed cinematic imagery, tracked-caps
   labels, big animated spec figures, premium cards, navy/white alternating bands
   with a single sparing MAXUS-orange accent. Brand tokens reused from main.css.
   ========================================================================== */

:root {
  --orange: #FF7832;              /* MAXUS "assisting" accent — one highlight per view */
  --orange-ink: #052057;          /* navy text on orange (never white — contrast) */
  --r: 3px;                       /* tight, engineered radius (global-site convention) */
  --hero-h: clamp(560px, 92vh, 820px);
  --band-h: clamp(460px, 80vh, 900px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Display typography: tighter, more confident ===== */
h1 { letter-spacing: -0.015em; line-height: 1.06; }
h2 { letter-spacing: -0.01em; line-height: 1.12; }

/* Tracked-caps eyebrow — the signature automotive label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section--dark .eyebrow { color: #94ABD0; }
.section--dark .eyebrow::before { background: #94ABD0; }

/* Section heading rhythm */
.section { padding: var(--space-3xl) 0; }
.section-head { max-width: 760px; margin: 0 auto var(--space-2xl); text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--text-muted); }

/* ============================================================================
   HEADER / NAV — slim sticky, tracked-caps, orange CTA
   ========================================================================== */
.site-header {
  background: rgba(5, 32, 87, 0.0);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base),
              backdrop-filter var(--transition-base);
}
body:not(.has-hero) .site-header,
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
/* On a dark hero, nav starts transparent with light text, then flips on scroll */
.has-hero .site-header .main-nav a,
.has-hero .site-header .header-logo span { color: var(--text-light); }
.has-hero .site-header.scrolled .main-nav a,
.has-hero .site-header.scrolled .header-logo span { color: var(--text); }
.has-hero .header-logo .logo-dark,
.site-header.scrolled .header-logo .logo-light { display: none; }
.has-hero .header-logo .logo-light,
.site-header.scrolled .header-logo .logo-dark { display: block; }

.main-nav a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}
.main-nav a.active::after,
.main-nav a:hover::after {
  background: var(--accent);
  height: 2px;
}
.header-cta .btn { letter-spacing: 0.08em; }

/* ============================================================================
   CINEMATIC HERO — full-bleed vehicle, navy scrim, orange CTA, scroll cue
   ========================================================================== */
.hero {
  position: relative;
  min-height: var(--hero-h);
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  background: var(--primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,32,87,0.45) 0%, rgba(5,32,87,0) 30%),
    linear-gradient(0deg, rgba(5,32,87,0.85) 0%, rgba(5,32,87,0.25) 45%, rgba(5,32,87,0) 70%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 680px; }
.hero .eyebrow { color: #94ABD0; }
.hero h1 {
  color: var(--text-light);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 560px;
  margin-bottom: var(--space-xl);
}
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue::before {
  content: "";
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.85);
  animation: scrollCue 1.8s var(--ease-out) infinite;
}
@keyframes scrollCue { 0%{opacity:0;transform:translateY(-4px)} 40%{opacity:1} 100%{opacity:0;transform:translateY(12px)} }

/* ============================================================================
   BUTTONS — slim, 3px radius, one solid orange CTA, refined outlines
   ========================================================================== */
.btn { border-radius: var(--r); letter-spacing: 0.06em; font-weight: 700; padding: 14px 30px; }
/* Primary button = brand blue (DESIGN.md: "brand blue drives click-me"). */
.btn--cta {
  background: var(--accent);
  color: var(--text-light);
}
/* Accent button = orange, navy text — reserved for the ONE most-important action per view. */
.btn--accent {
  background: var(--orange);
  color: var(--orange-ink);
  box-shadow: 0 6px 20px rgba(255,120,50,0.28);
}
.btn--accent:hover,
.btn--cta:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn--outline-light {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--text-light);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(2px);
}
.btn--outline-light:hover { background: var(--text-light); color: var(--primary); }
.btn--ghost-arrow {
  color: var(--accent);
  padding-left: 0;
  background: none;
}
.btn--ghost-arrow::after { content: " →"; transition: transform var(--transition-fast); display: inline-block; }
.btn--ghost-arrow:hover::after { transform: translateX(4px); }

/* ============================================================================
   STATS BAR — oversized count-up figures, tracked-caps labels, orange tick
   ========================================================================== */
.stats-bar { background: var(--bg-alt); border-block: 1px solid var(--border); padding: var(--space-2xl) 0; }
.section--dark .stats-bar { background: transparent; }
.stat-item { position: relative; padding: var(--space-xs) var(--space-md); }
.stat-item strong,
.stat-item .counter {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat-item span {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-item::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--accent);
  margin: var(--space-md) auto 0;
}

/* ============================================================================
   PREMIUM VEHICLE CARDS — bigger imagery, cover crop, hover lift + zoom
   ========================================================================== */
.vehicles-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.vehicle-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: none;
  transition: transform var(--transition-base) var(--ease-out),
              box-shadow var(--transition-base), border-color var(--transition-base);
}
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.vehicle-card-image {
  height: 210px;
  background: linear-gradient(160deg, #F5F7FA 0%, #B8C5D9 100%);
  overflow: hidden;
}
.vehicle-card-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.vehicle-card:hover .vehicle-card-image img { transform: scale(1.06); }
.vehicle-card-badges { top: var(--space-md); left: var(--space-md); gap: 6px; }
.badge {
  border-radius: var(--r);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  backdrop-filter: blur(4px);
}
.badge--category { background: rgba(5,32,87,0.92); color: #fff; }
.badge--ev { background: var(--ev-green); color: #fff; }
.vehicle-card-body { padding: var(--space-lg); }
.vehicle-card-body h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 4px; }
.vehicle-card-body .vc-tagline {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--space-md);
  display: block; min-height: 2.4em;
}
.vc-spec-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vc-spec { flex: 1; }
.vc-spec b { display: block; font-size: 1.02rem; color: var(--text); font-weight: 700; }
.vc-spec span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.vehicle-card-body .btn { width: 100%; justify-content: center; }

/* ===== Filter tabs — modern underline pills, tracked caps ===== */
.filter-tabs { gap: var(--space-xs); justify-content: center; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.filter-tab {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
}
.filter-tab:hover { color: var(--primary); border-color: var(--border); }
.filter-tab.active { background: none; color: var(--primary); border-color: var(--accent); }

/* ============================================================================
   FULL-BLEED MODEL BANDS — the signature global-site showcase component
   ========================================================================== */
.model-band {
  position: relative;
  min-height: var(--band-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}
.model-band-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; z-index: 0;
}
.model-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5,32,87,0.86) 0%, rgba(5,32,87,0.5) 42%, rgba(5,32,87,0) 72%);
}
.model-band--right::after {
  background: linear-gradient(270deg, rgba(5,32,87,0.86) 0%, rgba(5,32,87,0.5) 42%, rgba(5,32,87,0) 72%);
}
.model-band .container { position: relative; z-index: 2; width: 100%; }
.model-band--right .container { display: flex; justify-content: flex-end; }
.model-band-content { max-width: 480px; color: var(--text-light); }
.model-band-content h3 { color: var(--text-light); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: var(--space-sm); }
.model-band-content p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-lg); }
.band-stats { display: flex; gap: var(--space-xl); margin-bottom: var(--space-lg); }
.band-stat b {
  display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: #fff; line-height: 1;
}
.band-stat span {
  display: block; margin-top: 6px; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}

/* ============================================================================
   MODEL DETAIL — full-bleed hero, big spec strip
   ========================================================================== */
.model-hero {
  position: relative;
  min-height: clamp(420px, 70vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: var(--primary);
  overflow: hidden;
}
.model-hero .container {
  position: relative; z-index: 2;
  display: block !important;
  padding-bottom: var(--space-2xl);
}
.model-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.model-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(5,32,87,0.9) 0%, rgba(5,32,87,0.2) 55%, rgba(5,32,87,0) 80%);
}
.model-hero-content { max-width: 640px; color: var(--text-light); }
.model-hero-content h1 { color: var(--text-light); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.model-hero-content .tagline { color: rgba(255,255,255,0.82); font-size: 1.15rem; }
.model-hero-content .badge { margin-bottom: var(--space-md); }

.specs-strip { background: var(--primary); border: none; padding: 0; }
.specs-strip .specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.1);
}
.spec-item { background: var(--primary); padding: var(--space-xl) var(--space-lg); text-align: center; }
.spec-item strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1;
}
.spec-item span {
  display: block; margin-top: var(--space-sm); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.model-description p { font-size: 1.1rem; line-height: 1.8; color: var(--text-body); }
.safety-list li::before { color: var(--ev-green); }

/* ===== CTA band — orange spark ===== */
.cta-band { background: var(--primary); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,120,50,0.18) 0%, rgba(255,120,50,0) 70%); z-index: 0;
}
.cta-band .container { position: relative; z-index: 1; }

/* ============================================================================
   SCROLL REVEAL (works with or without GSAP; CSS fallback)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible, .reveal.fade-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: none; }
  .scroll-cue::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .model-band--right .container { justify-content: flex-start; }
  .model-band::after, .model-band--right::after {
    background: linear-gradient(0deg, rgba(5,32,87,0.92) 0%, rgba(5,32,87,0.55) 55%, rgba(5,32,87,0.2) 100%);
  }
  .model-band { align-items: flex-end; }
  .model-band-content { padding-bottom: var(--space-xl); }
}
@media (max-width: 600px) {
  .vehicles-grid { grid-template-columns: 1fr; }
  .hero { align-items: center; text-align: center; padding-bottom: var(--space-2xl); }
  .hero-content { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .band-stats { gap: var(--space-lg); }
  .scroll-cue { display: none; }
}

/* ============================================================================
   CINEMATIC LINEUP BANDS — one full-bleed strip per vehicle (movie-reel feel)
   ========================================================================== */
.lineup-bands { display: block; }

/* Band is a full-bleed link; tuned to a cinematic strip height (19 in a row) */
.model-band {
  min-height: clamp(420px, 62vh, 580px);
  color: var(--text-light);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
/* Slow settle-in zoom as each band scrolls in — pure enhancement; the band + its
   content are visible by default, so if the reveal never fires the image is just
   tastefully zoomed (never blank). */
/* Band image: whole vehicle shown via object-fit: contain — no crop, no zoom. */

/* Deeper cinematic scrim: directional gradient + edge vignette */
.model-band::after {
  background:
    radial-gradient(120% 95% at 50% 50%, rgba(0,0,0,0) 52%, rgba(5,32,87,0.6) 100%),
    linear-gradient(90deg, rgba(5,32,87,0.92) 0%, rgba(5,32,87,0.55) 45%, rgba(5,32,87,0.05) 78%);
}
.model-band--right::after {
  background:
    radial-gradient(120% 95% at 50% 50%, rgba(0,0,0,0) 52%, rgba(5,32,87,0.6) 100%),
    linear-gradient(270deg, rgba(5,32,87,0.92) 0%, rgba(5,32,87,0.55) 45%, rgba(5,32,87,0.05) 78%);
}

.model-band-content h3 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.model-band-content > p { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 32ch; }

/* High-converting stat row — hairline dividers between the big numbers */
.band-stats { gap: 0; margin: var(--space-lg) 0; flex-wrap: wrap; }
.band-stat { padding-right: var(--space-xl); margin-right: var(--space-xl); border-right: 1px solid rgba(255,255,255,0.18); }
.band-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.band-stat b { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; }

.band-cta { margin-top: var(--space-xs); }
.model-band:hover .band-cta { filter: brightness(1.08); }

@media (max-width: 600px) {
  .model-band { min-height: clamp(380px, 68vh, 520px); }
  .band-stat { padding-right: var(--space-md); margin-right: var(--space-md); }
  .model-band-content > p { max-width: 100%; }
}

/* Band eyebrow: readable light-blue on the dark band; tick not orange (orange = CTA only) */
.model-band-content .eyebrow { color: #94ABD0; }
.model-band-content .eyebrow::before { background: #94ABD0; }

/* ============================================================================
   SPLIT MODEL BANDS (2026-06-04) — ¾ image panel + ¼ text panel, alternating.
   Vehicle shown WHOLE (object-fit: contain — no crop, no stretch). Defined last
   so it consolidates + overrides the earlier full-bleed band rules above and
   removes the dark text-overlay scrim (text now lives in its own panel).
   ========================================================================== */
.model-band {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: clamp(440px, 66vh, 720px);
  overflow: hidden;
  background: var(--primary);
  color: var(--text-light);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.model-band--right { flex-direction: row-reverse; }
.model-band::after, .model-band--right::after { content: none; display: none; }

/* Text panel — 1/4 */
.model-band-text {
  flex: 0 0 25%;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 48px);
  background: var(--primary);
  z-index: 2;
}
.model-band-text .eyebrow { color: #94ABD0; margin: 0; }
.model-band-text .eyebrow::before { background: #94ABD0; }
.model-band-text h3 {
  color: var(--text-light);
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.05; margin: 0;
  text-shadow: none;
}
.model-band-text > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.92rem, 1vw, 1.08rem); line-height: 1.5; margin: 0; max-width: none;
}
.model-band-text .band-stats { display: flex; flex-wrap: wrap; gap: 16px 22px; margin: 4px 0; }
.model-band-text .band-stat { padding: 0; margin: 0; border: 0; }
.model-band-text .band-stat b { font-size: clamp(1.3rem, 1.7vw, 1.8rem); color: #fff; line-height: 1; letter-spacing: -0.01em; }
.model-band-text .band-stat span { display: block; margin-top: 4px; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.model-band-text .band-cta { margin-top: 8px; align-self: flex-start; }

/* Media panel — 3/4, whole vehicle on white so it pops; no stretch */
.model-band-media {
  flex: 1 1 75%;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  overflow: hidden;
}
.model-band-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(14px, 2vw, 40px);
  display: block;
}

/* Mobile: stack text over image */
@media (max-width: 820px) {
  .model-band, .model-band--right { flex-direction: column; min-height: 0; align-items: stretch; }
  .model-band-text { flex: 0 0 auto; width: 100%; min-width: 0; padding: 28px 22px; }
  .model-band-media { flex: 0 0 auto; width: 100%; min-height: 240px; }
  .model-band-media img { padding: 16px; }
}

/* ============================================================================
   FULL-PAGE BROCHURE BANDS (2026-06-04) — each band IS the complete brochure
   page (title + vehicle + specs), full width, no crop. Overrides the split
   layout above for bands tagged .model-band--full. Mobile uses the cropped
   hero.webp via <picture>. The whole band links to the model page.
   ========================================================================== */
.model-band--full {
  display: block;
  position: relative;
  min-height: 0;
  padding: 0;
  background: var(--primary);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.model-band--full picture { display: block; width: 100%; }
.model-band--full .model-band-full {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease-out);
}
.model-band--full:hover .model-band-full { transform: scale(1.012); }
.model-band--full::after { content: none; display: none; }

/* Hover-reveal "Explore the X →" CTA, bottom-right (always shown on mobile) */
.model-band--full .band-cta-float {
  position: absolute;
  right: clamp(14px, 2.5vw, 40px);
  bottom: clamp(14px, 2.5vw, 36px);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  padding: 10px 18px;
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.model-band--full:hover .band-cta-float { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .model-band--full .band-cta-float { opacity: 1; transform: none; right: 14px; bottom: 14px; }
}
