/* ============================================
   V2 PIXEL-PERFECT REDESIGN (Isolation)
   Strict 8pt Grid & Namespaced Layout
   ============================================ */

.v2 {
  /* 1. GRID SYSTEM FOUNDATION */
  --v2-container: 1200px;

  /* 2. SPACING SYSTEM (8pt base with fine-tuning) */
  --v2-sp-xs: 4px;
  --v2-sp-sm: 8px;
  --v2-sp-md: 16px;
  --v2-sp-lg: 24px;
  --v2-sp-xl: 32px;
  --v2-sp-2xl: 48px;
  --v2-sp-3xl: 64px;
  --v2-sp-4xl: 80px;
  --v2-sp-5xl: 120px;

  /* 3. TYPOGRAPHY SYSTEM (Luxury Editorial) */
  --v2-font-display: 'Tenor Sans', sans-serif;
  --v2-font-body: 'Onest', sans-serif;

  /* Fluid Scaling */
  --v2-h1-size: clamp(2rem, 6vw, 3.5rem);
  --v2-h2-size: clamp(1.75rem, 4vw, 2.25rem);
  --v2-body-lg: 1.125rem;
  --v2-body: 1rem;
  --v2-caption: 0.875rem;

  /* 4. OKLCH COLOR SYSTEM (High Status Refinement) */
  --v2-bg: oklch(14% 0.02 260);
  /* #191924 Deep Navy */
  --v2-surface: oklch(16% 0.02 260);
  --v2-card: oklch(20% 0.02 260 / 0.4);
  /* Matched to Navy hue */
  --v2-border: oklch(25% 0.02 260);

  --v2-text-primary: oklch(100% 0 0);
  /* #FFFFFF White */
  --v2-text-secondary: oklch(90% 0 0);
  --v2-text-muted: oklch(97% 0 0);
  /* #F5F5F5 Light Gray */

  --v2-accent-primary: oklch(75% 0.18 70);
  /* #f59d09 Warm Luxury Gold */
  --v2-accent-highlight: oklch(75% 0.18 70);
  --v2-accent-glow: oklch(75% 0.18 70 / 0.15);
  --v2-accent-soft: oklch(75% 0.18 70 / 0.05);

  --v2-accent-success: oklch(72% 0.16 150);
  /* Retained for selection intent */
  --v2-accent-success-glow: oklch(72% 0.16 150 / 0.15);
  --v2-accent-success-soft: oklch(72% 0.16 150 / 0.05);

  /* Resets within .v2 scope */
  background-color: var(--v2-bg);
  color: var(--v2-text-primary);
  font-family: var(--v2-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Global safety guard against micro-drifts */
}

html {
  overflow-x: hidden;
  width: 100%;
}

/* --- Base V2 Layout Utilities --- */
.v2 .container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .v2 .container {
    padding: 0 32px;
  }
}

.v2 .section {
  padding: 80px 0;
}

.v2 .section-tight {
  padding: 48px 0;
}

