/* =============================================
 * Motorhomerentals.nz — Global Custom Styles
 * Design System: Cinematic Dark (V4 Final)
 * Version: 2.0.0
 * ============================================= */

/* --- CSS Custom Properties (Design System Tokens) --- */
:root {
  /* Legacy tokens (header/footer compatibility) */
  --bg-primary: #1A1814;
  --bg-card: #23201B;
  --text-primary: #F5F0E8;
  --text-muted: #9A9088;
  --border-subtle: rgba(201, 169, 110, 0.1);
  --border-card: rgba(201, 169, 110, 0.1);

  /* V4 Cinematic Dark tokens */
  --dark-bg: #1A1814;
  --dark-card: #23201B;
  --dark-text: #F5F0E8;
  --dark-muted: #9A9088;
  --dark-border: rgba(201, 169, 110, 0.1);
  --light-bg: #FAF7F2;
  --light-card: #FFFFFF;
  --light-text: #2C2416;
  --light-muted: #7A6F63;
  --light-border: rgba(44, 36, 22, 0.08);

  /* Accent */
  --accent-gold: #C9A96E;
  --accent-hover: #B8944F;
  --accent-warm: #D4A853;
  --nature-green: #4A6741;

  /* Shared */
  /* Easing: easeOutExpo for premium feel — fast start, gentle settle */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition: 400ms var(--ease-out-expo);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-smooth: 400ms var(--ease-out-expo);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --nav-height: 80px;
  --nav-height-scrolled: 64px;
  --section-padding: 120px;
  --shadow-warm: 0 8px 32px rgba(44, 36, 22, 0.08);
  --shadow-warm-hover: 0 16px 48px rgba(201, 169, 110, 0.12);
  --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.15);
}

/* =============================================
 * ACCESSIBILITY
 * ============================================= */

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 99999;
  padding: 12px 24px;
  background: var(--accent-gold);
  color: var(--dark-bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.skip-to-content:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* Body bg matches dark footer/CTA — prevents white subpixel gaps at section seams.
   All light sections set their own explicit background. */
body {
  background-color: var(--dark-bg, #1A1814);
}

*:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Global image safety — prevent images from causing horizontal overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Global table safety — allow horizontal scroll for wide tables on mobile */
table {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* =============================================
 * UTILITY CLASSES
 * ============================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow-dark { color: var(--accent-gold); }
.eyebrow-light { color: #9A7D45; }

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 24px;
}

/* Gold line — grows from 0 when it has .reveal class */
.gold-line {
  width: 80px;
  height: 2px;
  background: var(--accent-gold);
  margin: 0 auto 32px;
}
/* Gold line growth: override .reveal's opacity/transform so ONLY width animates.
 * This prevents the fade-in from masking the growth effect. */
.gold-line.reveal {
  width: 0;
  opacity: 1;
  transform: none;
  transition: width 1000ms var(--ease-out-expo);
}
.gold-line.reveal.visible {
  width: 80px;
}
.gold-line-left {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  margin: 0 0 32px;
}

/* =============================================
 * SCROLL ANIMATIONS
 * ============================================= */

/* Legacy fade-in (header/footer) */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 100ms; }
.fade-in-delay-2 { transition-delay: 200ms; }
.fade-in-delay-3 { transition-delay: 300ms; }

/* V4 reveal animations — easeOutExpo for premium feel */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 900ms var(--ease-out-expo),
              transform 900ms var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-blur {
  opacity: 0;
  filter: blur(20px);
  transform: scale(1.05);
  transition: opacity 1000ms cubic-bezier(0.4, 0, 0.2, 1),
              filter 1000ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 1000ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 800ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-clip.visible {
  clip-path: inset(0 0 0 0);
}

/* Stagger delays — .reveal.stagger-N specificity (0,2,0) beats .reveal (0,1,0)
 * so transition shorthand in .reveal won't reset these delays */
.reveal.stagger-1 { transition-delay: 0ms; }
.reveal.stagger-2 { transition-delay: 120ms; }
.reveal.stagger-3 { transition-delay: 240ms; }
.reveal.stagger-4 { transition-delay: 360ms; }
.reveal.stagger-5 { transition-delay: 480ms; }
.reveal.stagger-6 { transition-delay: 600ms; }

.parallax-bg {
  will-change: transform;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-warm));
  z-index: 100001;
  width: 0%;
  transition: none;
}

/* =============================================
 * BUTTON STYLES
 * ============================================= */

.btn-gold {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--dark-bg);
  border: none;
  padding: 20px 48px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* Asymmetric hover: fast in (150ms), slow out (450ms) for premium feel */
  transition: background-color 450ms var(--ease-out-expo), transform 450ms var(--ease-out-expo);
}
.btn-gold:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  transition: background-color 150ms var(--ease-out-quart), transform 150ms var(--ease-out-quart);
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shineSweep 3s infinite;
}

