/* =========================================================================
   MOTARIX - Components
   ========================================================================= */

/* ---------- Nav ---------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex; align-items: center; gap: var(--s6);
  height: 68px;
}
.nav.is-stuck {
  background: rgba(20,21,23,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--hairline-dark);
}
.nav--light.is-stuck {
  background: rgba(246,244,239,.85);
  border-bottom-color: var(--hairline);
}

.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__link {
  padding: 8px 14px; border-radius: var(--r-ctl);
  font-size: 15px; font-weight: 500; color: rgba(246,244,239,.78);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] {
  color: var(--bone); background: rgba(246,244,239,.08);
}
.nav--light .nav__link { color: var(--steel); }
.nav--light .nav__link:hover, .nav--light .nav__link[aria-current="page"] {
  color: var(--ink); background: rgba(20,21,23,.05);
}
.nav__cta { margin-left: var(--s3); }

.nav__toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid rgba(246,244,239,.25);
  border-radius: var(--r-ctl); padding: 9px 11px; cursor: pointer;
  color: var(--bone);
}
.nav--light .nav__toggle { color: var(--ink); border-color: var(--hairline); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__links.is-open {
    display: grid; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--graphite); padding: var(--s4) 24px var(--s6);
    border-bottom: 1px solid var(--hairline-dark); gap: var(--s1);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav--light .nav__links.is-open { background: var(--bone); border-color: var(--hairline); }
  .nav__links.is-open .nav__link { padding: 13px 14px; font-size: 17px; }
  .nav__links.is-open .nav__cta { display: inline-flex; margin: var(--s3) 0 0; }
}

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.wordmark__mark { width: 30px; height: 30px; flex: none; color: var(--signal); }
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 600; font-size: 19px; line-height: 1;
  letter-spacing: .045em; text-transform: uppercase;
  color: var(--bone);
}
.nav--light .wordmark__text, .wordmark--ink .wordmark__text { color: var(--ink); }
.wordmark__text i { font-style: normal; opacity: .55; font-weight: 500; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--graphite);
  color: var(--bone);
  padding-block: calc(68px + var(--s24)) var(--s24);
  overflow: hidden;
  isolation: isolate;
}
/* Signal mesh - the brand's answer to Stripe's gradient */
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 150%;
  z-index: -2;
  background:
    radial-gradient(56% 54% at 74% 14%, rgba(224,82,55,.58) 0%, transparent 64%),
    radial-gradient(42% 44% at 97% 46%, rgba(169,106,0,.32) 0%, transparent 62%),
    radial-gradient(60% 56% at 4% 2%, rgba(46,125,79,.16) 0%, transparent 56%),
    radial-gradient(54% 52% at 34% 98%, rgba(198,64,42,.2) 0%, transparent 62%);
  filter: blur(6px);
}
/* Engineering grid texture */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(246,244,239,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,244,239,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(72% 62% at 50% 34%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 34%, #000 20%, transparent 78%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-block: calc(68px + var(--s16)) var(--s16); }
}

.hero__makes {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(246,244,239,.55);
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  margin-bottom: var(--s6);
}
.hero__makes span { display: inline-flex; align-items: center; gap: 12px; }
.hero__makes span:not(:last-child)::after {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: var(--signal-hot); opacity: .85;
}
.hero__lede { color: rgba(246,244,239,.72); max-width: 50ch; }
.hero__cta { margin-top: var(--s8); }
.hero__store { margin-top: var(--s6); }
.hero__meta {
  margin-top: var(--s6); font-size: 13.5px; color: rgba(246,244,239,.5);
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
}
.hero__meta strong { color: rgba(246,244,239,.8); font-weight: 600; }

/* ---------- Fitment console (the hero visual) ---------------------------- */
.console-stage { position: relative; display: flex; justify-content: center; padding: 0 0 12px; }

.console {
  width: 100%; max-width: 430px;
  background: linear-gradient(168deg, #212429 0%, var(--graphite-raised) 58%);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 2px 0 rgba(246,244,239,.05) inset;
  overflow: hidden;
}
.console__bar {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline-dark);
  background: rgba(0,0,0,.22);
}
.console__dot { width: 9px; height: 9px; border-radius: 50%; background: #34383e; flex: none; }
.console__dot:first-child { background: var(--signal); }
.console__title {
  /* light steel: --steel is 3.6:1 on this panel */
  margin-left: 6px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--steel-light);
}
.console__body { padding: var(--s6); }

.console__vehicle {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 11px;
  background: rgba(246,244,239,.045);
  border: 1px solid var(--hairline-dark);
}
.console__vehicle svg { flex: none; color: var(--steel); }
.console__vlabel {
  /* light steel: --steel is 3.6:1 on this panel */
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--steel-light); display: block; margin-bottom: 3px;
}
.console__vname { font-weight: 600; font-size: 15.5px; color: var(--bone); }

