/* Original Qualex testimonial component, adapted to the full-width landing. */
.landing-reviews-marquee {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding-block: clamp(20px, 2vw, 32px);
  background: var(--landing-bg);
}

.landing-testimonials {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
}

.landing-testimonials-inner {
  width: var(--landing-shell-width);
  margin-inline: auto;
  padding-block: clamp(28px, 3vw, 44px);
}

.landing-testimonials-head {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.landing-testimonials-eyebrow {
  margin: 0 0 14px;
  color: #2fb36d;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-testimonials-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.landing-testimonials-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.landing-testimonials-showcase {
  --review-gap: clamp(18px, 2vw, 30px);
  --review-item-width: calc((100% - 2 * var(--review-gap)) / 3);
  min-width: 0;
  width: 100%;
  max-width: none;
  margin-top: clamp(24px, 2.5vw, 36px);
}

.landing-testimonials-grid {
  position: relative;
  display: flex;
  gap: var(--review-gap);
  align-items: stretch;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
}

.landing-testimonials-grid::before,
.landing-testimonials-grid::after {
  content: "";
  flex: 0 0 max(0px, calc((100% - var(--review-item-width)) / 2));
}

.landing-testimonials-grid.is-repositioning {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.landing-testimonials-grid.is-repositioning .landing-testimonial-card {
  transition: none;
}

.landing-testimonials-grid::-webkit-scrollbar {
  display: none;
}

.landing-testimonial-card {
  flex: 0 0 var(--review-item-width);
  min-width: 0;
  min-height: 260px;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  opacity: 0.30;
  transform: scale(0.96);
  transform-origin: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.landing-testimonial-card.is-active {
  opacity: 1;
  transform: scale(1);
}

.landing-testimonials-controls {
  flex: 0 0 auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.landing-testimonials-arrow {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.landing-testimonials-arrow--previous {
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.landing-testimonials-arrow--next {
  border-color: #2fb36d;
  background: #2fb36d;
  color: #111111;
  box-shadow: none;
}

.landing-testimonials-arrow:focus-visible {
  transform: translate(-1px, -1px);
  border-color: #2fb36d;
  background: #2fb36d;
  color: #111111;
}

@media (hover: hover) and (pointer: fine) {
.landing-testimonials-arrow:hover {
  transform: translate(-1px, -1px);
  border-color: #2fb36d;
  background: #2fb36d;
  color: #111111;
}
}

.landing-testimonials-arrow:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.landing-testimonials-arrow svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.landing-testimonial-card-head {
  min-width: 0;
  margin-top: auto;
  padding-top: 0;
  border-top: 0;
  display: block;
}

.landing-testimonial-card-head::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-bottom: 10px;
  display: block;
  background: #2fb36d;
  opacity: 1;
}

.landing-testimonial-person {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.landing-testimonial-person-copy {
  min-width: 0;
}

.landing-testimonial-person-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.landing-testimonial-person-copy p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.landing-testimonial-quote {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: clamp(18px, 1.8vw, 24px);
  font-style: normal;
  font-weight: 550;
  line-height: 1.48;
}

.landing-testimonial-quote::before {
  content: "“";
}

.landing-testimonial-quote::after {
  content: "”";
}

@media (max-width: 1120px) {
.landing-testimonials-showcase {
    --review-item-width: calc((100% - var(--review-gap)) / 2);
  }
}

@media (max-width: 620px) {
.landing-testimonials-head {
    padding: 0;
    margin: 0;
    text-align: center;
  }

.landing-testimonials-head h2 {
    width: 100%;
    font-size: clamp(32px, 8vw, 42px);
    text-align: center;
  }

.landing-testimonials-eyebrow {
    margin-bottom: 13px;
    font-size: 14px;
    text-align: center;
  }

.landing-testimonials-heading-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

.landing-testimonials-controls {
    width: 100%;
    margin: 0;
    justify-content: center;
  }

.landing-testimonials-arrow {
    width: 44px;
    height: 44px;
  }

.landing-testimonial-card {
    min-height: 240px;
    padding: 0;
    gap: 18px;
  }

.landing-testimonials-showcase {
    --review-item-width: 82%;
  }

.landing-testimonial-quote {
    padding: 0;
    font-size: 18px;
  }

.landing-testimonial-quote::before {
    position: static;
    font-size: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-testimonials-grid { scroll-behavior: auto; }
  .landing-testimonial-card,
  .landing-testimonials-arrow { transition: none; }
}
