/* ===================================================================
   Arev Motors — Design tokens
=================================================================== */
:root {
  --bg: #272727;
  --surface: #373738;
  --surface-2: #404043;
  --accent: #08e77a;
  --accent-dark: #08c96b;
  --heading: #ffffff;
  --body: #a2a2a8;
  --border: #4b4b4d;
  --border-soft: rgba(255, 255, 255, 0.1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container-w: 1280px;

  /* Engineered, not decorative: nothing here is a capsule. --radius-full
     is reserved for genuine circles only (icon buttons, dots). */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 999px;

  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

/* ===================================================================
   Cross-document view transitions — native browser support only
   (Chrome 126+); everywhere else this is silently ignored and pages
   navigate exactly as before. No JS, no fallback needed.
=================================================================== */
@view-transition {
  navigation: auto;
}

/* ===================================================================
   Reset
=================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in 0.6s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

::selection {
  background: var(--accent);
  color: #0c1a13;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #0c1a13;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.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;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===================================================================
   Premium material utilities — used sparingly, not on every surface
=================================================================== */
.shine-sweep {
  position: relative;
  overflow: hidden;
}

.shine-sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}

.shine-sweep:hover::after {
  transform: translateX(120%);
  transition: transform 0.9s ease;
}

/* ===================================================================
   Motion — scroll reveal (fade + rise + soften), respects reduced motion
=================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-standard), filter 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(8px);
  transition: opacity 1s ease, transform 1s var(--ease-standard), filter 1s ease;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Reserved for the one or two genuinely focal elements per page (the
   featured vehicle, a CTA banner) — a brief glow pulse on entrance marks
   them as the moment to look at, distinct from the standard grid fade-in. */
.reveal-emphasis {
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease-standard), transform 0.9s var(--ease-standard), filter 0.9s var(--ease-standard);
}

.reveal-emphasis.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-emphasis.is-visible::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  animation: emphasis-pulse 1.2s ease-out;
}

@keyframes emphasis-pulse {
  0% {
    box-shadow: 0 0 0 rgba(8, 231, 122, 0);
  }
  40% {
    box-shadow: 0 0 48px 6px rgba(8, 231, 122, 0.16);
  }
  100% {
    box-shadow: 0 0 0 rgba(8, 231, 122, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale,
  .reveal-emphasis {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .reveal-emphasis.is-visible::before {
    animation: none;
  }

  .perf-stat.is-visible .perf-stat-fill {
    animation: none !important;
    width: var(--stat-value, 0%);
  }
}

/* ===================================================================
   Logo mark — hex badge + bolt monogram
   (colors are baked in as SVG presentation attributes on the symbol's
   own shapes, not CSS classes — class selectors targeting elements
   inside a <symbol> don't reliably apply through <use> in Chromium)
=================================================================== */
.logo-mark {
  flex-shrink: 0;
}

/* ===================================================================
   Buttons — engineered controls, not decoration. Never capsules.
=================================================================== */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 30px;
  border-radius: 3px;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 rgba(8, 231, 122, 0);
  transition: transform 0.3s var(--ease-standard), background-color 0.4s ease, border-color 0.4s ease,
    color 0.4s ease, box-shadow 0.4s ease;
}

.btn .icon {
  position: relative;
  transition: transform 0.3s var(--ease-standard);
}

/* Sheen: a one-shot light sweep, not a resting decoration — stays inert until hover triggers it. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-140%);
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(140%);
  transition: transform 0.75s var(--ease-standard);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.12s;
}

.btn-solid {
  background: transparent;
  color: var(--heading);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1e15;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 28px -12px rgba(8, 231, 122, 0.45);
}

.btn-solid:active {
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
  padding-bottom: 2px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transform: scaleX(1);
  transform-origin: left;
  transition: opacity 0.25s ease;
}

.text-link .icon {
  transition: transform 0.3s var(--ease-standard);
}

.text-link:hover::after {
  opacity: 0.9;
}

.text-link:hover .icon {
  transform: translateX(4px);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--body);
  position: relative;
  box-shadow: 0 0 0 1px transparent;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s var(--ease-standard),
    box-shadow 0.25s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
  box-shadow: 0 0 0 1px var(--border-soft);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* ===================================================================
   Header — thin, glass, nearly weightless
=================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 9, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding: 6px 1px;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--body);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-standard);
}

.nav-link:hover {
  color: var(--heading);
}

.nav-link:hover::after {
  transform: scaleX(0.5);
}

.nav-link.is-active {
  color: var(--heading);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-phone {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--body);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-phone:hover {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
  display: none;
}

/* ===================================================================
   Hero — asymmetric split, bleeding photography, floating overlap card
=================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 8% 15%, rgba(0, 230, 118, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 64px 40px 64px max(24px, calc((100vw - var(--container-w)) / 2 + 24px));
}

.hero-title {
  margin-top: 24px;
  margin-left: -3px;
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--heading);
}

.hero-subtext {
  margin-top: 28px;
  max-width: 380px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--body);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 44px;
}

.hero-media {
  position: relative;
  height: min(78vh, 720px);
}

.hero-art {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  border-right: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: translateY(var(--parallax-y, 0px)) scale(var(--parallax-scale, 1.08));
  transition: transform 0.1s linear;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 30%, rgba(10, 10, 10, 0.3) 100%), linear-gradient(90deg, rgba(10, 10, 10, 0.45) 0%, transparent 22%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--heading);
}

.hero-float-card {
  position: absolute;
  left: 0;
  bottom: 56px;
  z-index: 5;
  display: flex;
  gap: 28px;
  padding: 22px 28px;
  background: rgba(18, 18, 20, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}

.hero-float-stat dt {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--body);
}

.hero-float-stat dd {
  margin: 6px 0 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}

/* ===================================================================
   Trust strip — thin typographic row, no card chrome
=================================================================== */
.trust-strip {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px;
  border-left: 1px solid var(--border);
}

.trust-item:first-child {
  border-left: 0;
}

.trust-item .icon {
  flex-shrink: 0;
  color: var(--body);
}

.trust-item h3 {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--heading);
}

.trust-item p {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--body);
}

