/* ==========================================================================
   BIKELOFT stylesheet
   Mobile-first. Enhance upward with min-width media queries.
   Breakpoints: 480 / 768 / 1024 / 1280
   --------------------------------------------------------------------------
   HOW TO RE-BRAND THIS SITE:
   Change the three --brand-* values below to your exact logo colours.
   Nothing else in this file hard-codes a colour, so the whole site follows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* ---- BRAND: sampled directly from images/bike-loft-logo.png ---- */
  --brand-primary:   #E40000;   /* racing red:    the logo's red, CTAs     */
  --brand-secondary: #08080A;   /* logo black:    footer, deep panels      */
  --brand-accent:    #D7DCE2;   /* chrome silver: the "LOFT" wordmark      */

  /* Brand derivatives (auto-derived, no need to edit) */
  --brand-primary-soft: color-mix(in srgb, var(--brand-primary) 16%, transparent);
  --brand-primary-tint: color-mix(in srgb, var(--brand-primary) 62%, #FFFFFF);

  /* ---- NEUTRALS ---- */
  --bg:         #101012;
  --surface:    #17171A;
  --surface-2:  #202024;
  --text:       #F5F6F7;
  --text-muted: #A2A6AC;   /* 7.8:1 on --bg, passes WCAG AA */
  --border:     #2E2E33;

  /* ---- ON-BRAND FOREGROUNDS ----
     The maths flips vs the old orange: on this red WHITE gives 4.89:1 (AA),
     near-black only 4.03:1. So red buttons take white text. */
  --on-primary: #FFFFFF;
  --on-accent:  #08080A;

  /* ---- STATUS ---- */
  --ok:      #34D399;
  --warn:    #FBBF24;
  --danger:  #F87171;
  --on-ok:      #04160F;
  --on-danger:  #FFFFFF;
  --ribbon-fg:  #FFFFFF;

  /* WhatsApp's own brand green, deliberately NOT themed so the button stays
     instantly recognisable. Change only if you want it to match your palette. */
  --whatsapp:    #25D366;
  --on-whatsapp: #06301A;

  /* ---- TYPE ---- */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs:   0.8125rem;                          /* 13px, labels only        */
  --fs-sm:   0.9375rem;                          /* 15px                     */
  --fs-base: 1rem;                               /* 16px minimum body        */
  --fs-lg:   clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  --fs-xl:   clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --fs-h3:   clamp(1.125rem, 0.8vw + 1rem, 1.375rem);
  --fs-h2:   clamp(1.75rem, 2.6vw + 1rem, 2.75rem);
  --fs-h1:   clamp(2.25rem, 6vw + 1rem, 4.25rem);
  --fs-stat: clamp(2rem, 4vw + 1rem, 3.25rem);

  /* ---- SPACE (8px scale) ---- */
  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 2.5rem;  --s-6: 3rem;   --s-8: 4rem;    --s-10: 5rem;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  /* ---- RADIUS / SHADOW ---- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.3);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.45), 0 4px 12px rgba(0,0,0,.3);
  --shadow-brand: 0 10px 30px color-mix(in srgb, var(--brand-primary) 26%, transparent);

  --header-h: 64px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;               /* guarantee: no horizontal scroll */
  padding-bottom: 72px;             /* room for the mobile action bar */
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--brand-primary-tint); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-primary); color: var(--on-primary);
  padding: var(--s-1) var(--s-2); border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--s-2); }
.container-narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.text-brand { color: var(--brand-primary); }

.eyebrow {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-primary-tint); margin-bottom: var(--s-1);
}
.section-head { margin-bottom: var(--s-4); display: flex; gap: var(--s-2); justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.section-sub { color: var(--text-muted); margin-top: var(--s-2); max-width: 62ch; }
.fine-print { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; margin-top: var(--s-2); }

/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 44px; padding: 0.6875rem var(--s-3);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: .01em; text-align: center; text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand-primary); color: var(--on-primary); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-primary-tint); }

.btn-outline { border-color: var(--border); color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary-tint); }

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-sm { min-height: 44px; padding: .5rem var(--s-2); font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: .875rem var(--s-4); font-size: var(--fs-base); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); transition: all .18s var(--ease);
}
.icon-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary-tint); }

/* --------------------------------------------------------------------------
   4. HEADER + NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-md); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); height: var(--header-h); transition: height .25s var(--ease); }
.site-header.is-stuck .header-inner { height: 56px; }

.logo { display: inline-flex; align-items: center; gap: .625rem; min-height: 44px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
/* The header uses a horizontal lockup (rider + wordmark) generated from the
   master logo; the footer uses the full stacked lockup with the ribbon.
   Both are the dark-background variant, where the black "BIKE" letters were
   lifted to chrome so they read on this dark UI. */
