/* ============================================
   ECODRIVE CAR LEASE - Dual Theme
   ============================================ */

/* ============================================================
   ECODRIVE DESIGN TOKENS
   Brand: refined Ecodrive green (from the logo, de-muddied out of
   the old olive #90ac32). Language follows the WW Design System —
   one accent carries every primary action; neutrals + space do the
   premium heavy-lifting. Light-first, with a production-grade dark.
   ============================================================ */

/* Dark theme (also the :root fallback) */
:root,
[data-theme="dark"] {
  /* Brand — the Ecodrive logo's leaf→forest green (not the old olive, not a
     pure emerald). A lively leaf-green accent + a lime spark + deep forest. */
  --brand: #58A62E;
  --brand-strong: #3C7A1E;
  --brand-bright: #9BD143;          /* lime leaf — pops on dark, prices, numbers */
  --brand-rgb: 88, 166, 46;         /* drives every rgba(var(--brand-rgb), a) tint */
  --forest: #234D12;

  /* Legacy aliases → new green, so existing --accent-gold* usages just work */
  --accent-gold: var(--brand);
  --accent-gold-light: var(--brand-bright);
  --accent-gold-dark: var(--brand-strong);
  --accent-silver: #c0c0c0;

  /* Neutral charcoal surfaces — green lives ONLY in the accent, never the chrome */
  --bg-primary: #0B0C0D;
  --bg-secondary: #101214;
  --bg-card: #16181B;
  --bg-card-hover: #1E2126;
  --bg-glass: rgba(12, 13, 15, 0.72);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --text-primary: #F3F4F5;
  --text-secondary: rgba(243, 244, 245, 0.68);
  --text-muted: rgba(243, 244, 245, 0.44);

  --gradient-gold: linear-gradient(135deg, #234D12 0%, #58A62E 52%, #9BD143 100%);
  --gradient-dark: linear-gradient(180deg, #0B0C0D, #101214);
  --gradient-card: linear-gradient(145deg, rgba(var(--brand-rgb), 0.06), rgba(22, 24, 27, 0.8));

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 14px 40px rgba(var(--brand-rgb), 0.28);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;

  --font-sans: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Manrope', 'Inter', -apple-system, sans-serif;

  --transition-fast: 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-base: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.55s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1240px;
  --nav-height: 76px;
}

/* Light theme — the default, production-quality experience */
[data-theme="light"] {
  --brand: #45871F;                 /* leaf green — CTAs; white text passes AA-large */
  --brand-strong: #356618;          /* darker: link text + hover, AA on white */
  --brand-bright: #7CB733;          /* lime leaf — subtle sparks */
  --brand-rgb: 69, 135, 31;
  --forest: #234D12;

  --accent-gold: var(--brand);
  --accent-gold-light: var(--brand-bright);
  --accent-gold-dark: var(--brand-strong);

  --bg-primary: #F7F7F5;            /* neutral off-white — not green */
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F2EF;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --border-color: rgba(20, 22, 26, 0.10);
  --border-hover: rgba(20, 22, 26, 0.20);

  --text-primary: #14161A;          /* neutral near-black */
  --text-secondary: rgba(20, 22, 26, 0.66);
  --text-muted: rgba(20, 22, 26, 0.6);   /* was 0.46 (~3:1, failed AA); 0.6 ≈ 4.6:1 for small muted text */

  --gradient-gold: linear-gradient(135deg, #356618 0%, #45871F 55%, #7CB733 100%);
  --gradient-dark: linear-gradient(180deg, #F7F7F5, #FFFFFF);
  --gradient-card: linear-gradient(145deg, rgba(var(--brand-rgb), 0.05), rgba(255, 255, 255, 0.9));

  --shadow-sm: 0 2px 8px rgba(12, 30, 20, 0.06);
  --shadow-md: 0 12px 36px rgba(12, 30, 20, 0.09);
  --shadow-lg: 0 24px 64px rgba(12, 30, 20, 0.12);
  --shadow-gold: 0 14px 38px rgba(var(--brand-rgb), 0.20);
}

[data-theme="light"] .preloader {
  background: var(--bg-primary);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

[data-theme="light"] .car-card-cta:hover {
  color: #ffffff;
}

[data-theme="light"] .nav-toggle span {
  background: var(--text-primary);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Logo image switching per theme */
.logo-img {
  height: 40px;
  width: auto;
  display: none;
}

[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(var(--brand-rgb), 0.3);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(var(--brand-rgb), 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 8px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 2px;
  animation: preloaderProgress 1.5s ease-in-out forwards;
}

@keyframes preloaderProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
}

.logo-eco {
  color: var(--accent-gold);
}

.logo-drive {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-phone:hover {
  color: var(--accent-gold);
}

/* Unified nav CTA buttons — Call Now, Start Chat and Get a Quote share the
   exact same height, shape, and hover motion so they read as one clean set. */
.nav-cta,
.nav-cta-sm {
  position: relative;
  height: 40px;
  min-width: 118px;
  padding: 0 16px;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease, filter 0.25s ease;
}

.nav-cta:hover,
.nav-cta-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(var(--brand-rgb), 0.4);
  filter: brightness(1.06);
}

.nav-cta:active,
.nav-cta-sm:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.3);
}

/* Call Now / Start Chat share the unified CTA rule above; these just add the
   animated icon and live dot. */
.nav-cta-sm svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Call Now — phone gives a little ring on hover */
.nav-cta-sm[href^="tel"]:hover svg {
  animation: nav-phone-ring 0.5s ease;
}

@keyframes nav-phone-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(6deg); }
}

/* Start Chat — small pulsing white "live agent" dot in the top-right corner
   (absolute so it doesn't change the button's width vs. the others) */
#startChatBtn::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: nav-live-pulse 2s ease-out infinite;
}

#startChatBtn:hover svg {
  transform: scale(1.1);
}

