@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  /* Layout Breakpoints */
  --breakpoint-mobile: 375px;
  --breakpoint-desktop: 1440px;

  /* Primary Colors */
  --clr-purple-50: hsl(260, 100%, 95%);
  --clr-purple-300: hsl(264, 82%, 80%);
  --clr-purple-500: hsl(263, 55%, 52%);

  /* Neutral Colors */
  --clr-white: hsl(0, 0%, 100%);
  --clr-grey-100: hsl(214, 17%, 92%);
  --clr-grey-200: hsl(0, 0%, 81%);
  --clr-grey-400: hsl(224, 10%, 45%);
  --clr-grey-500: hsl(217, 19%, 35%);
  --clr-dark-blue: hsl(219, 29%, 14%);
  --clr-black: hsl(0, 0%, 7%);

  /* Typography */
  --font-family-base: "Barlow Semi Condensed", sans-serif;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-size-base: 13px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--clr-grey-100);
  font-family: var(--font-family-base);
}

.testimonials__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 30.5rem;
  grid-template-rows: repeat(5, auto);
  justify-content: center;
}

@media (min-width: 1024px) {
  .testimonials__grid {
    display: grid;
    grid-template-columns: repeat(4, 26rem);
    grid-template-rows: repeat(2, 29rem);
  }
}

.testimonial {
  border-radius: 5px;
  box-shadow: 30px 40px 20px rgba(0, 0, 0, 0.1);
  padding: 3rem;
}

.testimonial__header {
  display: flex;
  gap: 1.5rem;
}

.testimonial__avatar {
  align-self: center;
  border-radius: 50px;
}

.testimonial__avatar--primary {
  border: 2px solid var(--clr-purple-500);
}

.testimonial__avatar--secondary {
  border: 2px solid var(--clr-purple-300);
}

.testimonial__info {
  line-height: 0.5;
}

.testimonial__title {
  font-size: 2rem;
  margin: 1.5rem 0;
}

.testimonial__text {
  font-size: 1.4rem;
}

.testimonial--primary {
  background-color: var(--clr-purple-500);
  color: var(--clr-purple-50);
}

.testimonial--secondary {
  background: var(--clr-grey-500);
  color: var(--clr-white);
}

.testimonial--white {
  background: var(--clr-white);
  color: var(--clr-grey-500);
}

.testimonial--dark {
  background: var(--clr-dark-blue);
  color: var(--clr-grey-100);
}

.testimonial--light {
  background: var(--clr-white);
  color: var(--clr-grey-500);
}

@media (min-width: 1024px) {
  .testimonial--primary {
    background-image: url(images/bg-pattern-quotation.svg);
    background-position: 38.5rem top;
    background-repeat: no-repeat;
    background-size: initial;
    grid-column: 1/3;
  }

  .testimonial--white {
    grid-column: 1/2;
  }

  .testimonial--dark {
    grid-column: 2/4;
  }

  .testimonial--light {
    grid-column: 4/5;
    grid-row: 1/3;
  }
}
