@import url('fonts.css');

/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root {
  --bg: #14161a;
  --surface: #1d2025;
  --surface-2: #23262c;
  --line: #2c3036;
  --line-strong: #3a3f47;
  --ink: #ecedee;
  --muted: #90969d;
  --muted-2: #5f6570;
  --accent: #ff5a1f;
  --accent-ink: #14161a;
  --accent-dim: #7a3319;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius: 3px;
}

/* ---------------------------------------------------------
   Reset
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
input { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* ---------------------------------------------------------
   Hazard stripe divider — the signature motif
--------------------------------------------------------- */
.hazard {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 10px,
    var(--bg) 10px 20px
  );
}

/* ---------------------------------------------------------
   Corner registration marks (blueprint crosshairs)
--------------------------------------------------------- */
.crosshair {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.5;
}
.crosshair::before, .crosshair::after {
  content: '';
  position: absolute;
  background: var(--muted-2);
}
.crosshair::before { top: 50%; left: 0; width: 100%; height: 1px; }
.crosshair::after { left: 50%; top: 0; width: 1px; height: 100%; }
.crosshair--tl { top: 20px; left: 20px; }
.crosshair--br { bottom: 20px; right: 20px; }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 22, 26, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.wordmark__main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.wordmark__main span { color: var(--accent); }
.wordmark__logo {
  display: block;
  width: auto;
  height: 32px;
}
.wordmark__sub {
  margin-top: 4px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: contents;
}
.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  white-space: nowrap;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
}
.nav__phone a { color: var(--ink); font-weight: 500; }
.nav__phone span { color: var(--muted-2); font-size: 11px; }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle-bar { position: relative; }
.nav__toggle-bar::before { position: absolute; top: -6px; }
.nav__toggle-bar::after { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { top: 0; transform: rotate(45deg); background: var(--accent); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after { top: 0; transform: rotate(-45deg); background: var(--accent); }

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu:not([hidden]) { display: block; }
.mobile-menu__links {
  display: grid;
  gap: 2px;
  padding: 8px 0;
}
.mobile-menu__links a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.mobile-menu__links li:first-child a { border-top: none; }
.mobile-menu__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 24px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.mobile-menu__phone a { color: var(--accent); font-weight: 600; font-size: 16px; white-space: nowrap; }
.mobile-menu__phone span { color: var(--muted-2); }

@media (max-width: 900px) {
  .site-header__row { display: flex; justify-content: space-between; }
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__toggle { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__phone span { display: none; }
  .nav__links { gap: 20px; }
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__row {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 72px;
}
.hero__ref {
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--muted);
}
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: #ff6d3a; }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); }

.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
}
.hero__art svg, .hero__art img { width: 100%; height: auto; }

/* ---------------------------------------------------------
   Spec strip
--------------------------------------------------------- */
.specs {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.specs__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.spec {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.spec:first-child { border-left: none; }
.spec__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.spec__value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.spec__value span { color: var(--accent); }

@media (max-width: 760px) {
  .specs__row { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3) { border-left: none; }
}

/* ---------------------------------------------------------
   Section heading
--------------------------------------------------------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 46px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.section-head__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
  white-space: nowrap;
  padding-bottom: 6px;
}

/* ---------------------------------------------------------
   Catalog grid — parts-tag cards (signature component)
--------------------------------------------------------- */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.part-card {
  position: relative;
  background: var(--surface);
  padding: 28px 24px 26px;
  transition: background 0.15s ease;
}
.part-card:hover { background: var(--surface-2); }
.part-card::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border-radius: 50%;
  border: 1px solid var(--line);
  transform: translateX(50%);
}
.part-card__ref {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.part-card__icon {
  margin: 18px 0 20px;
  width: 44px;
  height: 44px;
  color: var(--ink);
}
.part-card__icon svg { width: 100%; height: 100%; }
.part-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.part-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.part-card__tag {
  margin-top: 18px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
  width: 100%;
}

@media (max-width: 900px) {
  .catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .catalog { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Brands — "fits all vehicles" compatibility strip
--------------------------------------------------------- */
.brands__lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 15.5px;
}
.brands__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.brand-badge {
  background: var(--surface);
  padding: 30px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: background 0.15s ease;
}
.brand-badge:hover { background: var(--surface-2); }
.brand-badge__mark {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: border-color 0.15s ease;
}
.brand-badge__mark::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: var(--line-strong);
  transform: translateX(-50%);
  transition: background 0.15s ease;
}
.brand-badge__mark-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.brand-badge:hover .brand-badge__mark { border-color: var(--accent); }
.brand-badge:hover .brand-badge__mark::before { background: var(--accent); }
.brand-badge:hover .brand-badge__mark-inner {
  border-color: var(--accent-dim);
  color: var(--accent);
}
.brand-badge__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  transition: color 0.15s ease;
}
.brand-badge:hover .brand-badge__name { color: var(--ink); }
.brands__disclaimer {
  margin-top: 20px;
  max-width: 62ch;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

@media (max-width: 900px) {
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------
   About
--------------------------------------------------------- */
.about {
  padding-block: clamp(64px, 8vw, 104px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about__art { aspect-ratio: 4 / 3; }
.about__art svg, .about__art img { width: 100%; height: auto; }
.about__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 40px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 12px;
}
.about__body p {
  margin-top: 20px;
  color: var(--muted);
  max-width: 56ch;
}
.about__body p + p { margin-top: 14px; }
.about__list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.about__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink);
}
.about__list li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
}

@media (max-width: 860px) {
  .about__row { grid-template-columns: 1fr; }
  .about__art { max-width: 340px; }
}

/* ---------------------------------------------------------
   Newsletter / email capture (signature CTA panel)
--------------------------------------------------------- */
.subscribe {
  position: relative;
  background: var(--surface-2);
}
.subscribe__panel {
  position: relative;
  padding-block: 64px 72px;
}
.subscribe__inner {
  max-width: 640px;
}
.subscribe__inner--wide {
  max-width: 760px;
}
.subscribe h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px);
  text-transform: uppercase;
  line-height: 1.05;
}
.subscribe p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 52ch;
}
.field {
  position: relative;
}
.subscribe-form__hint {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.subscribe__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.contact-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.contact-list a:hover { color: var(--ink); }
.contact-map {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-map iframe {
  display: block;
  filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.92);
}

@media (max-width: 860px) {
  .subscribe__grid { grid-template-columns: 1fr; }
}

/* Contact form (name / email / phone / vehicle / message) */
.contact-form { margin-top: 32px; }
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form .field--full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.contact-form label span {
  font-weight: 400;
  color: var(--muted-2);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.contact-form__actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .contact-form__grid { grid-template-columns: 1fr; }
}
.btn-spinner { opacity: 0; transition: opacity 0.15s ease; }
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(20,22,26,0.35);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#form-result:empty { display: none; }
.notice {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid var(--line-strong);
  animation: rise 0.25s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.notice svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.notice--ok { border-color: #2c5e45; background: rgba(56, 176, 122, 0.08); color: #7fe0b3; }
.notice--err { border-color: #6b3226; background: rgba(255, 90, 31, 0.08); color: #ff9a72; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  padding: 56px 0 40px;
}
.footer__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
.footer__brand .wordmark__logo { height: 28px; }
.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.site-footer address, .site-footer ul { font-style: normal; font-size: 14.5px; }
.site-footer li, .site-footer address p { margin-bottom: 10px; color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

@media (max-width: 760px) {
  .footer__row { grid-template-columns: 1fr; gap: 32px; }
  .hero__row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 48px; }
  .hero__ref { margin-bottom: 20px; }
  .hero__lede { margin-top: 20px; font-size: 16px; }
  .hero__actions { margin-top: 28px; }
  .hero__art { max-width: 220px; margin: 0 auto; }
  .about__row { text-align: left; gap: 32px; }
  .about__art { order: 2; max-width: 280px; margin: 0 auto; }
  .section { padding: 64px 0; }
  .section--tight { padding: 56px 0; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
  }
  .section-head__count { white-space: normal; padding-bottom: 0; }
  .subscribe__panel { padding-block: 48px 56px; }
  .subscribe__grid { margin-top: 32px; gap: 36px; }
  .site-footer { padding: 44px 0 32px; }
}
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { justify-content: center; }
  .spec { padding: 20px 18px; }
  .spec__value { font-size: 20px; }
  .brand-badge { padding: 24px 12px 20px; }
  .brand-badge__mark { width: 64px; height: 64px; }
  .brand-badge__mark-inner { font-size: 17px; }
  .part-card { padding: 24px 20px 22px; }
}
@media (max-width: 380px) {
  .wordmark__sub { font-size: 10px; letter-spacing: 0.1em; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: 44px; }
  .section-head h2 { font-size: 30px; }
}
