:root {
  --ink: #071f49;
  --graphite: #0d2f68;
  --panel: #123b78;
  --paper: #f3f6fb;
  --white: #ffffff;
  --muted: #5f6f86;
  --line: rgba(16, 17, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --amber: #ff7a1a;
  --orange: #f36c21;
  --orange-dark: #b84608;
  --orange-soft: #fff0e5;
  --steel: #315c94;
  --green: #237d5b;
  --call-blue: #1d4ed8;
  --call-blue-dark: #1e40af;
  --shadow: 0 24px 80px rgba(16, 17, 20, 0.18);
  --radius: 8px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }
body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10000;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus { top: 16px; }

.top-strip {
  background: var(--ink);
  color: var(--white);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.top-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 38px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.flash-taglines {
  position: relative;
  min-width: min(620px, 58vw);
  min-height: 20px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

.flash-taglines span {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(12px);
  color: var(--white);
  animation: flash-tagline 9s ease-in-out infinite;
}

.flash-taglines span:nth-child(2) { animation-delay: 3s; color: var(--orange); }
.flash-taglines span:nth-child(3) { animation-delay: 6s; color: var(--white); }

@keyframes flash-tagline {
  0%, 7% { opacity: 0; transform: translateY(12px); }
  12%, 30% { opacity: 1; transform: translateY(0); }
  36%, 100% { opacity: 0; transform: translateY(-12px); }
}

.top-strip a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 40px rgba(16, 17, 20, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  min-width: max-content;
  background: var(--ink);
  padding: 8px 10px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
  margin-right: 10px;
  position: relative;
  z-index: 1;
}

.brand__text {
  display: flex;
  align-items: baseline;
  line-height: 1;
  gap: 0;
  position: relative;
  z-index: 1;
}

.brand__text::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 1px;
  top: 50%;
  height: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.92) 0 3px, transparent 3px 7px),
    linear-gradient(90deg, rgba(0,0,0,0.18), rgba(0,0,0,0.42));
  transform: translateY(-50%) skewX(-18deg);
  opacity: 0.42;
  pointer-events: none;
  z-index: 2;
}

.brand__name {
  font-family: var(--display);
  font-size: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--white);
  font-style: italic;
}

.brand__name::before {
  content: "ROCK";
  color: var(--white);
  font-size: 1.55rem;
}

.brand__name::after {
  content: "AUTOMOTIVE";
  color: var(--orange);
  font-size: 1.55rem;
}

.brand__tag {
  display: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav__links a {
  text-decoration: none;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 11px 12px;
  border-radius: 4px;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--orange-dark);
  background: rgba(243, 108, 33, 0.1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 800;
  font-family: inherit;
  padding: 11px 12px;
  border-radius: 4px;
}

.nav-dropdown__trigger:hover,
.nav-dropdown.open .nav-dropdown__trigger {
  color: var(--orange-dark);
  background: rgba(243, 108, 33, 0.1);
}

.nav-dropdown__caret {
  font-size: 0.75em;
  transition: transform 0.2s ease;
  display: inline-block;
  line-height: 1;
}

.nav-dropdown.open .nav-dropdown__caret {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(16, 17, 20, 0.14);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  z-index: 950;
}

.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}