/* ===================================================================
   Editorial statement — rhythm break between hero and content
=================================================================== */
.statement {
  padding: 120px 0;
}

.statement-inner {
  max-width: 900px;
}

.statement-inner p {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.statement-index {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--body);
  margin-bottom: 24px;
}

/* ===================================================================
   Page hero (interior pages)
=================================================================== */
.page-hero {
  position: relative;
  padding: 72px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 55% at 82% 0%, rgba(0, 230, 118, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.error-hero {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

.error-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-hero .eyebrow {
  margin-top: -18px;
}

.error-hero .page-subtext {
  max-width: 480px;
}

.error-hero .hero-actions {
  justify-content: center;
}

.error-code {
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.14);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--border-soft);
  flex-shrink: 0;
}

.eyebrow-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--body);
}

.page-title {
  margin-top: 18px;
  margin-left: -2px;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--heading);
}

.page-subtext {
  margin-top: 18px;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
}

/* ===================================================================
   Cars section — featured vehicle + compact list, not a uniform grid
=================================================================== */
.cars-section {
  padding: 0 0 140px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.025em;
}

.featured-car {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}

.featured-car-watermark {
  position: absolute;
  top: -0.28em;
  left: -0.04em;
  z-index: 0;
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.featured-car-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.featured-car-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-car-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 35%, rgba(10, 10, 10, 0.3) 100%);
  pointer-events: none;
}

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

.featured-car-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.featured-car-title {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.featured-car-specs {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.featured-car-specs dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--body);
}

.featured-car-specs dd {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
}

.featured-car .btn {
  margin-top: 32px;
}

.car-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.car-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  transition: background-color 0.3s ease;
}

.car-row:hover {
  background: var(--surface-2);
}

.car-row-media {
  position: relative;
  width: 84px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.car-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-standard);
}

.car-row:hover .car-row-media img {
  transform: scale(1.08);
}

.car-row-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
}

.car-specs {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--body);
}

.car-row:hover .car-specs,
.car-card:hover .car-specs {
  color: #b4b4b9;
}