@keyframes nav-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  #startChatBtn::after { animation: none; }
  .nav-cta-sm[href^="tel"]:hover svg { animation: none; }
}

/* Transparent navbar over the hero video — force light, readable text
   regardless of theme or how bright/dark the video frame is */
.navbar:not(.scrolled) .nav-link,
.navbar:not(.scrolled) .nav-phone {
  color: rgba(255, 255, 255, 0.82);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
  color: #ffffff;
}

.navbar:not(.scrolled) .nav-phone:hover {
  color: var(--accent-gold-light);
}

/* Show the light (for-dark-bg) logo while over the video, in either theme */
[data-theme="light"] .navbar:not(.scrolled) .logo-light { display: none; }
[data-theme="light"] .navbar:not(.scrolled) .logo-dark { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--nav-height) 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Poster as a background so the hero always has an image even when the video
     is suppressed (mobile / reduced-motion / data-saver) — no layout shift, no flash. */
  background: #0b0c0d url('/assets/images/hero-poster.jpg') center center / cover no-repeat;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Don't ship the hero video to phones — the poster background carries the hero. */
@media (max-width: 768px) {
  .hero-video { display: none; }
}

.hero-video-yt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 120%;
  min-height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

/* Dark scrim tuned for text legibility — same in both themes so the
   white hero text stays readable no matter how bright/dark the video is */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 18%),
    radial-gradient(ellipse 85% 65% at 50% 46%,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.38) 55%,
      rgba(0, 0, 0, 0.26) 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(var(--brand-rgb), 0.08) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 78%, #0a0a0f 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 900px;
}

/* Hero sits over a video — force light text in BOTH themes for readability */
.hero-title {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Hero is a dark "island" in both themes, so keep the vivid green accents
   (not the muted light-theme gold) for the gradient title + stat numbers */
.hero .text-gradient {
  background-image: linear-gradient(135deg, #2fcb72, #12864b, #2fcb72);
}

.hero .stat-number {
  color: #2fcb72;
}

/* The "+" / "%" next to the stats are bare text nodes in .stat, so they
   inherit the theme text colour (black in light theme) and vanish over the
   video — keep them light in both themes */
.hero .stat {
  color: #ffffff;
}

.hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.hero .stat-label {
  color: rgba(255, 255, 255, 0.72);
}

.hero .stat-divider {
  background: rgba(255, 255, 255, 0.18);
}

.hero .hero-scroll-indicator {
  color: rgba(255, 255, 255, 0.72);
}

.hero .hero-badge {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(var(--brand-rgb), 0.6);
  color: var(--accent-gold-light);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Secondary hero button — light outline so it reads over the video */
.hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero .btn-outline:hover {
  border-color: var(--accent-gold-light);
  color: var(--accent-gold-light);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-gold);
  padding: 10px 24px;
  border: 1px solid rgba(var(--brand-rgb), 0.4);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(var(--brand-rgb), 0.05);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* ============================================
   FEATURED DEALS
   ============================================ */
.featured {
  background: var(--bg-secondary);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.car-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.car-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: var(--shadow-gold);
}

.car-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.car-card:hover .car-card-image img {
  transform: scale(1.05);
}

.car-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  background: var(--accent-gold);
  color: #0a0a0f;
}

.car-card-body {
  padding: 24px;
  flex: 1;
}

.car-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.car-card-trim {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.car-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.car-card-price .amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.car-card-price .period {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.car-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.car-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.car-card-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-base);
  margin-top: auto;
}

.car-card-cta:hover {
  background: var(--accent-gold);
  color: #0a0a0f;
}

.section-cta {
  text-align: center;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-base);
}

.step-card:hover {
  border-color: rgba(var(--brand-rgb), 0.2);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(var(--brand-rgb), 0.08);
  line-height: 1;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   BRANDS MARQUEE
   ============================================ */
.brands {
  background: var(--bg-secondary);
  overflow: hidden;
}

.brands-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
  display: flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.brand-item {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 12px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.brand-item:hover {
  color: var(--accent-gold);
  border-color: rgba(var(--brand-rgb), 0.3);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   WHY US / ADVANTAGES
   ============================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.advantage-card:hover {
  border-color: rgba(var(--brand-rgb), 0.2);
  transform: translateY(-4px);
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-card {
  background: var(--gradient-card);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-rgb), 0.08);
  top: -200px;
  right: -100px;
}

.cta-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -50px;
  top: auto;
  right: auto;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact-item svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form submission feedback (success / error) — shared by contact + quote forms */
.form-status {
  font-size: 0.85rem;
  line-height: 1.4;
  transition: var(--transition-base);
}

.form-status:empty {
  display: none;
}

.form-status.success {
  color: #16a34a;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
}

.form-status.error {
  color: #dc2626;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-sm);
}

/* ============================================
   QUOTE MODAL (shared: index + deals)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;               /* allow the whole dialog to scroll on short viewports */
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 48px);  /* never exceed the viewport… */
  overflow-y: auto;                /* …scroll the form instead of clipping title/close/submit */
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.modal-content > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-base);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: var(--text-muted);
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--accent-gold);
}

