/* "What our clients say" (Figma: home / testimonials, 1100 x 682). */

.fl-testimonials {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 56px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 40px;
  font-family: var(--fl-font-sans);
}

@media (min-width: 1220px) {
  .fl-testimonials.fl-section-sep {
    /* Figma Rect 22 behind testimonials (7184:15041): pad 61 / 99. */
    --fl-sep-pad-top: 61px;
    --fl-sep-pad-bottom: 99px;
  }
}

.fl-testimonials__title {
  height: 62px;
  margin: 0;
  color: var(--fl-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 61.2px;
  text-align: center;
}

.fl-testimonials__script {
  color: var(--fl-green);
  font-family: var(--fl-font-script);
  font-weight: 700;
}

.fl-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fl-testimonial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  height: 564px;
  padding: 24px;
  border: 2px solid var(--fl-ink);
  border-radius: 6px;
  background: #fbfcfd;
  box-shadow: 4px 4px 0 0 var(--fl-ink);
}

.fl-testimonial__quote-mark {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  object-fit: contain;
  object-position: left center;
}

.fl-testimonial__quote {
  align-self: stretch;
  margin: 0;
  color: var(--fl-ink);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 29.25px;
}

.fl-testimonial__byline {
  align-self: stretch;
  margin-top: auto;
}

.fl-testimonial__divider {
  width: 100%;
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: linear-gradient(90deg, #828690 0%, rgba(130, 134, 144, 0) 100%);
}

.fl-testimonial__name {
  margin: 0;
  color: var(--fl-ink);
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
}

.fl-testimonial__role {
  margin: 4px 0 0;
  color: var(--fl-text-muted);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 20px;
}

.fl-testimonial__logo {
  display: block;
  width: auto;
  height: 36px;
  margin-top: 4px;
  object-fit: contain;
  object-position: left center;
}

.fl-testimonial__logo--zolve {
  width: 86px;
}

.fl-testimonial__logo--lemonade {
  width: 99px;
  height: 36px;
}

.fl-testimonial__logo--chubb {
  width: 147px;
  height: 36px;
}

.fl-testimonial__logo--faye {
  width: 53px;
  height: 36px;
}

/* Entrance — the heading rises first, then each card lifts in as one piece:
   quote, byline and logo all ride along, with no motion of their own. */
.fl-testimonials--armed .fl-testimonials__title,
.fl-testimonials--armed .fl-testimonial {
  opacity: 0;
}

.fl-testimonials--play .fl-testimonials__title,
.fl-testimonials--play .fl-testimonial {
  animation: fl-testimonial-rise 2000ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fl-testimonials--play .fl-testimonial:nth-child(1) {
  animation-delay: 80ms;
}

.fl-testimonials--play .fl-testimonial:nth-child(2) {
  animation-delay: 160ms;
}

.fl-testimonials--play .fl-testimonial:nth-child(3) {
  animation-delay: 240ms;
}

.fl-testimonials--play .fl-testimonial:nth-child(4) {
  animation-delay: 320ms;
}

@keyframes fl-testimonial-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-testimonials--armed .fl-testimonials__title,
  .fl-testimonials--armed .fl-testimonial,
  .fl-testimonials--play .fl-testimonials__title,
  .fl-testimonials--play .fl-testimonial {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 1023px) {
  .fl-testimonials__title {
    font-size: 44px;
    line-height: 48px;
  }

  .fl-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .fl-testimonials.fl-section-sep .fl-testimonials__grid {
    grid-template-columns: minmax(0, 1fr);
    width: var(--fl-sep-card-width, min(312px, 84%));
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .fl-testimonials {
    gap: 28px;
    padding: 0;
  }

  .fl-testimonials__title {
    height: auto;
    font-size: 40px;
    line-height: 44px;
  }

  .fl-testimonials__grid {
    grid-template-columns: minmax(0, 1fr);
    width: var(--fl-sep-card-width, min(312px, 84%));
    margin-inline: auto;
  }

  .fl-testimonial {
    height: auto;
  }

  .fl-testimonial__byline {
    margin-top: 20px;
  }
}