.car-inquire {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  display: inline-flex;
  align-items: center;
  color: var(--heading);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-standard);
}

.car-row:hover .car-inquire {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Full inventory grid (cars.html) */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cars-grid .car-card {
  border: 0;
  border-radius: 0;
  background: var(--surface);
}

.car-card {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.car-card:hover {
  background: var(--surface-2);
}

.car-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.05), transparent 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.car-card:hover::before {
  opacity: 1;
}

.car-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.car-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-standard);
}

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

.car-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 40%, rgba(10, 10, 10, 0.3) 100%);
  pointer-events: none;
}

.car-card-body {
  position: relative;
  padding: 22px 24px 26px;
}

.car-card-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--heading);
}

/* Space is reserved at rest (not height-animated) so hovering one card in a
   CSS Grid row can't stretch its neighbors' row height — only opacity/transform move. */
.car-highlight {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-standard);
}

.car-highlight .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.car-card:hover .car-highlight {
  opacity: 1;
  transform: translateY(0);
}

.car-card-body .car-inquire {
  position: static;
  transform: none;
  opacity: 1;
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.car-card-body .car-inquire .icon {
  transition: transform 0.3s var(--ease-standard);
}

.car-card:hover .car-card-body .car-inquire .icon {
  transform: translateX(4px);
}

/* ===================================================================
   Services — editorial numbered list, not boxed cards
=================================================================== */
.services-section {
  padding: 0 0 120px;
}

.services-list {
  border-top: 1px solid var(--border);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr 44px;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease-standard);
}

.service-row:hover {
  padding-left: 12px;
}

.service-index {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--border);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.service-row:hover .service-index {
  color: var(--accent);
}

.service-row h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.service-row p {
  margin-top: 8px;
  max-width: 520px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--body);
}

.service-row .icon-btn {
  transform: rotate(-45deg);
  transition: transform 0.3s var(--ease-standard), background-color 0.2s ease, color 0.2s ease;
}

.service-row:hover .icon-btn {
  transform: rotate(0deg);
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
}

/* ===================================================================
   About
=================================================================== */
.about-section {
  padding: 72px 0 40px;
}

.about-content {
  max-width: 680px;
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--body);
}

.about-content p + p {
  margin-top: 22px;
}

.about-features {
  padding: 72px 0 120px;
}

/* ===================================================================
   Contact
=================================================================== */
.contact-section {
  padding: 72px 0 120px;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: 0;
}

.contact-info-item .icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--body);
}

.contact-info-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
}

.contact-info-item p,
.contact-info-item a {
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--body);
}

.contact-info-item a:hover {
  color: var(--heading);
}

.contact-form {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 50% 20%, var(--surface-2) 0%, var(--bg) 75%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
}

.contact-form-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--body);
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--heading);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--body);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input:user-invalid {
  border-color: #e35b5b;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2a2a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-textarea {
  height: auto;
  padding: 14px 16px;
  line-height: 1.6;
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.form-note {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--body);
  opacity: 0.75;
}

/* ===================================================================
   CTA banner
=================================================================== */
.cta-banner {
  padding: 0 0 120px;
}

.cta-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: radial-gradient(90% 160% at 12% 15%, rgba(0, 230, 118, 0.06) 0%, transparent 70%), var(--surface);
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.cta-banner p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--body);
}

/* ===================================================================
   Brand strip — quiet marquee, no boxed chrome
=================================================================== */
.brand-strip {
  padding: 0 0 140px;
}

.brand-strip-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--body);
  margin-bottom: 28px;
}

.brand-track {
  display: flex;
  gap: 64px;
  overflow-x: auto;
  scrollbar-width: none;
}

.brand-track::-webkit-scrollbar {
  display: none;
}

.brand-logo {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--body);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.brand-logo:hover {
  opacity: 1;
  color: var(--heading);
}

