/* =========================
   TESTIMONIALS SECTION
========================= */

.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 82px;
  background: #fbfbfa;
  color: #000;
}

.testimonials-container {
  width: min(100% - 96px, 1440px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.testimonials-bg-word {
  position: absolute;
  top: -42px;
  right: 0;
  font-size: clamp(130px, 18vw, 310px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -8px;
  color: rgba(0, 0, 0, 0.035);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 330px;
  width: 150px;
  height: 180px;
  opacity: 0.18;
  background-image: radial-gradient(#5f6368 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  pointer-events: none;
}

.testimonials-header {
  max-width: 880px;
  margin-bottom: 42px;
}

.testimonials-eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  color: #e53935;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.testimonials-eyebrow::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: #e53935;
  margin-top: 18px;
}

.testimonials-header h2 {
  margin: 0 0 22px;
  max-width: 980px;
  color: #000;
  font-size: clamp(46px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -2.3px;
  font-weight: 900;
}

.testimonials-header p {
  margin: 0;
  max-width: 720px;
  color: #333;
  font-size: 18px;
  line-height: 1.55;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.testimonial-card {
  position: relative;
  min-height: 350px;
  padding: 40px 38px 32px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 57, 53, 0.18);
  border-radius: 9px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 34%;
  height: 4px;
  background: #e53935;
  border-radius: 9px 0 0 0;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.12);
}

.quote-mark {
  color: #e53935;
  font-size: 90px;
  line-height: 0.75;
  font-weight: 900;
  margin-bottom: 18px;
  font-family: Georgia, serif;
}

.testimonial-quote {
  margin: 0;
  max-width: 420px;
  color: #202020;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
}

.testimonial-line {
  width: 56px;
  height: 3px;
  margin: 40px 0 24px;
  background: #e53935;
}

.testimonial-person h3 {
  margin: 0 0 6px;
  color: #111;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.testimonial-person p {
  margin: 0;
  color: #5f6368;
  font-size: 16px;
  line-height: 1.3;
}

.testimonial-badge {
  margin-top: 26px;
  width: fit-content;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
}

.badge-icon {
  width: 28px;
  height: 28px;
}

.badge-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.testimonial-red::before,
.testimonial-red .testimonial-line {
  background: #e53935;
}

.testimonial-red .testimonial-badge {
  color: #e53935;
  background: rgba(229, 57, 53, 0.09);
  border: 1px solid rgba(229, 57, 53, 0.18);
}

.testimonial-green::before {
  background: #2e7d32;
}

.testimonial-green .testimonial-badge {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.09);
  border: 1px solid rgba(46, 125, 50, 0.18);
}

.testimonial-blue::before {
  background: #004aad;
}

.testimonial-blue .testimonial-badge {
  color: #004aad;
  background: rgba(0, 74, 173, 0.09);
  border: 1px solid rgba(0, 74, 173, 0.18);
}

.testimonials-trust-strip {
  margin-top: 36px;
  min-height: 88px;
  padding: 16px 38px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
}

.trust-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #111;
}

.trust-strip-item span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #e53935;
}

.trust-strip-item svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trust-strip-item strong {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
}

.trust-strip-divider {
  width: 1px;
  height: 42px;
  background: rgba(0, 0, 0, 0.18);
}

.testimonial-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.testimonial-hidden.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonials-dots {
  display: none;
}

@media (max-width: 1100px) {
  .testimonials-container {
    width: min(100% - 48px, 900px);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .testimonial-card {
    min-height: auto;
  }

  .testimonials-trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .trust-strip-divider {
    display: none;
  }

  .trust-strip-item {
    justify-content: flex-start;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
  }
}

@media (max-width: 760px) {
  .testimonials-section {
    padding: 78px 0 68px;
  }

  .testimonials-container {
    width: min(100% - 34px, 520px);
  }

  .testimonials-bg-word {
    top: -14px;
    right: auto;
    left: 16px;
    font-size: 88px;
    letter-spacing: -3px;
  }

  .testimonials-section::before {
    display: none;
  }

  .testimonials-section .testimonial-hidden {
    opacity: 1;
    transform: none;
  }

  .testimonials-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 18px;
  }

  .testimonials-header h2 {
    font-size: 39px;
    line-height: 1.07;
    letter-spacing: -1.2px;
  }

  .testimonials-header p {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .testimonials-grid {
    position: relative;
    gap: 20px;
    min-height: 560px;
    overflow: hidden;
  }

  .testimonial-card {
    position: absolute;
    inset: 0;
    display: block;
    padding: 30px 24px 24px;
    opacity: 0;
    transform: translateX(28px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .testimonial-card.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
  }

  .testimonial-card:first-child {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
  }

  .quote-mark {
    font-size: 74px;
  }

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

  .testimonial-line {
    margin: 24px 0 18px;
  }

  .testimonial-person h3 {
    font-size: 17px;
  }

  .testimonial-person p {
    font-size: 14px;
  }

  .testimonials-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
  }

  .testimonial-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.22);
    box-shadow: none;
  }

  .testimonial-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: #e53935;
  }

  .testimonials-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .trust-strip-item {
    min-height: 60px;
    justify-content: flex-start;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
  }

  .trust-strip-item span {
    width: 36px;
    height: 36px;
  }

  .trust-strip-item strong {
    font-size: 16px;
  }
}