.logo-img { height: 32px; width: auto; transition: height .25s var(--ease); }
.site-header.is-stuck .logo-img { height: 28px; }
.logo-stacked { min-height: 0; }
.logo-img-full { width: 200px; height: auto; }

.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--s-1); }
.header-actions .btn { display: none; }

.hamburger { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: var(--r-sm); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  padding: calc(var(--header-h) + var(--s-4)) var(--s-2) var(--s-4);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateX(100%); transition: transform .32s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--text); padding: var(--s-2) 0; border-bottom: 1px solid var(--border);
}
.mobile-menu nav a:hover { color: var(--brand-primary-tint); text-decoration: none; }
.mobile-menu-cta { display: grid; gap: var(--s-1); padding-top: var(--s-3); }
body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 8vw, 6rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 460px at 88% -8%, color-mix(in srgb, var(--brand-primary) 24%, transparent), transparent 62%),
    radial-gradient(700px 420px at 8% 108%, color-mix(in srgb, var(--brand-accent) 12%, transparent), transparent 60%),
    linear-gradient(178deg, var(--brand-secondary), var(--bg) 68%);
}
.hero-bg::after {
  /* subtle diagonal speed lines */
  content: ""; position: absolute; inset: 0; opacity: .05;
  background: repeating-linear-gradient(115deg, transparent 0 22px, var(--text) 22px 23px);
  /* mask stop: only the alpha matters here, the colour is never painted */
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
.hero-inner { max-width: 780px; }
.hero h1 { margin-bottom: var(--s-3); }
.hero-sub { font-size: var(--fs-lg); color: var(--text-muted); max-width: 56ch; margin-bottom: var(--s-4); }
.hero-cta { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-5); }

.trust-strip { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-size: var(--fs-sm); color: var(--text-muted); }
.trust-strip li { display: flex; align-items: center; gap: .5rem; }
/* Each item carries its own icon in a soft red disc, keeping the round accent
   the plain bullets used to give while actually saying something. */
.trust-ico {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 22%, transparent);
  color: var(--brand-primary-tint);
}
/* The 24px artboard is drawn down to 16px, which thins a 2px stroke to ~1.3px.
   CSS overrides the presentation attribute to keep the strokes readable. */
.trust-ico svg { width: 16px; height: 16px; stroke-width: 2.25; }

/* --------------------------------------------------------------------------
   6. STATS
   -------------------------------------------------------------------------- */
.stats { background: var(--surface); border-block: 1px solid var(--border); padding-block: var(--s-5); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-2); text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 800; color: var(--brand-primary); line-height: 1; letter-spacing: -.03em; }
.stat-label { display: block; margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   7. CAROUSEL (featured)
   -------------------------------------------------------------------------- */
.carousel-nav { display: none; gap: var(--s-1); }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: var(--s-2); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s-2); margin-inline: calc(var(--s-2) * -1); padding-inline: var(--s-2);
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.carousel > * { scroll-snap-align: start; }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-pill); }

/* --------------------------------------------------------------------------
   8. FILTERS
   -------------------------------------------------------------------------- */
.filter-trigger { margin-bottom: var(--s-2); }
.filter-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--brand-primary); color: var(--on-primary); font-size: var(--fs-xs); font-weight: 700;
}

/* Mobile: bottom sheet */
.filter-panel {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end;
  visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.filter-panel.is-open { visibility: visible; opacity: 1; }
.filter-sheet {
  width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  border: 1px solid var(--border); border-bottom: 0;
  padding: var(--s-2) var(--s-2) var(--s-3);
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.filter-panel.is-open .filter-sheet { transform: translateY(0); }
.filter-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
/* the sheet shares --surface with .icon-btn, so darken the close button to keep it visible */
.filter-sheet-head .icon-btn { background: var(--bg); }
.filter-row { display: grid; gap: var(--s-2); }
.filter-foot { display: flex; gap: var(--s-1); margin-top: var(--s-3); }
.filter-foot .btn { flex: 1; }

.field { display: grid; gap: .375rem; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.field label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select, .filter-sheet input, .filter-sheet select {
  width: 100%; min-height: 46px; padding: .625rem .875rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: var(--fs-base); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-soft); outline: none; }
.field input::placeholder { color: color-mix(in srgb, var(--text-muted) 75%, transparent); }
.field select { appearance: none; padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: right 1.05rem center, right .75rem center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field .error { font-size: var(--fs-xs); color: var(--danger); min-height: 1em; }
.field.is-invalid input { border-color: var(--danger); }

.input-icon { position: relative; }
.input-icon svg { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon input { padding-left: 2.75rem; }

.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding-block: var(--s-2) .25rem; margin-inline: calc(var(--s-2) * -1); padding-inline: var(--s-2); scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; min-height: 44px; padding: .5rem var(--s-2);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--bg); color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600;
  transition: all .18s var(--ease); white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--text-muted); }
.chip.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--on-primary); }

