/*!/wp-content/themes/eurotune-theme/css/style.css*//* ==========================================================================
   EUROTUNE - Main Stylesheet
   Mobile-first responsive design
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Fonts
   -------------------------------------------------------------------------- */
@font-face{font-family:'Electromagnetic Lungs';src:url('/wp26/wp-content/themes/eurotune-theme/css/../assets/fonts/ElectromagneticLungs.otf') format('opentype');font-weight:normal;font-style:normal;font-display:swap;}

/* --------------------------------------------------------------------------
   CSS Custom Properties (Theme Variables)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary: #D4AF37;        /* Gold */
  --color-primary-light: #E5C454;
  --color-primary-dark: #B8962E;
  
  /* Background Colors */
  --color-bg-dark: #0a0a0a;
  --color-bg-card: #141414;
  --color-bg-card-hover: #1a1a1a;
  --color-bg-elevated: #1f1f1f;
  
  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #666666;
  
  /* Semantic Colors */
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  
  /* Borders */
  --color-border: #2a2a2a;
  --color-border-light: #333333;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-logo: 'Electromagnetic Lungs', sans-serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
  --shadow-glow-lg: 0 0 30px rgba(212, 175, 55, 0.4), 0 0 60px rgba(212, 175, 55, 0.2);
  --shadow-glow-intense: 0 0 20px rgba(212, 175, 55, 0.5), 0 0 40px rgba(212, 175, 55, 0.3), 0 0 60px rgba(212, 175, 55, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-md);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  color: var(--color-text-secondary);
}

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

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

.text-muted {
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: var(--space-4xl) 0;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

/* Utility bar (Become a Dealer / Dealer Login) — sits above the main header.
   Hidden on mobile to keep the small-screen viewport uncluttered; the same
   links appear in the footer for mobile users. */
.utility-bar {
  display: none; /* Mobile: hidden */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001; /* Above the main header */
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.utility-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-md);
  min-height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.utility-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  transition: color 0.15s ease;
}

.utility-link:hover,
.utility-link:focus-visible {
  color: var(--color-primary);
}

.utility-link--accent {
  color: var(--color-primary);
  font-weight: 600;
}

.utility-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.utility-divider {
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
}

@media (min-width: 1024px) {
  .utility-bar { display: block; }
  /* Push body content down so first hero isn't covered by the utility bar */
  body { padding-top: 32px; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  /* Move the main header down to sit below the utility bar on desktop */
  .header { top: 32px; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

.logo-text {
  font-family: var(--font-family-logo);
  font-size: 1.95rem;
  font-weight: normal;
  color: var(--color-text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
  margin-left: auto;
}

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

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
.nav {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.nav.active {
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-sm) 0;
}

.nav-item {
  border-bottom: 1px solid var(--color-border);
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-bg-card);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Dropdown Arrow for items with dropdowns */
.nav-link.has-dropdown::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
  margin-left: var(--space-sm);
}

.nav-item.open .nav-link.has-dropdown::after {
  transform: rotate(-135deg);
}

/* Dropdown */
.nav-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  background: var(--color-bg-card);
}

.nav-item.open .nav-dropdown {
  max-height: 1000px;
}

.nav-dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  padding-left: var(--space-2xl);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border);
}

.nav-dropdown-link:last-child {
  border-bottom: none;
}

.nav-dropdown-link:hover {
  color: var(--color-primary);
  background: var(--color-bg-elevated);
}

/* Nested Submenu (Mobile) */
.nav-dropdown-link.has-submenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.nav-dropdown-link.has-submenu::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  background: var(--color-bg-dark);
}

.nav-submenu .nav-dropdown-link {
  padding-left: var(--space-3xl);
  font-size: var(--font-size-xs);
}

.nav-dropdown-link.has-submenu.open::after {
  transform: rotate(-135deg);
}

.nav-dropdown-link.has-submenu.open + .nav-submenu {
  max-height: 500px;
}

.nav-cta {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* Header CTA Button - hidden on mobile */
.header-cta {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.btn-primary,
a.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg-dark) !important;
}

.btn-primary:hover,
a.btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-bg-dark) !important;
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border-light);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-gold:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-lg);
  min-height: 48px;
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  min-height: 40px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 50px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.2) 0%,
    rgba(10, 10, 10, 0.225) 60%,
    rgba(10, 10, 10, 0.425) 100%
  );
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl) 0;
}

