/* ==========================================================================
   Voltrax EV — Design System
   Premium, warm-neutral, motorcycle-first. Inspired by Apple / Porsche / Arc.
   ========================================================================== */

:root {
  /* Warm neutral palette */
  --cream:        #F6F2EA;
  --cream-2:      #FBF8F2;
  --paper:        #FFFFFF;
  --ink:          #17150F;
  --ink-soft:     #2A271F;
  --muted:        #6E685C;
  --muted-2:      #948D7E;
  --line:         #E7E0D3;
  --line-strong:  #D8CFBE;

  /* Deep "stage" tones for hero + bike showcases */
  --char:         #16130E;
  --char-2:       #1E1A13;
  --char-line:    #322C22;
  --on-char:      #F3EFE6;
  --on-char-mut:  #B7AF9E;

  /* Brand accents (restrained, drawn from the Voltrax badge) */
  --red:          #C21F2E;
  --red-deep:     #A5182A;
  --forest:       #3A5A40;   /* in-stock / natural green, not neon */
  --forest-soft:  #E9EFE7;
  --sand:         #C9BCA3;

  /* Product "stage" gradient (bike cards, parts, feature + modal media) */
  --stage-a:      #FFFFFF;
  --stage-b:      #EFE8DB;
  --header-bg:    rgba(246,242,234,.82);
  --header-bg-scrolled: rgba(246,242,234,.92);
  --overlay:      rgba(23,21,15,.05);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(23,21,15,.05), 0 2px 6px rgba(23,21,15,.05);
  --shadow-md: 0 6px 20px rgba(23,21,15,.08), 0 2px 6px rgba(23,21,15,.05);
  --shadow-lg: 0 24px 60px rgba(23,21,15,.14), 0 8px 20px rgba(23,21,15,.08);
  --shadow-bike: 34px 40px 44px rgba(20,16,10,.28);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------- dark theme --- */
:root[data-theme="dark"] {
  --cream:        #14120D;
  --cream-2:      #1A1712;
  --paper:        #1E1B15;
  --ink:          #F3EFE6;
  --ink-soft:     #E4DDCE;
  --muted:        #A79E8D;
  --muted-2:      #857D6E;
  --line:         #322C22;
  --line-strong:  #423B2E;

  --forest:       #7FB088;
  --forest-soft:  rgba(127,176,136,.14);

  --stage-a:      #241F17;
  --stage-b:      #14110C;
  --header-bg:    rgba(20,18,13,.78);
  --header-bg-scrolled: rgba(20,18,13,.92);
  --overlay:      rgba(255,255,255,.06);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}
:root[data-theme="dark"] .badge--import { background: rgba(199,154,58,.16); color: #E7C889; }
:root[data-theme="dark"] .btn--ghost:hover { background: rgba(255,255,255,.05); }
/* smooth theme transition */
body, .site-header, .bike-card, .part-card, .adv-card, .card-form, .field input,
.field select, .field textarea, .chip, .filters, .marquee { transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  body, .site-header, .bike-card, .part-card, .adv-card, .card-form { transition: none; }
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- headings */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; color: var(--ink); }
.h-display { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; letter-spacing: -.035em; }
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* ----------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lead { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .92em 1.6em; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 700; font-size: .96rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), background-color .3s var(--ease), box-shadow .35s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform; border: 1.5px solid transparent; text-align: center;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(194,31,46,.24); }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(194,31,46,.30); }
.btn--dark { background: var(--ink); color: var(--cream-2); }
.btn--dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); background: rgba(23,21,15,.03); }
/* always a light pill on a dark band, so its text is pinned dark in both themes */
.btn--light { background: #F3EFE6; color: #17150F; }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #fff; color: #17150F; }
.btn--on-dark { background: transparent; color: var(--on-char); border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { border-color: var(--on-char); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn--sm { padding: .68em 1.15em; font-size: .86rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--ink); transition: gap .3s var(--ease), color .3s; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------- chips */
.badge {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .4em .75em; border-radius: var(--r-pill); line-height: 1;
}
.badge--stock { background: var(--forest-soft); color: var(--forest); }
.badge--stock .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 3px rgba(58,90,64,.16); }
.badge--import { background: #F3ECDD; color: #8A6D2E; }
.badge--import .dot { width: 6px; height: 6px; border-radius: 50%; background: #B8891F; }
.badge--out { background: rgba(23,21,15,.07); color: var(--muted); }
.badge--out .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.badge--soft { background: rgba(23,21,15,.05); color: var(--muted); }

/* ==================================================================== HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); background: var(--header-bg-scrolled); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; font-size: 1.18rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand b { font-weight: 800; }
.brand span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: .55rem .95rem; border-radius: var(--r-pill); font-weight: 600; font-size: .96rem; color: var(--ink-soft);
  transition: background-color .25s, color .25s;
}
.nav-links a:hover { background: rgba(23,21,15,.05); }
.nav-links a.is-active { color: var(--ink); background: rgba(23,21,15,.06); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle { display: inline-flex; background: var(--overlay); border-radius: var(--r-pill); padding: 3px; border: 1px solid var(--line); }
.lang-toggle button { padding: .3rem .62rem; border-radius: var(--r-pill); font-weight: 700; font-size: .8rem; color: var(--muted); transition: color .25s, background-color .25s; }
.lang-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

.nav-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==================================================================== HERO */
.hero { position: relative; background: var(--char); color: var(--on-char); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background:
   radial-gradient(120% 90% at 78% 22%, rgba(194,31,46,.14), transparent 55%),
   radial-gradient(80% 70% at 12% 92%, rgba(58,90,64,.14), transparent 60%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: calc(100svh - var(--nav-h)); padding-block: clamp(48px, 7vw, 96px); }
.hero .eyebrow { color: #F1B3B8; }
.hero .eyebrow::before { background: var(--red); }
.hero h1 { color: #fff; }
.hero .lead { color: var(--on-char-mut); }
.hero-stage { position: relative; display: grid; place-items: center; }
.hero-stage::before { content: ""; position: absolute; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(233,224,208,.22), rgba(233,224,208,.09) 40%, transparent 66%); }
.hero-stage .disc { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--char-line); }
.hero-stage .disc.d2 { width: 96%; opacity: .6; }
.hero-bike { position: relative; z-index: 2; width: 100%; filter: drop-shadow(28px 30px 30px rgba(0,0,0,.55)); }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 34px; flex-wrap: wrap; }
.hero-stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; letter-spacing: -.03em; }
.hero-stat .l { font-size: .82rem; color: var(--on-char-mut); letter-spacing: .04em; }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--on-char-mut); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll .mouse { width: 22px; height: 34px; border: 1.5px solid var(--on-char-mut); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; border-radius: 2px; background: var(--on-char-mut); animation: mouse 1.8s var(--ease) infinite; }
@keyframes mouse { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 9px); } 100% { opacity: 0; } }

