/* =========================================================
   NORD WERK AUTOMOTIVE — dark performance theme
   Brand colors sampled from the logo:
     red  #E7222E  (the N mark) — primary accent
     blue #15578E  (AUTOMOTIVE) — steel-blue secondary
   Recolor the whole site by changing --accent below.
   ========================================================= */
:root {
  --bg:        #0E0E10;
  --bg-2:      #131316;
  --surface:   #1A1A1E;
  --surface-2: #202026;
  --border:    #2A2A30;
  --text:      #F4F4F6;
  --muted:     #9A9AA2;
  --accent:    #E7222E;   /* brand red */
  --accent-2:  #ff3b46;   /* red hover */
  --steel:     #15578E;   /* brand steel-blue */
  --steel-2:   #3a7fbf;   /* lighter steel-blue for text on dark */
  --m-light:   #2CA6E0;   /* BMW M light blue  */
  --m-dark:    #0C2C66;   /* BMW M dark blue   */
  --m-red:     #E7222E;   /* BMW M red (=accent) */
  --radius:    8px;
  --maxw:      1240px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;            /* clip (not hidden) so position:sticky still works */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { font-family: "Sora", "Noto Sans Thai", "Inter", sans-serif; line-height: 1.05; }
.accent { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-family: "Sora", sans-serif; font-weight: 700;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 0 0 rgba(231,34,46,0); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,14,16,.55); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(14,14,16,.9); border-bottom-color: var(--border); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav__logo {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.05rem;
  letter-spacing: .04em; display: inline-flex; align-items: center; gap: 11px; white-space: nowrap;
}
.nav__logo-img { height: 34px; width: auto; display: block; }
.nav__logo-word { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-word small {
  font-family: "Inter", sans-serif; font-weight: 400; font-size: .5em;
  letter-spacing: .36em; color: var(--steel-2); margin-top: 4px;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: .9rem; font-weight: 500; color: var(--muted); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  background: none; border: none; color: var(--text); padding: 8px; cursor: pointer;
  border-radius: 6px; display: inline-flex; position: relative; transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--accent); background: var(--surface); }
/* language toggle + currency selector */
.lang-toggle {
  background: none; border: 1px solid var(--border); color: var(--text); cursor: pointer;
  font-family: "Sora", "Noto Sans Thai", sans-serif; font-weight: 600; font-size: .74rem; letter-spacing: .03em;
  padding: 7px 11px; border-radius: 6px; transition: border-color .2s, color .2s; white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.cur-select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .74rem; padding: 7px 8px; border-radius: 6px;
  color-scheme: dark; transition: border-color .2s;
}
.cur-select:hover, .cur-select:focus { outline: none; border-color: var(--accent); }
@media (max-width: 400px) { .cur-select { display: none; } }   /* keep nav tidy on tiny phones */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 76vh; display: flex; flex-direction: column;
  justify-content: center; padding: 104px 24px 56px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 600px at 75% 20%, rgba(231,34,46,.22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(21,87,142,.32), transparent 60%),
    linear-gradient(160deg, #161619, #0b0b0d 70%);
}
/* self-hosted looping background video (covers the hero) */
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
/* dark scrim so the text stays clear and pops over the video */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 600px at 75% 18%, rgba(231,34,46,.16), transparent 60%),
    linear-gradient(180deg, rgba(9,9,11,.58) 0%, rgba(9,9,11,.7) 55%, rgba(9,9,11,.9) 100%);
}
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: 1; opacity: .22;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 75%);
}
.hero__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__eyebrow {
  font-family: "Sora", sans-serif; font-weight: 600; letter-spacing: .28em;
  color: var(--accent); font-size: .78rem; margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.8rem, 8vw, 6.2rem); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
}
.hero__sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 560px; margin: 26px 0 36px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: "Sora", sans-serif; font-size: 2rem; font-weight: 700; }
.hero__stats span { color: var(--muted); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--muted); font-size: .8rem; animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- COMING SOON badge + countdown ---------- */
.hero__soon {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(231,34,46,.06); position: relative; overflow: hidden;
}
.hero__soon-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(231,34,46,.6); animation: soonPulse 1.8s ease-out infinite;
}
@keyframes soonPulse {
  0% { box-shadow: 0 0 0 0 rgba(231,34,46,.55); }
  70% { box-shadow: 0 0 0 10px rgba(231,34,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,34,46,0); }
}
.hero__soon-text { font-family: "Sora", sans-serif; font-weight: 700; font-size: .76rem; letter-spacing: .22em; color: var(--text); }
.hero__soon::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  animation: soonShine 3.6s var(--ease) infinite;
}
@keyframes soonShine { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(160%); } }

