/* G&K Location — shared foundations: tokens, typography, buttons, header, footer. */
:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --bg-3: #111;
  --ink: #f2ede4;
  --ink-2: rgba(242, 237, 228, 0.7);
  --ink-3: rgba(242, 237, 228, 0.54);   /* 5.5:1 on the background: small print stays readable (WCAG AA) */
  --line: rgba(242, 237, 228, 0.14);
  --red: #d70f14;
  --red-glow: rgba(215, 15, 20, 0.45);
  --blue: #0b5cff;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --vh: 1vh;
  --header-h: 72px;
}
@supports (height: 1svh) { :root { --vh: 1svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 16px; }
.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; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Typography (approved treatment) ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 12px/1 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
/* two slanted bars echoing the logo's red / blue strokes */
.eyebrow i { display: inline-flex; gap: 3px; }
.eyebrow i::before, .eyebrow i::after { content: ""; width: 14px; height: 3px; transform: skewX(-35deg); }
.eyebrow i::before { background: var(--red); }
.eyebrow i::after { background: var(--blue); width: 7px; }

.display { margin: 0; font: 800 clamp(48px, 7.4vw, 132px)/.88 var(--display); letter-spacing: .002em; text-transform: uppercase; text-wrap: balance; text-shadow: 0 8px 40px rgba(0,0,0,.5); }
.display--sm { font-size: clamp(40px, 4.6vw, 76px); }
.display--xs { font-size: clamp(34px, 3.4vw, 56px); }
.body { margin: 22px 0 0; max-width: 46ch; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); font-weight: 300; }

/* ---------- Buttons ---------- */
.btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 26px; font: 600 13px/1.1 var(--text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 11px; }
.btn--primary { background: var(--red); color: var(--ink); }
.btn--primary:hover { background: #ec1a20; box-shadow: 0 0 32px 0 var(--red-glow); }
.btn--ghost { border-color: rgba(242,237,228,.4); color: var(--ink); background: rgba(5,5,5,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; font: 600 12px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.back-link svg { width: 22px; height: 22px; transition: transform .25s ease; }
.back-link:hover svg { transform: translateX(-4px); }

/* ---------- Header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--header-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); background: linear-gradient(to bottom, rgba(5,5,5,.72), transparent); }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); transition: color .2s ease; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; background: #000; border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) var(--gutter) 32px; color: var(--ink-2); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); max-width: 1400px; margin: 0 auto; }
.site-footer__brand img { width: 150px; height: auto; margin-bottom: 18px; }
.site-footer__brand p { margin: 0; max-width: 30ch; }
.site-footer h2 { margin: 0 0 16px; font: 700 13px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a, .site-footer li span { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; color: var(--ink-2); }
.site-footer li a:hover { color: var(--ink); }
.site-footer li svg { width: 16px; height: 16px; flex: none; color: var(--red); }
.snap { margin: 0; display: grid; justify-items: start; gap: 12px; }
.snap img { width: 150px; height: auto; }
.snap--large img { width: min(260px, 70vw); }
/* /devis: the Snapcode on the BMW M4 CS's door. The whole car first, then (devis.js, .is-zoomed)
   a zoom onto the code, large enough to scan; hovering — or tapping on a touch screen — shows the
   whole car again */
.snap--car { width: 100%; }
.snapcar { display: block; width: 100%; overflow: hidden; border-radius: 4px; }
.snap .snapcar img { display: block; width: 100%; height: auto; transform-origin: 46.1% 51.8%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.snap .snapcar.is-zoomed img { transform: scale(2.3); transition: transform 1.4s cubic-bezier(.45,0,.2,1); }
@media (hover: hover) and (pointer: fine) { .snap .snapcar.is-zoomed:hover img { transform: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); } }
.snap .snapcar.is-zoomed.is-whole img { transform: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (hover: none), (pointer: coarse) { .snapcar { cursor: pointer; } }
.snap figcaption { color: var(--ink-2); }
.snap__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.snap__btn svg { width: 16px; height: 16px; }
.site-footer__legal { max-width: 1400px; margin: clamp(36px, 5vw, 64px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.site-footer__legal p { margin: 0; }

@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .nav { gap: 12px; padding: 0 16px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 11px; letter-spacing: .12em; }
  .nav__brand img { height: 22px; }
  .nav .btn { margin-left: auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 340px) { .nav__brand img { height: 18px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