.btn-outline-light {
  display: inline-block;
  background: transparent;
  color: var(--dark-text);
  border: 1px solid rgba(245, 240, 232, 0.3);
  padding: 20px 48px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn-outline-light:hover {
  background: var(--accent-gold);
  color: var(--dark-bg);
  border-color: var(--accent-gold);
}

.btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--light-text);
  border: 1px solid rgba(44, 36, 22, 0.2);
  padding: 20px 48px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.btn-outline-dark:hover {
  background: var(--light-text);
  color: var(--light-bg);
}

/* Legacy button aliases */
.btn-gold-cta {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--dark-bg);
  border: none;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition);
}
.btn-gold-cta:hover { background: var(--accent-hover); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.btn-outline:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-outline-gold {
  display: inline-block;
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: var(--dark-bg);
}

.btn-nav-cta {
  display: inline-block;
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.btn-nav-cta:hover {
  background: var(--accent-gold);
  color: var(--dark-bg);
}

/* Asymmetric hover: fast in, slow out — applied to all interactive elements */
[class*="btn-"]:hover,
.motorhome-card:hover,
.review-card:hover {
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out-quart);
}

/* =============================================
 * KEYFRAME ANIMATIONS
 * ============================================= */

@keyframes shineSweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* Hero keyframes removed — now defined in homepage-cinematic.css (slideshow version).
   Kept: bounceArrow (used by other components). */

/* =============================================
 * SECTION 1: HERO
 * ============================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--dark-bg);
}

/* .hero-bg base positioning — slideshow animations defined in homepage-cinematic.css */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(26, 24, 20, 0.5) 100%),
    linear-gradient(to bottom, rgba(26, 24, 20, 0.4) 0%, transparent 30%, transparent 60%, rgba(26, 24, 20, 0.7) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(201, 169, 110, 0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
.hero-particles span:nth-child(1) { left: 15%; bottom: -10%; animation-duration: 12s; animation-delay: 0s; width: 3px; height: 3px; }
.hero-particles span:nth-child(2) { left: 35%; bottom: -10%; animation-duration: 18s; animation-delay: 3s; width: 5px; height: 5px; }
.hero-particles span:nth-child(3) { left: 55%; bottom: -10%; animation-duration: 14s; animation-delay: 6s; width: 3px; height: 3px; }
.hero-particles span:nth-child(4) { left: 70%; bottom: -10%; animation-duration: 16s; animation-delay: 2s; width: 4px; height: 4px; }
.hero-particles span:nth-child(5) { left: 85%; bottom: -10%; animation-duration: 20s; animation-delay: 5s; width: 3px; height: 3px; }
.hero-particles span:nth-child(6) { left: 45%; bottom: -10%; animation-duration: 15s; animation-delay: 8s; width: 6px; height: 6px; }

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.5;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 76px;
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0 0 24px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
  overflow-wrap: break-word;
}

.hero-content p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 0 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-indicator::after {
  content: '';
  width: 3px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

/* =============================================
 * SECTION 2: WELCOME
 * ============================================= */

.welcome {
  background: var(--light-bg);
  padding: 80px 24px;
  text-align: center;
}
.welcome-inner {
  max-width: 800px;
  margin: 0 auto;
}
.welcome .section-heading {
  color: var(--light-text);
}
.welcome p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--light-muted);
  margin-bottom: 40px;
}

.welcome-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--light-border);
}
.welcome-stat { text-align: center; }
.welcome-stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--light-text);
  display: block;
  margin-bottom: 4px;
}
.welcome-stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-muted);
}

/* =============================================
 * SECTION 3: MOTORHOMES
 * ============================================= */

.motorhomes {
  background: var(--dark-bg);
  padding: 80px 24px;
}
.motorhomes-header {
  text-align: center;
  margin-bottom: 60px;
}
.motorhomes-header .section-heading {
  color: var(--dark-text);
}
.motorhomes-header p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark-muted);
  max-width: 500px;
  margin: 0 auto;
}

.motorhomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.mh-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.mh-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition);
  z-index: 2;
}
.mh-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 110, 0.3);
  box-shadow: var(--shadow-deep);
}
.mh-card:hover::before { width: 100%; }