/* ===================================================================
   Footer
=================================================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr;
  gap: 32px;
  padding: 64px 24px;
}

.footer-col:not(:first-child) {
  border-left: 1px solid var(--border-soft);
  padding-left: 32px;
}

.footer-blurb {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--body);
  margin-bottom: 20px;
}

.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--body);
}

.footer-list .icon {
  color: var(--body);
  margin-top: 3px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--body);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--heading);
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-row .icon-btn {
  border: 1px solid var(--border);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--body);
  text-align: center;
}

.footer-bottom p.photo-credit {
  margin-top: 6px;
  font-size: 0.68rem;
  opacity: 0.65;
}

/* ===================================================================
   Feature grid — reused by about.html "why choose us" section
=================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  background: var(--surface);
}

.feature-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--heading);
}

.feature-item h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
}

.feature-item p {
  margin-top: 4px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--body);
}

/* ===================================================================
   Parts page — filterable premium showcase
=================================================================== */
.parts-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.parts-search {
  position: relative;
  flex: 0 1 280px;
}

.parts-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--heading);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease;
}

.parts-search input::placeholder {
  color: var(--body);
}

.parts-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.parts-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--body);
  pointer-events: none;
}

.parts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  position: relative;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-standard),
    box-shadow 0.25s ease;
}

.filter-pill:hover {
  color: var(--heading);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.filter-pill:active {
  transform: translateY(0) scale(0.96);
}

.filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1e15;
  box-shadow: 0 8px 20px -10px rgba(8, 231, 122, 0.55);
}

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

.part-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-standard), box-shadow 0.3s ease, border-color 0.3s ease;
}

.part-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

.part-card[hidden] {
  display: none;
}

.part-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.part-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-standard);
}

.part-card:hover .part-card-media img {
  transform: scale(1.06);
}

.part-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, transparent 40%, rgba(10, 10, 10, 0.3) 100%);
  pointer-events: none;
}

.part-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.part-category {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--body);
}

.part-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}

.part-card-body p {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--body);
}

/* Reserved space, opacity/transform only — same reasoning as .car-highlight:
   a hover-triggered height change would stretch sibling cards in the grid row. */
.part-benefit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-standard);
}

.part-benefit .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.part-card:hover .part-benefit {
  opacity: 1;
  transform: translateY(0);
}

.part-tier {
  display: flex;
  align-items: center;
  gap: 8px;
}

.part-tier-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body);
}

.part-tier-bars {
  display: flex;
  gap: 3px;
}

.part-tier-bar {
  position: relative;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}

.part-tier-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-standard);
}

.part-tier-bar:nth-child(1)::after {
  transition-delay: 0.05s;
}

.part-tier-bar:nth-child(2)::after {
  transition-delay: 0.15s;
}

.part-tier-bar:nth-child(3)::after {
  transition-delay: 0.25s;
}

.part-card:hover .part-tier-bar.is-filled::after {
  transform: scaleX(1);
}

.part-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body);
  transition: color 0.2s ease;
}

.part-detail-toggle:hover {
  color: var(--heading);
}

.part-detail-toggle .icon {
  transition: transform 0.3s var(--ease-standard);
}

.part-card.is-expanded .part-detail-toggle .icon {
  transform: rotate(180deg);
}

.part-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-standard);
}

.part-card.is-expanded .part-detail {
  grid-template-rows: 1fr;
}

.part-detail-inner {
  overflow: hidden;
}

.part-detail-inner p {
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--body);
}

.part-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.parts-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--body);
  font-size: 0.95rem;
}

.parts-empty[hidden] {
  display: none;
}

/* ===================================================================
   Tuning page — category sections, before/after slider, stat bars
=================================================================== */
.tuning-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.tuning-section:last-of-type {
  border-bottom: none;
}

.tuning-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.tuning-row.is-reversed .tuning-media {
  order: 2;
}

.tuning-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.tuning-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tuning-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tuning-content h3 {
  margin-top: 14px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.tuning-content p {
  margin-top: 14px;
  max-width: 460px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--body);
}

.tuning-content .btn {
  margin-top: 24px;
}

.perf-stats {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}

.perf-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.perf-stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--body);
}

.perf-stat-label strong {
  color: var(--heading);
  font-weight: 600;
}

.perf-stat-track {
  position: relative;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border);
  overflow: hidden;
}

.perf-stat-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* Swings high/low like a dial being searched in, then settles — reads as
   "being tuned" rather than a plain progress bar filling up. Each bar runs
   its own phase/timing so the three don't move in lockstep. */