.result-count { color: var(--text-muted); font-size: var(--fs-sm); margin-block: var(--s-2); }

/* --------------------------------------------------------------------------
   9. BIKE CARDS
   -------------------------------------------------------------------------- */
.bike-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }

.bike-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; text-align: left; width: 100%;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.section-alt .bike-card { background: var(--bg); }
.bike-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-primary) 55%, var(--border)); box-shadow: var(--shadow-lg); }

.bike-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.bike-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), filter .3s var(--ease); }
.bike-card:hover .bike-media img { transform: scale(1.05); }
.bike-card.is-sold .bike-media img { filter: grayscale(1) brightness(.65); }

.badge {
  position: absolute; top: var(--s-1); left: var(--s-1); z-index: 2;
  padding: .3rem .6rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-available { background: var(--ok); color: var(--on-ok); }
.badge-booked    { background: var(--brand-accent); color: var(--on-accent); }
.badge-sold      { background: var(--brand-secondary); color: var(--ribbon-fg); box-shadow: inset 0 0 0 1px var(--border); }
.badge-featured  { left: auto; right: var(--s-1); background: var(--brand-primary); color: var(--on-primary); }

/* Diagonal SOLD OUT ribbon */
.ribbon {
  position: absolute; z-index: 3; top: 24%; left: -32%; width: 164%;
  transform: rotate(-14deg);
  background: color-mix(in srgb, var(--brand-secondary) 92%, transparent);
  color: var(--ribbon-fg);
  /* red hairlines echo the logo's black-and-red ribbon and keep the band
     readable over both dark and bright bike photos */
  border-block: 2px solid var(--brand-primary); text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .22em;
  padding: .4rem 0; box-shadow: 0 6px 18px rgba(0,0,0,.5);
  pointer-events: none;
}

.bike-body { display: flex; flex-direction: column; gap: .625rem; padding: var(--s-2); flex: 1; }
.bike-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.bike-title .year { color: var(--text-muted); font-weight: 600; }
.bike-specs { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: var(--fs-xs); color: var(--text-muted); list-style: none; padding: 0; }
.bike-specs li:not(:last-child)::after { content: "·"; margin-left: .5rem; color: var(--border); }
.bike-price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 800; color: var(--text); letter-spacing: -.02em; margin-top: auto; }
.bike-price small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.bike-actions { display: flex; gap: .5rem; }
.bike-actions .btn { flex: 1; }

/* Skeletons */
.skeleton { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.sk-media { aspect-ratio: 4 / 3; }
.sk-line { height: 12px; border-radius: var(--r-pill); margin: var(--s-1) var(--s-2); }
.sk-line.w-60 { width: 60%; } .sk-line.w-40 { width: 40%; } .sk-line.w-80 { width: 80%; }
.sk-media, .sk-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--border) 50%, var(--surface-2) 70%);
  background-size: 220% 100%; animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* Empty / error states */
.state {
  grid-column: 1 / -1; text-align: center; padding: var(--s-6) var(--s-2);
  border: 1px dashed var(--border); border-radius: var(--r-lg); background: var(--bg);
}
.state h3 { margin-bottom: var(--s-1); }
.state p { color: var(--text-muted); max-width: 46ch; margin: 0 auto var(--s-3); }
.state-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); justify-content: center; }

/* --------------------------------------------------------------------------
   10. EMI CALCULATOR
   -------------------------------------------------------------------------- */
.emi-card { display: grid; gap: var(--s-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-3); }
.section-alt .emi-card { background: var(--bg); }
.emi-controls { display: grid; gap: var(--s-3); }
.slider-field { display: grid; gap: .625rem; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-1); }
.slider-head label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 500; }

/* Editable value box sitting beside each slider label. Styled to look
   typeable, so people notice they can enter a number instead of dragging. */