.mh-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.mh-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  display: block;
}
.mh-card:hover .mh-card-img img {
  transform: scale(1.08);
}
.mh-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(26, 24, 20, 0.6));
  opacity: 0;
  transition: opacity var(--transition);
}
.mh-card:hover .mh-card-img::after { opacity: 1; }

.mh-card-body {
  padding: 24px;
}
.mh-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-text);
  margin: 0 0 8px;
}
.mh-card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.mh-card-specs {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-border);
  margin-bottom: 16px;
}
.mh-card-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--dark-muted);
}
.mh-card-spec svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-gold);
  fill: none;
  stroke-width: 1.5;
}

.mh-card-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  transition: gap var(--transition);
}
.mh-card-link:hover { gap: 14px; }

.motorhomes-footer {
  text-align: center;
}

/* =============================================
 * SECTION 4: WHY CHOOSE US
 * ============================================= */

.why-us {
  background: var(--light-bg);
  padding: var(--section-padding) 0;
  padding-bottom: 80px;
}
.why-us-header {
  text-align: center;
  margin-bottom: 60px;
}
.why-us-header .section-heading {
  color: var(--light-text);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-warm-hover);
}
.why-card:hover::before { width: 100%; }

.why-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
}
.why-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent-gold);
  fill: none;
  stroke-width: 1.5;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--light-text);
  margin: 0 0 12px;
}
.why-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--light-muted);
  line-height: 1.7;
  margin: 0;
}

/* =============================================
 * SECTION 5: LIFESTYLE STRIP
 * ============================================= */

.lifestyle-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  height: 60vh;
  min-height: 420px;
  max-height: 640px;
  background: var(--dark-bg);
  margin-bottom: -2px; /* prevent scroll compositing seam */
}
.lifestyle-panel {
  overflow: hidden;
  position: relative;
}
.lifestyle-panel + .lifestyle-panel {
  border-left: 1px solid rgba(201, 169, 110, 0.3);
}
.lifestyle-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.lifestyle-panel.visible img {
  transform: scale(1.06);
}

/* =============================================
 * SECTION 6: REVIEWS
 * ============================================= */

.reviews {
  background: var(--dark-bg);
  padding: var(--section-padding) 0;
}
.reviews-header {
  text-align: center;
  margin-bottom: 60px;
}
.reviews-stars {
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}
.reviews-header .section-heading {
  color: var(--dark-text);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 36px;
  transition: transform var(--transition), border-color var(--transition);
}
.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 110, 0.3);
}

.review-card-stars {
  color: var(--accent-gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.review-card-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.7;
  margin: 0 0 24px;
}
.review-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: white;
}
.review-card-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
}
.review-card-origin {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--dark-muted);
}

/* =============================================
 * SECTION 7: FAQ
 * ============================================= */

.faq {
  background: var(--light-bg);
  padding: var(--section-padding) 0;
}
.faq-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.faq-header .section-heading {
  color: var(--light-text);
}

.faq-item {
  border-bottom: 1px solid rgba(44, 36, 22, 0.1);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  min-height: 44px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--accent-gold); }
.faq-question h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--light-text);
  margin: 0;
  transition: color var(--transition-fast);
}
.faq-question:hover h3 { color: var(--accent-gold); }

.faq-toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid rgba(44, 36, 22, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}
.faq-toggle svg {
  width: 14px;
  height: 14px;
  stroke: var(--light-muted);
  stroke-width: 2;
  fill: none;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}
.faq-item.open .faq-toggle svg {
  stroke: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  visibility: hidden; /* Prevents focus on links inside collapsed answers (a11y fix). */
  transition: max-height 500ms cubic-bezier(0.4, 0, 0.2, 1), padding 500ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 500ms;
}
.faq-answer p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--light-muted);
  line-height: 1.7;
  padding-bottom: 24px;
  margin: 0;
}
.faq-item.open .faq-answer {
  max-height: 800px;
  visibility: visible;
  transition: max-height 500ms cubic-bezier(0.4, 0, 0.2, 1), padding 500ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

/* =============================================
 * SECTION 8: FINAL CTA
 * ============================================= */

.final-cta {
  position: relative;
  padding: var(--section-padding) 24px;
  overflow: hidden;
  background: var(--dark-bg);
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenBurnsSlow 30s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 24, 20, 0.35) 0%, rgba(26, 24, 20, 0.6) 100%);
}
.final-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.final-cta-content h2 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0 0 20px;
}
.final-cta-content p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0 0 40px;
}
.final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
 * VEHICLE GRID + VEHICLE CARD (Homepage & Motorhomes Listing)
 * ============================================= */