/* Hero content box with semi-transparent background */
.hero-box {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-left: auto;
  margin-right: auto;
}

.hero-box-sm {
  max-width: 700px;
}

/* Hero box without background (for simpler headers) */
.hero-box-plain {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
}

/* Page hero title and description (for service/inner pages) */
.page-hero-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.page-hero-desc {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  color: var(--color-primary);
  white-space: nowrap;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
  display: grid;
  grid-template-rows: auto 2.4em;
  align-items: start;
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  display: block;
}

.stat-label {
  font-size: var(--font-size-xs);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
  line-height: 1.3;
  align-self: center;
}

/* --------------------------------------------------------------------------
   Page Hero (for inner pages like calculator, dealers)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(70px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.page-hero .container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero .hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.25) 0%,
    rgba(10, 10, 10, 0.35) 60%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
}

.page-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

/* Mobile background for hero sections */
.hero-bg img.mobile-bg,
.page-hero .hero-bg img.mobile-bg {
  display: none;
}

@media (max-width: 768px) {
  .hero-bg img:not(.mobile-bg),
  .page-hero .hero-bg img:not(.mobile-bg) {
    display: none;
  }

  .hero-bg img.mobile-bg,
  .page-hero .hero-bg img.mobile-bg {
    display: block;
  }

  /* --------------------------------------------------------------------------
     Mobile-Specific Overrides (768px and below)
     -------------------------------------------------------------------------- */

  /* Hero section - reduce wasted vertical space */
  .hero {
    min-height: 55vh;
    padding-top: 60px;
  }

  .hero-content {
    padding: var(--space-lg) 0;
  }

  /* Page hero - reduce min-height on mobile */
  .page-hero {
    min-height: 280px;
    padding-top: calc(60px + var(--space-lg));
    padding-bottom: var(--space-md);
  }

  /* Reduce gap between page hero and first section on mobile */
  .page-hero + .section {
    padding-top: 12px;
  }

  /* Page hero title and description */
  .page-hero-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
  }

  .page-hero-desc {
    font-size: var(--font-size-base);
  }

  /* Hero box - tighter padding on mobile */
  .hero-box {
    padding: var(--space-lg) var(--space-md);
  }

  /* Section padding - tighter on mobile */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-sm {
    padding: var(--space-xl) 0;
  }

  .section-lg {
    padding: var(--space-2xl) 0;
  }

  /* Hero stats - stack on very small screens, 3-col on larger mobile */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding-top: var(--space-md);
  }

  .stat-value {
    font-size: var(--font-size-xl);
  }

  .stat-label {
    font-size: var(--font-size-xs);
  }

  /* Cards - remove min-height on mobile */
  .card {
    min-height: auto;
    padding: var(--space-lg);
  }

  /* Service showcase - smaller image height */
  .service-showcase-image {
    height: 180px;
  }

  .service-showcase-content {
    padding: var(--space-md);
  }

  .service-showcase-title {
    font-size: var(--font-size-lg);
  }

  /* Section headers - tighter spacing */
  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-title {
    font-size: var(--font-size-xl);
  }

  .section-subtitle {
    font-size: var(--font-size-sm);
  }

  /* Hero title and subtitle */
  .hero-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
  }

  .hero-badge {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-sm);
    margin-bottom: var(--space-md);
  }

  /* CTA buttons - tighter on mobile */
  .hero-cta {
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .cta-buttons {
    gap: var(--space-sm);
  }

  /* Pricing cards - tighter padding */
  .pricing-card {
    padding: var(--space-lg);
  }

  .pricing-price {
    font-size: var(--font-size-2xl);
  }

  .pricing-desc {
    white-space: normal;
    font-size: var(--font-size-sm);
  }

  /* Feature cards - tighter */
  .feature-card {
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Trust bar - tighter */
  .trust-bar {
    padding: var(--space-md) 0;
  }

  .trust-item {
    font-size: var(--font-size-sm);
  }

  .trust-item svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }

  /* CTA section */
  .cta-title {
    font-size: var(--font-size-xl);
  }

  .cta-text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
  }

  /* Footer - tighter spacing */
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer-grid {
    gap: var(--space-lg);
  }

  .footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
  }

  /* Accordion - tighter */
  .accordion-trigger {
    padding: var(--space-md);
  }

  .accordion-body {
    padding: 0 var(--space-md) var(--space-md);
  }

  /* Process steps */
  .process-number {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-sm);
  }

  /* Buttons - slightly smaller on mobile */
  .btn-lg {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
    min-height: 44px;
  }
}

