@import url("./main.css");

/* Hero */
.hero {
  min-height: 60vh;
  padding-bottom: 4rem;
  text-align: center;
  display: grid;
  place-items: center;
}

.hero__text > *:not(:last-child) {
  margin-bottom: 0.5rem;
}

.hero__text p {
  margin-inline: auto;
  max-width: 48ch;
  padding-bottom: 0.75rem;
}

.hero-banner .flex {
  --gap: 0;
}

.banner-img {
  width: 50%;
}

@media (max-width: 35em) {
  .hero {
    min-height: 50vh;
  }

  .banner-img {
    width: 100%;
  }

  .banner-img:nth-of-type(1) {
    display: none;
  }
}

/* About Us */
.about-us {
  padding-block: 4rem;
}

.about-us {
  text-align: center;
}

.about-us .wrapper > * + * {
  margin-top: 2.5rem;
}

.about-us h3 {
  margin-top: 4px;
}

.about-us__card {
  text-align: left;
  border-radius: 1rem;
  padding: 2rem;
  background-color: white;
  box-shadow: 2px 4px 25px rgba(0, 0, 0, 0.1);
}

.about-us__card h3 {
  font-size: 1.5rem;
  font-family: var(--font-base);
}

.about-us__card > *:not(:last-child) {
  margin-bottom: 0.5rem;
}

@media (max-width: 35em) {
  h2 {
    font-size: 1.5rem;
  }

  .about-us .flex {
    flex-wrap: wrap;
  }

  .about-us__card h3 {
    font-size: 1.25rem;
  }
}

/* Testimony */
.testimony {
  margin-block: 2rem 4rem;
}

.testimony__heading {
  padding-block: 4rem;
  text-align: center;
  color: white;
  background-color: var(--clr-accent);
}

.testimony__cards {
  position: relative;
  top: -2rem;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.testimony__card {
  padding: 2rem;
  border-radius: 1rem;
  background-color: white;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.15);

  display: grid;
  align-items: center;
}

.testimony__card p {
  font-size: 0.875rem;
}

.testimony__card blockquote > p {
  font-style: italic;
}

.testimony__card > * + *,
.testimony__card blockquote > * + * {
  margin-top: 1rem;
}

.testimony__card-rating img {
  width: 25px;
}

.testimony__card-person {
  --gap: 0.5rem;
}

.testimony__card-person img {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 50em) {
  .testimony__cards {
    grid-template-columns: 1fr;
  }

  .testimony__card-rating img {
    width: 20px;
  }
}

/* Benefits Section */
.benefits {
  padding-block: 4rem;
  text-align: center;
  background-color: hsl(204, 63%, 97%);
}

.benefits h2 {
  margin-bottom: 4rem;
}

.benefits__cards {
  text-align: left;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.benefits__card > * + * {
  margin-top: 1rem;
}

.benefits__card h3 {
  text-transform: capitalize;
  font-family: var(--ff-base);
}

.benefits__card {
  border-radius: 1rem;
  padding: 2rem;
  background-color: white;
  box-shadow: 2px 4px 25px rgba(0, 0, 0, 0.1);

  display: grid;
  align-items: start;
}

.benefits__card[data-state="highlighed"] {
  color: white;
  background-color: var(--clr-accent);
}

.benefits__card-icon {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: hsl(202, 33%, 95%);

  display: grid;
  place-items: center;
}

.benefits__card[data-state="highlighed"] .benefits__card-icon {
  background-color: white;
}

.benefits__card-icon svg {
  width: 1.5rem;
}

@media (max-width: 50em) {
  .benefits__cards {
    grid-template-columns: 1fr;
  }

  .benefits h2 {
    margin-bottom: 2rem;
  }
}