.num-input {
  display: inline-flex; align-items: center; gap: 1px;
  min-height: 46px; padding: 0 .625rem;   /* 46 = 44px inner + 1px border each side */
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base);
  color: var(--text); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.num-input:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-soft); }
.num-affix { color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm); }
/* a word suffix needs a space; a symbol like % should stay tight to the number */
.num-affix-word { margin-left: .3rem; }
.num-box {
  width: 7ch; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: right;
  /* stretch to the wrapper's full 44px so the whole pill is tappable,
     not just the 26px line box in the middle of it */
  align-self: stretch;
  -moz-appearance: textfield;
}
.num-box:focus { outline: none; }
.num-box-sm { width: 3.5ch; text-align: right; }
.num-box::selection { background: var(--brand-primary); color: var(--on-primary); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -11px;
  border-radius: 50%; background: var(--brand-primary); border: 3px solid var(--bg);
  box-shadow: var(--shadow-brand); cursor: grab;
}
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-primary); border: 3px solid var(--bg); box-shadow: var(--shadow-brand); cursor: grab; }

.emi-result { background: var(--brand-secondary); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-3); text-align: center; }
.emi-result-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); font-weight: 600; }
.emi-amount { font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 800; color: var(--brand-primary); line-height: 1.1; letter-spacing: -.03em; margin: .25rem 0 var(--s-2); }
.emi-breakdown { display: grid; gap: .5rem; text-align: left; margin-bottom: var(--s-3); }
.emi-breakdown > div { display: flex; justify-content: space-between; gap: var(--s-1); padding-block: .5rem; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.emi-breakdown dt { color: var(--text-muted); }
.emi-breakdown dd { font-weight: 700; }

/* --------------------------------------------------------------------------
   11. SELL FORM
   -------------------------------------------------------------------------- */
.sell-wrap { display: grid; gap: var(--s-4); }
.tick-list { list-style: none; padding: 0; display: grid; gap: .75rem; margin-top: var(--s-3); }
.tick-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-muted); }
.tick-list li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary-tint);
  font-size: var(--fs-xs); font-weight: 700;
}
.sell-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-3); display: grid; gap: var(--s-2); }
.sell-form h3 { margin-bottom: var(--s-1); }

/* --------------------------------------------------------------------------
   12. WHY CARDS
   -------------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-3); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.why-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--border)); }
.why-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--brand-primary-soft); color: var(--brand-primary); margin-bottom: var(--s-2); }
.why-card h3 { margin-bottom: .5rem; }
.why-card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   13. GOOGLE REVIEWS
   -------------------------------------------------------------------------- */
/* Holds whatever the Featurable widget injects. It keeps its own styling, so
   this only provides room and a sensible background behind it. */
.reviews-mount { min-height: 120px; }
.reviews-mount.has-widget { background: none; border: 0; padding: 0; }
/* At narrow widths Featurable's inner container is wider than its host, which
   pushed the whole page sideways. That element lives in a shadow root so it
   cannot be styled from here, but the host is in the light DOM: containing the
   scroll on the host keeps the overflow inside the widget instead of the page. */
.reviews-mount > div[id^="featurable-"] { max-width: 100%; overflow-x: auto; }

.reviews-fallback {
  display: grid; justify-items: center; gap: var(--s-2); text-align: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s-4) var(--s-3);
}
.reviews-fallback[hidden] { display: none; }
.reviews-mark {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #FFFFFF;
}
.reviews-fallback-text { color: var(--text-muted); max-width: 46ch; }

/* --------------------------------------------------------------------------
   14. ACCORDION
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: .75rem; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.section-alt .acc-item { background: var(--bg); }
.acc-item h3 { font-size: var(--fs-base); }
.acc-trigger {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-2); text-align: left; font: inherit; font-family: var(--font-display); font-weight: 700; color: var(--text);
}
.acc-trigger:hover { color: var(--brand-primary-tint); }
.acc-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: var(--brand-primary); border-radius: 2px; transition: transform .25s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc-panel > p { overflow: hidden; color: var(--text-muted); font-size: var(--fs-sm); padding-inline: var(--s-2); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel > p { padding-bottom: var(--s-2); }

/* --------------------------------------------------------------------------
   15. CONTACT + FOOTER
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--s-3); }
.contact-block { padding-bottom: var(--s-2); margin-bottom: var(--s-2); border-bottom: 1px solid var(--border); }
.contact-block h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-primary-tint); margin-bottom: .5rem; }
.contact-block p, .contact-block a { color: var(--text-muted); }
.contact-block a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }
.social-row { display: flex; gap: .5rem; }
.map-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; filter: grayscale(.3) contrast(1.05); }

.site-footer { background: var(--brand-secondary); border-top: 1px solid var(--border); padding-top: var(--s-5); }
.footer-grid { display: grid; gap: var(--s-3); padding-bottom: var(--s-4); }
.footer-grid h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: .75rem; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid nav a { display: flex; align-items: center; min-height: 44px; color: var(--text-muted); }
.footer-grid nav a:hover { color: var(--brand-primary-tint); }
.footer-tag, .brand-list, .footer-address { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--s-2); }
.footer-grid p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }
.footer-bottom { display: grid; gap: .25rem; padding-block: var(--s-2); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-xs); }
/* The legal links keep a 44px tap target, which centres their text inside a
   44px box while a plain <p> renders its text at the top of one. Grouping them
   and centring the group is what keeps the baselines on the same line. */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); }