.console__verdict {
  display: flex; align-items: center; gap: 11px;
  margin: var(--s4) 0;
  padding: 13px 15px; border-radius: 11px;
  background: rgba(46,125,79,.13);
  border: 1px solid rgba(46,125,79,.34);
}
.console__check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--in-stock); color: #fff; display: grid; place-items: center;
}
.console__vtext { font-size: 14.5px; font-weight: 600; color: #7ED3A3; }
.console__vsub {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em;
  color: rgba(126,211,163,.72); text-transform: uppercase; margin-top: 2px;
}

.console__part { display: flex; gap: 13px; align-items: flex-start; margin-bottom: var(--s4); }
.console__thumb {
  width: 60px; height: 60px; border-radius: 10px; flex: none;
  background: var(--bone); display: grid; place-items: center;
  color: var(--steel); overflow: hidden;
}
.console__brand {
  /* light steel: --steel is 3.6:1 on this panel */
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--steel-light);
}
.console__pname { font-weight: 600; font-size: 15px; color: var(--bone); margin: 3px 0 4px; line-height: 1.3; }
.console__pnum { font-family: var(--font-mono); font-size: 12px; color: var(--signal-hot); }

.console__oe { margin-top: var(--s4); }
.console__oe-head {
  /* light steel: --steel is 3.6:1 on this panel */
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--steel-light); margin-bottom: 9px;
}
.console__oe-list { display: flex; flex-wrap: wrap; gap: 6px; }
.oe-chip {
  font-family: var(--font-mono); font-size: 11.5px;
  padding: 5px 10px; border-radius: 6px;
  background: rgba(246,244,239,.06); border: 1px solid var(--hairline-dark);
  color: rgba(246,244,239,.82);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.oe-chip:hover { border-color: var(--steel); background: rgba(246,244,239,.1); }
.oe-chip svg { opacity: .45; flex: none; }
.oe-chip.is-copied { border-color: var(--in-stock); color: #7ED3A3; }


/* ---------- Phone mockup ------------------------------------------------- */
.phone {
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(160deg, #34383e 0%, #17181b 46%, #2a2d32 100%);
  box-shadow: 0 22px 54px rgba(0,0,0,.42), 0 2px 5px rgba(0,0,0,.3),
              0 0 0 1px rgba(255,255,255,.07) inset;
}
.phone__screen {
  border-radius: 23px; overflow: hidden;
  background: var(--bone); position: relative;
  aspect-ratio: 1170 / 2532;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 5.5%; border-radius: var(--r-pill);
  background: #0c0d0f; z-index: 2;
}

.phone-row { display: flex; gap: clamp(14px, 2.4vw, 26px); align-items: flex-end; justify-content: center; }
.phone-row .phone { width: clamp(160px, 20vw, 232px); flex: none; }
@media (max-width: 460px) {
  /* Below this the pair's 334px intrinsic floor cannot fit the content column,
     and body/cta-band overflow:hidden would silently amputate the text. */
  .phone-row .phone {
    width: auto; flex: 1 1 0; min-width: 0;
    max-width: clamp(160px, 20vw, 232px);
  }
}
.phone-row .phone:nth-child(2) { margin-bottom: clamp(18px, 3vw, 40px); }

/* ---------- Brand wall --------------------------------------------------- */
.brandwall {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s6) clamp(20px, 3.3vw, 44px);
  align-items: center;
}
.brandwall span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.68vw, 1.32rem);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--steel);
  transition: color .2s var(--ease);
}
.brandwall span:hover { color: var(--ink); }
.section--dark .brandwall span, .section--deep .brandwall span { color: var(--steel-light); }
.section--dark .brandwall span:hover, .section--deep .brandwall span:hover { color: var(--bone); }

