/* ==========================================================================
   Testimonials
   ========================================================================== */
.fp-testimonials {
  padding: var(--fp-space-section) 0;
  background-color: var(--fp-white);
  background-image:
    linear-gradient(rgba(var(--fp-white-rgb), 0.85), rgba(var(--fp-white-rgb), 0.85)),
    url('../images/bg-testimonials.png');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.fp-testimonials__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--fp-space-md);
}
.fp-testimonials__intro .fp-section-title {
  margin-bottom: 0;
}
.fp-testimonials__carousel {
  position: relative;
}
.fp-testimonials__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 8px 16px;
}
.fp-testimonials__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.fp-testimonials__control {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--fp-brand-rgb), 0.22);
  border-radius: 50%;
  background: var(--fp-white);
  color: var(--fp-brand-strong);
  box-shadow: 0 12px 28px rgba(var(--fp-shadow-rgb), 0.1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  line-height: 1;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.fp-testimonials__control span {
  display: block;
  font-size: 1.8rem;
  line-height: 0.8;
  transform: translateY(-1px);
}
.fp-testimonials__control:hover,
.fp-testimonials__control:focus-visible {
  background: var(--fp-brand-strong);
  border-color: var(--fp-brand-strong);
  color: var(--fp-white);
  outline: none;
}
.fp-testimonials__control:focus-visible {
  box-shadow:
    0 0 0 3px rgba(var(--fp-accent-rgb), 0.55),
    0 12px 28px rgba(var(--fp-shadow-rgb), 0.1);
}
.fp-testimonials__control:active {
  transform: scale(0.96);
}
.fp-testimonials__control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fp-testimonial-card {
  position: relative;
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
  background: rgba(var(--fp-white-rgb), 0.94);
  border: 1px solid rgba(var(--fp-brand-rgb), 0.14);
  border-radius: 12px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 40px rgba(var(--fp-shadow-rgb), 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
}
.fp-testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(var(--fp-shadow-rgb), 0.12);
  border-color: rgba(var(--fp-accent-rgb), 0.36);
}
.fp-testimonial-card__quote-mark {
  position: absolute;
  top: -4px;
  right: 20px;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(var(--fp-accent-rgb), 0.14);
  line-height: 1;
  pointer-events: none;
}
.fp-testimonial-card__rating {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.fp-star {
  color: var(--fp-border);
  font-size: 0.95rem;
}
.fp-star--filled {
  color: var(--fp-accent);
}
.fp-testimonial-card__quote {
  position: relative;
  font-size: 1.05rem;
  margin-bottom: 28px;
  color: var(--fp-text);
}
.fp-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--fp-border);
}
.fp-testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fp-accent), var(--fp-accent-soft));
  color: var(--fp-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.fp-testimonial-card__author div {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}
.fp-testimonial-card__author span {
  color: var(--fp-text-muted);
}

@media (max-width: 780px) {
  .fp-testimonials__track {
    gap: 16px;
    margin-right: calc(-1 * var(--fp-gutter));
    padding-right: var(--fp-gutter);
    scrollbar-width: none;
  }

  .fp-testimonials__track::-webkit-scrollbar {
    display: none;
  }

  .fp-testimonials__controls {
    display: flex;
  }

  .fp-testimonial-card {
    flex-basis: min(340px, 84vw);
    padding: 32px 24px 24px;
  }
}
