/* =========================================================================
   BOISAR BIKE POINT — style.css
   A dark, glass-panel automotive theme built around a single signature
   mark (the alloy wheel graphic in assets/icons/wheel.svg), reused small
   in the logo, quiet in the About section, and large as the one animated
   moment in the hero.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Design tokens ---------- */
:root {
  /* Near-black showroom floor + charcoal surfaces */
  --color-bg: #0a0a0c;
  --color-bg-alt: #111114;
  --color-bg-elevated: #17171b;

  --color-surface: rgba(255, 255, 255, 0.045);
  --color-surface-strong: rgba(255, 255, 255, 0.075);
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.18);

  --color-text: #f4f4f6;
  --color-text-muted: #a9a9b2;
  --color-text-faint: #75757e;

  /* Alloy-wheel metallic (matches the signature graphic) */
  --color-silver: #c7cbd1;
  --color-silver-dim: #868a93;

  /* Tail-light red — the one restrained accent */
  --color-red: #d9332c;
  --color-red-bright: #ea443c;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --header-height: 76px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --radius-pill: 10px;
  --blur: 18px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container-w: 1200px;
}

/* ---------- Base ---------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-red); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.6vw + 1rem, 4.1rem); font-weight: 700; }
h2 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h3 { font-size: clamp(1.1rem, 1vw + 0.9rem, 1.3rem); font-weight: 600; }

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

section { padding-block: clamp(56px, 9vw, 120px); position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-silver);
  margin-bottom: 12px;
}

.section-heading { max-width: 640px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; }

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

:focus-visible { outline: 2px solid var(--color-silver); outline-offset: 3px; }

/* ---------- Config reminder banner ---------- */
.config-banner {
  background: #351c11;
  color: #ffd3ac;
  font-family: var(--font-body);
  font-size: 0.84rem;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.config-banner code {
  background: rgba(255,255,255,0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.config-banner[hidden] { display: none; }

/* ---------- Glass components ---------- */
.glass-card, .glass-panel {
  background: linear-gradient(160deg, var(--color-surface-strong), var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.glass-card::before, .glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card, .glass-panel { background: #16161c; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 51, 44, 0.28);
}
.btn-primary:hover { background: var(--color-red-bright); box-shadow: 0 14px 30px rgba(217, 51, 44, 0.4); }

.btn-secondary { background: #f2f2f3; color: #0a0a0c; }
.btn-secondary:hover { background: #ffffff; }

.btn-outline { background: transparent; border-color: var(--color-border-strong); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-silver); background: rgba(255,255,255,0.05); }

.btn-block { width: 100%; }
.btn-whatsapp-small { padding: 10px 18px; font-size: 0.85rem; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(9, 9, 11, 0.85);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.logo-text em { font-style: normal; color: var(--color-text-muted); font-weight: 500; }

/* Mobile-first nav: base = collapsed drawer */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  margin-inline: auto;
  transition: transform .3s var(--ease), opacity .3s 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); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 20px 22px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.site-nav ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.site-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 500; color: var(--color-text-muted); }
.site-nav ul a:hover { color: var(--color-text); }

@media (min-width: 1000px) {
  .hamburger { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    background: none;
    backdrop-filter: none;
    border: 0;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav ul { flex-direction: row; gap: 28px; margin-bottom: 0; }
  .site-nav ul a { padding: 0; border-bottom: none; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 64px; padding-bottom: 84px; position: relative; overflow: hidden; }

.hero-watermark {
  position: absolute;
  top: -16%;
  right: -16%;
  width: min(62%, 780px);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background: radial-gradient(closest-side, rgba(199,203,209,0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 60px; } }

.hero-sub { font-size: 1.1rem; max-width: 46ch; margin-block: 20px 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 8px;
}
.trust-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

.hero-visual-panel {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin-inline: auto;
}
.hero-wheel {
  width: 78%;
  animation: spin 48s linear infinite;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.55));
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.filter-btn.is-active, .filter-btn:hover {
  border-color: var(--color-silver);
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}

/* ---------- Vehicle grid ---------- */
.vehicle-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 640px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .vehicle-grid { grid-template-columns: repeat(4, 1fr); } }

.vehicle-empty { color: var(--color-text-muted); padding: 40px 0; text-align: center; grid-column: 1 / -1; }

.vehicle-card {
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }

.vehicle-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 60%), var(--color-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-bottom: 1px solid var(--color-border);
}
.vehicle-image img { width: 46%; opacity: 0.92; }
.vehicle-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--color-border);
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--color-silver);
}
.vehicle-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vehicle-body h3 { text-transform: none; }
.vehicle-desc { font-size: 0.92rem; flex: 1; }
.vehicle-price { font-family: var(--font-mono); font-size: 0.95rem; color: var(--color-text); font-weight: 500; }
.vehicle-price span {
  color: var(--color-text-faint);
  font-weight: 400;
  font-size: 0.68rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  margin-bottom: 18px;
}
.why-icon svg { width: 22px; height: 22px; color: var(--color-silver); }
.why-card h3 { margin-bottom: 8px; }
.why-card p { font-size: 0.92rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 960px) { .about-inner { grid-template-columns: 1.15fr 0.85fr; } }
.about-visual { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.about-visual img { width: 55%; opacity: 0.9; }
.about-content p { margin-bottom: 16px; font-size: 1.02rem; }
.about-content .btn { margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.contact-info, .enquiry-form { padding: 32px; }
.contact-info h3 { text-transform: uppercase; margin-bottom: 6px; }
.contact-address { margin-bottom: 22px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

.enquiry-form h3 { text-transform: none; margin-bottom: 20px; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 0.88rem; font-weight: 500; color: var(--color-text-muted); }
.form-row input, .form-row select, .form-row textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--color-text);
  font-size: 0.96rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--color-silver);
  background: rgba(255,255,255,0.07);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 100px; }
.field-error { font-size: 0.8rem; color: #ff8b85; min-height: 1em; }
.form-note { margin-top: 14px; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-note.is-success { color: #7fe0a3; }
.form-note.is-error { color: #ff8b85; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding-block: 50px 26px; background: var(--color-bg-alt); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-brand p:last-child { font-size: 0.92rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--color-text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--color-text); }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-text-faint); }

/* ---------- Legal page ---------- */
.legal-page { padding-block: 48px 100px; }
.legal-inner { padding: 40px; max-width: 720px; margin-inline: auto; }
.legal-inner h1 { margin-bottom: 8px; text-transform: none; }
.legal-inner h2 { font-size: 1.2rem; text-transform: none; margin-top: 30px; margin-bottom: 10px; }
.legal-inner p { margin-bottom: 14px; }
.legal-updated { font-size: 0.9rem; color: var(--color-text-faint); font-style: italic; margin-bottom: 18px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
