/* ============================================================
   theme.css -- the 2026 "Elite OEM Auto Parts" look (graphite +
   orange, Space Grotesk / Inter), matching the homepage.

   Loaded AFTER tokens.css and components.css on every page except
   index.html (which carries the same rules inline). It re-points the
   design tokens the existing pages are built on, restyles the shared
   buttons, and styles the shared header / footer markup that
   scripts/apply_site_theme.py writes into each page.
   ============================================================ */
:root {
  /* dark grounds: navy -> graphite */
  --navy-950: #0F1318;
  --navy-900: #12171D;
  --navy-800: #151A21;
  --navy-700: #1E252E;
  --navy-600: #2A313B;
  --hero-black: #0A0D11;
  --hero-navy-deep: #0F1318;

  /* accents: blue glow -> warm orange; links stay a readable blue on light */
  --accent: #F47A20;
  --accent-hover: #FF8A33;
  --accent-dark: #B4500C;
  --accent-soft: #FDEBDD;
  --blue-400: #F79A55;          /* accent text on dark grounds */
  --blue-500: #F47A20;
  --blue-600: #1F5FA8;          /* links / accent on light grounds */
  --blue-700: #174A84;
  --blue-100: #FDEBDD;
  --cyan-glow: #FFB067;
  --amber-beacon: #F47A20;

  --border-brand: rgba(255, 255, 255, 0.12);
  --glass-fill: rgba(21, 26, 33, 0.72);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.10), 0 10px 30px rgba(0,0,0,0.25);

  --white: #F5F6F8;
  --steel-200: #E2E6EB;
  --steel-100: #F1F3F6;
  --text-link: #1F5FA8;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, 'SF Mono', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --header-height: 72px;
}

body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.5px; }

.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 1.8px; color: var(--blue-400);
}
.eyebrow.on-light { color: var(--accent-dark); }

/* ---- buttons ---- */
.btn { border-radius: 10px; min-height: 44px; }
.btn-primary, .btn-glow, .rfq-submit-btn {
  background: var(--accent); color: #12161C; border: 0;
  border-radius: 10px; text-transform: none; letter-spacing: 0;
}
.btn-primary:hover, .btn-glow:hover, .rfq-submit-btn:hover {
  background: var(--accent-hover); color: #12161C; box-shadow: 0 6px 22px rgba(244,122,32,0.35);
}
.btn-outline-dark {
  border-radius: 10px; text-transform: none; letter-spacing: 0;
  border-color: rgba(255,255,255,0.22); color: #E4E8ED;
}
.btn-outline-dark:hover { border-color: var(--accent); color: #fff; }
.btn-outline:hover { border-color: var(--accent); background: rgba(244,122,32,0.08); }
.btn-outline.on-light:hover { border-color: var(--accent); background: var(--accent-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---- shared layout helpers used by the new header / footer ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* ---- top strip ---- */
.strip { background: #0A0D11; color: #AEB7C2; font-size: 13px; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 9px; padding-bottom: 9px; }

/* ---- header ---- */
.site-header {
  background: #0F1318; backdrop-filter: none; border-bottom: 1px solid #222932;
  height: auto; position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; position: relative; }
.site-header .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.site-header .brand:hover { color: #fff; }
.brand-name { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .5px; white-space: nowrap; }
.brand-name span { color: var(--accent); }
.site-header .main-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.site-header .main-nav a {
  color: #C9D1DB; text-decoration: none; min-height: 44px; display: flex; align-items: center;
  white-space: nowrap; font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; padding: 0;
}
.site-header .main-nav a:hover, .site-header .main-nav a[aria-current="page"] { color: #fff; }
.site-header .main-nav a::after { display: none; }
.site-header .nav-actions { display: flex; align-items: center; gap: 12px; }
.site-header .nav-phone {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; display: flex; align-items: center;
  gap: 8px; min-height: 44px; white-space: nowrap; font-family: var(--font-body); letter-spacing: 0;
}
.site-header .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 10px; background: var(--accent); color: #12161C; font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap;
}
.site-header .nav-cta:hover { background: var(--accent-hover); color: #12161C; }
.site-header .nav-toggle {
  display: none; background: none; border: 1px solid #3A4350; border-radius: 10px; width: 44px; height: 44px;
  margin: 0; padding: 0; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.site-header .nav-toggle svg { width: 20px; height: 20px; }
.nav-auth-wrap { border-right: 0; padding-right: 0; margin-right: 0; gap: 14px; }
.nav-auth-link { color: #C9D1DB; white-space: nowrap; }
.nav-auth-link:hover, .nav-cart-link:hover { color: #fff; }
.nav-cart-badge { background: var(--accent); color: #12161C; }

@media (max-width: 1280px) { .site-header .nav-phone { display: none; } }
@media (max-width: 1100px) {
  .site-header .nav-toggle { display: flex; }
  .site-header .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #0F1318;
    flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid #222932;
  }
  .site-header .main-nav.mobile-open { display: flex; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .site-header .wrap { gap: 12px; height: 64px; }
  .site-header .main-nav { top: 64px; }
  .brand-name { font-size: 17px; }
  .site-header .brand-name span { display: none; }
  .site-header .nav-cta { display: none; }
}

/* ---- footer ---- */
.site-footer { background: #0A0D11; color: #AEB7C2; padding: 64px 0 28px; font-size: 14px; border-top: 0; }
.site-footer .foot-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer .foot-col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .foot-col strong { color: #fff; }
.site-footer a { color: #AEB7C2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-bottom { border-top: 1px solid #1F252D; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }

/* ---- mobile bottom nav ---- */
.mobile-bottom-nav { background: #0F1318; border-top: 1px solid #222932; }
.mobile-bottom-nav a { color: #C9D1DB; }
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover { color: var(--accent); }