/* big "COMING SOON" splash hero */
.hero__content--soon {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 920px; justify-content: center;
}
.hero__content--soon .hero__eyebrow { margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero__content--soon .hero__sub { margin: 16px auto 0; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero__content--soon .hero__sub strong { color: var(--text); font-weight: 700; }
.hero__content--soon .countdown { justify-content: center; }
.hero__content--soon .hero__cta { justify-content: center; }
.hero__loc {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  padding: 7px 15px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text); text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hero__loc svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.hero__coming {
  font-family: "Sora", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 11vw, 7rem); line-height: .88; letter-spacing: -.02em; margin: 6px 0 2px;
  background: linear-gradient(180deg, #ffffff 0%, #dadade 52%, #83838c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: comingIn 1.1s var(--ease) both, comingBreath 4s ease-in-out 1.2s infinite;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,.6));   /* lift off the video */
}
@keyframes comingIn { 0% { opacity: 0; transform: translateY(26px) scale(.95); filter: blur(8px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes comingBreath { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .hero__coming { animation: none; } }

/* Thai needs looser line-height (tone marks) and no negative tracking */
html[lang="th"] .hero__coming { font-size: clamp(2.3rem, 9.5vw, 5.8rem); line-height: 1.1; letter-spacing: 0; }
html[lang="th"] .hero__sub { line-height: 1.75; }
html[lang="th"] .hero__loc { letter-spacing: .06em; }

.countdown { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero__content--soon .hero__cta { margin-top: 26px; }
.cd {
  min-width: 76px; padding: 12px 12px 10px; text-align: center; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.cd::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--m-light) 0 33.33%, var(--m-dark) 33.33% 66.66%, var(--m-red) 66.66% 100%);
}
.cd strong {
  display: block; font-family: "Sora", sans-serif; font-weight: 800; font-size: 2rem; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
}
.cd span { display: block; margin-top: 7px; color: var(--muted); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.cd strong.bump { animation: cdBump .45s var(--ease); }
@keyframes cdBump { 0% { transform: translateY(-7px); opacity: .2; } 100% { transform: none; opacity: 1; } }
@media (max-width: 420px) {
  .countdown { gap: 10px; }
  .cd { min-width: 70px; padding: 12px 10px 10px; }
  .cd strong { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__soon-dot, .hero__soon::after, .cd strong.bump { animation: none; }
}

/* ---------- SECTION SHELL ---------- */
.section { width: 100%; padding: 66px max(24px, calc((100% - var(--maxw)) / 2)); background: var(--bg); }
.section--alt { max-width: none; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 30px; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.section__lead { color: var(--muted); margin-top: 12px; font-size: 1.05rem; max-width: 560px; }
.section__more { text-align: center; margin-top: 48px; }

/* ---------- CATEGORY GRID ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); border-color: #38383f; background: var(--surface-2); }
.cat-card:hover::before { transform: scaleY(1); }
.cat-card__icon { color: var(--accent); margin-bottom: 20px; }
.cat-card h3 { font-size: 1.25rem; font-weight: 700; }
.cat-card__count { color: var(--muted); font-size: .85rem; }

/* ---------- SERVICES — two auto-scrolling rows ---------- */
.services-marquee {
  display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.services-row { display: flex; gap: 16px; width: max-content; animation: svcScroll 60s linear infinite; will-change: transform; }
.services-row--2 { animation-duration: 78s; }
.services-marquee:hover .services-row { animation-play-state: paused; }
.services-row .bmw-cat { flex: 0 0 230px; }     /* fixed-width cards in the moving track */
/* move to the RIGHT (cards are duplicated, so -50% → 0 loops seamlessly) */
@keyframes svcScroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .services-row { animation: none; } }

/* ---------- BMW-M CATEGORY GRID (autobahn-style) ---------- */
.bmw-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.bmw-cat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.bmw-cat:hover { transform: translateY(-4px); border-color: #3a3a42; box-shadow: 0 20px 42px -22px #000; }
.bmw-cat.is-extra { display: none; }
.bmw-grid.expanded .bmw-cat.is-extra { display: flex; }
/* the iconic BMW M tri-stripe across the top of every card */
.bmw-cat__stripe {
  height: 4px; width: 100%;
  background: linear-gradient(90deg,
    var(--m-light) 0 33.33%, var(--m-dark) 33.33% 66.66%, var(--m-red) 66.66% 100%);
}
.bmw-cat__head { padding: 13px 15px 10px; }
.bmw-cat__head h3 { font-family: "Sora", sans-serif; font-size: .96rem; font-weight: 700; line-height: 1.2; }
.bmw-cat__th {
  display: block; margin-top: 3px; color: var(--muted); font-size: .78rem;
  font-family: "Noto Sans Thai", "Inter", sans-serif; line-height: 1.3;
}
.bmw-cat__media {
  margin-top: auto; position: relative; height: 124px; display: grid; place-items: center;
  border-top: 1px solid var(--border); color: #5a5a66; overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(44,166,224,.10), transparent 62%),
    linear-gradient(145deg, #1d1d23, #121216);
}
/* faint M tri-stripe motif in the corner of the media */
.bmw-cat__media::after {
  content: ""; position: absolute; right: -14px; top: -10%; width: 46px; height: 130%;
  transform: skewX(-18deg); opacity: .16;
  background: linear-gradient(90deg,
    var(--m-light) 0 33.33%, var(--m-dark) 33.33% 66.66%, var(--m-red) 66.66% 100%);
}
.bmw-cat__icon { display: grid; place-items: center; }
.bmw-cat__icon svg { width: 50px; height: 50px; }
.bmw-cat:hover .bmw-cat__icon { color: var(--accent); }
/* real photo (drop Asset/categories/<slug>.png) sits on top of the icon */
.bmw-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- SHOP BY CAR ---------- */
/* two-row horizontal scroller; the edge card peeks (half) to invite scrolling */
.car-grid {
  display: grid; grid-auto-flow: column; grid-template-rows: auto auto;
  grid-auto-columns: min(340px, 76vw); gap: 18px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
  padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.car-grid::-webkit-scrollbar { height: 6px; }
.car-grid::-webkit-scrollbar-track { background: transparent; }
.car-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.car-card {
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.car-card:hover { transform: translateY(-6px); border-color: #3a3a42; box-shadow: 0 24px 50px -24px #000; }
.car-card__media {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border); color: #4a4a55;
  background:
    radial-gradient(120% 90% at 70% 18%, rgba(44,166,224,.16), transparent 60%),
    radial-gradient(120% 90% at 25% 95%, rgba(231,34,46,.20), transparent 60%),
    linear-gradient(145deg, #1d1d24, #121216);
}
.car-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .55s var(--ease); }
.car-card:hover .car-card__img { transform: scale(1.05); }
.car-card__icon { display: grid; place-items: center; }
.car-card__icon svg { width: 84px; height: auto; }
.car-card:hover .car-card__icon { color: var(--accent); }
.car-card__stripe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--m-light) 0 33.33%, var(--m-dark) 33.33% 66.66%, var(--m-red) 66.66% 100%);
}
.car-card__body { padding: 15px 18px 17px; }
.car-card__body h3 { font-family: "Sora", sans-serif; font-size: 1.05rem; font-weight: 700; }
.car-card__chassis { display: block; margin-top: 4px; color: var(--steel-2); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 520px) { .car-grid { grid-auto-columns: 66vw; } }   /* peek the next card */

/* ---------- PARTS & UPGRADES ---------- */
/* Shop-by-Car filter dropdown */
.parts-filter {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  flex-wrap: wrap; margin: 0 auto 30px;
}
.parts-filter__label {
  color: var(--muted); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.parts-filter__select {
  cursor: pointer; font-family: "Sora", sans-serif; font-weight: 600; font-size: .9rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 16px; min-width: 220px; color-scheme: dark;
  transition: border-color .25s, box-shadow .25s;
}
.parts-filter__select:hover { border-color: #3a3a42; }
.parts-filter__select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231,34,46,.18); }
.parts-empty {
  max-width: 540px; margin: 8px auto 0; text-align: center; color: var(--muted);
  font-size: .92rem; padding: 26px 18px; border: 1px dashed var(--border); border-radius: var(--radius);
}
.parts-empty[hidden] { display: none; }

.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 360px)); gap: 20px; justify-content: center; }
.part-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  color: inherit; text-decoration: none;
}
.part-card:hover { transform: translateY(-5px); border-color: #3a3a42; box-shadow: 0 24px 50px -24px #000; }
.part-card:hover .part-card__cta { border-color: var(--accent); color: var(--accent); }
.part-card__media {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border); background: #fff;
}
.part-card__img { width: 100%; height: 100%; object-fit: contain; z-index: 1; transition: transform .5s var(--ease); }
.part-card:hover .part-card__img { transform: scale(1.06); }
.part-card__stripe { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--m-light) 0 33.33%, var(--m-dark) 33.33% 66.66%, var(--m-red) 66.66% 100%); }
.part-card__tag { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--accent); color: #fff; font-family: "Sora", sans-serif; font-weight: 700; font-size: .58rem; letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.part-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.part-card__brand { color: var(--steel-2); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.part-card__name { font-family: "Sora", sans-serif; font-size: 1.1rem; font-weight: 700; }
.part-card__fit { color: var(--text); font-size: .84rem; margin-top: 2px; }
.part-card__models { color: var(--muted); font-size: .78rem; letter-spacing: .02em; }
.part-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.part-card__gain { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--accent); }
.part-card__price { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.part-card__cta { padding: 9px 16px; font-size: .72rem; }

/* Featured Parts — 2-row manual swipe slider with dots (no auto-move).
   Cards flow into 2 rows forming columns; swipe horizontally through columns. */
.parts-slider { position: relative; }
.parts-slider[hidden] { display: none; }
.parts-track {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: min(80vw, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 2px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  width: fit-content; max-width: 100%; margin: 0 auto;   /* centered when few, scrolls when many */
}
.parts-track::-webkit-scrollbar { display: none; }
.parts-track .part-card { scroll-snap-align: center; }
.parts-track .part-card__media { aspect-ratio: auto; height: 150px; }
.parts-dots { display: flex; gap: 9px; justify-content: center; margin-top: 6px; }
.parts-dots:empty { display: none; }
.parts-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #34343c; cursor: pointer; padding: 0; transition: background .25s, transform .25s; }
.parts-dots button.is-active { background: var(--accent); transform: scale(1.3); }

/* ---------- PRODUCT DETAIL PAGE (product.html) ---------- */
.pd-back { color: var(--steel-2); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.pd-back:hover { color: var(--accent); }
.product-page { padding: 120px 24px 70px; }
.pd-wrap { max-width: 1040px; margin: 0 auto; }
.pd-crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 22px; display: flex; gap: 7px; flex-wrap: wrap; }
.pd-crumbs a { color: var(--steel-2); }
.pd-crumbs a:hover { color: var(--accent); }
.pd-crumbs__current { color: var(--text); }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.pd-grid--missing { display: block; text-align: center; padding: 40px 0; }

.pd-media {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff;
}
.pd-media__stripe { position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--m-light) 0 33.33%, var(--m-dark) 33.33% 66.66%, var(--m-red) 66.66% 100%); }
.pd-media__img { width: 100%; height: 100%; object-fit: contain; }

.pd-brand { color: var(--steel-2); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.pd-name { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.1; margin-top: 6px; }
.pd-price { margin-top: 10px; }
.pd-price__num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--text); }
.pd-fit { color: var(--text); margin-top: 12px; font-size: .95rem; }
.pd-gain { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin: 18px 0; }
[hidden] { display: none !important; }   /* ensure the hidden attribute wins over display rules */
.pd-gain__label { color: var(--muted); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.pd-gain__num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--accent); line-height: 1; }
.pd-gain__note { color: var(--muted); font-size: .8rem; }
.pd-desc { color: var(--muted); line-height: 1.7; font-size: .95rem; }
.pd-features { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.pd-features li { position: relative; padding-left: 22px; color: var(--text); font-size: .9rem; line-height: 1.4; }
.pd-features li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.pd-models { margin: 16px 0 4px; }
.pd-models__label { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 5px; }
.pd-models__list { color: var(--text); font-size: .9rem; }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pd-note { color: var(--muted); font-size: .8rem; margin-top: 16px; }
.pd-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; max-width: 1040px; margin: 0 auto; padding: 22px 24px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
.pd-foot a { color: var(--steel-2); }
.pd-foot a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; gap: 26px; }
  .product-page { padding: 100px 20px 60px; }
}

