/* Testimonials Page Styles */

/* Hero Section */
.testimonials-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  padding: var(--spacing-xxl) var(--spacing-md);
  margin-top: 80px;
}

.testimonials-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.testimonials-hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Testimonials Section - Carousel Layout */
.testimonials-section {
  padding: var(--spacing-xxxl) var(--spacing-md);
  background: var(--color-bg-primary);
  position: relative;
}

/* Carousel Container */
.testimonials-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 70vh;
  overflow: hidden;
}

/* Testimonial Card with Soft Imagery Background */
.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  padding: var(--spacing-xxxl) var(--spacing-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Active testimonial card */
.testimonial-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Soft Background Image */
.testimonial-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.testimonial-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.testimonial-bg-image.loaded {
  opacity: 0.15; /* Soft, subtle background */
}

/* Overlay for better text readability */
.testimonial-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(250, 250, 248, 0.95) 0%,
    rgba(245, 245, 243, 0.9) 100%
  );
  z-index: 2;
}

/* Testimonial Content */
.testimonial-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Couple Photo */
.testimonial-couple-photo {
  margin-bottom: var(--spacing-xl);
  display: flex;
  justify-content: center;
}

.couple-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-bg-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.3s ease;
}

.couple-image.loaded {
  opacity: 1;
}

.couple-image:hover {
  transform: scale(1.05);
}

/* Large, Elegant Typography for Quotes */
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-xl) 0;
  font-style: normal;
  letter-spacing: -0.01em;
}

/* Quote marks styling */
.testimonial-quote::before {
  content: '"';
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.8;
  color: var(--color-accent);
  opacity: 0.3;
  margin-bottom: var(--spacing-md);
}

/* Author Attribution */
.testimonial-author {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-md) 0;
}

.carousel-btn {
  background: transparent;
  border: 2px solid var(--color-text-secondary);
  color: var(--color-text-secondary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: scale(1.1);
}

.carousel-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  opacity: 0.3;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  opacity: 0.6;
  transform: scale(1.2);
}

.indicator.active {
  opacity: 1;
  background: var(--color-accent);
  width: 32px;
  border-radius: 6px;
}

.indicator:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Testimonials CTA Section */
.testimonials-cta-section {
  padding: var(--spacing-xxxl) var(--spacing-md);
  background: var(--color-bg-secondary);
}

.testimonials-cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

.testimonials-cta-text {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* Tablet Breakpoint */
@media (min-width: 768px) {
  .testimonials-hero {
    min-height: 60vh;
  }

  .testimonials-carousel {
    min-height: 75vh;
  }

  .testimonial-card {
    min-height: 75vh;
    padding: var(--spacing-xxxl) var(--spacing-xl);
  }

  .couple-image {
    width: 140px;
    height: 140px;
    border-width: 5px;
  }

  .testimonial-quote {
    line-height: 1.6;
  }

  .carousel-controls {
    gap: var(--spacing-xxl);
  }

  .carousel-btn {
    width: 56px;
    height: 56px;
  }
}

/* Desktop Breakpoint */
@media (min-width: 1024px) {
  .testimonials-hero {
    min-height: 70vh;
    padding: var(--spacing-xxxl) var(--spacing-xl);
  }

  .testimonials-section {
    padding: calc(var(--spacing-xxxl) * 1.5) var(--spacing-xl);
  }

  .testimonials-carousel {
    min-height: 80vh;
  }

  .testimonial-card {
    min-height: 80vh;
    padding: calc(var(--spacing-xxxl) * 1.5) var(--spacing-xxl);
  }

  .couple-image {
    width: 160px;
    height: 160px;
    border-width: 6px;
  }

  .testimonial-quote {
    line-height: 1.7;
  }

  .testimonials-cta-section {
    padding: calc(var(--spacing-xxxl) * 1.5) var(--spacing-xl);
  }

  .carousel-btn {
    width: 64px;
    height: 64px;
  }

  .carousel-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .testimonial-bg-image {
    transition: opacity 0.3s ease;
  }
}