.nav-dropdown__menu a {
  display: block;
  padding: 9px 16px;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-dropdown__menu a:hover {
  background: rgba(243, 108, 33, 0.08);
  color: var(--orange-dark);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(243, 108, 33, 0.28);
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--footer {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.78rem;
  gap: 6px;
  width: max-content;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(243, 108, 33, 0.22);
}

.btn--footer .icon {
  width: 14px;
  height: 14px;
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 114px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #101114;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 31, 73, 0.96), rgba(13, 47, 104, 0.7) 48%, rgba(7, 31, 73, 0.18)),
    url("assets/img/photo-1486262715619-67b85e0b08d3.jpg") center/cover;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(0deg, var(--paper), rgba(247, 244, 238, 0));
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 22px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 40px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.08;
}

.lead {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 20px 0 0;
}

.hero-flash {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0 0 22px rgba(243, 108, 33, 0.26);
  animation: hero-flash 2.1s ease-in-out infinite;
}

@keyframes hero-flash {
  0%, 100% { opacity: 0.75; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 720px;
}

.trust-pill {
  border: 2px solid rgba(243, 108, 33, 0.85);
  background: linear-gradient(180deg, #ffffff, var(--orange-soft));
  color: var(--ink);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.trust-pill strong {
  display: block;
  color: var(--orange-dark);
  font-size: 1.45rem;
  font-family: var(--display);
}

.trust-pill span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.quote-panel {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  color: var(--ink);
  border: 3px solid var(--orange);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
  transform: translateY(24px);
}

.quote-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.quote-panel__head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(35, 125, 91, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.field label .required {
  color: var(--orange);
  font-weight: 900;
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(243, 108, 33, 0.58);
  box-shadow: 0 0 0 4px rgba(243, 108, 33, 0.12);
}

.form-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 12px 0 0;
}

.extra-details {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 12px;
}

.extra-details.show {
  display: grid;
}

/* When VIN decode succeeds, hide the now-redundant manual fields and the
   trim/engine/body extra-details — the green "Vehicle details found" card
   already shows that info, so the form panel stays compact and the hero
   doesn't get stretched. Reset button restores full form. */
.form-grid.vin-resolved .field:has([data-year-select]),
.form-grid.vin-resolved .field:has([data-make-select]),
.form-grid.vin-resolved .field:has([data-model-select]) {
  display: none;
}

.form-grid.vin-resolved .extra-details,
.form-grid.vin-resolved .extra-details.show {
  display: none;
}

.lookup-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lookup-result {
  display: none;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(35, 125, 91, 0.08);
  padding: 14px;
}

.lookup-result.show {
  display: block;
}

.lookup-result strong {
  display: block;
  margin-bottom: 8px;
}

.lookup-result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.lookup-result div {
  display: grid;
  gap: 2px;
}

.lookup-result dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lookup-result dd {
  margin: 0;
  color: var(--graphite);
  font-weight: 800;
}

.section {
  padding: 92px 22px;
}

.section--tight { padding-top: 56px; }

.section--dark {
  background: linear-gradient(135deg, var(--ink), var(--graphite));
  color: var(--white);
}

.section--white {
  background: var(--white);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.eyebrow-row .btn {
  min-height: 40px;
  padding: 10px 16px;
}

.section-head p {
  max-width: 570px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-head__cta {
  margin-left: auto;
  align-self: start;
}

.section--dark .section-head p,
.section--dark .muted {
  color: rgba(255, 255, 255, 0.68);
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

.brand-ribbon {
  border-block: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.brand-ribbon__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.brand-ribbon span {
  padding: 17px 34px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--steel);
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
  box-shadow: 0 14px 40px rgba(16, 17, 20, 0.14);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.55s ease, filter 0.55s ease;
  z-index: -2;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(16, 17, 20, 0.92), rgba(16, 17, 20, 0.15));
}

.category-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

.category-card__body {
  height: 100%;
  min-height: 250px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
  font-size: 0.94rem;
}

.mini-link {
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.part-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.part-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  display: grid;
  grid-template-rows: 178px 1fr;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.part-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(16, 17, 20, 0.12);
}

.part-card__media {
  background: #ddd;
  overflow: hidden;
}

.part-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.part-card__body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(243, 108, 33, 0.1);
  color: var(--orange-dark);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.feature svg {
  color: var(--amber);
  margin-bottom: 18px;
}

.feature p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
  min-height: 220px;
}

.step__num {
  font-family: var(--display);
  font-size: 3rem;
  color: rgba(243, 108, 33, 0.24);
  line-height: 1;
  margin-bottom: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.image-stack {
  position: relative;
  min-height: 470px;
}

.image-stack img {
  position: absolute;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-stack img:first-child {
  left: 0;
  top: 0;
  width: 74%;
  height: 360px;
}

.image-stack img:last-child {
  right: 0;
  bottom: 0;
  width: 58%;
  height: 260px;
  border: 8px solid var(--paper);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--graphite);
  line-height: 1.55;
}

.check-item svg {
  color: var(--green);
  margin-top: 2px;
  flex: 0 0 auto;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.stars {
  color: var(--amber);
  letter-spacing: 0.08em;
  font-size: 0.98rem;
}

.review p {
  line-height: 1.7;
  color: var(--graphite);
}

.review strong {
  display: block;
  margin-top: 18px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.93), rgba(16, 17, 20, 0.72)),
    url("assets/img/photo-1565043666747-69f6646db940.jpg") center/cover;
  color: var(--white);
  padding: 72px 22px;
}

.cta-band__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.page-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 31, 73, 0.92), rgba(13, 47, 104, 0.52)),
    var(--hero-image, url("assets/img/photo-1517524008697-84bbe3c3fd98.jpg")) center/cover;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 78px 22px 58px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--graphite);
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: rgba(243, 108, 33, 0.55);
  color: var(--orange-dark);
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
}

.content-card + .content-card { margin-top: 18px; }

.content-card h3 { margin-bottom: 12px; }

.content-card p,
.content-card li {
  color: var(--graphite);
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 14px;
}

.method {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.method span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.method a {
  text-decoration: none;
  font-weight: 900;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  min-height: 62px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 28px 22px 12px;
  font-size: 0.85rem;
}

.footer__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 18px;
}

.footer h3 {
  font-size: 0.88rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  font-size: 0.85rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer a:hover { color: var(--white); }

.footer__brand {
  display: grid;
  gap: 12px;
}

.footer__brand .brand {
  width: max-content;
}

.footer__callout {
  display: grid;
  gap: 8px;
}

.footer__callout a {
  width: max-content;
}

.footer__contact {
  display: grid;
  gap: 6px;
}

.footer__contact strong {
  color: var(--white);
  font-size: 1.1rem;
}

.footer__contact strong a {
  color: var(--white);
}

.footer__divider {
  max-width: 1180px;
  margin: 14px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__payments {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.payment-cards {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.payment-card {
  width: 52px;
  height: 34px;
  border-radius: 5px;
  background: #f5f7fb;
  color: #0d1a38;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.payment-card--visa { color: #1a1f71; }
.payment-card--mc { color: #ea001b; }
.payment-card--amex { color: #2e77bc; font-size: 0.52rem; line-height: 1.1; text-align: center; }
.payment-card--discover { color: #f58220; font-size: 0.55rem; }

.footer__legal {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 10px;
  display: grid;
  gap: 6px;
  text-align: center;
}

.footer__legal p {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.footer__bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.74rem;
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: #06162f;
  color: var(--white);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.site-loader__wheel {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--orange);
  animation: loader-wheel 0.9s linear infinite, loader-bounce 1.15s ease-in-out infinite;
}

.site-loader__brand {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.site-loader__brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.94) 0 4px, transparent 4px 8px),
    linear-gradient(90deg, rgba(0,0,0,0.22), rgba(0,0,0,0.48));
  transform: translateY(-50%) skewX(-18deg);
  opacity: 0.82;
}

.site-loader__rock { color: var(--white); }
.site-loader__auto { color: var(--orange); }

@keyframes loader-wheel {
  to { transform: rotate(360deg); }
}

@keyframes loader-bounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 10px; }
}

.sticky-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 850;
}

.sticky-call .btn {
  background: var(--call-blue);
  color: var(--white);
  border-radius: 999px;
  min-height: 54px;
  padding-inline: 22px;
  border: 3px solid var(--white);
  box-shadow: 0 18px 48px rgba(29, 78, 216, 0.42);
  animation: call-shake 1.7s ease-in-out infinite, call-pulse 1.7s ease-in-out infinite;
}

.sticky-call .btn:hover {
  background: var(--call-blue-dark);
  color: var(--white);
}

.sticky-call__mobile { display: none; }
.sticky-call__desktop { display: inline; }

@keyframes call-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  8% { transform: translateX(-2px) rotate(-1.4deg); }
  16% { transform: translateX(2px) rotate(1.4deg); }
  24% { transform: translateX(-2px) rotate(-1deg); }
  32% { transform: translateX(2px) rotate(1deg); }
  40% { transform: translateX(0) rotate(0); }
}

@keyframes call-pulse {
  0%, 100% { box-shadow: 0 18px 48px rgba(29, 78, 216, 0.42), 0 0 0 0 rgba(29, 78, 216, 0.5); }
  50% { box-shadow: 0 18px 48px rgba(29, 78, 216, 0.5), 0 0 0 12px rgba(29, 78, 216, 0); }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(16, 17, 20, 0.72);
}

.modal.open { display: grid; }

.modal__panel {
  width: min(560px, 100%);
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  animation: pop 0.22s ease forwards;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal__actions .btn {
  flex: 1 1 190px;
}

.vehicle-results {
  display: none;
  padding-top: 0;
}

.vehicle-results.show {
  display: block;
}

.vehicle-summary {
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(7, 31, 73, 0.1);
}

.vehicle-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.vehicle-summary__status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(35, 125, 91, 0.1);
  color: var(--green);
  font-weight: 900;
}

.parts-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.parts-tab {
  appearance: none;
  text-decoration: none;
  color: var(--ink);
  background: var(--orange);
  border: 1px solid rgba(7, 31, 73, 0.14);
  border-radius: 6px;
  padding: 10px 13px;
  font-weight: 900;
  color: var(--white);
  cursor: pointer;
}

.parts-tab.active,
.parts-tab:hover {
  background: var(--ink);
}

.parts-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.parts-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.parts-detail-card h3 {
  margin-bottom: 10px;
}

.parts-detail-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--graphite);
  line-height: 1.8;
}

@keyframes pop {
  to { transform: translateY(0); }
}

.modal__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

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

@media (max-width: 980px) {
  .nav__links {
    position: fixed;
    inset: 114px 0 auto 0;
    display: none;
    background: var(--white);
    padding: 18px 22px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(16, 17, 20, 0.14);
  }

  body.nav-open .nav__links {
    display: grid;
  }

  .nav__links a {
    padding: 14px 4px;
    border-radius: 0;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    border-radius: 0;
  }

  .nav-dropdown__menu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 16px;
    min-width: 0;
    background: transparent;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-dropdown.open .nav-dropdown__menu {
    display: flex;
  }

  .nav-dropdown__menu a {
    padding: 10px 4px;
    color: var(--graphite);
    font-size: 0.9rem;
    white-space: normal;
  }

  .menu-toggle { display: block; }

  .nav__actions .btn { display: none; }

  .hero__inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: start;
  }

  .hero__inner > .reveal:not(.quote-panel) {
    display: contents;
  }

  .hero__inner .quote-panel { order: 1; }
  .hero__inner .trust-row { order: 2; }

  .quote-panel {
    transform: none;
    max-width: 100%;
  }

  .category-grid,
  .part-list,
  .feature-grid,
  .parts-detail-grid,
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band__inner,
  .section-head,
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__payments,
  .footer__legal {
    text-align: left;
    justify-content: flex-start;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-head > * {
    max-width: 100%;
  }

  .section-head .btn {
    width: auto;
  }

  .footer__callout .btn {
    width: auto;
  }

  .part-card {
    grid-template-rows: 168px 1fr;
  }

  .part-card__body {
    padding: 16px;
  }
}

@media (max-width: 680px) {
  .top-strip__inner {
    min-height: 52px;
    padding: 8px 16px;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    text-align: center;
  }

  .top-strip__inner span:last-child {
    display: inline;
  }

  .flash-taglines {
    min-width: 100%;
    min-height: 38px;
    font-size: 0.88rem;
  }

  .nav {
    min-height: 72px;
    padding-inline: 16px;
    gap: 10px;
  }

  .brand__tag { display: none; }

  .brand {
    max-width: calc(100vw - 84px);
    padding: 8px 9px;
  }

  .brand__text::after {
    left: 1px;
    right: 0;
    height: 5px;
  }

  .brand__name::before,
  .brand__name::after {
    font-size: 1.06rem;
  }

  .brand__mark {
    width: 26px;
    height: 26px;
    margin-right: 8px;
  }

  .nav__links { inset: 110px 0 auto 0; }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 24px 16px 28px;
    gap: 18px;
  }

  h1 {
    font-size: clamp(2rem, 9.5vw, 2.85rem);
    margin-top: 8px;
  }

  h2 { font-size: clamp(1.85rem, 10vw, 2.7rem); }

  .hero .lead {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 12px;
  }

  .hero-flash {
    font-size: 1rem;
    margin-top: 10px;
  }

  .hero__actions {
    margin-top: 16px;
  }

  .quote-panel {
    transform: none;
    padding: 16px;
  }

  .hero__actions .btn,
  .lookup-actions .btn,
  .section-head .btn,
  .cta-band__inner .btn,
  .vehicle-summary__top .btn,
  .modal__actions .btn {
    width: 100%;
  }

  .section-head__cta {
    margin-left: 0;
    width: 100%;
  }

  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
  }

  .trust-pill {
    padding: 10px 8px;
  }

  .trust-pill strong {
    font-size: 1.1rem;
  }

  .trust-pill span {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .lookup-result dl {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .part-list,
  .feature-grid,
  .parts-detail-grid,
  .steps,
  .reviews,
  .form-grid,
  .extra-details,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .section,
  .cta-band {
    padding-inline: 16px;
    padding-block: 48px;
  }

  .quote-panel,
  .content-card {
    padding: 18px;
  }

  .footer__payments {
    align-items: flex-start;
  }

  .footer__bottom nav {
    gap: 14px;
  }

  .payment-cards {
    gap: 10px;
  }

  .payment-card {
    width: 56px;
    height: 38px;
  }

  .section-head {
    gap: 14px;
  }

  .eyebrow-row {
    align-items: stretch;
    gap: 10px;
  }

  .eyebrow-row .btn {
    width: 100%;
  }

  .category-card,
  .category-card__body {
    min-height: 220px;
  }

  .part-card {
    grid-template-rows: 200px 1fr;
  }

  .part-card__body .btn {
    width: 100%;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .image-stack {
    min-height: 300px;
  }

  .image-stack img:first-child {
    width: 86%;
    height: 220px;
  }

  .image-stack img:last-child {
    width: 60%;
    height: 150px;
    border-width: 6px;
  }

  .sticky-call {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .sticky-call .btn {
    width: 100%;
    min-height: 52px;
    padding-inline: 18px;
    font-size: 0.92rem;
    line-height: 1.25;
    text-align: center;
  }

  .sticky-call__desktop { display: none; }
  .sticky-call__mobile { display: inline; }
}

/* Shorter phones (iPhone SE, iPhone 12 mini, smaller Androids) get one more
   pass of hero tightening so Shop Now + the Vehicle Lookup form both stay
   above the fold. Width covers narrow phones; height clamps tablets/tall
   landscapes from being affected. */
@media (max-width: 680px) and (max-height: 780px) {
  .hero__inner { padding: 18px 16px 22px; gap: 14px; }
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.55rem); margin-top: 6px; }
  .hero .lead { font-size: 0.9rem; line-height: 1.45; margin-top: 10px; }
  .hero-flash { font-size: 0.95rem; margin-top: 8px; }
  .hero__actions { margin-top: 12px; }
  .quote-panel { padding: 14px; }
}

/* Compact sticky call: collapses to a round phone icon when the footer is in view */
.sticky-call.sticky-call--compact {
  left: auto;
  right: 18px;
  bottom: 18px;
}

.sticky-call.sticky-call--compact .btn {
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  padding-inline: 0;
  border-radius: 50%;
  gap: 0;
  display: grid;
  place-items: center;
}

.sticky-call.sticky-call--compact .sticky-call__desktop,
.sticky-call.sticky-call--compact .sticky-call__mobile {
  display: none;
}

.sticky-call.sticky-call--compact .btn .icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 680px) {
  .sticky-call.sticky-call--compact {
    right: 14px;
    bottom: 14px;
  }

  .sticky-call.sticky-call--compact .btn {
    width: 56px;
    height: 56px;
    min-height: 56px;
  }
}