/* ---------- PRODUCT GRID ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); border-color: #3a3a42; box-shadow: 0 24px 50px -24px #000; }
.prod-card__media {
  aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(231,34,46,.18), transparent 65%),
    linear-gradient(145deg, #202027, #141418);
  border-bottom: 1px solid var(--border); color: #4a4a55;
}
.prod-card__media svg { width: 46%; height: 46%; opacity: .9; }
.prod-card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 4px;
}
.prod-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card__cat { color: var(--accent); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.prod-card__body h3 { font-size: 1.02rem; font-weight: 600; font-family: "Inter", sans-serif; }
.prod-card__meta { display: flex; align-items: center; margin-top: auto; padding-top: 12px; }
.prod-card__price { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.15rem; }

/* ---------- VALUE PROPS ---------- */
.props {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.props__item { background: var(--bg); padding: 20px 24px; display: flex; gap: 14px; align-items: center; }
.props__item svg { color: var(--accent); flex-shrink: 0; }
.props__item h4 { font-family: "Sora", sans-serif; font-size: .98rem; }
.props__item p { color: var(--muted); font-size: .85rem; }

/* ---------- TUNING STAGES (horizontal slider) ---------- */
.stages-slider { position: relative; }
.stages-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 8px 2px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.stages-track::-webkit-scrollbar { display: none; }

.stage {
  position: relative; flex: 0 0 auto; width: min(80vw, 300px); scroll-snap-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform;
  transition: transform .25s var(--ease), border-color .3s, box-shadow .3s;
}
.stage.is-active { border-color: #45454e; box-shadow: 0 24px 50px -28px #000; }
.stage--featured { border-color: var(--accent); }

/* media block — the M-style image (or themed placeholder) */
.stage__media {
  position: relative; height: 112px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 72% 18%, rgba(44,166,224,.18), transparent 60%),
    radial-gradient(120% 90% at 22% 92%, rgba(231,34,46,.24), transparent 60%),
    linear-gradient(135deg, #1d1d24, #101014);
}
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .6s var(--ease); }
.stage:hover .stage__img { transform: scale(1.06); }
.stage__num {
  position: relative; z-index: 2; font-family: "Sora", sans-serif; font-weight: 800;
  font-size: 3.1rem; line-height: 1; color: rgba(255,255,255,.10); text-shadow: 0 2px 26px rgba(0,0,0,.5);
}
.stage__badge {
  position: absolute; top: 14px; right: 14px; z-index: 4; background: var(--accent); color: #fff;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: .6rem; letter-spacing: .09em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}

/* animated BMW M tri-stripe with a sweeping shine */
.stage__stripe {
  position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 3; overflow: hidden;
  background: linear-gradient(90deg, var(--m-light) 0 33.33%, var(--m-dark) 33.33% 66.66%, var(--m-red) 66.66% 100%);
}
.stage__stripe::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  animation: mShine 3.4s var(--ease) infinite;
}
@keyframes mShine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(240%); } }

