/* ─────────────────────────────────────────────
   AxleDash — shared chrome for secondary/legal pages.
   Mirrors the homepage (index.html) topbar, nav, and footer so the
   legal/contact pages match the auto-shop positioning. The legal body
   markup keeps its existing class names; typography is restyled below.
   ───────────────────────────────────────────── */

:root {
  /* AxleDash palette — token names kept; values remapped. Electric Blue is accent only. */
  --purple-100: #DCE4F5;  /* Pale Track */
  --purple-200: #DCE4F5;  /* Pale Track */
  --purple-400: #6F9BEC;  /* Sky */
  --purple-500: #2F6BFF;  /* Electric Blue — accent / CTA / links */
  --purple-600: #1E4FCC;  /* Deep Blue — hover/pressed */
  --purple-700: #1E4FCC;  /* Deep Blue */
  --ink:        #16181D;  /* Graphite Ink */
  --ink-2:      #2A2D34;
  --ink-soft:   #6B7280;  /* Slate */
  --paper:      #F2F4F7;  /* Mist */
  --paper-2:    #F2F4F7;  /* Mist */
  --line:       #E5E7EB;  /* Line */
  --night:      #16181D;  /* Graphite Ink — dark surfaces */
  --night-2:    #1F232B;
  --grad:       #2F6BFF;
  --font-display: 'Barlow Semi Condensed', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-primary { background: #2F6BFF; color: #fff; }
.btn-primary:hover { background: #1E4FCC; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--purple-500); color: var(--purple-700); }

/* Top utility bar */
.topbar { background: var(--ink); color: rgba(255,255,255,0.78); font-size: 0.86rem; }
.topbar .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding-top: 10px; padding-bottom: 10px;
}
.topbar a { color: #fff; }
.topbar .item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .item svg { color: var(--purple-400); }
.topbar .ml-auto { margin-left: auto; }
@media (max-width: 640px) {
  .topbar .container { gap: 6px 16px; }
  .topbar .ml-auto { margin-left: 0; }
}
@media (max-width: 480px) {
  .topbar .item:last-child { display: none; }
}

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,13,20,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav .container { display: flex; align-items: center; gap: 16px; height: 72px; }
.nav-brand { display: inline-flex; align-items: center; }
.nav-brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 24px; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  color: rgba(255,255,255,0.78); font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-login { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.nav-login:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; width: 44px; height: 44px;
  align-items: center; justify-content: center; color: #fff;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; padding: 12px;
    background: var(--night); border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    gap: 4px; margin-left: 0;
  }
  .nav-links.open a { padding: 12px 14px; color: rgba(255,255,255,0.85); }
  .nav-links.open a:hover { background: rgba(255,255,255,0.06); color: #fff; }
}

/* ─────────────────────────────────────────────
   Legal / secondary page body typography
   (markup keeps its original class names)
   ───────────────────────────────────────────── */
.legal-wrap { padding: 64px 0 96px; }
.legal-wrap .container { max-width: 860px; }
.legal-wrap h1 { margin-bottom: 0.25em; }
.legal-wrap > .container > section > p:first-of-type { color: var(--ink-soft); }
.legal-wrap h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 1.8em 0 0.5em; }
.legal-wrap p { color: var(--ink-soft); margin: 0 0 1em; }
.legal-wrap li { color: var(--ink-soft); margin: 0 0 0.5em; }
.legal-wrap a { color: var(--purple-700); text-decoration: underline; }
.legal-wrap strong { color: var(--ink); }
.legal-wrap section[id] { scroll-margin-top: 100px; }

/* Footer */
.footer { background: var(--night); color: rgba(255,255,255,0.7); padding: 72px 0 32px; }
.footer h4 {
  color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer p, .footer address { margin: 0 0 14px; font-style: normal; }
.footer ul li { padding: 5px 0; }
.footer a { color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer a:hover { color: var(--purple-400); }
.footer .brand img { height: 38px; margin-bottom: 18px; }
.footer .social { display: flex; gap: 10px; margin-top: 8px; }
.footer .social a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.footer .social a:hover { background: var(--grad); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; font-size: 0.86rem; color: rgba(255,255,255,0.5);
}
.footer-bottom ul { display: flex; gap: 16px; }

/* ─────────────────────────────────────────────
   Contact page
   ───────────────────────────────────────────── */
.page-hero { background: #fff; padding: 56px 0 4px; }
.page-hero .container { max-width: 980px; }
.page-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px; color: var(--purple-500);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  margin-bottom: 14px;
}
.page-hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 640px; }
.contact-wrap { padding: 32px 0 96px; }
.contact-wrap .container { max-width: 980px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.contact-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 6px; }
.contact-card a { color: var(--purple-700); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .soc { display: flex; gap: 14px; margin-top: 4px; }
.contact-card .soc a { color: var(--purple-600); }
.contact-card .soc svg { width: 20px; height: 20px; }
.contact-form { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 32px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.contact-form h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-align: center; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; padding: 13px 15px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #B0B3BF; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-500); background: #fff;
  box-shadow: 0 0 0 2px rgba(47,107,255,0.35);
}
.contact-note { text-align: center; color: var(--ink-soft); font-size: 0.86rem; margin-top: 14px; }
.contact-thanks { text-align: center; max-width: 620px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 44px 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.contact-thanks-ic {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  background: #2F6BFF; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.contact-thanks p { color: var(--ink-soft); max-width: 440px; margin: 0 auto; }