.quote-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition-base);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.6875rem !important;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Below wide desktop the full nav links + three CTAs crowd the bar and the
   links start to wrap, so drop the Call Now / Start Chat pills — Get a Quote
   stays as the primary CTA (the floating chat launcher is still available). */
@media (max-width: 1240px) {
  .nav-actions .nav-cta-sm {
    display: none;
  }
}

/* Collapse the full nav to a hamburger BEFORE the links + Call/Text + controls + CTA
   can crowd and overflow the bar. Previously the bar overflowed and clipped the
   "Get a Quote" CTA + EN/ES switcher across the entire 769-1236px band with no menu. */
@media (max-width: 1480px) {
  :root { --nav-height: 64px; }
  .nav-links { display: none; }
  .nav-social { display: none; }                 /* keep the collapsed bar clean; socials show on wide screens + footer */
  .nav-toggle { display: flex; }
  .nav-actions .nav-controls { display: none; } /* desktop theme+lang; the drawer carries its own */
  .nav-actions .nav-cta { display: none; }      /* collapsed bar = logo + Call/Text + menu */
  .nav-links.active { display: flex; flex-direction: column; } /* panel positioning lives in premium.css */
  .nav-links.active .nav-drawer-controls { display: flex; } /* specific enough to beat the base display:none defined later */
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  
  .nav-links,
  .nav-actions .nav-phone,
  .nav-actions .nav-cta-sm {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  
  .steps-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .cta-card {
    padding: 48px 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    justify-content: center;
  }
}

/* ============================================
   THEME TOGGLE & LANGUAGE SWITCHER
   ============================================ */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--border-color);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-base);
}

.theme-toggle:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.lang-switcher {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.lang-btn {
  padding: 6px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: var(--bg-card);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: var(--accent-gold);
  color: #0a0a0f;
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.service-card:hover {
  border-color: rgba(var(--brand-rgb), 0.2);
  transform: translateY(-4px);
}

.service-card.js-service { cursor: pointer; }
.service-card.js-service:hover { border-color: rgba(var(--brand-rgb), 0.45); }

.service-card-cta {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.service-card.js-service:hover .service-card-cta {
  opacity: 1;
  transform: translateX(4px);
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-controls {
    gap: 6px;
  }
  
  .nav-phone {
    display: none;
  }
}

[data-theme="light"] .lang-btn.active {
  color: #ffffff;
}

/* ============================================
   Tailored service modal (What We Offer cards)
   ============================================ */
.service-modal {
  max-width: 780px;
  padding: 0;
  max-height: calc(100vh - 48px);
  overflow: hidden auto;   /* clip rounded corners horizontally; scroll vertically on short viewports */
  --svc-accent: #12864b;
}

.svc-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
}

.svc-aside {
  position: relative;
  padding: 44px 34px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(130% 90% at 0% 0%, color-mix(in srgb, var(--svc-accent) 22%, transparent) 0%, transparent 58%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.18));
}

.svc-aside-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--svc-accent);
  background: color-mix(in srgb, var(--svc-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent) 32%, transparent);
  animation: svc-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.svc-aside-icon svg { width: 30px; height: 30px; }

