@font-face {
  font-family: "HeadingNow";
  src: url("fonts/HeadingNow-82Light.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "HeadingNow";
  src: url("fonts/HeadingNow-83Book.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "HeadingNow";
  src: url("fonts/HeadingNow-84Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "HeadingNow";
  src: url("fonts/HeadingNow-85Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "HeadingNow";
  src: url("fonts/ResistSansDisplay-BlackOblique.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  font-weight: 300;
  &:hover {
    text-underline-offset: 0.25rem;
  }
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "HeadingNow", sans-serif;
  font-weight: 400;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  white-space: nowrap;

  ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 0 3rem;

    li {
      a {
        color: black;
        font-weight: 300;
      }
    }
  }
}

.uppercase {
  text-transform: uppercase;
}

.logo {
  width: 200px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 2.5/1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.hero-content {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  height: 100%;
  justify-content: space-between;
  background: linear-gradient(
    to bottom,
    transparent -50px,
    rgba(0, 0, 0, 0.45)
  );

  padding: 3rem;

  h1 {
    color: white;
    font-weight: 300;
    font-size: 3rem;
  }

  ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem 0;
  }
}

.about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;

  h2 {
    font-size: 1.25rem;
    font-weight: 400;
  }

  p {
    max-width: 60ch;
    font-weight: 300;
  }
}

.partners {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3rem 0;
  align-items: center;

  p {
    color: #aaaaaa;
    text-align: center;
    width: 100%;
    max-width: 60ch;
  }
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 2rem 3rem;
  color: gray;
  gap: 3rem;
  background-color: #efefef;

  img {
    width: 100%;
  }
}

.partners-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;

  img {
    max-height: 124px;
    width: 100%;
    object-fit: cover;
    image-rendering: auto;
  }
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  color: white;
  gap: 0.25rem;
  padding: 2rem 0;
}

.visual-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-end;
  aspect-ratio: 3/5;
  max-width: 100%;
  background-size: cover;
  overflow: hidden;
  position: relative;
  padding: 1rem;
  background: linear-gradient(to bottom, transparent 240px, black);

  p {
    font-size: 0.8rem;
  }

  img {
    position: absolute;
    z-index: -10;
    object-fit: cover;
    height: 100%;
  }

  &.all-season {
    img {
      top: 0;
      left: 0;
    }
  }

  &.summer {
    img {
      -webkit-transform: scaleX(-1);
      transform: scaleX(-1);
      top: 0;
      left: 0;
    }
  }

  &.winter {
    img {
      -webkit-transform: scaleX(-1);
      transform: scaleX(-1);
      top: 0;
      left: -100px;
    }
  }

  &.off-road {
    img {
      top: 0;
      left: -148px;
    }
  }
}

.tires {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 3rem;

  h3 {
    font-weight: 400;
  }

  p {
    padding-right: 2rem;
    font-weight: 200;
  }
}

.vehicles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3rem;
}

.vehicles-img {
  display: flex;
  justify-content: flex-end;

  img {
    width: 100%;
    object-fit: cover;
  }
}

.vehicles-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  background-color: #efefef;
  padding: 4rem;
  align-items: self-start;
  div {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    h2 {
      font-weight: 500;
      font-size: 2.5rem;
    }

    p {
      font-weight: 300;
    }
  }
}

.parts {
  display: grid;
  grid-template-columns: 2fr 3fr;
  padding: 3rem;
}

.parts-img {
  display: flex;
  justify-content: flex-end;

  img {
    width: 100%;
    object-fit: cover;
  }
}

.parts-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 4rem;
  align-items: self-start;

  div {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    h2 {
      font-weight: 500;
      font-size: 2.5rem;
    }

    p {
      font-weight: 300;
    }
  }
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: black;

  img {
    padding: 2rem;
  }
}

.footer-grid {
  padding: 3rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  border-top: 1px solid white;
  color: white;
  padding: 2rem 3rem;
  gap: 6rem;
  box-sizing: border-box;

  a {
    color: lightgray;
    font-weight: 200;
    font-size: 0.8;
    text-decoration: unset;

    &:hover {
      text-decoration: underline;
    }
  }

  span {
    width: 100%;
    font-weight: 400;
  }
}