.v2 .section-alt {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Vertical Rhythm --- */
.v2 .stack-lg > * + * {
  margin-top: 32px;
}

.v2 .stack-md > * + * {
  margin-top: 20px;
}

.v2 .stack-sm > * + * {
  margin-top: 12px;
}

/* --- Typography --- */
.v2 .section-label {
  font-size: var(--v2-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v2-accent-highlight);
  opacity: 0.8;
  display: block;
}

.v2 .section-title {
  font-size: var(--v2-h2-size);
  font-weight: 600;
  color: var(--v2-text-primary);
}

.v2 .section-sub {
  font-size: var(--v2-body);
  color: var(--v2-text-muted);
}

/* --- Card System --- */
.v2 .card {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.v2 .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px oklch(0% 0 0 / 0.3);
  border-color: var(--v2-accent-primary);
}

.v2 .authority-block {
  border: 1px solid var(--v2-border);
  border-left: 2px solid var(--v2-accent-primary);
  background: oklch(100% 0 0 / 0.02);
  padding: 32px var(--v2-sp-xl);
  border-radius: 4px;
  box-shadow: 20px 0 60px oklch(0% 0 0 / 0.2);
  max-width: 100%;
  /* Safety Layer */
}

/* --- Breadcrumbs (V2 Luxury Placement) --- */
.v2 .v2-breadcrumb-layer {
  position: relative;
  z-index: 10;
  padding-top: 100px;
  /* Offset for fixed navbar */
  margin-bottom: -60px;
  /* Pull Hero closer */
}

.v2 .v2-breadcrumbs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
  font-size: 13px;
  font-family: var(--v2-font-body);
  flex-wrap: nowrap;
  /* Change to nowrap for scrollable trail */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.v2 .v2-breadcrumbs li {
  color: var(--v2-text-muted);
  opacity: 0.6;
}

.v2 .v2-breadcrumbs a {
  color: var(--v2-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.v2 .v2-breadcrumbs a:hover {
  color: var(--v2-accent-primary);
  opacity: 1;
}

.v2 .v2-breadcrumbs .separator {
  opacity: 0.3;
}

/* Fix Navbar Doubling from Legacy Styles */
.v2 .nav-link::after {
  content: none !important;
  display: none !important;
}

/* --- Foundation Components (Refined) --- */
.v2 .v2-title-main {
  font-size: var(--v2-h1-size);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.v2 .v2-hero-sub {
  font-size: var(--v2-body-lg);
  color: var(--v2-text-muted);
  max-width: 520px;
  width: 100%;
  /* Safety for mobile */
}

/* --- Component Extensions (V2.2) --- */

/* Hero Section */
.v2 .hero {
  display: grid !important;
  /* Ensure it overrides .container display if any */
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

/* Navbar Specific Balance */
.v2 .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.v2 .navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 12px 0;
  border-bottom: 1px solid var(--v2-border);
}

.v2 .navbar-container {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1001;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .v2 .navbar-container {
    padding: 0 16px;
  }
}

.v2 .navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
  white-space: nowrap !important;
}

.v2 .logo-primary {
  font-family: var(--v2-font-display);
  font-size: 1.35rem;
  color: #ffffff;
}

.v2 .logo-accent {
  font-family: var(--v2-font-body);
  color: var(--v2-accent-primary);
  font-weight: 700;
}

.v2 .nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.v2 .nav-link {
  font-family: var(--v2-font-body);
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #f5f5f5;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

.v2 .nav-link:hover,
.v2 .nav-link.active {
  color: var(--v2-accent-primary) !important;
  background: rgba(245, 157, 9, 0.1);
}

/* Navbar background and active states defined above in consolidated block */

.v2 .navbar-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 400px) {
  .v2 .navbar-cta {
    gap: 8px !important;
  }
}

.v2 .navbar-cta .v2-nav-icon {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--v2-text-primary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  margin: 0;
  pointer-events: auto !important;
}

.v2 .v2-nav-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--v2-accent-primary);
  color: var(--v2-accent-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px var(--v2-accent-glow);
}

.v2 .v2-nav-icon svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2 .v2-nav-icon:hover svg {
  transform: rotate(-10deg);
}

/* Visibility Control */
@media (min-width: 1025px) {
  .v2 .mobile-menu {
    display: none !important;
  }

  .v2 .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .v2 .nav-menu {
    display: none !important;
  }

  .v2 .menu-toggle {
    display: flex !important;
    z-index: 1001;
  }

  .v2 .mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 120px 40px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .v2 #nav-whatsapp-btn,
  .v2 .navbar-cta .btn-whatsapp {
    display: none !important;
  }

  .v2 .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .v2 .mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .v2 .mobile-nav-link {
    font-family: var(--v2-font-display);
    font-size: 1.75rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
  }

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

.v2 .menu-toggle {
  display: none;
  /* Base state: hidden, shown via media queries above */
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  /* Standardized V2 look */
  border: none;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.v2 .hamburger {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.v2.menu-open .menu-toggle .hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.v2.menu-open .menu-toggle .hamburger:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.v2.menu-open .menu-toggle .hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.v2 .hero-title {
  font-size: clamp(1.75rem, 8vw, 3rem);
  /* Fluid scaling for mobile */
  font-weight: 700;
  line-height: 1.05;
  color: var(--v2-text-primary);
  text-wrap: balance;
}

.v2 .hero-sub {
  font-size: 18px;
  color: var(--v2-text-muted);
  max-width: 520px;
  width: 100%;
}

/* CTA System */
.v2 .cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px oklch(76% 0.14 38 / 0.3);
}

.v2 .cta-success {
  background: var(--v2-accent-success);
  padding: 14px 24px;
  border-radius: 4px;
  font-weight: 600;
  color: oklch(10% 0.01 38);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  width: 100%;
  justify-content: center;
}

.v2 .cta-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px var(--v2-accent-success-glow);
}

.v2 .cta-secondary {
  font-size: 14px;
  color: var(--v2-text-muted);
  opacity: 0.7;
  text-decoration: none;
}

/* Price Card (Right Hero) */
.v2 .price-card {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  max-width: 100%;
  /* Safety Layer */
  box-sizing: border-box;
}

.v2 .price-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--v2-accent-primary);
}

.v2 .price-meta {
  font-size: 14px;
  color: var(--v2-text-muted);
}

/* Decision Block */
.v2 .decision-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.v2 .decision-title {
  font-weight: 600;
  color: var(--v2-text-primary);
}

.v2 .decision-meta {
  font-size: 14px;
  color: var(--v2-text-muted);
}

/* Comparison Table */
.v2 .comparison {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.v2 .comparison-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  align-items: stretch;
  transition: background 0.2s ease;
}

@media (max-width: 768px) {
  .v2 .comparison-row {
    grid-template-columns: 1fr;
  }
}

.v2 .comparison-row:not(.comparison-header):hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.v2 .comparison-row:nth-child(odd):not(:hover) {
  background: rgba(255, 255, 255, 0.015);
}

.v2 .comparison-header {
  font-weight: 600;
  color: #7dd3fc;
  border-bottom: 1px solid var(--v2-border);
}

.v2 .col-highlight {
  background: rgba(34, 197, 94, 0.08) !important;
  /* Increased opacity for better anchoring */
  border-left: 1px solid rgba(34, 197, 94, 0.3);
  border-right: 1px solid rgba(34, 197, 94, 0.3);
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.v2 .col-highlight::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  bottom: -1px;
  border-left: 1px solid rgba(34, 197, 94, 0.4);
  border-right: 1px solid rgba(34, 197, 94, 0.4);
  pointer-events: none;
}

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

.v2 .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Audience Grid */
.v2 .audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.v2 .audience-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Route Intelligence */
.v2 .insight-card {
  padding: 24px;
  background: oklch(100% 0 0 / 0.03);
  border: 1px solid var(--v2-border);
  border-radius: 4px;
}

.v2 .insight-text {
  font-size: 15px;
  color: #d1d5db;
  line-height: 1.6;
}

/* Prose & Semantic Links */
.v2 .v2-prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--v2-text-muted);
}