/* ============================================================ marquee/brands */
.marquee { border-block: 1px solid var(--line); background: var(--cream-2); overflow: hidden; }
.marquee__track { display: flex; gap: 56px; align-items: center; padding: 22px 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.5rem); color: var(--muted-2); letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "·"; color: var(--line-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================ bike cards */
.grid { display: grid; gap: clamp(20px, 2.5vw, 30px); }
.grid--bikes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.bike-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.bike-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.bike-card__stage {
  position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; padding: 26px 22px 8px;
  background: radial-gradient(78% 62% at 50% 42%, var(--stage-a) 0%, var(--stage-b) 100%);
  overflow: hidden;
}
.bike-card__stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 15%; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(20,16,10,.22), transparent); }
.bike-card__img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(10px 14px 14px rgba(20,16,10,.22)); transition: transform .55s var(--ease); }
.bike-card:hover .bike-card__img { transform: scale(1.045) rotate(-.4deg); }
.bike-card__badges { position: absolute; z-index: 3; top: 14px; left: 14px; display: flex; gap: 8px; }
.bike-card__brand { position: absolute; z-index: 3; top: 16px; right: 16px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.bike-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.bike-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bike-card h3 { font-size: 1.28rem; }
.bike-card__tag { font-size: .82rem; color: var(--muted); font-weight: 600; }
.bike-card__spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 18px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.spec-item .k { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.spec-item .v { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em; margin-top: 2px; }
.spec-item .v small { font-weight: 600; font-size: .74rem; color: var(--muted); font-family: var(--font-body); }
.bike-card__foot { margin-top: auto; display: flex; gap: 10px; }
.bike-card__foot .btn { flex: 1; }

/* dark variant used in featured band */
.stage-dark { background: var(--char); color: var(--on-char); }
.stage-dark .section-head .lead { color: var(--on-char-mut); }
.stage-dark .eyebrow { color: #F1B3B8; }
.stage-dark .bike-card { background: var(--char-2); border-color: var(--char-line); }
.stage-dark .bike-card__stage { background: radial-gradient(78% 62% at 50% 42%, #262119 0%, #1b1710 70%); }
.stage-dark .bike-card h3, .stage-dark .spec-item .v { color: var(--on-char); }
.stage-dark .bike-card__spec { border-top-color: var(--char-line); }
.stage-dark .spec-item .k, .stage-dark .bike-card__tag { color: var(--on-char-mut); }

/* =============================================================== feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 110px); }
.feature-row--rev .feature-media { order: 2; }
.feature-media { position: relative; border-radius: var(--r-xl); background: radial-gradient(80% 70% at 50% 40%, var(--stage-a), var(--stage-b)); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.feature-media img { width: 100%; object-fit: contain; filter: drop-shadow(18px 22px 24px rgba(20,16,10,.24)); }
.feature-media--dark { background: var(--char); border-color: var(--char-line); }

/* ============================================================= advantages */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.adv-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.adv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.adv-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); margin-bottom: 20px; }
.adv-card .ico svg { width: 24px; height: 24px; }
.adv-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.adv-card p { color: var(--muted); font-size: .98rem; }

/* ================================================================= import */
.import { background: var(--char); color: var(--on-char); border-radius: var(--r-xl); padding: clamp(34px, 5vw, 68px); position: relative; overflow: hidden; }
.import::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 85% 15%, rgba(184,137,31,.16), transparent 55%); pointer-events: none; }
.import .eyebrow { color: #E7C889; }
.import .eyebrow::before { background: #C79A3A; }
.import h2, .import h3 { color: #fff; }
.import .lead { color: var(--on-char-mut); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; position: relative; z-index: 2; }
.step { padding: 26px 24px; border: 1px solid var(--char-line); border-radius: var(--r-lg); background: rgba(255,255,255,.02); }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #C79A3A; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--char-line); display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--on-char-mut); font-size: .95rem; }
.import-note { margin-top: 26px; font-size: .9rem; color: var(--on-char-mut); position: relative; z-index: 2; display: flex; gap: .6em; align-items: flex-start; }
.import-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #C79A3A; }

/* ================================================================ contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { display: grid; gap: 4px; margin-top: 30px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--ink); }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.contact-item a, .contact-item p { font-weight: 600; font-size: 1.02rem; }
.contact-item a:hover { color: var(--red); }

.card-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .82em 1em; font: inherit; color: var(--ink);
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(23,21,15,.06); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ================================================================== footer */
.site-footer { background: var(--char); color: var(--on-char-mut); padding-block: clamp(52px, 7vw, 84px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; padding: 6px 0; font-size: .96rem; color: var(--on-char-mut); transition: color .25s; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--char-line); display: grid; place-items: center; color: var(--on-char-mut); transition: all .3s var(--ease); }
.socials a:hover { color: #fff; border-color: var(--on-char-mut); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--char-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

/* ======================================================= page hero (sub) */
.page-hero { background: var(--char); color: var(--on-char); padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(90% 80% at 85% 10%, rgba(194,31,46,.12), transparent 55%); pointer-events:none;}
.page-hero .eyebrow { color: #F1B3B8; }
.page-hero h1 { color: #fff; position: relative; z-index: 2; }
.page-hero .lead { color: var(--on-char-mut); position: relative; z-index: 2; }

/* ==================================================== filters (bikes page) */
.filters { position: sticky; top: var(--nav-h); z-index: 40; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-block: 16px; }
.filters__inner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chip-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: .5em 1em; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: var(--paper); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream-2); border-color: var(--ink); }
.filters__spacer { flex: 1; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding: .58em 2.4em .58em 1em; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--paper); font-weight: 600; font-size: .9rem; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.result-count { font-size: .9rem; color: var(--muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ===================================================== spec table (detail) */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--muted); width: 42%; font-family: var(--font-body); }
.spec-table td { font-weight: 600; color: var(--ink); }

/* ==================================================== modal (bike detail) */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(15,12,8,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%); opacity: 0;
  width: min(960px, 94vw); max-height: 90vh; overflow: auto; background: var(--cream-2);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transition: transform .4s var(--ease), opacity .3s;
}
.modal.is-open .modal__panel { transform: translate(-50%, -50%); opacity: 1; }
.modal__grid { display: grid; grid-template-columns: 1.05fr .95fr; }
/* media box never grows with its content: the image is absolutely positioned
   and contained, so portrait and landscape photos both centre identically. */
.modal__media { background: radial-gradient(80% 70% at 50% 42%, var(--stage-a), var(--stage-b));
  position: relative; overflow: hidden; min-height: 260px; }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 30px; filter: drop-shadow(14px 18px 20px rgba(20,16,10,.24)); }
.modal__body { padding: clamp(24px, 3vw, 40px); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 5; transition: transform .25s, background-color .25s; }
.modal__close:hover { transform: rotate(90deg); background: #fff; }
.modal__close svg { width: 18px; height: 18px; }
.finish-swatches { display: flex; gap: 10px; margin: 16px 0 6px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.swatch i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); }

/* ============================================================== parts grid */
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.part-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column; }
.part-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.part-card__img { aspect-ratio: 4/3; background: radial-gradient(74% 66% at 50% 44%, var(--stage-a), var(--stage-b)); display: grid; place-items: center; padding: 12px; overflow: hidden; }
.part-card__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .5s var(--ease); }
.part-card:hover .part-card__img img { transform: scale(1.05); }
.part-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.part-card__brand { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.part-card h3 { font-size: 1.06rem; }
.part-card p { font-size: .9rem; color: var(--muted); margin-top: 2px; flex: 1; }
.part-card .btn { margin-top: 14px; }

/* ================================================================== misc */
.divider { height: 1px; background: var(--line); border: 0; }
.cta-band { background: var(--char); color: var(--on-char); border-radius: var(--r-xl); padding: clamp(36px, 5vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(70% 100% at 50% 0%, rgba(194,31,46,.16), transparent 60%); pointer-events:none; }
.cta-band h2 { color: #fff; position: relative; z-index: 2; }
.cta-band .lead { color: var(--on-char-mut); margin-inline: auto; position: relative; z-index: 2; }
.cta-band .btn-row { justify-content: center; position: relative; z-index: 2; margin-top: 30px; }

/* reveal animation — only hides when JS is active (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* language visibility handled by JS text swap; helper for inline-only nodes */
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); transition: top .25s; }
.skip-link:focus { top: 12px; }

/* ============================================================ responsive */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line);
    display: grid; gap: 4px; padding: 16px var(--gutter) 26px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .35s var(--ease), opacity .3s; box-shadow: var(--shadow-md); z-index: 90; }
  body.nav-open .nav-mobile { transform: none; opacity: 1; pointer-events: auto; }
  .nav-mobile a { padding: 14px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 1.1rem; }
  .nav-mobile a:hover, .nav-mobile a.is-active { background: rgba(23,21,15,.05); }
  .nav-mobile .btn { margin-top: 10px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; min-height: auto; padding-block: 48px 40px; }
  .hero .lead { margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero-stage { order: -1; max-width: 460px; margin-inline: auto; }
  .hero-scroll { display: none; }
  .feature-row, .feature-row--rev .feature-media { grid-template-columns: 1fr; order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal__grid { grid-template-columns: 1fr; }
  .modal__media { aspect-ratio: 16/11; }
}
@media (max-width: 720px) {
  .adv-grid, .steps { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .bike-card__foot { flex-direction: column; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .grid--bikes { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: 1fr; }
}

/* ====================================================== out-of-stock cards */
.bike-card.is-out .bike-card__img { opacity: .72; filter: drop-shadow(10px 14px 14px rgba(20,16,10,.18)) saturate(.85); }
.bike-card.is-out:hover .bike-card__img { opacity: .9; }
:root[data-theme="dark"] .badge--out { background: rgba(255,255,255,.08); color: var(--muted); }

/* ======================================================= part photo viewer */
.part-card { position: relative; }
.part-card.is-clickable { cursor: pointer; }
/* the title button stretches over the whole card, so the full square is clickable */
.part-card__open {
  font: inherit; color: inherit; text-align: left; padding: 0; background: none;
  border: 0; cursor: pointer;
}
.part-card__open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.part-card__open:focus-visible::after { outline: 2.5px solid var(--red); outline-offset: -3px; }
.part-card__open:focus-visible { outline: none; }
.part-card:hover .part-card__open { color: var(--red); }
/* the WhatsApp button must stay above the stretched overlay */
.part-card__wa { position: relative; z-index: 2; }

.part-card__img { position: relative; }
.part-card__count {
  position: absolute; z-index: 2; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  color: var(--muted); font-size: .74rem; font-weight: 700; line-height: 1;
  box-shadow: var(--shadow-sm); transition: color .25s, border-color .25s;
}
.part-card__count svg { width: 14px; height: 14px; }
.part-card:hover .part-card__count { color: var(--ink); border-color: var(--line-strong); }

.pthumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.pthumb {
  width: 68px; height: 68px; border-radius: var(--r-sm); overflow: hidden; padding: 0;
  border: 1.5px solid var(--line); background: var(--stage-b);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.pthumb.is-on { border-color: var(--ink); }
.modal--part { width: min(760px, 94vw); }
.modal--part .modal__grid { grid-template-columns: 1fr; }
.modal--part .modal__media { aspect-ratio: 4 / 3; min-height: 0; }
.modal--part .modal__media img { padding: 22px; filter: none; }

/* ============================================================== showroom */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
/* every tile is the same 3:4 box, so rows always line up exactly */
.shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--stage-b);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4; position: relative; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s var(--ease); }
.shot:hover img { transform: scale(1.05); }

/* dark feature band so the real showroom photos carry the page */
.showroom-band { background: var(--char); color: var(--on-char); }
.showroom-band h2 { color: #fff; }
.showroom-band .lead { color: var(--on-char-mut); }
.showroom-band .eyebrow { color: #F1B3B8; }
.showroom-band .eyebrow::before { background: var(--red); }
.showroom-band .shot { border-color: var(--char-line); background: #1b1710; box-shadow: none; }
.showroom-band .link-arrow { color: var(--on-char); }
.showroom-band .link-arrow:hover { color: #fff; }
@media (max-width: 520px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============================================ render-cost trim (perf only) */
.section, .marquee, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.hero, .page-hero { content-visibility: visible; }

/* ===================================================== quick section nav */
/* keep anchored sections clear of the sticky header */
section[id], div[id].filters { scroll-margin-top: calc(var(--nav-h) + 18px); }
.quicknav { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.quicknav + .marquee { border-top: 0; }
.quicknav__inner { display: flex; gap: 10px; padding-block: 14px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; }
.quicknav__inner::-webkit-scrollbar { display: none; }
.qbtn {
  flex: none; display: inline-flex; align-items: center; gap: .5em;
  padding: .62em 1.05em; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--paper);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); white-space: nowrap;
  scroll-snap-align: start;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease), color .25s var(--ease);
}
.qbtn svg { width: 17px; height: 17px; color: var(--red); flex: none; }
.qbtn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
@media (min-width: 760px) { .quicknav__inner { justify-content: center; flex-wrap: wrap; } }

/* ============================ onboarding: fly up to the header on dismiss */
/* the card animates toward the language / theme controls so it is obvious
   the choice lives up there and can be changed again later                */
.onboard__card.is-leaving { animation: none !important; }
.onboard.is-leaving .onboard__scrim { animation: none !important; opacity: 0;
  transition: opacity .45s var(--ease); }

@keyframes hintPulse {
  0%   { box-shadow: 0 0 0 0 rgba(194,31,46,.5); }
  70%  { box-shadow: 0 0 0 11px rgba(194,31,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,31,46,0); }
}
.is-hinted { animation: hintPulse 1.4s var(--ease) 2; border-color: var(--red); }
@media (prefers-reduced-motion: reduce) { .is-hinted { animation: none; } }

/* ============================================================ theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--overlay); display: inline-grid; place-items: center; color: var(--ink);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--muted-2); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }

/* ======================================================= onboarding popup */
.onboard { position: fixed; inset: 0; z-index: 300; display: none; }
.onboard.is-open { display: block; }
.onboard__scrim { position: absolute; inset: 0; background: rgba(12,10,7,.55); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); }
.onboard.is-open .onboard__scrim { animation: onboardFade .35s var(--ease) both; }
.onboard__card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(440px, 92vw); background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 38px);
  text-align: center;
}
.onboard.is-open .onboard__card { animation: onboardIn .4s var(--ease) both; }
@keyframes onboardFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes onboardIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.onboard__logo { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px; box-shadow: var(--shadow-sm); }
.onboard__card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.onboard__card p { color: var(--muted); font-size: .96rem; margin-bottom: 22px; }
.onboard__label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); text-align: left; margin-bottom: 8px; }
.onboard__group { margin-bottom: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button {
  padding: .8em 1em; border-radius: var(--r-md); border: 1.5px solid var(--line-strong);
  background: var(--paper); font-weight: 700; font-size: .95rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  transition: all .22s var(--ease);
}
.seg button svg { width: 18px; height: 18px; }
.seg button:hover { border-color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream-2); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.onboard__card .btn { width: 100%; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) {
  .onboard.is-open .onboard__card, .onboard.is-open .onboard__scrim { animation: none; }
}
