/* ============================================================
   IBUDATA — BMW M-inspired
   Near-pure black canvas, white UPPERCASE display, M tricolor.
   ============================================================ */

:root {
  /* Brand & accent */
  --primary: #ffffff;
  --m-blue-light: #0066b1;
  --m-blue-dark: #1c69d4;
  --m-red: #e22718;

  /* Surface */
  --canvas: #000000;
  --surface-soft: #0d0d0d;
  --surface-card: #1a1a1a;
  --surface-elevated: #262626;

  /* Hairlines */
  --hairline: #3c3c3c;
  --hairline-strong: #262626;

  /* Text */
  --on-dark: #ffffff;
  --body: #bbbbbb;
  --body-strong: #e6e6e6;
  --muted: #7e7e7e;

  /* Spacing (4px base) */
  --xxs: 4px;
  --xs: 8px;
  --sm: 12px;
  --md: 16px;
  --lg: 24px;
  --xl: 40px;
  --xxl: 64px;
  --section: 96px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--on-dark);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Typography utilities ---------- */
.display-xl,
.display-lg,
.display-md,
.display-sm {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.display-xl { font-size: clamp(56px, 9vw, 96px); line-height: 1.0; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.015em; }
.display-md { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; }
.display-sm { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }

.label-uppercase {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  color: var(--on-dark);
}

.eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 var(--lg);
}

.body { color: var(--body); font-weight: 300; font-size: 15px; line-height: 1.55; margin: 0; }
.body-sm { color: var(--body); font-weight: 300; font-size: 14px; line-height: 1.5; margin: 0; }
.muted { color: var(--muted); }

.lede {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--body);
  max-width: 560px;
  margin: 0;
}
.lede--head { margin-top: var(--lg); }
.lede--centered { margin: var(--lg) auto 0; text-align: center; }

/* ---------- M Stripe ---------- */
.m-stripe {
  display: block;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--m-blue-light) 0 33.33%,
    var(--m-blue-dark) 33.33% 66.66%,
    var(--m-red) 66.66% 100%
  );
}
.m-stripe--brand {
  width: 24px;
  height: 16px;
}
.m-stripe--hero {
  width: 96px;
  margin-top: var(--xl);
}
.m-stripe--cta {
  width: 96px;
  margin: 0 auto var(--lg);
}
.m-stripe--footer { width: 100%; }

/* ---------- Top Nav ---------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--xl);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-text {
  font-size: 16px;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: var(--xl);
  font-size: 14px;
}
.nav-links a {
  color: var(--body);
  transition: color .15s ease;
  padding: var(--xs) 0;
  position: relative;
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--on-dark);
}
.nav-right { display: flex; align-items: center; gap: var(--md); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 18px; font-size: 12px; }
.btn-lg { height: 56px; padding: 0 40px; }

.btn-primary-outline {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark);
}
.btn-primary-outline:hover {
  background: var(--on-dark);
  color: var(--canvas);
}

.btn-text {
  background: transparent;
  border-color: transparent;
  color: var(--on-dark);
  padding: 0;
  height: 48px;
}
.btn-text:hover { color: var(--body); }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--hairline);
  padding: 0;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--xl) var(--xxl);
}
.hero-inner .display-xl { margin-top: var(--xs); }
.hero-inner .lede { margin-top: var(--xl); }
.hero-ctas {
  margin-top: var(--xl);
  display: flex;
  gap: var(--lg);
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Spec strip ---------- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hairline);
}
.spec-cell {
  padding: var(--xl);
  border-right: 1px solid var(--hairline);
  background: var(--surface-soft);
}
.spec-cell:last-child { border-right: none; }
.spec-value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: var(--md);
}
.spec-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--body);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--xl);
}
.section--bordered {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  max-width: none;
}
.section--bordered > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head {
  margin-bottom: var(--xxl);
  max-width: 720px;
}
.section-head .label-uppercase { margin-bottom: var(--lg); }

/* ---------- Model (product) grid ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--md);
  padding: var(--xl);
  background: var(--canvas);
  min-height: 280px;
  transition: background .2s ease;
}
.model-card:hover { background: var(--surface-card); }
.model-card-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.model-card .display-md { font-size: clamp(22px, 2.4vw, 30px); }
.model-card .body { flex: 1; }
.text-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  margin-top: var(--md);
}
.text-link .chev { transition: transform .18s ease; }
.model-card:hover .text-link .chev { transform: translateX(4px); }

/* ---------- Services list ---------- */
.service-list { display: block; }
.service-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--xl);
  align-items: center;
  padding: var(--xl) 0;
  border-top: 1px solid var(--hairline);
}
.service-list li:last-child { border-bottom: 1px solid var(--hairline); }
.svc-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.service-list h4 { margin: 0 0 var(--xs); }
.service-list .body { max-width: 640px; }
.svc-tag {
  color: var(--body);
  padding: var(--xs) var(--md);
  border: 1px solid var(--hairline);
}

/* ---------- CTA Band ---------- */
.cta-band {
  border-top: 1px solid var(--hairline);
  padding: var(--section) var(--xl);
  background: var(--canvas);
}
.cta-band-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.cta-band-inner .label-uppercase { margin-bottom: var(--lg); }
.cta-band-inner .display-lg { margin-bottom: var(--lg); }

.cta-actions {
  display: inline-flex;
  gap: var(--md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--xl);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--xl);
  margin: var(--xxl) 0 0;
  padding-top: var(--xl);
  border-top: 1px solid var(--hairline);
  text-align: left;
}
.contact-meta > div { display: flex; flex-direction: column; gap: var(--xs); }
.contact-meta dt { color: var(--muted); }
.contact-meta dd {
  margin: 0;
  font-size: 15px;
  color: var(--on-dark);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding-bottom: var(--xl);
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--xxl) var(--xl);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--xl);
}
.footer-col .brand-text { display: block; margin-bottom: var(--md); }
.footer-col .label-uppercase { margin: 0 0 var(--md); color: var(--on-dark); }
.footer-col ul li { margin-bottom: var(--xs); }
.footer-col ul a { color: var(--body); transition: color .15s ease; font-size: 14px; }
.footer-col ul a:hover { color: var(--on-dark); }
.footer-col p.body-sm { max-width: 320px; }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--lg) var(--xl) 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-cell { border-bottom: 1px solid var(--hairline); }
  .spec-cell:nth-child(2) { border-right: none; }
  .spec-cell:nth-child(3),
  .spec-cell:nth-child(4) { border-bottom: none; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-nav { padding: 0 var(--lg); }
  .nav-links { display: none; }
  .hero-inner { padding: 80px var(--lg) var(--xl); }
  .section { padding: var(--xxl) var(--lg); }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-cell { border-right: none; border-bottom: 1px solid var(--hairline); }
  .spec-cell:last-child { border-bottom: none; }
  .model-grid { grid-template-columns: 1fr; }
  .service-list li {
    grid-template-columns: 60px 1fr;
    gap: var(--md);
  }
  .svc-tag { display: none; }
  .cta-band { padding: var(--xxl) var(--lg); }
  .contact-meta { grid-template-columns: 1fr; gap: var(--lg); }
  .footer-top { grid-template-columns: 1fr; padding: var(--xl) var(--lg); }
  .footer-bottom { flex-direction: column; gap: var(--xs); padding: var(--lg) var(--lg) 0; }
}
