/* ==========================================================================
   Testimonials Carousel — Swiper-powered card carousel
   Shadcn testimonial-carousel adaptation for Voxpopme brand
   ========================================================================== */

/* Section
   -------------------------------------------------------------------------- */

.hp-testimonials {
  background: var(--vox-light-gray);
  padding: 5rem 0;
}

.hp-testimonials .container {
  max-width: 72rem;
}

/* Header
   -------------------------------------------------------------------------- */

.hp-testimonials__header {
  margin-bottom: 0;
  text-align: center;
}

.hp-testimonials .hp-testimonials__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vox-lilac);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.hp-testimonials__subtitle {
  font-size: 1.0625rem;
  color: var(--vox-cool-gray);
  margin: 0 auto;
  max-width: 52rem;
  line-height: 1.65;
}

/* Swiper overrides
   -------------------------------------------------------------------------- */

.hp-testimonials__carousel {
  overflow: visible;
  padding-top: 3.5rem;
}

.hp-testimonials__carousel .swiper-wrapper {
  align-items: stretch;
}

.hp-testimonials__carousel .swiper-slide {
  height: auto;
}

/* Card
   -------------------------------------------------------------------------- */

.hp-testimonials__card {
  position: relative;
  background: var(--vox-white);
  border-radius: 12px;
  padding: 4rem 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.hp-testimonials__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Avatar
   -------------------------------------------------------------------------- */

.hp-testimonials__avatar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--vox-white);
  border: 4px solid var(--vox-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-testimonials__avatar img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

.hp-testimonials__avatar--full img {
  width: 50%;
  height: 50%;
}

.hp-testimonials__avatar-initials {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--vox-white);
  line-height: 1;
}

/* Text
   -------------------------------------------------------------------------- */

.hp-testimonials__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--vox-purple);
  margin: 0 0 0.125rem;
}

.hp-testimonials__role {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vox-lilac);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.hp-testimonials__quote {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--vox-charcoal);
  margin: 0;
  flex: 1;
}

/* Stars
   -------------------------------------------------------------------------- */

.hp-testimonials__stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: auto;
  padding-top: 0.5rem;
}

.hp-testimonials__star {
  width: 18px;
  height: 18px;
  fill: #F59E0B;
}

.hp-testimonials__star--empty {
  fill: #D1D5DB;
}

/* Half-star support */
.hp-testimonials__star--half {
  position: relative;
}

/* Navigation — tablet only
   -------------------------------------------------------------------------- */

.hp-testimonials__nav {
  display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hp-testimonials__carousel {
    overflow: hidden;
  }

  .hp-testimonials__nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .hp-testimonials__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--vox-gray-200);
    background: var(--vox-white);
    color: var(--vox-charcoal);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .hp-testimonials__nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .hp-testimonials__nav-btn:hover {
    background: var(--vox-purple);
    border-color: var(--vox-purple);
    color: var(--vox-white);
  }

  .hp-testimonials__nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
  }
}

/* Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .hp-testimonials {
    padding: 3rem 0;
  }

  .hp-testimonials__card {
    padding: 3.5rem 1.25rem 1.25rem;
  }
}

/* Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hp-testimonials__card {
    transition: none;
  }
}