.v2 .v2-prose p {
  margin-bottom: 1.5em;
}

.v2 .v2-prose p:last-child {
  margin-bottom: 0;
}

.v2 .v2-prose h3,
.v2 .v2-prose h4 {
  font-family: var(--v2-font-display);
  color: var(--v2-text-primary);
  margin-top: 2em;
  margin-bottom: 1em;
}

.v2 .v2-prose a {
  color: var(--v2-accent-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--v2-accent-glow);
  transition: all 0.2s ease;
  font-weight: 500;
}

.v2 .v2-prose a:hover {
  border-bottom-color: var(--v2-accent-primary);
  background: var(--v2-accent-soft);
}

/* Map Restoration */
.v2 .route-map-card {
  height: 480px;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #000;
}

.v2 #route-map {
  width: 100%;
  height: 100% !important;
  background: #000;
  display: block;
}

.v2 map-geo {
  display: block;
  width: 100%;
  height: 100%;
}

/* Steps */
.v2 .steps {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 768px) {
  .v2 .steps {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
}

.v2 .step {
  text-align: center;
  flex: 1;
}

.v2 .step-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--v2-accent-primary);
}

/* Vehicle Grid */
.v2 .vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.v2 .vehicle-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
  background: var(--v2-card);
}

.v2 .vehicle-card:hover {
  border-color: #22c55e;
  transform: translateY(-4px);
}

.v2 .vehicle-popular {
  border: 1px solid #22c55e;
  background: rgba(34, 197, 94, 0.03);
}

/* Pickup Grid */
.v2 .pickup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.v2 .pickup-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Reviews */
.v2 .review-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.v2 .review-stars {
  color: #facc15;
  margin-bottom: 8px;
}

/* FAQ */
.v2 .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.v2 .faq-question {
  font-weight: 600;
  color: var(--v2-text-primary);
}

.v2 .faq-answer {
  font-size: 15px;
  color: var(--v2-text-muted);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 70ch;
  padding-left: 20px;
  border-left: 1px solid var(--v2-accent-glow);
  opacity: 0.8;
}

/* Route Clusters */
.v2 .route-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.v2 .route-item {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s;
  text-decoration: none;
  color: var(--v2-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.v2 .route-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--v2-accent-primary);
}

/* Sticky CTA */
.v2 .sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  border-top: 1px solid var(--v2-border);
}

.v2 .sticky-btn {
  background: #22c55e;
  padding: 12px 18px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  text-decoration: none;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .v2 .hero {
    grid-template-columns: 1fr;
  }

  .v2 .vehicle-grid,
  .v2 .audience-grid,
  .v2 .route-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .v2 .grid-2,
  .v2 .grid-3,
  .v2 .vehicle-grid,
  .v2 .audience-grid,
  .v2 .pickup-grid,
  .v2 .route-list {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .v2 .route-map-card {
    height: 320px;
  }

  .v2 .comparison-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .v2 .section {
    padding: 48px 0;
  }

  .v2 .flex.items-center {
    flex-wrap: wrap;
    gap: 16px;
  }

  .v2 .hero {
    padding-top: 100px;
    gap: 40px;
  }
}

/* Utilities */
.v2 .md-hidden {
  display: flex;
}

@media (min-width: 769px) {
  .v2 .md-hidden {
    display: none !important;
  }
}

.v2 .flex {
  display: flex;
}

.v2 .items-center {
  align-items: center;
}

.v2 .justify-between {
  justify-content: space-between;
}

.v2 .justify-center {
  justify-content: center;
}

.v2 .text-center {
  text-align: center;
}

.v2 .gap-sm {
  gap: 12px;
}

.v2 .gap-md {
  gap: 20px;
}

.v2 .gap-xl {
  gap: 40px;
}