/* ---------- Steps -------------------------------------------------------- */
.step__num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .13em; color: var(--signal);
  display: flex; align-items: center; gap: 10px; margin-bottom: var(--s4);
}
.section--dark .step__num, .section--deep .step__num { color: var(--signal-hot); }
.step__num::after { content: ""; height: 1px; flex: 1; background: var(--hairline); }
.section--dark .step__num::after { background: var(--hairline-dark); }

/* ---------- Search demo -------------------------------------------------- */
.searchbox {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--lift-2);
}
.searchbox svg { color: var(--steel); flex: none; }
.searchbox__q { font-family: var(--font-mono); font-size: 15px; color: var(--ink); }
.searchbox__caret {
  width: 1.5px; height: 17px; background: var(--signal);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.match-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--hairline);
}
.match-row:last-child { border-bottom: 0; }
.match-row__eq {
  font-family: var(--font-mono); font-size: 12px; color: var(--in-stock);
  flex: none; font-weight: 600;
}
.match-row__q { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.match-row__note { font-size: 13.5px; color: var(--steel); margin-left: auto; text-align: right; }

/* ---------- Delivery ----------------------------------------------------- */
.deliv-row {
  display: flex; align-items: baseline; gap: var(--s4);
  padding: 15px 0; border-bottom: 1px solid var(--hairline);
}
.deliv-row:last-child { border-bottom: 0; }
.deliv-row__city { font-weight: 600; font-size: 16.5px; min-width: 190px; }
.deliv-row__days {
  font-family: var(--font-mono); font-size: 14px; color: var(--signal); margin-left: auto;
  white-space: nowrap;
}
.section--dark .deliv-row { border-color: var(--hairline-dark); }
.section--dark .deliv-row__days { color: var(--signal-hot); }
@media (max-width: 520px) {
  .deliv-row { flex-wrap: wrap; gap: 4px; }
  .deliv-row__city { min-width: 0; width: 100%; }
  .deliv-row__days { margin-left: 0; }
}

/* ---------- FAQ ---------------------------------------------------------- */
.faq { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: var(--s4);
  padding: 21px 0; background: none; border: 0; cursor: pointer;
  text-align: left; font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq__q svg { margin-left: auto; flex: none; color: var(--steel); transition: transform .25s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); color: var(--signal); }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0 0 21px; color: var(--steel); max-width: 68ch; line-height: 1.65; }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--graphite);
  color: var(--bone);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(48% 90% at 88% 50%, rgba(198,64,42,.34) 0%, transparent 66%),
    radial-gradient(46% 80% at 12% 20%, rgba(169,106,0,.16) 0%, transparent 62%);
}