@keyframes svc-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.svc-aside-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.svc-aside-tagline {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.svc-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.svc-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-primary);
  animation: svc-slide 0.45s ease both;
}
.svc-benefits li:nth-child(1) { animation-delay: 0.05s; }
.svc-benefits li:nth-child(2) { animation-delay: 0.12s; }
.svc-benefits li:nth-child(3) { animation-delay: 0.19s; }
.svc-check {
  color: var(--svc-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes svc-slide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.svc-aside-trust {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.svc-form-side {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.svc-form-head {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.svc-extra {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.svc-flabel {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.service-modal .svc-fg input,
.service-modal .svc-select {
  width: 100%;
  padding: 13px 15px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-modal .svc-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.service-modal .svc-fg input:focus,
.service-modal .svc-select:focus {
  border-color: var(--svc-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc-accent) 18%, transparent);
}

@media (max-width: 640px) {
  .service-modal {
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 32px 28px 26px;
  }
  .svc-aside-trust { display: none; }
  .svc-form-side { padding: 28px; }
}

/* ============================================
   How It Works — clickable step cards + detail modal
   ============================================ */
.js-step { cursor: pointer; }
.js-step:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

.step-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
}
.js-step:hover .step-more { transform: translateX(4px); }

.step-modal {
  max-width: 480px;
  text-align: center;
  --svc-accent: #12864b;
}
.step-modal-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
.step-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--svc-accent);
  background: color-mix(in srgb, var(--svc-accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent) 30%, transparent);
  animation: svc-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.step-modal-icon svg { width: 32px; height: 32px; }
.step-modal-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--svc-accent) 45%, var(--text-muted));
}
.step-modal-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.step-modal-lead {
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 auto 22px;
  max-width: 380px;
}
.step-modal .svc-benefits {
  text-align: left;
  max-width: 360px;
  margin: 0 auto 26px;
}

/* ============================================================
   PREMIUM REFINEMENT LAYER  ·  2027 redesign
   Sits on top of the tokenized base. One accent (brand green),
   restraint, whitespace, confident type. Retires the old
   template gimmicks; elevates the core components.
   ============================================================ */

/* ---- Type & rhythm -------------------------------------------------- */
body { letter-spacing: -0.011em; }

.section { padding: clamp(72px, 9vw, 128px) 0; }

.section-header { margin-bottom: clamp(40px, 5vw, 68px); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Kicker: a tracked micro-label with a short leading rule (WW micro-label) */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.section-tag::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.65;
}
[data-theme="light"] .section-tag { color: var(--brand-strong); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              background var(--transition-base), border-color var(--transition-base),
              color var(--transition-base), filter var(--transition-base);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 44px rgba(var(--brand-rgb), 0.34);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.06);
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 34px; font-size: 1rem; }

/* ---- Navbar: declutter + polish ------------------------------------ */
.navbar.scrolled {
  background: var(--bg-glass);
  box-shadow: 0 1px 0 var(--border-color), 0 8px 30px rgba(0,0,0,0.06);
}
[data-theme="dark"] .navbar.scrolled { box-shadow: 0 1px 0 var(--border-color), 0 10px 34px rgba(0,0,0,0.4); }

.nav-link { font-size: 0.9rem; font-weight: 600; }

/* Social icons — right of the logo (Facebook / Instagram / TikTok) */
.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border-color);
}
.nav-social-link {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.nav-social-link:hover {
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.10);
  transform: translateY(-1px);
}

/* Call + Text — one elegant segmented control (both contact methods, one unit) */
.nav-contact {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 15px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-contact-btn svg { flex-shrink: 0; }
.nav-contact-btn + .nav-contact-btn { border-left: 1px solid var(--border-hover); }
.nav-contact-btn:hover { background: rgba(var(--brand-rgb), 0.10); color: var(--brand); }

/* Desktop (PC) shows the real phone number so visitors can read + dial it;
   mobile keeps the compact tap-to-call icon (dialing beats reading on a phone). */
.nav-call-num { display: none; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
@media (min-width: 1024px) {
  .nav-call .nav-call-word { display: none; }
  .nav-call .nav-call-num { display: inline; }
}

/* Over the hero video (navbar transparent) — force light + glassy */
.navbar:not(.scrolled) .nav-social { border-left-color: rgba(255,255,255,0.28); }
.navbar:not(.scrolled) .nav-social-link { color: rgba(255,255,255,0.82); }
.navbar:not(.scrolled) .nav-social-link:hover { color: #fff; background: rgba(255,255,255,0.15); }
.navbar:not(.scrolled) .nav-contact {
  border-color: rgba(255,255,255,0.42);
  background: rgba(0,0,0,0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.navbar:not(.scrolled) .nav-contact-btn { color: #fff; }
.navbar:not(.scrolled) .nav-contact-btn + .nav-contact-btn { border-left-color: rgba(255,255,255,0.3); }
.navbar:not(.scrolled) .nav-contact-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

@media (max-width: 1180px) { .nav-social { display: none; } }
@media (max-width: 768px) {
  .nav-contact-btn span { display: none; }   /* icon-only, keeps click-to-call/text on mobile */
  .nav-contact-btn { padding: 0 13px; }
}

/* ---- Hero ----------------------------------------------------------- */
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
/* Keep the accent line legible over video: bright leaf→lime + glow */
.hero .text-gradient {
  background-image: linear-gradient(120deg, #DCEFA4 0%, #9BD143 100%);
  filter: drop-shadow(0 2px 18px rgba(0,0,0,0.4));
}

.hero-badge {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
}

.hero-subtitle { font-size: 1.15rem; line-height: 1.65; max-width: 620px; }

.hero-stats { gap: clamp(28px, 5vw, 56px); }
.stat-number { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
}
.hero .stat-number { color: #A6D95B; }

/* Deepen the video scrim a touch for premium contrast + legibility */
.hero-video-overlay {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 22%),
    radial-gradient(ellipse 90% 70% at 50% 46%,
      rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.42) 55%, rgba(0,0,0,0.32) 100%);
}
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 38%, rgba(var(--brand-rgb), 0.10) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 76%, var(--bg-primary) 100%);
}

/* ---- Featured car cards -------------------------------------------- */
/* Kill the old 3D-tilt scaffolding; premium = flat card, soft lift. */
.car-card { transform-style: flat; perspective: none; }
.car-card .car-card-body { transform: none; }

.car-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base),
              box-shadow var(--transition-base);
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--brand-rgb), 0.38);
  box-shadow: var(--shadow-gold);
}
.car-card-image { height: 208px; background: var(--bg-card-hover); }
.car-card-badge {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.35);
}
.car-card-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.car-card-price .amount { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.car-card-cta {
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand);
  font-weight: 700;
}
.car-card-cta:hover { background: var(--brand); color: #fff; }

/* ---- Brands marquee ------------------------------------------------- */
.brands-track { gap: 40px; animation-duration: 55s; }
.brand-item {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 11px 26px;
}
.brand-item:hover {
  color: var(--brand);
  border-color: rgba(var(--brand-rgb), 0.4);
  background: rgba(var(--brand-rgb), 0.05);
}

/* ---- CTA panel ------------------------------------------------------ */
.cta-card {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--brand-rgb), 0.16), transparent 55%),
    var(--bg-card);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.cta-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