/* Very small screens (375px and below) */
@media (max-width: 375px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    text-align: center;
  }

  .stat {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
  }

  .stat-value {
    font-size: var(--font-size-lg);
  }

  .mobile-cta .btn {
    font-size: 1rem;
  }
}

/* Desktop: Narrower hero image with gradient fade on sides */
@media (min-width: 769px) {
  .page-hero .hero-bg img:not(.mobile-bg) {
    width: 45%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    mask-image: linear-gradient(to right,
      transparent 0%,
      rgba(0,0,0,0.25) 5%,
      rgba(0,0,0,0.5) 10%,
      rgba(0,0,0,0.75) 15%,
      black 25%,
      black 75%,
      rgba(0,0,0,0.75) 85%,
      rgba(0,0,0,0.5) 90%,
      rgba(0,0,0,0.25) 95%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      rgba(0,0,0,0.25) 5%,
      rgba(0,0,0,0.5) 10%,
      rgba(0,0,0,0.75) 15%,
      black 25%,
      black 75%,
      rgba(0,0,0,0.75) 85%,
      rgba(0,0,0,0.5) 90%,
      rgba(0,0,0,0.25) 95%,
      transparent 100%
    );
  }

  .hero .hero-bg img:not(.mobile-bg) {
    width: 60%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    mask-image: linear-gradient(to right,
      transparent 0%,
      rgba(0,0,0,0.25) 5%,
      rgba(0,0,0,0.5) 10%,
      rgba(0,0,0,0.75) 15%,
      black 25%,
      black 75%,
      rgba(0,0,0,0.75) 85%,
      rgba(0,0,0,0.5) 90%,
      rgba(0,0,0,0.25) 95%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      rgba(0,0,0,0.25) 5%,
      rgba(0,0,0,0.5) 10%,
      rgba(0,0,0,0.75) 15%,
      black 25%,
      black 75%,
      rgba(0,0,0,0.75) 85%,
      rgba(0,0,0,0.5) 90%,
      rgba(0,0,0,0.25) 95%,
      transparent 100%
    );
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base), transform var(--transition-bounce);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}


.card-image {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  transition: background var(--transition-base);
  z-index: 0;
}


.card-image > * {
  position: relative;
  z-index: 1;
}

.card-image .card-text {
  color: var(--color-text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .card-image .card-text {
    color: var(--color-text-secondary);
  }
}


.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

.card:hover .card-icon svg {
  transform: scale(1.1);
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: gap var(--transition-base), text-shadow var(--transition-base);
}

.card:hover .card-link {
  gap: var(--space-sm);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

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

/* --------------------------------------------------------------------------
   Tune Types (Tabs)
   -------------------------------------------------------------------------- */
.tune-tabs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-xl);
  -webkit-overflow-scrolling: touch;
}

.tune-tab {
  flex-shrink: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tune-tab:hover,
.tune-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg-dark);
}

.tune-content {
  display: none;
}

.tune-content.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Pricing Cards
   -------------------------------------------------------------------------- */
.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base), transform var(--transition-bounce);
}

.pricing-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  position: relative;
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured:hover {
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(-6px);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  color: var(--color-bg-dark);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.pricing-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.pricing-price span {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-normal);
}

.pricing-desc {
  color: var(--color-text-secondary);
  margin: var(--space-md) 0 var(--space-lg);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.pricing-feature svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.trust-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg) var(--space-2xl);
  max-width: 100%;
  margin: 0 auto;
  place-items: center;
}

@media (min-width: 768px) {
  .trust-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #ffffff;
  font-size: 1em;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.trust-item svg {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.cta-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

.cta-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

.footer-brand {
  margin-bottom: var(--space-lg);
}

.footer-brand img {
  max-width: 100%;
  height: auto;
}

.footer-tagline {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-top: var(--space-md);
}

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   Brand Badges
   -------------------------------------------------------------------------- */
.brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
}

.brand-badge {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  transition: all var(--transition-base), transform var(--transition-bounce);
  white-space: nowrap;
}

.brand-badge:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-card-hover);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Sticky Mobile CTA
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md);
  z-index: 900;
  display: flex;
  gap: var(--space-sm);
}

