/* ==========================================================================
   VORA — Testimonials marquee section
   ========================================================================== */

.testimonials {
  background-color: var(--bg-white);
  padding: 100px 0 120px;
  overflow: hidden;
}

.testimonials__head {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto 60px;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.testimonials__badge {
  display: inline-flex;
  align-self: flex-start;
  background-color: var(--bg-beige);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
}

.testimonials__title {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  max-width: 700px;
}

.testimonials__viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.testimonials__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: testimonials-scroll 50s linear infinite;
}

.testimonials__track:hover {
  animation-play-state: paused;
}

@keyframes testimonials-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__track {
    animation: none;
  }
}

.testimonial-card {
  flex: 0 0 auto;
  width: min(340px, 80vw);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background-color: var(--bg-beige);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.testimonial-card__quote {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-charcoal);
  text-wrap: balance;
}

.testimonial-card__divider {
  border-bottom: 1px dashed rgba(14, 14, 14, 0.25);
  width: 100%;
}

.testimonial-card__who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.testimonial-card__name {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
}

.testimonial-card__city {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- Photo-background variant card (Derrick Warner) ---------- */
.testimonial-card--photo {
  background-color: var(--color-near-black);
}

.testimonial-card--photo .testimonial-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.testimonial-card--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0) 0%, rgb(14, 14, 14) 100%);
  z-index: 1;
}

.testimonial-card--photo .testimonial-card__quote,
.testimonial-card--photo .testimonial-card__name,
.testimonial-card--photo .testimonial-card__city {
  position: relative;
  z-index: 2;
  color: var(--bg-beige);
}

.testimonial-card--photo .testimonial-card__divider {
  position: relative;
  z-index: 2;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.testimonial-card--photo .testimonial-card__who {
  position: relative;
  z-index: 2;
}

@media (max-width: 809px) {
  .testimonials__head {
    padding: 0 20px;
  }

  .testimonial-card {
    width: min(280px, 78vw);
    padding: 28px;
    min-height: 280px;
  }
}
