/**
 * Homepage – Customer Reviews section (premium redesign)
 */

.home-reviews {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-reviews__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.home-reviews__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.home-reviews__glow--gold {
  width: min(380px, 55vw);
  height: min(380px, 55vw);
  top: -12%;
  left: -6%;
  background: radial-gradient(circle, rgba(255, 179, 2, 0.18) 0%, transparent 70%);
}

.home-reviews__glow--blue {
  width: min(460px, 62vw);
  height: min(460px, 62vw);
  bottom: -18%;
  right: -8%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 72%);
}

.home-reviews__container {
  position: relative;
  z-index: 1;
}

/* ── Heading ── */
.home-reviews__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 40px);
}

.home-reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iptv-blue);
  background: rgba(11, 43, 111, 0.06);
  border: 1px solid rgba(11, 43, 111, 0.1);
}

.home-reviews__head h2 {
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.home-reviews__subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  color: var(--iptv-muted);
}

/* ── Trust metrics ── */
.home-reviews__metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 0 0 clamp(28px, 4vw, 36px);
  padding: 0;
  list-style: none;
}

.home-reviews__metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11, 43, 111, 0.1);
  box-shadow: 0 4px 18px rgba(11, 43, 111, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.3;
  color: var(--iptv-text);
}

.home-reviews__metric-stars {
  color: var(--iptv-primary);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.home-reviews__metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  color: var(--iptv-blue);
  background: linear-gradient(135deg, rgba(255, 179, 2, 0.22) 0%, rgba(59, 130, 246, 0.12) 100%);
}

.home-reviews__metric-text strong {
  font-weight: 800;
  color: var(--iptv-navy);
}

/* ── Carousel / grid ── */
.home-reviews__carousel {
  position: relative;
}

.home-reviews__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

.home-reviews__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.home-reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(11, 43, 111, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-reviews__dot.is-active {
  background: var(--iptv-blue);
  transform: scale(1.15);
}

/* ── Review cards ── */
.home-review-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
  padding: clamp(22px, 2.5vw, 28px) clamp(20px, 2.2vw, 26px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(11, 43, 111, 0.08);
  box-shadow:
    0 4px 24px rgba(11, 43, 111, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--iptv-primary) 0%, rgba(255, 179, 2, 0.35) 55%, transparent 100%);
  opacity: 0.85;
}

.home-review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 2, 0.28);
  box-shadow:
    0 16px 40px rgba(11, 43, 111, 0.1),
    0 0 0 1px rgba(255, 179, 2, 0.12);
}

.home-review-card__quote-mark {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: rgba(255, 179, 2, 0.12);
  pointer-events: none;
  user-select: none;
}

.home-review-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.home-review-card__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 14px rgba(11, 43, 111, 0.18);
}

.home-review-card__avatar--1 {
  background: linear-gradient(135deg, #ffb302 0%, #e68a00 100%);
}

.home-review-card__avatar--2 {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.home-review-card__avatar--3 {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

.home-review-card__identity {
  min-width: 0;
}

.home-review-card__name {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--iptv-navy);
}

.home-review-card__city {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--iptv-muted);
}

.home-review-card__stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--iptv-primary);
  line-height: 1;
}

.home-star-icon {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(255, 179, 2, 0.25));
}

.home-review-card__text {
  margin: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.home-review-card__text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--iptv-muted);
}

/* ── Trust indicators ── */
.home-reviews__indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: clamp(28px, 4vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.home-reviews__indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--iptv-blue);
  background: rgba(11, 43, 111, 0.05);
  border: 1px solid rgba(11, 43, 111, 0.08);
}

.home-reviews__indicator .fa-check {
  font-size: 10px;
  color: var(--iptv-primary);
}

/* ── CTA (matches footer CTA style) ── */
.home-reviews__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(28px, 4vw, 36px);
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2.2vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(135deg, rgba(15, 45, 100, 0.92) 0%, rgba(8, 28, 68, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(11, 43, 111, 0.18);
}

.home-reviews__cta-copy {
  flex: 1 1 240px;
  min-width: 0;
}

.home-reviews__cta-title {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #fff;
}

.home-reviews__cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 1 auto;
}

.home-reviews__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.home-reviews__cta-btn--trial {
  background: linear-gradient(135deg, #ffd055 0%, var(--iptv-primary) 55%, #f5a800 100%);
  color: var(--iptv-navy);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(255, 179, 2, 0.28);
}

.home-reviews__cta-btn--trial:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(255, 179, 2, 0.34);
}

.home-reviews__cta-btn--pricing {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.home-reviews__cta-btn--pricing:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.home-reviews__cta-btn:focus-visible,
.home-reviews__dot:focus-visible {
  outline: 2px solid var(--iptv-primary);
  outline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
  .home-reviews__carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--bs-gutter-x, 12px));
    padding: 0 var(--bs-gutter-x, 12px) 4px;
  }

  .home-reviews__carousel::-webkit-scrollbar {
    display: none;
  }

  .home-reviews__track {
    display: flex;
    gap: 16px;
  }

  .home-review-card {
    flex: 0 0 min(86vw, 320px);
    scroll-snap-align: start;
    min-height: 220px;
  }

  .home-reviews__dots {
    display: flex;
  }

  .home-reviews__metrics {
    gap: 8px;
  }

  .home-reviews__metric {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 9px 12px;
    font-size: 12px;
  }

  .home-reviews__metric:last-child {
    flex-basis: 100%;
  }

  .home-reviews__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .home-reviews__cta-actions {
    justify-content: center;
  }

  .home-reviews__cta-btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .home-reviews__indicators {
    gap: 6px 8px;
  }

  .home-reviews__indicator {
    font-size: 11px;
    padding: 6px 11px;
  }

  .home-reviews__cta-actions {
    flex-direction: column;
  }

  .home-reviews__cta-btn {
    width: 100%;
  }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  .home-reviews__glow--gold {
    opacity: 0.35;
  }

  .home-reviews__glow--blue {
    opacity: 0.4;
  }

  .home-reviews__badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(147, 197, 253, 0.95);
  }

  .home-reviews__head h2 {
    color: #f1f5f9;
  }

  .home-reviews__subtitle {
    color: rgba(255, 255, 255, 0.68);
  }

  .home-reviews__metric {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
  }

  .home-reviews__metric-text strong {
    color: #f8fafc;
  }

  .home-reviews__metric-icon {
    color: rgba(186, 215, 255, 0.95);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(255, 179, 2, 0.15) 100%);
  }

  .home-review-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .home-review-card:hover {
    border-color: rgba(255, 179, 2, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 179, 2, 0.15);
  }

  .home-review-card__quote-mark {
    color: rgba(255, 179, 2, 0.1);
  }

  .home-review-card__name {
    color: #f8fafc;
  }

  .home-review-card__city,
  .home-review-card__text p {
    color: rgba(255, 255, 255, 0.65);
  }

  .home-reviews__indicator {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(186, 215, 255, 0.92);
  }

  .home-reviews__dot {
    background: rgba(255, 255, 255, 0.25);
  }

  .home-reviews__dot.is-active {
    background: var(--iptv-primary);
  }

  .home-reviews__cta {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-review-card,
  .home-reviews__cta-btn,
  .home-reviews__dot {
    transition: none;
  }

  .home-review-card:hover,
  .home-reviews__cta-btn:hover {
    transform: none;
  }
}
