:root {
  --red: #d40f18;
  --red-dark: #990b12;
  --ink: #15171c;
  --graphite: #2b3038;
  --muted: #666d78;
  --line: #dde1e8;
  --silver: #f2f4f7;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 22px 55px rgba(21, 23, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  width: min(270px, 48vw);
}

.brand img,
.site-footer img {
  width: 100%;
  object-fit: contain;
}

.main-nav,
.portal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 760;
}

.main-nav {
  justify-content: center;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--red);
}

.portal-links {
  gap: 8px;
}

.portal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  white-space: nowrap;
}

.portal-links a:first-child {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.nav-toggle,
.nav-button {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 76px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 53%, rgba(21, 23, 28, 0.05) 53%),
    repeating-linear-gradient(135deg, rgba(21, 23, 28, 0.045) 0 1px, transparent 1px 18px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: 0;
  width: 42vw;
  min-width: 370px;
  height: 74%;
  background: linear-gradient(145deg, rgba(212, 15, 24, 0.94), rgba(21, 23, 28, 0.96));
  clip-path: polygon(32% 0, 100% 0, 72% 100%, 0 100%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.15;
}

.lead {
  max-width: 720px;
  color: var(--graphite);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 650;
}

.hero-slider {
  position: relative;
  min-height: 390px;
}

.hero-message {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: hero-message 15s infinite;
}

.hero-message h1 {
  max-width: 760px;
}

.message-two {
  animation-delay: 5s;
}

.message-two h1,
.message-three h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
}

.message-three {
  animation-delay: 10s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

@keyframes hero-message {
  0%,
  28% {
    opacity: 1;
    transform: translateY(0);
  }

  33%,
  100% {
    opacity: 0;
    transform: translateY(-18px);
  }
}

.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
}

.button.primary,
.contact-form button {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

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

.button.secondary {
  color: var(--ink);
  background: var(--white);
}

.hero-visual {
  display: grid;
  gap: 12px;
}

.warehouse-card {
  min-height: 390px;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(145deg, rgba(21, 23, 28, 0.96), rgba(43, 48, 56, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.shelf span {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: #e9edf3;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
}

.parts-stage {
  position: relative;
  min-height: 210px;
  margin: 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111318;
}

.part-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  animation: part-photo-fade 24s infinite;
}

.part-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.part-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 23, 28, 0.72), rgba(21, 23, 28, 0.12) 48%, rgba(21, 23, 28, 0.72)),
    linear-gradient(180deg, transparent 0 58%, rgba(21, 23, 28, 0.78));
}

.part-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  padding: 7px 11px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-two {
  animation-delay: 4s;
}

.photo-three {
  animation-delay: 8s;
}

.photo-four {
  animation-delay: 12s;
}

.photo-five {
  animation-delay: 16s;
}

.photo-six {
  animation-delay: 20s;
}

@keyframes part-photo-fade {
  0%,
  13% {
    opacity: 1;
    transform: scale(1);
  }

  17%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-grid div {
  min-height: 106px;
  padding: 16px;
  color: var(--white);
  background: rgba(21, 23, 28, 0.94);
  border-radius: var(--radius);
}

.metric-grid strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.metric-grid span {
  color: #d8dce3;
  font-size: 13px;
  font-weight: 700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.trust-strip span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 6vw, 76px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.brand-strip-title {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-track {
  position: relative;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-row {
  display: flex;
  min-width: max-content;
  gap: 12px;
  padding-right: 12px;
  animation: brand-scroll 70s linear infinite;
}

.brand-row img {
  width: 154px;
  height: 64px;
  object-fit: contain;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 -3px 0 rgba(21, 23, 28, 0.06);
}

@keyframes brand-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 6vw, 76px);
}

.split,
.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.section p {
  color: var(--muted);
  font-size: 17px;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-list article,
.product-grid article,
.location-grid article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-list article {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  column-gap: 18px;
  padding: 22px;
}

.service-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
}

.product-band {
  background: var(--silver);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 30px;
}

.product-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-grid article,
.location-grid article {
  padding: 24px;
}

.product-mark {
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 28px;
  border: 12px solid var(--graphite);
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 10px var(--silver);
}

.product-mark.brake {
  border-right-color: var(--red);
}

.product-mark.engine {
  border-radius: 8px;
  border-color: var(--red);
  box-shadow: inset 0 0 0 9px var(--white);
}

.product-mark.electric {
  clip-path: polygon(42% 0, 100% 0, 65% 44%, 92% 44%, 34% 100%, 45% 58%, 8% 58%);
  border: 0;
  background: var(--red);
  border-radius: 0;
  box-shadow: none;
}

.product-mark.body {
  border-radius: 10px 10px 28px 28px;
  border-color: var(--graphite);
  border-top-color: var(--red);
}

.digital {
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 48%, #f2f4f7 48%, #f2f4f7 100%);
}

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

.digital-grid article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(21, 23, 28, 0.08);
}

.digital-grid article:first-child {
  color: var(--white);
  background: linear-gradient(145deg, var(--ink), #3a1114);
  border-color: transparent;
}

.digital-grid article:first-child p {
  color: #e7ebf0;
}

.digital-grid a {
  color: var(--red);
  font-weight: 900;
}

.digital-icon {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--silver);
}

.digital-icon.portal {
  background:
    linear-gradient(90deg, transparent 0 36%, rgba(255, 255, 255, 0.22) 36% 38%, transparent 38% 62%, rgba(255, 255, 255, 0.22) 62% 64%, transparent 64%),
    var(--red);
}

.digital-icon.shop {
  border: 10px solid var(--graphite);
  border-top-color: var(--red);
}

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

.location-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.location-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-grid .featured-location {
  color: var(--white);
  background: linear-gradient(145deg, var(--ink), #3a1114);
  border-color: transparent;
}

.location-grid .featured-location p {
  color: #e6e8ed;
}

.location-type {
  width: fit-content;
  padding: 6px 10px;
  color: var(--red);
  background: #fff1f2;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.location-grid a {
  color: var(--red);
  font-weight: 900;
}

.about {
  background:
    linear-gradient(90deg, var(--silver) 0 50%, var(--white) 50%),
    var(--silver);
}

.about-copy {
  padding: 26px;
  border-left: 5px solid var(--red);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(21, 23, 28, 0.08);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

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

.contact h2,
.contact .eyebrow {
  color: var(--white);
}

.contact p {
  color: #cdd2da;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  text-transform: none;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.site-footer img {
  width: 220px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    right: -34vw;
    height: 54%;
  }

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

  .location-grid {
    grid-template-columns: 1fr;
  }

  .digital-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-strip {
    grid-template-columns: 1fr;
  }

  .about {
    background: var(--silver);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 74px;
    display: flex;
    flex-wrap: wrap;
  }

  .brand {
    width: min(236px, 62vw);
  }

  .nav-button {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }

  .nav-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible;
  }

  .nav-toggle:checked ~ .main-nav {
    display: grid;
  }

  .portal-links {
    width: 100%;
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .portal-links a {
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-slider {
    min-height: 360px;
  }

  .message-two h1,
  .message-three h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .warehouse-card {
    min-height: 330px;
  }

  .parts-stage {
    min-height: 180px;
  }

  .metric-grid,
  .product-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .brand-row img {
    width: 132px;
    height: 58px;
    padding: 9px 12px;
  }

  .service-list article {
    grid-template-columns: 1fr;
  }

  .service-icon {
    margin-bottom: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
