/* ─────────────────────────────────────────────────────────────
   On The Grid Motorhaus — Shared Stylesheet
   Edit copy in the individual .html files.
   Edit design here.
   ───────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  --bg:        #07070f;
  --surface:   #0b0b18;
  --s2:        #101020;
  --gold:      #c9a462;
  --gold-lo:   rgba(201,164,98,.08);
  --gold-line: rgba(201,164,98,.07);
  --gold-dim:  rgba(201,164,98,.20);
  --text:      #e2d8c4;
  --muted:     #595970;
  --muted-2:   #7a7a96;
  --red:       #cc2222;
  --border:    rgba(201,164,98,.13);
  --ff-d:      'Arial Narrow', Arial, sans-serif;
  --ff-b:      system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-b);
  -webkit-font-smoothing: antialiased;
}

/* Film grain texture */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,15,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
}

.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark { display: flex; gap: 3.5px; flex-shrink: 0; }
.nav-mark .nd { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.nav-wm { display: flex; flex-direction: column; align-items: flex-start; }
.nw1 { font-family: var(--ff-d); font-weight: bold; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); line-height: 1; }
.nw-rule { height: 1px; width: 100%; background: rgba(201,164,98,.22); margin: 3px 0; }
.nw2 { font-family: var(--ff-d); font-weight: 400; font-size: 7px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); line-height: 1; }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--gold); }

.nav-btn {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: bold; font-family: var(--ff-d);
  color: var(--bg); background: var(--gold);
  padding: 8px 18px; border-radius: 2px; text-decoration: none;
}

/* ── Hero (shared base) ── */
.hero {
  position: relative; z-index: 1;
  padding: 96px 48px 80px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(201,164,98,.06) 0%, transparent 65%);
}
.hero-h1 {
  font-family: var(--ff-d);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: bold; line-height: .92;
  text-transform: uppercase; letter-spacing: -.01em;
  color: var(--text); text-wrap: balance;
  max-width: 780px; margin-bottom: 36px;
}
.hero-h1 em { color: var(--gold); font-style: normal; display: block; }
.hero-sub { font-size: 16px; line-height: 1.7; color: var(--muted-2); max-width: 560px; }

/* ── Eyebrow ── */
.eyebrow {
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); opacity: .5; }

/* ── Section scaffold ── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 80px 48px; }
.divider { height: 1px; background: var(--border); }

/* ── Section label ── */
.s-label {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 40px;
  display: flex; align-items: center; gap: 12px;
}
.s-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Buttons ── */
.btn-p {
  display: inline-block;
  font-family: var(--ff-d); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: bold;
  color: var(--bg); background: var(--gold);
  padding: 14px 32px; border-radius: 2px; text-decoration: none;
}
.btn-g {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-g::after { content: '→'; color: var(--gold); }

/* ── Pull quote ── */
blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 36px;
  max-width: 800px;
}
blockquote p {
  font-family: var(--ff-d);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: bold; text-transform: uppercase;
  line-height: 1.1; letter-spacing: .01em;
  color: var(--text); text-wrap: balance;
  margin-bottom: 16px;
}
blockquote cite {
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
  font-style: normal; display: flex; align-items: center; gap: 12px;
}
blockquote cite::before { content: ''; display: block; width: 24px; height: 1px; background: var(--muted); }

/* ── Footer ── */
footer {
  position: relative; z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-mark { font-family: var(--ff-d); font-size: 11px; font-weight: bold; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); opacity: .5; }
.footer-note { font-size: 10px; letter-spacing: .1em; color: var(--muted); }

/* ── Hamburger button (mobile only) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--text);
  transition: transform .25s, opacity .2s;
}

/* ── Mobile menu drawer ── */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(7,7,15,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 32px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }

.nav-mobile-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
  width: 100%;
  margin-bottom: 40px;
}
.nav-mobile-links a {
  display: block;
  font-family: var(--ff-d);
  font-size: 40px; font-weight: bold;
  text-transform: uppercase; letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.nav-mobile-links a:hover { color: var(--text); }
.nav-mobile-links a.active { color: var(--gold); }

.nav-mobile-cta {
  font-family: var(--ff-d);
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: bold;
  color: var(--bg); background: var(--gold);
  padding: 14px 28px; border-radius: 2px;
  text-decoration: none;
}

.nav-mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  cursor: pointer;
  font-size: 28px; color: var(--muted);
  line-height: 1;
  padding: 4px 8px;
}

/* ── Mobile nav page label ── */
.nav-page-label {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links, .nav-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 14px 24px; position: relative; }
  .nav-page-label {
    display: block;
    position: absolute;
    left: 50%; transform: translateX(-50%);
    font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
  }
  .hero { padding: 64px 24px 56px; }
  .section-inner { padding: 56px 24px; }
  footer { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

/* Hamburger → X animation when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
