* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-font: "Lexend Deca", sans-serif;
  --secondary-font: "Big Shoulders Display", sans-serif;
  --heading-color: #F2F2F2;
  --font-color: #FFF;
  --sedans-background: #E28625;
  --suv-background: #006971;
  --luxury-background: #004140;
  --heading-font-size: 2.5rem;
  --button-font-size: 0.9rem;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--primary-font);
  margin: 0 auto;
  max-width: 920px;
  background-color: var(--heading-color);

  h3 {
    font-family: var(--secondary-font);
    color: var(--heading-color);
  }

  p {
    font-size: 0.95rem;
    font-family: var(--primary-font);
    font-optical-sizing: auto;
    font-weight: 300;
    color: var(--font-color);
    padding: 1rem 0;
    line-height: 1.5;
  }
}

/* All */
.suvs,
.sedans,
.luxury {
  padding: 3rem;

  h3 {
    font-size: var(--heading-font-size);
    text-transform: uppercase;
    padding: 2rem 0 0.5rem 0;
  }
}

/* Sedans */
.sedans {
  background-color: var(--sedans-background);
  border-radius: 7px 0 0 7px;

  button {
    color: var(--sedans-background);
  }
}

/* SUV */
.suvs {
  background-color: var(--suv-background);

  button {
    color: var(--suv-background);
  }
}

/* Luxury */
.luxury {
  background-color: var(--luxury-background);
  border-radius: 0 7px 7px 0;

  button {
    color: var(--luxury-background);
  }
}

/* Container */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-rows: repeat(4, auto);
  min-height: 31.25rem;
  margin-top: 10.688rem;

  button {
    font-size: var(--button-font-size);
    font-family: var(--primary-font);
    font-weight: 500;
    background: var(--font-color);
    border: none;
    padding: 0.9rem;
    margin-top: 5rem;
    border-radius: 25px;
    width: 65%;

    &:hover {
      cursor: pointer;
      background: none;
      color: var(--font-color);
      border: 1px solid var(--font-color);
    }
  }
}

/* Tablets Responsiveness (700px to 900px) */
@media (max-width: 900px) and (min-width: 700px) {
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 0 1rem;
    justify-items: center;

    button {
      padding: 0.2rem 0.6rem;
      border-radius: 25px;
    }
  }

  .cards-container>.sedans,
  .cards-container>.suvs,
  .cards-container>.luxury {
    max-width: 20rem;
    padding: 2rem 1rem;
  }

  h3 {
    font-size: 2.2rem;
  }

  p {
    font-size: 0.95rem;
  }
}

/* Mobile Responsiveness */
@media (max-width: 699px) {
  .cards-container {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 2rem;

    h3 {
      font-size: 2rem;
    }
  }

  .cards-container>.sedans,
  .cards-container>.suvs,
  .cards-container>.luxury {
    width: 20.5rem;
    padding: 2.5rem 2rem;
  }

  .sedans {
    border-radius: 10px 10px 0 0;
  }

  .suvs {
    border-radius: 0;
  }

  .luxury {
    border-radius: 0 0 10px 10px;
  }

  p {
    font-size: 0.9rem;
  }

  body {
    overflow-x: hidden;
  }
}