/* ---- Footer polish -------------------------------------------------- */
.footer { padding-top: clamp(56px, 7vw, 88px); }
.footer-brand p { color: var(--text-muted); }

/* ---- Back to top ---------------------------------------------------- */
.back-to-top { border-radius: 50%; }

/* ---- Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---- Keep the fuller header (socials + Call/Text) on one tidy line ---- */
.nav-container { gap: 18px; }
.nav-links { gap: 19px; flex-wrap: nowrap; }
.nav-link { white-space: nowrap; }
.nav-actions { gap: 10px; flex-shrink: 0; }
.nav-logo { flex-shrink: 0; }
.nav-social { margin-left: 12px; padding-left: 12px; }
.nav-social-link { width: 28px; height: 28px; }
.nav-contact-btn { padding: 0 13px; }

/* ---- How It Works — richer page sections ---- */
.hiw-metrics { padding-top: 0; }
.hiw-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 36px 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.hiw-metric { text-align: center; }
.hiw-metric-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--brand);
}
[data-theme="dark"] .hiw-metric-num { color: var(--brand-bright); }
.hiw-metric-unit { font-size: 0.55em; font-weight: 700; }
.hiw-metric-label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--text-muted);
}

.hiw-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hiw-why-card {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.hiw-why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: var(--shadow-gold);
}
.hiw-why-icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.10);
  margin-bottom: 20px;
}
[data-theme="dark"] .hiw-why-icon { color: var(--brand-bright); }
.hiw-why-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.hiw-why-card p { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; }

.hiw-faq { padding-top: 0; }

@media (max-width: 900px) {
  .hiw-metrics-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .hiw-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hiw-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- About Us page: story + partner network ---- */
.aboutus-story { padding-bottom: clamp(56px, 7vw, 96px); }
.aboutus-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.aboutus-story-text .section-tag { margin-bottom: 14px; }
.aboutus-story-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 20px;
}
.aboutus-story-text p { color: var(--text-secondary); line-height: 1.75; font-size: 1.02rem; margin-bottom: 16px; }
.aboutus-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.aboutus-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600;
}
.aboutus-badge svg { color: var(--brand); }
[data-theme="dark"] .aboutus-badge svg { color: var(--brand-bright); }

.aboutus-story-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aboutus-stat {
  padding: 26px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.aboutus-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--brand);
}
[data-theme="dark"] .aboutus-stat-num { color: var(--brand-bright); }
.aboutus-stat-label { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.dealer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dealer-card {
  padding: 22px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.dealer-card:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb), 0.35); box-shadow: var(--shadow-gold); }
.dealer-brand {
  display: inline-block;
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 700; color: var(--brand); margin-bottom: 10px;
}
[data-theme="dark"] .dealer-brand { color: var(--brand-bright); }
.dealer-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.dealer-loc { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .aboutus-story-grid { grid-template-columns: 1fr; }
  .dealer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .dealer-grid { grid-template-columns: 1fr; }
}

/* ---- Homepage trust bar (floats up over the hero base) ---- */
.trust-bar { position: relative; z-index: 5; padding: 0; }
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px 30px;
  max-width: 1080px;
  margin: -44px auto 0;
  padding: 22px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-secondary); white-space: nowrap; }
