/* ========================
        TESTIMONIALS
======================== */

.testimonial-main-content {
  display: flex;
  width: 100%;

  flex-direction: column;
  justify-content: center;
  margin-bottom: 80px;
}

.testimonial-main-content h2 {
  font-family: var(--heading-font-family);
  font-size: var(--text-3xl-40px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 45px;
  text-align: center;
}

.testimonial-stack-content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  padding: 40px;
  /*padding-top: 20px;*/

  border: 2px solid #a0a8b40a;
  border-radius: 20px;
  background: var(--bg);
}

.testimonial-numbers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.testimonial-number {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: var(--heading-font-family);
  font-size: var(--text-base-16px);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    color 0.25s,
    transform 0.25s;
  line-height: 1.3;
}

.testimonial-number:hover {
  color: var(--body);
}

.testimonial-number.is-active {
  color: var(--heading);
  transform: scale(1.1);
  text-decoration: underline solid var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.testimonial-number:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.testimonial-stack {
  position: relative;
  width: 248px;
  height: 200px;
  flex-shrink: 0;
}

.testimonial-stack-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  will-change: transform, opacity;
}

.testimonial-stack-arrows {
  position: absolute;
  left: 105px;
  bottom: -15px;
  display: flex;
  gap: 15px;
  z-index: 10;
}

.stack-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--body);
  background: var(--primary);
  color: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.stack-arrow:hover {
  background: var(--primary-hover);
  border-color: var(--body);
  color: var(--heading);
}

.stack-arrow:active {
  transform: scale(0.94);
}

.stack-arrow:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.testimonial-texts {
  width: 66.6%;
  text-align: left;
}

.testimonial-texts h3 {
  font-family: var(--heading-font-family);
  font-size: var(--text-xl-24px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: var(--body);
}

.testimonial-texts h4 {
  font-family: var(--heading-font-family);
  font-size: var(--text-md-18px);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--muted);
}

.testimonial-texts p {
  font-family: var(--text-font-family);
  font-size: var(--text-base-16px);
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--muted);
}

/* ========================
        WIDESCREENS
======================== */

@media (min-width: 1440px) {
  .testimonial-main-content {
    max-width: 1440px;
  }
}

/* ========================
        TABLET
======================== */

@media (max-width: 900px) {
  .testimonial-main-content {
    margin-bottom: 60px;
  }

  .testimonial-stack-content {
    flex-direction: column;
    gap: 20px;
  }

  .testimonial-numbers {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .testimonial-stack {
    width: 208px;
    height: 168px;
  }

  .testimonial-stack-image {
    width: 168px;
    height: 168px;
  }

  .testimonial-stack-arrows {
    left: 80px;
  }

  .testimonial-main-content h2 {
    font-size: var(--text-xl-24px);
    line-height: 1.25;
    margin-bottom: 25px;
  }

  .testimonial-texts {
    width: 100%;
    text-align: center;
    align-self: center;
  }

  .testimonial-texts h3 {
    font-size: var(--text-md-18px);
    letter-spacing: 1.3px;
    line-height: 1.25;
    padding-top: 25px;
    margin-bottom: 10px;
  }

  .testimonial-texts h4 {
    font-size: var(--text-base-16px);
    letter-spacing: -0.25;
    line-height: 1.25;
  }
}

/* ========================
        MOBILE
======================== */
@media (max-width: 720px) {
  .testimonial-stack {
    width: 190px;
    height: 150px;
    margin: 0 auto;
  }

  .testimonial-stack-image {
    width: 150px;
    height: 150px;
    margin-right: 20px;
  }

  .testimonial-stack-arrows {
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
  }

  .stack-arrow {
    width: 30px;
    height: 30px;
  }

  .testimonial-texts p {
    font-size: 0.9375rem;
  }
}

/* ========================
   REDUCED MOVEMENT
======================== */
@media (prefers-reduced-motion: reduce) {
  .testimonial-stack-image,
  .stack-arrow {
    transition: none;
  }
}
