:root {
  --color-white: hsl(0, 0%, 100%);
  --color-grey-100: hsl(214, 17%, 92%);
  --color-grey-200: hsl(0, 0%, 81%);
  --color-grey-400: hsl(224, 10%, 45%);
  --color-grey-500: hsl(217, 19%, 35%);
  --color-dark-blue: hsl(219, 29%, 14%);
  --color-black: hsl(0, 0%, 7%);
  --color-purple-50: hsl(260, 100%, 95%);
  --color-purple-300: hsl(264, 82%, 80%);
  --color-purple-500: hsl(263, 55%, 52%);
  --font-family-base: "Barlow Semi Condensed", sans-serif;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-family-base);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-grey-100);
  position: relative;
}

.container {
  max-width: 66.5625rem;
  display: grid;
  grid-template-areas:
    "box-1 box-1 box-2 box-5"
    "box-3 box-4 box-4 box-5";
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 17.5rem 17.5rem;
  gap: 1.25rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  border: 0.125rem solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
}

.img-quotation{
  position: absolute;
  top: 0;
  right: 3.5rem;
  z-index: 0;
}
.testimonial-title {
  position: relative;
  z-index: 1;
}
.testimonial-name {
  font-weight: var(--font-weight-semibold);
}

.testimonial-role {
  font-size: 0.85rem;
}

.testimonial-title {
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
}

.testimonial-copy {
  font-size: 0.8125rem;
  color: currentColor;
  line-height: 1.4;
  }

.box {
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 1.25rem 2.5rem 1.25rem rgba(85, 99, 132, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.box-1 {
  grid-area: box-1;
  background-color: var(--color-purple-500);
  color: var(--color-white);
  position: relative;
}

.box-2 {
  grid-area: box-2;
  background-color: var(--color-grey-500);
  color: var(--color-white);
}

.box-3,
.box-5 {
  background-color: var(--color-white);
  color: var(--color-grey-500);
}

.box-3 {
  grid-area: box-3;
}

.box-4 {
  grid-area: box-4;
  background-color: var(--color-dark-blue);
  color: var(--color-grey-200);
}

.box-5 {
  grid-area: box-5;
}

footer {
  position: absolute;
  bottom: 2rem;
  margin: 2rem 0 1rem;
  text-align: center;
  color: var(--color-grey-500);
}

@media (max-width: 66.0625rem) {
  body{
    padding: 4rem 2rem;
  }
  .container {
    grid-template-areas:
      "box-1 box-1"
      "box-2 box-3"
      "box-4 box-5";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  footer{
    position: absolute;
    bottom: 0;
  }
}

@media (max-width: 40rem) {
  body {
    align-items: center;
    padding: 4rem 2rem;
  }

  .container {
    width: 100%;
    grid-template-areas:
      "box-1"
      "box-2"
      "box-3"
      "box-4"
      "box-5";
    grid-template-columns: 1fr;
  }
}