.legal-links a:hover { color: var(--brand-primary-tint); }

/* --------------------------------------------------------------------------
   23. LEGAL PAGES (privacy policy, terms and conditions)
   -------------------------------------------------------------------------- */
.legal h1 { margin-bottom: var(--s-1); }
.legal-meta { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.legal-lead {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand-primary);
  border-radius: var(--r-md); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-4);
}
.legal-lead p + p { margin-top: var(--s-1); }
.legal-body h2 {
  font-size: var(--fs-xl); margin-top: var(--s-5); margin-bottom: var(--s-2);
  padding-top: var(--s-2); border-top: 1px solid var(--border);
}
.legal-body h3 { font-size: var(--fs-base); margin-top: var(--s-3); margin-bottom: .5rem; color: var(--text); }
.legal-body p, .legal-body li { color: var(--text-muted); }
.legal-body p + p { margin-top: var(--s-2); }
.legal-body ul { margin: var(--s-2) 0; padding-left: 0; list-style: none; display: grid; gap: .625rem; }
/* Not flex: a <strong> plus the text after it would become two flex items and
   lay out as separate columns. Absolute bullet keeps the text in normal flow. */
.legal-body ul li { position: relative; padding-left: 1.35rem; }
.legal-body ul li::before {
  content: ""; position: absolute; left: 0; top: .6rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary);
}
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .1em .4em; color: var(--text);
}
.legal-contact { margin-top: var(--s-5); padding: var(--s-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.legal-contact h2 { border-top: 0; margin-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   16. MODAL
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); animation: fadeIn .2s var(--ease); }
.modal-dialog {
  position: relative; width: 100%; max-width: 960px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg);
  animation: slideUp .3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } }
.modal-close { position: absolute; top: var(--s-1); right: var(--s-1); z-index: 5; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }

.gallery { position: relative; background: var(--surface-2); }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; max-height: 52vh;
  object-fit: cover; scroll-snap-align: center; }
.modal.is-sold .gallery-main img { filter: grayscale(1) brightness(.7); }
.gallery-thumbs { display: flex; gap: .5rem; padding: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button { flex: 0 0 68px; height: 52px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; opacity: .6; transition: all .2s var(--ease); }
.gallery-thumbs button.is-active { border-color: var(--brand-primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.modal-content { padding: var(--s-3) var(--s-2) var(--s-4); display: grid; gap: var(--s-2); }
.modal-content h2 { font-size: var(--fs-h2); }
.modal-price { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 2.25rem); font-weight: 800; color: var(--brand-primary); letter-spacing: -.03em; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: .625rem .25rem; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--text-muted); font-weight: 500; width: 45%; }
.spec-table td { font-weight: 600; }
.modal-desc { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   17. FLOATING ACTIONS
   -------------------------------------------------------------------------- */
.fab {
  position: fixed; right: var(--s-2); bottom: 84px; z-index: 50;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--whatsapp); color: var(--on-whatsapp); box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease);
}
.fab:hover { transform: scale(1.08); text-decoration: none; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 56px; background: var(--surface); color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
}
.mobile-bar-btn:hover { text-decoration: none; }
.mobile-bar-btn.is-primary { background: var(--brand-primary); color: var(--on-primary); }

/* --------------------------------------------------------------------------
   18. SCROLL REVEAL
   -------------------------------------------------------------------------- */
/* The scroll-reveal content is hidden ONLY while the .js class is on <html>.
   That class is set by an inline script in <head> and removed again if
   script.js has not booted in time. Without this guard, a failed or blocked
   script.js leaves every revealed section permanently invisible, which renders
   the page as an empty dark rectangle. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   19. BREAKPOINTS
   ========================================================================== */

