/* ════════════════════════════════════════════════════════════════
   MAIN.CSS — design tokens, reset, base styles, global layout shell
   Dark premium automotive placeholder skin. Reskin = edit :root only.
   ════════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* color — surfaces (dark graphite stack, light → deep) */
  --c-bg:          #101214;
  --c-surface:     #16191c;
  --c-surface-2:   #1d2126;
  --c-line:        #2a3038;

  /* color — brand + accent (placeholder: platinum + signal red) */
  --c-accent:      #d2202f;
  --c-accent-hi:   #ef4655;
  --c-accent-ink:  #ffffff;   /* text on accent */

  /* color — text */
  --c-text:        #e8eaed;
  --c-text-2:      #9aa3ad;
  --c-text-3:      #7e8996;   /* lightened for 4.5:1 contrast on dark surfaces */

  /* color — states */
  --c-ok:          #3fb46a;
  --c-error:       #e8563f;

  /* type scale (minor third-ish, mobile-first; bump at breakpoints) */
  --f-body:  'Inter', system-ui, -apple-system, sans-serif;
  --f-display: var(--f-body);          /* swap for a display face later */
  --fs-xs:   0.72rem;
  --fs-sm:   0.84rem;
  --fs-md:   1rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.6rem;
  --fs-2xl:  2.1rem;
  --fs-3xl:  2.8rem;

  /* spacing scale (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6rem;

  /* layout */
  --container:      1200px;
  --container-wide: 1400px;
  --radius:    6px;
  --radius-lg: 10px;

  /* breakpoints — CSS vars can't drive media queries; documented here
     and used consistently below:  sm 480px · md 768px · lg 1024px */

  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* focus/interaction accent (amber, matches the asset lighting) */
  --c-focus: #e8a33d;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
@media (min-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
}

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* ─── 3. LAYOUT UTILITIES ──────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--s-4); }
.container--wide { max-width: var(--container-wide); }
@media (min-width: 768px) { .container { padding-inline: var(--s-6); } }

.section { padding-block: var(--s-7); }
@media (min-width: 768px) { .section { padding-block: var(--s-8); } }

.section__header { margin-bottom: var(--s-6); }
.section__kicker {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-accent-hi);
  display: block; margin-bottom: var(--s-2);
}
.section__sub { color: var(--c-text-2); max-width: 56ch; margin-top: var(--s-2); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── 4. GLOBAL SHELL: HEADER ──────────────────────────────────── */
/* Sticky header: logo slot · primary nav · phone CTA. Same markup on
   every page; .is-active marks the current page link. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 18, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
/* motion mode (set by animations.js): transparent over the page top,
   solid + shadow once scrolled. Without JS/with reduced motion the
   header simply stays solid. */
.site-header--clear {
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header--raised { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.site-header__inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 64px;
}

.brand { display: flex; align-items: center; gap: var(--s-3); margin-right: auto; }
.brand__logo-slot {
  width: 40px; height: 40px; border-radius: var(--radius);
  flex-shrink: 0;
}
.brand__name { font-weight: 700; font-size: var(--fs-md); letter-spacing: 0.04em; }
.brand__name span { color: var(--c-accent-hi); }

.site-nav { display: none; }
.site-nav[data-open="true"] {
  display: block;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  padding: var(--s-4);
}
.site-nav ul { display: flex; flex-direction: column; gap: var(--s-2); }
.site-nav a {
  display: block; padding: var(--s-3) var(--s-4);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--c-text-2); border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.site-nav a::after {
  content: ''; display: block; height: 2px; margin-top: 2px;
  background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover { color: var(--c-text); background: var(--c-surface-2); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--c-text); }
.site-nav a.is-active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .site-nav a::after, .site-header { transition: none; }
}

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: var(--s-2); cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--c-text); transition: 0.2s; }

@media (min-width: 768px) {
  .site-nav { display: block; position: static; background: none; border: 0; padding: 0; }
  .site-nav ul { flex-direction: row; gap: var(--s-2); }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

/* ─── 5. GLOBAL SHELL: FOOTER ──────────────────────────────────── */
/* Four columns: about/location · hours · contact · social. */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  margin-top: var(--s-8);
  padding-block: var(--s-7) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}
.site-footer__grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 480px)  { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.site-footer .footer-title {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-text); margin-bottom: var(--s-3);
}
.site-footer ul { display: grid; gap: var(--s-2); }
.site-footer a:hover { color: var(--c-text); }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  justify-content: space-between;
  border-top: 1px solid var(--c-line);
  margin-top: var(--s-6); padding-top: var(--s-4);
  font-size: var(--fs-xs); color: var(--c-text-3);
}
