/* reset */
/*
  Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
  Remove default margin
*/
* {
  margin: 0;
}

/*
  Typographic tweaks!
  Add accessible line-height
  Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
  Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
  Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3 {
  line-height: 1;
}

:root {
  /* Primary */
  --bright-orange: hsl(31, 77%, 52%);
  --dark-cyan: hsl(184, 100%, 22%);
  --very-dark-cyan: hsl(179, 100%, 13%);

  /* Neutral */
  --transparent-white: hsla(0, 0%, 100%, 0.75);
  --very-light-gray: hsl(0, 0%, 95%);
}

body {
  font-family: "Lexend Deca", sans-serif;
  font-size: 15px;
  color: var(--transparent-white);
  display: grid;
  place-content: center;
  min-height: 100vh;
  line-height: 1.5rem;
  background-color: var(--very-light-gray);
}

.card-container {
  min-width: 20.313rem;
  margin: 1.5rem;
  display: grid;
  place-content: center;
  text-align: start;
  border-radius: 0.5rem;
  overflow: hidden;
}

.wraper {
  display: grid;
  gap: 2.5rem;
  margin: 3.125rem 3.125rem 1.75rem 3.125rem;
}

.card-sedan {
  background-color: var(--bright-orange);
}

.card-suv {
  background-color: var(--dark-cyan);
}

.card-luxury {
  background-color: var(--very-dark-cyan);
}

.card__title {
  font-size: 2.5rem;
  text-transform: uppercase;
  font-family: "Big Shoulders Display", cursive;
  color: var(--very-light-gray);
}

.button {
  margin-inline: 3.125rem;
  border: 0;
  border-radius: 50px;
  padding: 1rem 2rem;
  margin-bottom: 3rem;
}

.card-sedan .button {
  color: var(--bright-orange);
}

.card-sedan .button:hover,
.card-sedan .button:focus-visible {
  background-color: var(--bright-orange);
  border: 2px solid var(--very-light-gray);
  color: var(--very-light-gray);
  cursor: pointer;
}

.card-suv .button {
  color: var(--dark-cyan);
}

.card-suv .button:hover,
.card-suv .button:focus-visible {
  background-color: var(--dark-cyan);
  border: 2px solid var(--very-light-gray);
  color: var(--very-light-gray);
  cursor: pointer;
}

.card-luxury .button {
  color: var(--very-dark-cyan);
}

.card-luxury .button:hover,
.card-luxury .button:focus-visible {
  background-color: var(--very-dark-cyan);
  border: 2px solid var(--very-light-gray);
  color: var(--very-light-gray);
  cursor: pointer;
}

.footer {
  color: var(--very-dark-cyan);
  text-align: center;
}

@media (min-width: 990px) {
  .card-container {
    max-width: 57.5rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .wraper {
    margin: 2.81rem 2.81rem 5.375rem 2.81rem;
  }

  .button {
    margin-bottom: 2.875rem;
  }
}
