@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 var(--fs-body)/1.55 var(--font);
  color: var(--black);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, 1280px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 44px; /* below proto banner */
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}
.brand-lockup { display: flex; align-items: center; gap: 0.75rem; }
.brand-lockup img { height: 52px; width: auto; }
.header-cta { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.header-phone { font-weight: 700; color: var(--black); font-size: 0.95rem; }

.nav-bar { background: var(--nav); }
.nav-inner { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 0.45rem 0.75rem;
  font: 700 0.8rem/1 var(--font);
  text-transform: uppercase;
  cursor: pointer;
  margin: 0.5rem 0;
  border-radius: var(--radius);
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button.nav-parent {
  display: block;
  color: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
}
.nav-list > li > a:hover,
.nav-list > li > button.nav-parent:hover,
.nav-list > li:hover > a,
.nav-list > li.open > a,
.nav-list > li.open > button.nav-parent {
  background: rgba(255,255,255,.1);
  text-decoration: none;
}
.nav-sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 260px;
  background: #222;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.nav-list > li:hover > .nav-sub,
.nav-list > li.open > .nav-sub { display: block; }
.nav-sub a {
  display: block;
  color: #fff;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  text-decoration: none;
  font-weight: 400;
  text-transform: none;
}
.nav-sub a:hover { background: var(--brand); text-decoration: none; }
.nav-sub .parts-only { color: #fbbf24; font-size: 0.75rem; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand-btn);
  color: #fff !important;
  font: 400 16px/38px var(--font);
  text-transform: uppercase;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  height: 38px;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn-dark {
  display: inline-block;
  background: var(--black);
  color: #fff !important;
  font: 400 16px/40px var(--font);
  text-transform: uppercase;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  height: 40px;
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--black) !important;
  border: 2px solid var(--black);
  font: 700 14px/34px var(--font);
  text-transform: uppercase;
  padding: 0 1.1rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  height: 38px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.25rem 0; }

/* Hero / bands */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 55%, #4a1518 100%);
  color: #fff;
  padding: 3rem 0 3.25rem;
}
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero .lead { font-size: 1.1rem; max-width: 42rem; opacity: 0.95; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.section { padding: 2.75rem 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--nav); color: #fff; }
.section-dark a { color: #fff; text-decoration: underline; }
.section-red { background: var(--brand); color: #fff; }
.section-red a { color: #fff; text-decoration: underline; }

.door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.door-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}
.door-card img.icon { width: 48px; height: 48px; object-fit: contain; }
.door-card h3 { margin: 0; }
.door-card p { flex: 1; font-size: 0.95rem; color: var(--muted); margin: 0; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.principle {
  background: var(--paper);
  border-left: 4px solid var(--brand);
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.nap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.nap-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.15rem;
}
.nap-card h3 { font-size: 1rem; margin-bottom: 0.4em; }
.nap-card .badge {
  display: inline-block;
  background: #fbbf24;
  color: #111;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.nap-card p { margin: 0.2em 0; font-size: 0.92rem; }
.nap-card a.phone { font-weight: 700; color: var(--brand); font-size: 1.05rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.media-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ddd;
}
.media-frame img { width: 100%; height: auto; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th, table.data td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}
table.data th { background: var(--bg-alt); font-weight: 700; }
table.data tr:nth-child(even) td { background: #fafafa; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.form-grid { display: grid; gap: 0.85rem; }
.form-grid label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.25rem; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: 400 1rem/1.4 var(--font);
}
.form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 560px) { .form-grid .row-2 { grid-template-columns: 1fr; } }
.req { color: var(--brand); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); }
.page-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0 1.5rem;
}
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero .meta { color: var(--muted); font-size: 0.95rem; max-width: 48rem; }

.note-box {
  border-left: 4px solid var(--brand);
  background: #fff8f8;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.note-box.warn { border-color: #f59e0b; background: #fffbeb; }
.note-box.info { border-color: #3b82f6; background: #eff6ff; }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.inv-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.inv-card .inv-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.inv-card .tag {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
}
.inv-card .tag.used { background: var(--nav); }
.inv-card h3 { font-size: 1.05rem; margin: 0; }
.inv-card .price { font-weight: 700; }

.oem-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.oem-logos img { height: 48px; width: auto; }

.shell-banner {
  background: #1e293b;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.shell-banner strong { color: #fbbf24; }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #ddd;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.social-row { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }
.social-row img { width: 28px; height: 28px; }
.footer-nap {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}
.footer-nap h4 { color: #fff; margin-bottom: 1rem; }
.footer-legal {
  border-top: 1px solid #333;
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  color: #999;
  font-size: 0.82rem;
}

/* Proto modal (CTA simulate) */
.proto-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.proto-modal-overlay.open { display: flex; }
.proto-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.proto-modal h3 { margin-top: 0; }
.proto-modal .close-x {
  float: right;
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-sub {
    position: static;
    display: none;
    box-shadow: none;
    background: #1a1a1a;
  }
  .nav-list > li.open > .nav-sub { display: block; }
  .site-header { top: 70px; }
}


/* =====================================================================
   Shared chrome v2 (matches Home comp). Injected by js/layout.js.
   ===================================================================== */
body { font-size: var(--fs-body); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2 { font-weight: 900; letter-spacing: -.015em; color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap-chrome { width: min(100% - 64px, var(--max)); margin-inline: auto; }
.hh { position: sticky; top: var(--proto-h); z-index: 100; background: #111; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.hh a, .sf a { text-decoration: none; }
.hh a:hover, .sf a:hover { text-decoration: none; }
.hh-inner { position: relative; display: flex; align-items: center; gap: 24px; height: 84px; }
.hh-logo img { width: auto; height: 58px; }
.hh-nav { margin-left: auto; }
.hh-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.hh-nav li { margin: 0; }
.hh-nav a { position: relative; display: block; white-space: nowrap; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.9); padding: 8px 0; }
.hh-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.hh-nav ul a:hover::after, .hh-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.hh-nav .hh-nav-phone { display: none; }
.hh-actions { display: flex; align-items: center; gap: 20px; }
.hh-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
.hh-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 700; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.22); }
.hh-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; background: var(--brand-btn); color: #fff; border-radius: 3px; font: 900 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.hh-cta:hover { background: var(--brand-deep); color: #fff; }
.hh-menu { display: none; }
.hh-menu span { display: block; width: 22px; height: 2px; background: #fff; margin: 2.5px 0; transition: transform .2s ease, opacity .2s ease; }
.search-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, 100%); background: #fff; border-radius: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.3); padding: 10px; }
.search-panel input { width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 3px; padding: 0 14px; font: 400 16px var(--font); }
.sf { background: #fff; border-top: 1px solid var(--line); color: var(--muted); margin-top: 0; padding: 0; }
.sf-top { display: flex; align-items: center; gap: 40px; padding: 30px 0 26px; }
.sf-logo img { height: 56px; width: auto; }
.sf nav { margin-left: auto; margin-right: auto; }
.sf-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.sf-nav li { margin: 0; }
.sf-nav a { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.sf-nav a:hover { color: var(--brand); }
.sf-social { display: flex; gap: 10px; }
.sf-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); }
.sf-social a:hover { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff; }
.sf-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 22px; border-top: 1px solid var(--line); font-size: 13px; }
.sf-bottom p { margin: 0; }
.page-hero { position: relative; background: #141414; color: rgba(255,255,255,.8); border-bottom: 0; padding: 48px 0 44px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
.page-hero .meta { color: rgba(255,255,255,.72); font-size: 1rem; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.section { padding: 56px 0; }
.btn { border-radius: 3px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
@media (max-width: 1280px) { .hh-nav ul { gap: 18px; } .hh-actions { gap: 12px; } .hh-phone { padding-left: 12px; } }
@media (max-width: 1140px) {
  .hh-nav, .hh-phone { display: none; }
  .hh-menu { display: inline-grid; }
  .hh-actions { margin-left: auto; }
  .hh.is-open .hh-nav { display: block; position: absolute; left: -32px; right: -32px; top: 100%; background: #111; border-top: 1px solid rgba(255,255,255,.1); padding: 8px 32px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
  .hh.is-open .hh-nav ul { flex-direction: column; gap: 0; }
  .hh.is-open .hh-nav ul a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
  .hh.is-open .hh-nav .hh-nav-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; font-weight: 700; }
  .sf-top { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .wrap-chrome { width: min(100% - 40px, var(--max)); }
  .hh-inner { height: 68px; }
  .hh-logo img { height: 44px; }
  .hh-cta { display: none; }
  .hh-actions { gap: 4px; }
  .hh.is-open .hh-nav { left: -20px; right: -20px; padding: 8px 20px 20px; }
  .page-hero { padding: 36px 0 32px; }
  .section { padding: 44px 0; }
  .sf-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .sf nav { margin: 0; }
  .sf-nav { justify-content: flex-start; gap: 10px 20px; }
  .sf-bottom { flex-direction: column; gap: 4px; }
}