.footer-col {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.footer-inner-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer-inner-row {
  display: flex;
  flex-direction: row;
}

.text-right {
  text-align: right;
}

.year {
  padding-top: 2rem;
  font-weight: 200 !important;
  color: lightgray;
}

.black-logo {
  -webkit-filter: grayscale(1) brightness(0) saturate(100%);
  filter: grayscale(1) brightness(0) saturate(100%);
}

.white-logo {
  -webkit-filter: grayscale(1) brightness(0) saturate(100%);
  filter: grayscale(1) brightness(0) saturate(100%) invert(1);
}

.button-outline {
  border: 1px solid white;
  border-radius: 48px;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: unset;
  white-space: nowrap;

  &:hover {
    background-color: white;
    color: black;
  }
}

.button-outline-dark {
  border: 1px solid black;
  border-radius: 48px;
  padding: 0.75rem 1rem;
  color: black;
  white-space: nowrap;
  text-decoration: unset;
  white-space: nowrap;

  &:hover {
    background-color: black;
    color: white;
  }
}

.tire-shop {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem;

  h2 {
    font-size: 1.5rem;
    font-weight: 400;
  }
}

.tire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.tire-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  object-fit: cover;
  text-align: center;
  overflow: hidden;
  border: 1px solid lightgray;
  border-radius: 1rem;
  padding: 1rem 0;

  span {
    padding: 0 2rem;
  }
}

.tire-img {
  object-fit: cover;
  width: 100%;
  box-sizing: border-box;
}

.tire-logo {
  max-height: 52px;
  object-fit: cover;
  box-sizing: border-box;
  padding: 0 30%;
  width: 100%;
}

.p1 {
  padding: 1rem;
}

.p15 {
  padding: 1.5rem;
}

.p2 {
  padding: 2rem;
}

.part-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.part-card {
  display: flex;
  aspect-ratio: 1/1;
  flex-direction: column;
  box-sizing: border-box;
  justify-content: space-between;
  gap: 1rem;
  object-fit: cover;
  text-align: center;
  overflow: hidden;
  border: 1px solid black;
  border-radius: 3rem;
  padding: 2rem;
}

.part-img {
  aspect-ratio: 3/2;
  object-fit: contain;
  width: 100%;
  box-sizing: border-box;
}

.vehicle-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 3rem;
  padding-bottom: 4rem;

  h2 {
    font-weight: 400;
    font-size: 1.5rem;
  }

  p {
    font-weight: 300;
    max-width: 60ch;
    text-align: center;
  }
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem;
  width: 100%;
  box-sizing: border-box;
  background-color: #efefef;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  justify-content: space-between;
  gap: 2rem;
  object-fit: cover;
  text-align: center;
  overflow: hidden;
  padding: 2rem;

  span {
    color: gray;
    font-weight: 300;
  }
}

.vehicle-img {
  aspect-ratio: 3/2;
  object-fit: contain;
  width: 100%;
  box-sizing: border-box;
}

.bold {
  font-weight: 500;
}

@media (max-width: 960px) {
  .hide-md {
    display: none;
  }

  nav {
    padding-right: 1rem;
  }

  .hero-content {
    padding: 2rem;

    h1 {
      font-size: 2rem;
    }
  }

  .partners-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1rem 2rem;
    gap: 2rem;

    img {
      width: 100%;
    }
  }

  .visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .part-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }

  .tire-shop {
    padding: 2rem;
  }

  .tire-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;

    span {
      font-size: 0.8rem;
    }
  }

  .vehicle-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }

  .vehicle-card {
    padding: 1rem;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 11px;
  }

  .logo {
    width: 124px;
  }

  nav {
    ul {
      gap: 1rem;
      padding: 0 1.5rem;
    }
  }

  .hero-content {
    ul {
      gap: 0.5rem;
    }
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .parts-content {
    padding: 0;
    padding-right: 4rem;
  }

  .footer-grid {
    flex-wrap: wrap;
  }

  .tire-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .part-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
  }

  .vehicle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vehicle-card {
    padding: 0rem;
    gap: 1rem;
  }

  .hide-sm {
    display: none;
  }

  .button-outline {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .button-outline-dark {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .vehicles-content {
    padding: 2rem;
  }

  .tire-logo {
    max-height: 32px;
  }
}