/* ---- >= 480px ---- */
@media (min-width: 480px) {
  .container { padding-inline: var(--s-3); }
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 auto; }
  .carousel { grid-auto-columns: 66%; }
  .bike-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
}

/* ---- >= 768px (tablet) ---- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }                 /* mobile action bar hidden */
  .mobile-bar { display: none; }
  .fab { bottom: var(--s-3); right: var(--s-3); }

  .header-actions .btn { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .carousel { grid-auto-columns: 45%; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .map-wrap iframe { height: 420px; }
  .sell-wrap { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s-5); }
  .sell-form { padding: var(--s-4); }
  .emi-card { grid-template-columns: 1.1fr .9fr; padding: var(--s-4); gap: var(--s-5); align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-4); }
  .modal { align-items: center; padding: var(--s-3); }
  .modal-dialog { border-radius: var(--r-xl); }
  .modal-content { padding: var(--s-4); grid-template-columns: 1.2fr .8fr; }
  .modal-content > .modal-head, .modal-content > .modal-desc { grid-column: 1 / -1; }
}

/* ---- >= 1024px (desktop) ---- */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .logo-img { height: 42px; }
  .site-header.is-stuck .logo-img { height: 34px; }
  .nav-desktop { display: flex; gap: var(--s-3); align-items: center; }
  .nav-desktop a { position: relative; color: var(--text-muted); font-weight: 500; font-size: var(--fs-sm); padding-block: .5rem; }
  .nav-desktop a:hover { color: var(--text); text-decoration: none; }
  .nav-desktop a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand-primary); transition: right .25s var(--ease); }
  .nav-desktop a:hover::after { right: 0; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }

  .bike-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
  .carousel { grid-auto-columns: 32%; gap: var(--s-3); }
  .carousel-nav { display: flex; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }

  /* Filters become an inline bar, not a sheet */
  .filter-trigger { display: none; }
  .filter-panel { position: static; visibility: visible; opacity: 1; background: none; backdrop-filter: none; display: block; }
  .filter-sheet { max-height: none; overflow: visible; transform: none; border-radius: var(--r-lg); border-bottom: 1px solid var(--border); padding: var(--s-3); }
  .filter-sheet-head { display: none; }
  .filter-row { grid-template-columns: repeat(7, 1fr); }
  .field-grow { grid-column: span 2; }
  .filter-sheet { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s-2); }
  .filter-row { grid-column: 1 / -1; }
  .chip-row { grid-column: 1; margin-inline: 0; padding-inline: 0; padding-bottom: 0; }
  .filter-foot { grid-column: 2; justify-content: flex-end; margin-top: var(--s-2); }
  .filter-foot .btn { flex: 0 0 auto; }
  .filter-apply { display: none; }
}

/* ---- >= 1280px ---- */
@media (min-width: 1280px) {
  .bike-grid { grid-template-columns: repeat(4, 1fr); }
  .carousel { grid-auto-columns: 25%; }
  .hero-inner { max-width: 860px; }
}

/* --------------------------------------------------------------------------
   20. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; }
  .btn:hover, .bike-card:hover, .why-card:hover, .fab:hover { transform: none; }
  .bike-card:hover .bike-media img { transform: none; }
}

/* --------------------------------------------------------------------------
   21. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-bar, .fab, .filter-panel, .filter-trigger, .modal { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}

/* --------------------------------------------------------------------------
   22. MODAL INTERNALS (paired with the markup script.js builds)
   -------------------------------------------------------------------------- */
.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;
}

.bike-card { cursor: pointer; }
.bike-card .bike-actions { position: relative; z-index: 2; }

/* The status badge is absolutely positioned on cards; inside the modal
   heading it has to sit in the normal flow instead. */
.badge-inline { position: static; display: inline-block; justify-self: start; margin-bottom: .625rem; }

.modal-head { display: grid; gap: .25rem; }
.modal-side { display: grid; gap: .625rem; align-content: start; }

@media (min-width: 768px) {
  .modal-content > .modal-head { grid-column: 1 / -1; grid-row: 1; }
  .modal-content > .spec-table { grid-column: 1; grid-row: 2; }
  .modal-content > .modal-side {
    grid-column: 2; grid-row: 2;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: var(--s-2);
    position: sticky; top: var(--s-2);
  }
  .modal-content > .modal-desc { grid-column: 1 / -1; grid-row: 3; }
}