.trust-item svg { color: var(--brand); flex-shrink: 0; }
[data-theme="dark"] .trust-item svg { color: var(--brand-bright); }
.trust-item strong { color: var(--text-primary); font-weight: 800; }
.trust-divider { width: 1px; height: 26px; background: var(--border-color); }
@media (max-width: 860px) {
  .trust-divider { display: none; }
  .trust-bar-inner { margin-top: -28px; gap: 14px 22px; padding: 20px 22px; }
  .trust-item { font-size: 0.86rem; }
}

/* ---- Collapsed header: keep it clean (logo + Call/Text + menu). Controls/CTA
        are hidden and the switcher moves into the drawer via the ≤1200 block above. ---- */
@media (max-width: 1480px) {
  .nav-actions { gap: 8px; }
  .nav-contact { height: 38px; }
  .nav-contact-btn { padding: 0 12px; }
}

/* ---- Reworked premium footer ---- */
.footer { padding: clamp(56px, 7vw, 88px) 0 30px; border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-color);
}
.footer-brand .nav-logo { display: inline-flex; margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 330px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.footer-social a:hover { color: var(--brand); border-color: rgba(var(--brand-rgb), 0.4); background: rgba(var(--brand-rgb), 0.08); transform: translateY(-2px); }
[data-theme="dark"] .footer-social a:hover { color: var(--brand-bright); }

.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-primary); margin-bottom: 16px; }
/* Plain link lists only. Contact rows are excluded: this selector outranks
   .footer-contact-item, and display:block would drop their flex gap so the
   text butts against its icon. The nudge-right hover is wrong for them too. */
.footer-col a:not(.footer-contact-item) { display: block; font-size: 0.88rem; color: var(--text-muted); padding: 6px 0; transition: color var(--transition-fast), transform var(--transition-fast); }
.footer-col a:not(.footer-contact-item):hover { color: var(--brand); transform: translateX(3px); }
[data-theme="dark"] .footer-col a:not(.footer-contact-item):hover { color: var(--brand-bright); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 11px; font-size: 0.88rem; color: var(--text-muted); padding: 7px 0; line-height: 1.5; }
.footer-contact-item svg { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
[data-theme="dark"] .footer-contact-item svg { color: var(--brand-bright); }
a.footer-contact-item { transition: color var(--transition-fast); }
a.footer-contact-item:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 26px; margin-top: 0; text-align: left;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 0.82rem; color: var(--text-muted); transition: color var(--transition-fast); }
.footer-legal a:hover { color: var(--brand); }
[data-theme="dark"] .footer-legal a:hover { color: var(--brand-bright); }
.footer-disclaimer {
  font-size: 0.72rem !important; color: var(--text-muted); opacity: 0.82;
  margin: 16px auto 0; max-width: 100%; text-align: left; line-height: 1.6;
}

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 28px; } }
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Nav fits 7 links + socials + Call/Text + CTA: widen the bar, tighten spacing ---- */
.nav-container { max-width: 1500px; gap: 14px; }
.nav-links { gap: 10px; }
.nav-link { font-size: 0.83rem; }
.nav-social { margin-left: 8px; padding-left: 8px; gap: 1px; }
.nav-social-link { width: 26px; height: 26px; }
.nav-contact-btn { padding: 0 11px; font-size: 0.78rem; }
/* socials + full row appear only on wide screens; below the collapse point (≤1200) the hamburger owns nav */

/* Language + theme controls surfaced inside the mobile/collapsed drawer (hidden on desktop
   where the bar's own .nav-controls handles it). Shown by the ≤1200px collapse block. */
.nav-drawer-controls { display: none; align-items: center; gap: 16px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--border-color); }
.nav-drawer-controls .lang-switcher { display: inline-flex; }

/* ---- Credit application form ---- */
.credit-app .credit-wrap { max-width: 860px; }
.credit-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-bottom: 38px; }
.credit-trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.credit-trust-item svg { color: var(--brand); }
[data-theme="dark"] .credit-trust-item svg { color: var(--brand-bright); }

.credit-form { display: flex; flex-direction: column; gap: 22px; }
.credit-fieldset {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px 28px;
  margin: 0;
}
.credit-fieldset legend {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  padding: 0 8px; margin-left: -8px;
}
.credit-step-num {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 0.82rem; font-weight: 800;
}
.credit-optional {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); padding: 3px 9px; border: 1px solid var(--border-color); border-radius: var(--radius-pill);
}
.credit-fieldset .form-row { margin-top: 16px; }
.credit-fieldset > .form-group { margin-top: 16px; }
/* Field captions only. Interactive labels (radio pills, consent rows, the
   co-applicant toggle) are excluded on purpose: this selector outranks their
   own class rules, and `display: block` would kill their flex gap — pushing the
   radio dot above its text and letting the checkbox overlap the first word. */
.credit-fieldset label:not(.credit-radio):not(.credit-consent):not(.credit-toggle) {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px;
}
.credit-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.credit-fieldset .form-group input { background: var(--bg-primary); }

.credit-select {
  width: 100%; padding: 14px 16px; font-size: 0.9rem; font-family: var(--font-sans);
  background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.credit-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.14); }

