/* ============================================
   TESTIMONIALS PAGE
   ============================================ */

/* ---- Hero ---- */
.testi-hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-16);
  background: var(--color-navy);
  text-align: center;
  overflow: hidden;
}
.testi-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}
.testi-hero__content {
  position: relative;
  z-index: 2;
}
.testi-hero__kicker {
  font-family: var(--font-decorative, 'Kalam', cursive);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-primary-light);
  margin-bottom: var(--space-3);
}
.testi-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}
.testi-hero__title span {
  color: var(--color-primary-light);
}
.testi-hero__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

/* Stats row */
.testi-hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}
.testi-hero__stat {
  text-align: center;
}
.testi-hero__stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: 1;
}
.testi-hero__stat-label {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Photo Carousel (infinite scroll) ---- */
.testi-photos {
  padding: var(--space-16) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.testi-photos__track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: testi-scroll 40s linear infinite;
}
.testi-photos__track:hover {
  animation-play-state: paused;
}
.testi-photos__track--reverse {
  animation: testi-scroll-reverse 40s linear infinite;
}
.testi-photos__track--reverse:hover {
  animation-play-state: paused;
}

@keyframes testi-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes testi-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Photo card */
.testi-photo {
  position: relative;
  flex: 0 0 320px;
  height: 256px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.testi-photo:hover {
  box-shadow: var(--shadow-lg);
}
.testi-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-photo__caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.testi-photo__state {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: rgba(124, 106, 232, 0.9);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: 1.6;
}

/* ---- Reviews Grid ---- */
.testi-reviews {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--color-background);
}
.testi-reviews__header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.testi-reviews__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.testi-reviews__title span {
  color: var(--color-primary);
}
.testi-reviews__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Grid */
.testi-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Review card */
.testi-review-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.testi-review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Stars */
.testi-review-card__stars {
  display: flex;
  gap: 2px;
  color: var(--color-gold);
}
.testi-review-card__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Quote */
.testi-review-card__quote {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  flex: 1;
}

/* Author */
.testi-review-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.testi-review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-ultra-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.testi-review-card__name {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.testi-review-card__breed {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---- CTA Section ---- */
.testi-cta {
  padding: var(--space-16) 0 var(--space-20);
}
.testi-cta__card {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-16);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.testi-cta__icon {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}
.testi-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}
.testi-cta__text {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}
.testi-cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  max-width: 640px;
  margin: 0 auto;
}
.testi-cta__btn {
  flex: 1;
  border-radius: 9999px;
  white-space: nowrap;
}
.btn--primary-light {
  background: var(--color-primary-light);
  color: #fff;
}
.btn--primary-light:hover {
  background: var(--color-primary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .testi-hero__title {
    font-size: var(--text-h1);
  }
  .testi-reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testi-hero {
    padding: var(--space-16) 0 var(--space-10);
  }
  .testi-hero__title {
    font-size: var(--text-h2);
  }
  .testi-hero__stats {
    gap: var(--space-6);
  }
  .testi-hero__stat-value {
    font-size: var(--text-h2);
  }
  .testi-photo {
    flex: 0 0 260px;
    height: 208px;
  }
  .testi-reviews__grid {
    grid-template-columns: 1fr;
  }
  .testi-cta__card {
    padding: var(--space-10);
  }
  .testi-cta__buttons {
    flex-direction: column;
  }
  .testi-cta__title {
    font-size: var(--text-h3);
  }
  .testi-cta__text {
    font-size: var(--text-body);
  }
}

@media (max-width: 640px) {
  .testi-hero__title {
    font-size: var(--text-h3);
  }
  .testi-hero__kicker {
    font-size: 1.125rem;
  }
  .testi-photo {
    flex: 0 0 220px;
    height: 176px;
  }
}