@keyframes perf-tune-1 {
  0% {
    width: 0%;
  }
  20% {
    width: calc(var(--stat-value) * 1.15);
  }
  42% {
    width: calc(var(--stat-value) * 0.12);
  }
  64% {
    width: calc(var(--stat-value) * 1.1);
  }
  86% {
    width: calc(var(--stat-value) * 0.28);
  }
  100% {
    width: var(--stat-value, 0%);
  }
}

@keyframes perf-tune-2 {
  0% {
    width: 0%;
  }
  18% {
    width: calc(var(--stat-value) * 0.1);
  }
  40% {
    width: calc(var(--stat-value) * 1.2);
  }
  62% {
    width: calc(var(--stat-value) * 0.22);
  }
  84% {
    width: calc(var(--stat-value) * 1.05);
  }
  100% {
    width: var(--stat-value, 0%);
  }
}

@keyframes perf-tune-3 {
  0% {
    width: 0%;
  }
  26% {
    width: calc(var(--stat-value) * 1.1);
  }
  50% {
    width: calc(var(--stat-value) * 0.18);
  }
  74% {
    width: calc(var(--stat-value) * 1.15);
  }
  100% {
    width: var(--stat-value, 0%);
  }
}

.perf-stat:nth-child(1).is-visible .perf-stat-fill {
  animation: perf-tune-1 2.2s ease-in-out forwards;
}

.perf-stat:nth-child(2).is-visible .perf-stat-fill {
  animation: perf-tune-2 2s ease-in-out 0.25s forwards;
}

.perf-stat:nth-child(3).is-visible .perf-stat-fill {
  animation: perf-tune-3 2.4s ease-in-out 0.12s forwards;
}

.compare-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.compare-slider.shine-sweep::after {
  z-index: 5;
}

.compare-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-after {
  z-index: 1;
  filter: saturate(1.2) contrast(1.06) brightness(1.03);
}

.compare-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--compare-pos, 50%)) 0 0);
  filter: saturate(0.5) brightness(0.82) contrast(0.95);
}

.compare-divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--compare-pos, 50%);
  width: 2px;
  background: var(--heading);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.9;
}

.compare-handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: var(--compare-pos, 50%);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--heading);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: ew-resize;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}

.compare-handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.compare-label {
  position: absolute;
  z-index: 3;
  top: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--heading);
  pointer-events: none;
}

.compare-label.stock {
  left: 16px;
}

.compare-label.tuned {
  right: 16px;
}

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 56px 24px 40px;
    max-width: 640px;
  }

  .hero-media {
    height: 60vh;
    min-height: 380px;
  }

  .hero-art {
    border-radius: var(--radius-xl);
    border-right: 1px solid var(--border);
  }

  .hero-float-card {
    left: 24px;
    right: 24px;
    bottom: -32px;
  }

  .cars-section {
    padding-top: 64px;
  }

  .featured-car {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .car-list,
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3) {
    border-left: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .footer-col:nth-child(3) {
    border-left: 1px solid var(--border-soft);
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    height: calc(100dvh - var(--header-h));
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 90;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-link {
    padding: 14px 16px 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
  }

  .nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--accent);
  }

  .header-phone {
    display: none;
  }

  .nav-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    color: var(--accent);
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero-title {
    margin-left: 0;
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .hero-float-card {
    flex-direction: column;
    gap: 14px;
  }

  .statement {
    padding: 72px 0;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .trust-item:first-child {
    border-top: 0;
  }

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

  .car-list,
  .cars-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 50px 1fr;
  }

  .service-row .icon-btn {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }

  .footer-col:not(:first-child) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border-soft);
    padding-top: 24px;
  }
}

/* ===================================================================
   Responsive — Parts & Tuning pages
=================================================================== */
@media (max-width: 1024px) {
  .parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tuning-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tuning-row.is-reversed .tuning-media {
    order: 0;
  }
}

@media (max-width: 640px) {
  .parts-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .parts-search {
    flex: 1 1 auto;
  }

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

  .tuning-section {
    padding: 48px 0;
  }
}