.credit-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.credit-radio {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 0;
  padding: 11px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-pill);
  cursor: pointer; font-size: 0.88rem; font-weight: 500; color: var(--text-primary);
  transition: border-color .2s, background .2s;
}
.credit-radio input { width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: var(--brand); }
.credit-radio:hover { border-color: var(--border-hover); }
.credit-radio:has(input:checked) { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.08); }

.credit-toggle { display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.credit-toggle input { width: 17px; height: 17px; margin: 0; flex-shrink: 0; accent-color: var(--brand); }
.credit-co { margin-top: 4px; }

.credit-consent {
  display: flex; align-items: flex-start; gap: 11px; margin: 0 0 12px;
  font-size: 0.88rem; line-height: 1.5; color: var(--text-secondary); cursor: pointer; font-weight: 400;
}
.credit-consent input { width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.credit-consent:last-of-type { margin-bottom: 22px; }

.credit-fineprint { margin-top: 16px; font-size: 0.74rem; color: var(--text-muted); line-height: 1.6; text-align: center; }

@media (max-width: 640px) { .credit-row-3 { grid-template-columns: 1fr; } }

/* ---- Legal pages (Privacy / Terms) ---- */
.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal-head { max-width: 820px; margin: 0 auto clamp(30px, 5vw, 48px); }
.legal-head .section-tag { margin-bottom: 14px; }
.legal-head h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.1;
}
.legal-updated { margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -0.02em; margin: 36px 0 12px; color: var(--text-primary);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-secondary); line-height: 1.75; font-size: 0.98rem; margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { color: var(--text-secondary); line-height: 1.7; font-size: 0.98rem; margin-bottom: 9px; }
.legal-content strong { color: var(--text-primary); font-weight: 600; }
.legal-content a { color: var(--brand); font-weight: 500; }
.legal-content a:hover { text-decoration: underline; }
[data-theme="dark"] .legal-content a { color: var(--brand-bright); }

/* ---- "Apply" — persistent credit-application action in the nav ---- */
.nav-apply {
  color: var(--brand) !important;
  border: 1px solid rgba(var(--brand-rgb), 0.45);
  border-radius: var(--radius-pill);
  padding: 6px 15px !important;
  font-weight: 700 !important;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
[data-theme="dark"] .nav-apply { color: var(--brand-bright) !important; }
.nav-apply::after { display: none !important; }
.nav-apply:hover { background: rgba(var(--brand-rgb), 0.10); border-color: var(--brand); }
.nav-apply.active { background: rgba(var(--brand-rgb), 0.14); border-color: var(--brand); }
/* Over the hero video */
.navbar:not(.scrolled) .nav-apply { color: #fff !important; border-color: rgba(255,255,255,0.55); }
.navbar:not(.scrolled) .nav-apply:hover { background: rgba(255,255,255,0.14); }
/* In the mobile slide-in menu: read as a solid, legible accent CTA (was a faint tint that failed contrast) */
@media (max-width: 1480px) {
  .nav-links.active .nav-apply {
    border: 0 !important;
    border-radius: var(--radius-sm);
    padding: 13px 16px !important;
    background: var(--brand) !important;
    color: #fff !important;
    margin-top: 6px;
  }
  [data-theme="dark"] .nav-links.active .nav-apply {
    background: var(--brand-bright) !important;
    color: #0B0C0D !important;
  }
}

/* ---- 404 page ---- */
.notfound { min-height: calc(100vh - var(--nav-height)); display: flex; align-items: center; }
.notfound-inner { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0; }
.notfound-code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 18vw, 11rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px;
}
.notfound-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.notfound-text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; max-width: 460px; margin: 0 auto 30px; }
.notfound-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Mobile hero: compact stat row (was tall vertical stack) ---- */
@media (max-width: 768px) {
  .hero-stats { flex-direction: row; gap: 8px; justify-content: space-between; padding-top: 28px; }
  .hero-stats .stat { flex: 1; }
  .hero-stats .stat-divider { display: none; }
  .hero .stat-number, .hero-stats .stat-number { font-size: 1.4rem; }
  .hero-stats .stat-label { font-size: 0.6rem; letter-spacing: 0.06em; margin-top: 2px; }
  .hero-subtitle { font-size: 1.02rem; margin-bottom: 32px; }
  .hero-actions { margin-bottom: 40px; }
}

/* ---- Homepage financing band ---- */
.financing-card {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(30px, 4.5vw, 56px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(var(--brand-rgb), 0.14), transparent 55%),
    var(--bg-card);
  box-shadow: var(--shadow-md);
}
.financing-text .section-tag { margin-bottom: 12px; }
.financing-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; margin-bottom: 14px;
}
.financing-text p { color: var(--text-secondary); line-height: 1.65; font-size: 1.02rem; max-width: 560px; }
.financing-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.financing-note { font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 820px) {
  .financing-card { grid-template-columns: 1fr; gap: 22px; }
  .financing-cta { align-items: stretch; }
  .financing-cta .btn { justify-content: center; }
  .financing-note { text-align: center; }
}