.mobile-cta .btn {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.125rem;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.mobile-cta .btn-icon {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Desktop Styles (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-xl);
  }
  
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  /* Header */
  .nav-toggle {
    display: none;
  }
  
  .nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    overflow: visible;
    border-bottom: none;
    max-height: none;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-md);
    overflow: visible;
  }
  
  .nav-item {
    border: none;
    position: relative;
  }
  
  .nav-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: 1.05rem;
    white-space: nowrap;
  }
  
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
  }
  
  .nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: none;
  }
  
  .nav-dropdown-link {
    padding: var(--space-sm) var(--space-md);
  }

  /* Desktop Nested Submenu */
  .nav-dropdown-link.has-submenu {
    position: relative;
  }

  .nav-dropdown-link.has-submenu::after {
    transform: rotate(-45deg);
    margin-left: auto;
    margin-right: 0;
  }

  .nav-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all var(--transition-fast);
    max-height: none;
  }

  .nav-submenu .nav-dropdown-link {
    padding-left: var(--space-md);
    font-size: var(--font-size-sm);
  }

  /* Wrapper to handle submenu hover area */
  .nav-dropdown-link.has-submenu {
    pointer-events: auto;
  }

  .nav-dropdown-link.has-submenu:hover + .nav-submenu,
  .nav-submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Bridge the gap to prevent submenu from closing when moving mouse */
  .nav-submenu {
    pointer-events: auto;
  }

  .nav-submenu::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    bottom: 0;
    width: 10px;
  }

  .nav-cta {
    display: none;
  }
  
  .header-cta {
    display: inline-flex !important;
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
    min-height: auto;
  }

  /* Desktop dropdown arrows */
  .nav-link.has-dropdown::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: var(--space-xs);
    margin-bottom: 2px;
    transition: transform var(--transition-fast);
  }

  .nav-item:hover .nav-link.has-dropdown::after {
    transform: rotate(-135deg);
  }
  
  /* Hero */
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
  
  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .stat-value {
    font-size: var(--font-size-3xl);
  }
  
  .stat-label {
    font-size: var(--font-size-sm);
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* 4-column layout for sections with 4 items (2 columns on tablet) */
  .services-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Card Hover Effects (Desktop Only) */
  .card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-lg);
    transform: translateY(-4px);
  }

  .card-image:hover::before {
    background: rgba(10, 10, 10, 0.65);
  }

  .card-image:hover .card-text {
    color: var(--color-text-primary);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 1);
  }

  /* Section Headers */
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  /* CTA Buttons */
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  /* Footer — 6 columns: Brand | Tuning | Services | Emissions | Dealers | Company */
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.3fr 1fr 1fr 1fr;
  }
  
  /* Hide mobile CTA on desktop */
  .mobile-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Large Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-5xl);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Service Showcase Cards
   -------------------------------------------------------------------------- */
.services-showcase {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .services-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: border-color 0.3s ease, transform var(--transition-bounce), box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-showcase-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-lg);
  }
}

.service-showcase-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-showcase-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.4) 100%);
}

.service-showcase-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-showcase-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.service-showcase-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
}

.service-showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.service-showcase-price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.service-showcase-price span {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-muted);
}

.service-showcase-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  transition: gap 0.2s ease;
}

.service-showcase-card:hover .service-showcase-link {
  gap: var(--space-sm);
}

.service-showcase-link svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* --------------------------------------------------------------------------
   About/Intro Grid (Service Pages)
   -------------------------------------------------------------------------- */
.about-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.about-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Tuning Content (long-form text sections)
   -------------------------------------------------------------------------- */
.tuning-content {
  max-width: 800px;
}

.tuning-content h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.tuning-content h3 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.tuning-content h4 {
  font-size: var(--font-size-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.tuning-content p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.tuning-content ul {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.tuning-content li {
  margin-bottom: var(--space-sm);
}

.tuning-content a {
  color: var(--color-primary);
  text-decoration: none;
}

.tuning-content a:hover {
  text-decoration: underline;
}

/* 1x3 Image Grid */
.image-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .image-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.image-grid-3 img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: block;
}