/* pointer-follow spotlight */
.stage__glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 60%);
}
.stage:hover .stage__glow { opacity: 1; }

/* body */
.stage__body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.stage__label { font-family: "Sora", sans-serif; font-weight: 700; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-2); }
.stage__name { font-size: 1.04rem; font-weight: 800; margin-top: 2px; }
.stage__gain { display: flex; align-items: baseline; gap: 7px; margin: 5px 0 8px; flex-wrap: wrap; }
.stage__gain strong { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--accent); }
.stage__gain span { color: var(--muted); font-size: .79rem; }
.stage__list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.stage__list li { position: relative; padding-left: 18px; color: var(--muted); font-size: .78rem; line-height: 1.28; }
.stage__list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.stage__price { display: flex; align-items: baseline; gap: 7px; margin: 0 0 9px; }
.stage__price__from { color: var(--muted); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.stage__price__num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.28rem; color: var(--text); }
.stage__price--quote .stage__price__num { font-size: 1.02rem; color: var(--steel-2); }
.stage--featured .stage__price__num { color: #fff; }
.stage__cta { margin-top: auto; width: 100%; padding: 9px 18px; font-size: .72rem; }

/* bootmod3 authorized dealer badge */
.authorized {
  display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%;
  margin: 0 auto 18px; padding: 7px 16px 7px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 10px 26px -18px #000;
}
.authorized__icon { height: 26px; width: 26px; border-radius: 7px; flex-shrink: 0; }
.authorized__text { font-family: "Sora", sans-serif; font-weight: 700; font-size: .82rem; color: var(--text); }

/* tuning partner + platforms — one compact credibility bar */
.tuning-cred { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 4px auto 28px; }
.tuning-cred__col { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.tuning-cred__label { color: var(--steel-2); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.tuning-cred__partner { height: 28px; width: auto; opacity: .96; }
.tuning-cred__plats { display: flex; align-items: center; gap: 16px; }
.tuning-cred__plat { height: 30px; width: auto; opacity: .95; transition: opacity .25s, transform .25s var(--ease); }
.tuning-cred__plat--app { height: 34px; border-radius: 9px; }
.tuning-cred__plat:hover { opacity: 1; transform: translateY(-2px); }
.tuning-cred__divider { width: 1px; height: 42px; background: var(--border); }
@media (max-width: 560px) { .tuning-cred { gap: 20px; } .tuning-cred__divider { display: none; } }

/* arrows hidden — swipe on mobile, full 3-up grid on desktop */
.stages-nav { display: none; }

/* dots */
.stages-dots { display: flex; gap: 9px; justify-content: center; margin-top: 4px; }
.stages-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #34343c; cursor: pointer; padding: 0; transition: background .25s, transform .25s; }
.stages-dots button.is-active { background: var(--accent); transform: scale(1.3); }

.stages__note { text-align: center; color: var(--muted); font-size: .82rem; margin: 22px auto 0; max-width: 660px; }

/* ---------- FEATURED BUILDS (right-scrolling marquee) ---------- */
.builds { margin-top: 42px; }
.builds__head { text-align: center; margin-bottom: 16px; }
.builds__title { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.2rem, 3vw, 1.65rem); letter-spacing: .04em; }
.builds__lead { color: var(--muted); margin-top: 5px; font-size: .85rem; }
.builds-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.builds-row { display: flex; gap: 14px; width: max-content; animation: svcScroll 80s linear infinite; will-change: transform; }
.builds-marquee:hover .builds-row { animation-play-state: paused; }
.build-card { flex: 0 0 248px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.build-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); }
.build-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.build-card:hover .build-card__photo { transform: scale(1.05); }
.build-card__stage { position: absolute; top: 9px; left: 9px; background: var(--accent); color: #fff; font-family: "Sora", sans-serif; font-weight: 700; font-size: .54rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.build-card__badge { position: absolute; right: 9px; bottom: 8px; height: 13px; width: auto; opacity: .92; filter: drop-shadow(0 2px 5px rgba(0,0,0,.7)); }
.build-card__body { padding: 9px 12px 11px; }
.build-card__car { font-family: "Sora", sans-serif; font-weight: 700; font-size: .9rem; }
.build-card__spec { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.build-card__power { font-family: "Sora", sans-serif; font-weight: 800; color: var(--accent); font-size: .95rem; }
.build-card__sub { color: var(--muted); font-size: .72rem; }
@media (prefers-reduced-motion: reduce) { .builds-row { animation: none; } }
@media (max-width: 520px) { .build-card { flex-basis: 210px; } }

/* DESKTOP: show all three compact cards in one row — no scrolling */
@media (min-width: 900px) {
  .stages-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow: visible; padding: 6px 0 0; }
  .stage { width: auto; }
  .stage.is-active { box-shadow: none; border-color: var(--border); }
  .stage--featured, .stage--featured.is-active { border-color: var(--accent); }
  .stages-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .stage__stripe::after { animation: none; } }

/* ---------- BRANDS MARQUEE ---------- */
.brands { padding: 56px 0; border-bottom: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.brands__label { text-align: center; color: var(--muted); letter-spacing: .2em; font-size: .76rem; font-family: "Sora", sans-serif; margin-bottom: 28px; }
.brands__track { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brands__row { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 36s linear infinite; }
.brands:hover .brands__row { animation-play-state: paused; }
.brand-logo {
  height: 40px; width: auto; flex-shrink: 0; object-fit: contain;
  opacity: .78; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.brand-logo:hover { opacity: 1; transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- REVIEWS ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.review__stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 14px; }
.review blockquote { font-size: 1.02rem; color: var(--text); }
.review figcaption { color: var(--muted); margin-top: 18px; font-size: .88rem; font-weight: 500; }

/* Google rating badge + review CTAs */
.g-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 34px;
  padding: 11px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.g-badge:hover { border-color: #3a3a42; transform: translateY(-2px); }
.g-badge__g { display: inline-flex; }
.g-badge__num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1; }
.g-badge__stars { color: #FBBC05; letter-spacing: 2px; }
.g-badge__count { color: var(--muted); font-size: .85rem; }
.reviews-cta { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.live-reviews:empty { display: none; }
@media (max-width: 520px) {
  .g-badge { flex-wrap: wrap; border-radius: 16px; justify-content: center; text-align: center; }
  .g-badge__count { width: 100%; }
}

/* ---------- CTA BAND ---------- */
.cta-band {
  padding: 36px 24px;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(231,34,46,.18), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.cta-band__wrap { max-width: 600px; margin: 0 auto; }
.cta-band__inner { max-width: none; }
.cta-band__inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; text-transform: uppercase; }
.cta-band__inner p { color: var(--muted); margin: 8px 0 14px; font-size: .92rem; }
.cta-band__inner .hero__eyebrow { color: var(--accent); margin: 0 0 9px; }

/* appointment / booking form */
.book-form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 14px 0 0; }
.book-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book-field { display: flex; flex-direction: column; gap: 4px; }
.book-field label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.book-field input, .book-field select {
  width: 100%; padding: 10px 13px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: "Inter", sans-serif; font-size: .92rem; color-scheme: dark;
}
.book-field input::placeholder { color: #6a6a72; }
.book-field input:focus, .book-field select:focus { outline: none; border-color: var(--accent); }
.book-form__submit { margin-top: 4px; width: 100%; }
.book-form .book-form__msg { font-size: .88rem; min-height: 1.1em; margin: 2px 0 0; color: var(--muted); }
.book-form__msg.ok { color: #46c46a; }
.book-form__msg.err { color: var(--accent); }
.cta-band__addr { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-top: 15px; }
.cta-band__addr strong { color: var(--text); }
.cta-band__addr a { color: var(--steel-2); }
.cta-band__addr a:hover { color: var(--accent); }
/* live map */
.cta-band__map {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  min-height: 360px; box-shadow: 0 24px 50px -28px #000;
}
.cta-band__map iframe {
  width: 100%; height: 100%; min-height: 360px; display: block; border: 0;
  filter: invert(92%) hue-rotate(180deg) saturate(.85) contrast(.92);
  transition: filter .45s var(--ease);
}
.cta-band__map:hover iframe { filter: none; }   /* reveal true colors on hover */

/* relocated location map (sits under the Reviews section) */
.map-band { padding: 4px 24px 8px; }
.map-band__frame {
  max-width: var(--maxw); margin: 0 auto; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 50px -30px #000;
}
.map-band__frame iframe {
  width: 100%; height: 420px; display: block; border: 0;
  filter: invert(92%) hue-rotate(180deg) saturate(.85) contrast(.92);
  transition: filter .45s var(--ease);
}
.map-band__frame:hover iframe { filter: none; }
@media (max-width: 600px) { .map-band__frame iframe { height: 320px; } }

@media (max-width: 860px) {
  .cta-band__wrap { grid-template-columns: 1fr; gap: 32px; }
  .cta-band__inner { max-width: none; text-align: center; margin: 0 auto; }
  .book-form { margin: 22px auto 0; text-align: left; }
  .cta-band__map { min-height: 300px; }
  .cta-band__map iframe { min-height: 300px; }
}
@media (max-width: 520px) { .book-form__row { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer { background: #0a0a0c; border-top: 1px solid var(--border); padding: 56px 24px 26px; }
.footer__main { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: stretch; }
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; align-content: start; }
.footer__addr { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; color: var(--muted); font-size: .86rem; line-height: 1.5; max-width: 320px; }
.footer__addr svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
/* location map tucked into the footer's right side */
.footer__map { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 230px; }
.footer__map iframe {
  width: 100%; height: 100%; min-height: 230px; display: block; border: 0;
  filter: invert(92%) hue-rotate(180deg) saturate(.85) contrast(.92); transition: filter .4s var(--ease);
}
.footer__map:hover iframe { filter: none; }
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: .92rem; }
.footer__col h5 { font-family: "Sora", sans-serif; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: .9rem; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bar {
  max-width: var(--maxw); margin: 32px auto 0; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .82rem; flex-wrap: wrap;
}
.footer__legal a:hover { color: var(--accent); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* MIX: most sections gently fade up… */
.sect-fade { opacity: 0; transform: translateY(46px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.sect-fade.in { opacity: 1; transform: none; }

/* one sticky-stack moment: the hero + Our Services at the top. */
.stack-top > section { position: sticky; top: 0; }
.footer { position: relative; z-index: 1; }

/* On mobile the sections stack tall (e.g. form ABOVE map), so a sticky section
   taller than the screen would hide its lower content — turn stacking off. */
@media (max-width: 860px) {
  .stack-top > section { position: relative; }   /* relative (not static!) so the hero's absolute video/scrim stay inside the hero */
}

@media (prefers-reduced-motion: reduce) { .sect-fade, .sect-fade.in { opacity: 1; transform: none; transition: none; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) { .bmw-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }   /* brand spans full width, links sit below */
}
@media (max-width: 860px) {
  .footer__main { grid-template-columns: 1fr; gap: 28px; }
  .footer__map, .footer__map iframe { min-height: 180px; }   /* compact but readable on mobile */
  .footer__map iframe { height: 180px; }
}
@media (max-width: 760px)  { .bmw-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .bmw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 64px; flex-direction: column; gap: 0;
    background: rgba(14,14,16,.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 8px 0; transform: translateY(-120%); transition: transform .35s var(--ease); margin-left: 0;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 16px 24px; border-bottom: 1px solid var(--border); width: 100%; }
  .nav__burger { display: flex; }
  .nav__inner { gap: 16px; }
  .nav__actions { margin-left: auto; }   /* push lang/currency/burger to the right edge */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .props { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
}
@media (max-width: 520px) {
  .cat-grid, .prod-grid { grid-template-columns: 1fr; }
  /* keep footer Explore + Visit Us side by side on mobile (brand stays full width) */
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .props { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* keep value props 2×2 on mobile */
  .props__item { flex-direction: column; align-items: flex-start; padding: 16px 14px; gap: 8px; min-width: 0; }
  .props__item > div { min-width: 0; width: 100%; }   /* fill the cell so text wraps instead of overflowing */
  .props__item svg { width: 24px; height: 24px; }
  .props__item h4 { font-size: .92rem; }
  .props__item p { font-size: .8rem; }
  .cta-band__form { flex-direction: column; }
  .section { padding: 70px 20px; }
  .nav__actions .icon-btn[aria-label="Search"], .nav__actions .icon-btn[aria-label="Account"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .brands__row, .hero__scroll { animation: none; }
  html { scroll-behavior: auto; }
}