/* ---- Skip to content (a11y: WCAG 2.4.1) — hidden until keyboard-focused ---- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 10000;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: -4px; }

/* Tablet portrait (≈600–768px): use two columns for the card grids instead of
   one lonely wide column — single column is reserved for real phones (≤560px). */
@media (min-width: 561px) and (max-width: 768px) {
  .services-grid,
  .steps-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Credit form: driver's licence upload ── */
/* Needs to outrank `.form-group input`, which otherwise forces the 16px/20px
   text-field padding onto the file button and makes these boxes visibly taller
   than the inputs beside them. */
.credit-fieldset .form-group input.credit-file {
  width: 100%;
  padding: 9px 14px;   /* lands the box at the same 55px height as the text fields */
  font: inherit;
  font-size: 0.86rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.credit-file:hover { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.04); }
.credit-file:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.credit-file::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

/* Belongs to the upload row above it, so it sits close instead of floating
   halfway to the next field. */
.credit-fieldset > .form-group.credit-hint-group { margin-top: 8px; }
.credit-hint {
  display: block;
  margin-top: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Only exists once a photo is picked. The [hidden] rule is required: the
   attribute is just `display: none` from the UA sheet, so the `display: flex`
   below would override it and leave an empty bar sitting there looking like
   something failed to load. */
.credit-file-preview[hidden] { display: none; }
.credit-file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(var(--brand-rgb), 0.06);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  border-radius: var(--radius-sm);
  animation: creditFileIn 0.22s ease;
}
@keyframes creditFileIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.credit-file-preview img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.credit-file-preview span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  word-break: break-word;
}

/* ── Driver's-license camera capture (mobile only) ──────────────────────
   Desktop keeps the file <input>. On mobile, credit.js adds .dl-mode-camera
   to the form, which hides the input + its preview and reveals the capture
   button; tapping it opens the full-screen #dlCam surface below. */
.dl-capture-btn { display: none; }
.dl-mode-camera .credit-file,
.dl-mode-camera .credit-file-preview { display: none !important; }
.dl-mode-camera .dl-capture-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  margin-top: 2px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dl-mode-camera .dl-capture-btn:hover { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.04); }
.dl-mode-camera .dl-capture-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dl-capture-btn.is-filled { border-style: solid; border-color: rgba(var(--brand-rgb), 0.45); background: rgba(var(--brand-rgb), 0.06); }
.dl-capture-ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.1);
  border-radius: 50%;
}
.dl-capture-thumb { flex-shrink: 0; width: 62px; height: 40px; object-fit: cover; border-radius: 6px; }
.dl-capture-txt { font-size: 0.9rem; font-weight: 600; line-height: 1.3; color: var(--text-primary); }
.dl-capture-txt small { display: block; margin-top: 3px; font-weight: 400; font-size: 0.78rem; color: var(--text-muted); }

/* Full-screen capture surface */
.dl-cam[hidden] { display: none; }
.dl-cam {
  position: fixed;
  inset: 0;
  z-index: 6000;                 /* above the quote modal (5000) */
  display: flex;
  flex-direction: column;
  background: #000;
}
.dl-cam-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-cam-video,
.dl-cam-still { width: 100%; height: 100%; object-fit: cover; background: #000; }
.dl-cam-video[hidden],
.dl-cam-still[hidden] { display: none; }
.dl-cam-still { position: absolute; inset: 0; }
/* Card-shaped alignment guide (~ID-1 ratio 1.586). The huge spread shadow
   dims everything outside the card so the frame reads as a cut-out. */
.dl-cam-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 74vh * 1.586);
  aspect-ratio: 1.586 / 1;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.dl-cam-corner { position: absolute; width: 24px; height: 24px; border: 3px solid var(--brand); }
.dl-cam-corner.tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.dl-cam-corner.tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.dl-cam-corner.bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.dl-cam-corner.br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.dl-cam-hint {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  max-width: 82%;
  margin: 0;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.dl-cam-hint[hidden] { display: none; }
.dl-cam-error[hidden] { display: none; }
.dl-cam-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.88);
}
.dl-cam-error svg { color: #f87171; }
.dl-cam-error p { max-width: 320px; margin: 0; font-size: 0.95rem; line-height: 1.5; }
.dl-cam-bar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: #000;
}
.dl-cam-shutter {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px #000 inset;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.dl-cam-shutter[hidden] { display: none; }
.dl-cam-shutter:active { transform: scale(0.93); }
.dl-cam-btn {
  padding: 12px 22px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}
.dl-cam-btn[hidden] { display: none; }
.dl-cam-btn.ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.4); }
.dl-cam-btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.dl-cam-btn.primary { color: #fff; background: var(--brand); }
.dl-cam-btn.primary:hover { filter: brightness(1.05); }
/* Cancel pinned left so the shutter stays optically centered. */
#dlCamCancel { position: absolute; left: 20px; }