/* Base grid layout — 3 columns on desktop */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vehicle-card {
  transition: border-color var(--transition), box-shadow var(--transition);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  cursor: pointer;
}
.vehicle-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-warm-hover);
}
.vehicle-card img {
  transition: transform var(--transition);
}
.vehicle-card:hover img {
  transform: scale(1.05);
}

/* --- Glassmorphism Card (Legacy) --- */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  transition: background-color var(--transition), border-color var(--transition);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 169, 110, 0.3);
}

/* =============================================
 * SPECIFICATIONS TABLE (Vehicle Pages)
 * ============================================= */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--dark-border);
}
.spec-table th {
  font-weight: 400;
  color: var(--dark-muted);
  width: 45%;
}
.spec-table td {
  color: var(--dark-text);
  font-weight: 500;
}
.spec-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}
.spec-table-category {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-text);
  margin: 32px 0 12px 0;
}
.spec-table-header {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

/* =============================================
 * QUICK-REFERENCE ICON BOX (Vehicle Pages)
 * ============================================= */

.quick-ref-icons .elementor-icon-box-wrapper { text-align: center; }
.quick-ref-icons .elementor-icon-box-icon svg {
  fill: var(--accent-gold);
  width: 28px;
  height: 28px;
}
.quick-ref-icons .elementor-icon-box-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark-muted);
  margin-top: 8px;
}
.quick-ref-icons .elementor-icon-box-description {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-text);
}

/* =============================================
 * NAV SCROLL STATE
 * ============================================= */

.elementor-location-header {
  transition: background-color var(--transition),
              border-color var(--transition),
              min-height var(--transition);
}
.elementor-location-header.nav-scrolled {
  background-color: var(--dark-bg) !important;
  border-bottom: 1px solid var(--dark-border);
  min-height: var(--nav-height-scrolled) !important;
}

/* =============================================
 * FORM INPUT FIX (iOS Safari)
 * ============================================= */

.elementor-form input,
.elementor-form select,
.elementor-form textarea,
.jet-form-builder__field {
  font-size: max(16px, 1em) !important;
}

/* =============================================
 * RESPONSIVE BREAKPOINTS
 * ============================================= */

@media (max-width: 1024px) {
  :root { --section-padding: 100px; }
  .section-heading { font-size: 36px; }
  .hero-content h1 { font-size: 56px; }
  .motorhomes-grid { grid-template-columns: repeat(2, 1fr); }
  /* Vehicle grid responsive — matches motorhomes-grid breakpoints */
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-us-grid .why-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .motorhomes { padding: 60px 24px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .lifestyle-strip {
    height: 40vh;
    min-height: 300px;
  }
  .final-cta-content h2 { font-size: 42px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px; }
  .container { padding: 0 24px; }
  .section-heading { font-size: 30px; }

  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .welcome { padding: 60px 24px; }
  .welcome p { font-size: 15px; }
  .welcome-stats {
    flex-direction: column;
    gap: 24px;
  }
  .welcome-stat-number { font-size: 30px; }

  .motorhomes { padding: 40px 16px; }
  .motorhomes-grid { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .why-us-grid .why-card:last-child {
    max-width: none;
  }

  .lifestyle-strip {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .lifestyle-panel {
    height: 220px;
  }
  .lifestyle-panel + .lifestyle-panel {
    border-left: none;
    border-top: 1px solid rgba(201, 169, 110, 0.3);
  }

  .reviews-grid { grid-template-columns: 1fr; }

  .final-cta-content h2 { font-size: 34px; }
  .final-cta-buttons { flex-direction: column; align-items: center; }

  .btn-gold,
  .btn-outline-light,
  .btn-outline-dark {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* --- Shared CTA Button (used on vehicle pages, thank-you page, etc.) --- */
.vehicle-cta-btn {
  display: inline-block;
  background: var(--accent-gold, #C9A96E);
  color: var(--dark-bg, #1A1814);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 40px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.vehicle-cta-btn:hover {
  background: var(--accent-hover, #B8944F);
  color: var(--dark-bg, #1A1814);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}
.vehicle-cta-btn.vehicle-cta-btn--outline {
  background: transparent;
  color: var(--accent-gold, #C9A96E);
  border: 2px solid var(--accent-gold, #C9A96E);
}
.vehicle-cta-btn.vehicle-cta-btn--outline:hover {
  background: var(--accent-gold, #C9A96E);
  color: var(--dark-bg, #1A1814);
}