/* ---------- Notice / honesty callout ------------------------------------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: var(--s4) var(--s6);
  border-radius: var(--r-card);
  background: var(--signal-wash);
  border: 1px solid rgba(198,64,42,.2);
  border-left: 3px solid var(--signal);
}
.notice svg { flex: none; color: var(--signal); margin-top: 2px; }
.notice p { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.6; }
.section--dark .notice {
  background: rgba(224,82,55,.1); border-color: rgba(224,82,55,.26);
  border-left-color: var(--signal-hot);
}
.section--dark .notice p { color: rgba(246,244,239,.86); }
.section--dark .notice svg { color: var(--signal-hot); }

/* ---------- Reveal on scroll --------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Interior page header ----------------------------------------- */
.pagehead {
  padding-block: calc(68px + var(--s16)) var(--s12);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.pagehead .lede { margin-top: var(--s4); }

/* ---------- Prose (legal + support copy) --------------------------------- */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin: var(--s12) 0 var(--s4);
  letter-spacing: .02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.05rem; letter-spacing: .03em;
  margin: var(--s8) 0 var(--s3);
}
.prose p, .prose li { color: var(--steel); line-height: 1.7; }
.prose p { margin: 0 0 var(--s4); }
.prose ul, .prose ol { margin: 0 0 var(--s4); padding-left: 1.15em; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--signal); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--signal-hot); }
.prose ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol.steps li {
  counter-increment: step; position: relative; padding-left: 44px;
  margin-bottom: var(--s4); color: var(--ink); font-weight: 500;
}
.prose ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--signal); color: #fff;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Two-column page layout with a sticky aside ------------------- */
.doclayout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 940px) { .doclayout { grid-template-columns: 1fr; } }
.docaside { position: sticky; top: 92px; }
@media (max-width: 940px) { .docaside { position: static; } }

/* ---------- Department grid ---------------------------------------------- */
.dept {
  display: block; padding: var(--s4) var(--s6) var(--s6);
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--paper);
}
.dept h3 { font-size: 1rem; letter-spacing: .04em; margin-bottom: var(--s3); }
.dept ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dept li { font-size: 14.5px; color: var(--steel); }

/* ---------- Make coverage rows ------------------------------------------- */
.makerow {
  display: flex; align-items: center; gap: var(--s4);
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
.makerow:last-child { border-bottom: 0; }
.makerow__name { font-weight: 600; font-size: 16.5px; min-width: 160px; }
.makerow__bar {
  display: block; flex: 1 1 auto; height: 6px; border-radius: 3px;
  background: var(--hairline); overflow: hidden; min-width: 60px;
}
.makerow__fill { display: block; height: 100%; border-radius: 3px; background: var(--signal); }
.makerow__val {
  font-family: var(--font-mono); font-size: 13px; color: var(--steel);
  min-width: 92px; text-align: right;
}
@media (max-width: 560px) {
  .makerow { flex-wrap: wrap; gap: 8px; }
  .makerow__name { min-width: 0; width: 100%; }
  .makerow__val { min-width: 0; }
}


/* ---------- Photography -------------------------------------------------- */
.photo-card {
  display: block; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--paper);
}
.photo-card__img {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.photo-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.photo-card:hover .photo-card__img img { transform: scale(1.03); }
.photo-card__body { padding: var(--s4) var(--s6) var(--s6); }
.photo-card__body h3 { font-size: 1rem; letter-spacing: .04em; margin-bottom: var(--s3); }
.photo-card__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.photo-card__body li { font-size: 14.5px; color: var(--steel); }

/* Full-bleed editorial band with the copy laid over the image */
.photo-band {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--bone); background: var(--graphite);
  min-height: clamp(400px, 52vw, 580px);
  display: grid; align-items: center;
}
.photo-band__img { position: absolute; inset: 0; z-index: -2; }
.photo-band__img img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(96deg,
    rgba(10,11,13,.96) 0%, rgba(10,11,13,.90) 38%,
    rgba(10,11,13,.52) 66%, rgba(10,11,13,.26) 100%);
}
.photo-band__copy { max-width: 30rem; padding-block: var(--s16); }
/* .photo-band is not .section--dark, so the light-text overrides never reached
   it and the lede rendered steel-on-photograph. */
.photo-band .lede { color: rgba(246,244,239,.84); }
.photo-band .body-copy { color: rgba(246,244,239,.72); }
.photo-band .eyebrow { color: var(--signal-hot); }
@media (max-width: 760px) {
  .photo-band::before {
    background: linear-gradient(180deg, rgba(13,14,16,.72) 0%, rgba(13,14,16,.93) 62%);
  }
  .photo-band__copy { max-width: none; }
}
