/* Homepage reviews carousel (slow horizontal slider). Extends the card styles in home-polish.css. */
.home-reviews--bg-light { background: #ffffff; }
.home-reviews--bg-dark {
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(217, 119, 6, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1325 0%, #090e17 100%);
}
.home-reviews--bg-dark .section-title { color: #ffffff; }
.home-reviews--bg-dark .section-description { color: rgba(255, 255, 255, 0.75); }

.hr-carousel {
  --hr-cols: var(--hr-cols-desktop, 3);
  position: relative;
  padding: 0 52px 44px;
}
.hr-viewport {
  overflow: hidden;
  margin: 0 -12px;
  touch-action: pan-y;
  cursor: grab;
  border-radius: 24px;
}
.hr-viewport:focus-visible { outline: 3px solid #8ab4ff; outline-offset: 4px; }
.hr-viewport.is-dragging { cursor: grabbing; user-select: none; }
.hr-track {
  display: flex;
  will-change: transform;
}
.hr-track.is-animating { transition: transform var(--hr-duration, 900ms) cubic-bezier(0.22, 0.61, 0.36, 1); }
.hr-slide {
  flex: 0 0 calc(100% / var(--hr-cols));
  min-width: 0;
  padding: 10px 12px 18px;
  display: flex;
}
.hr-slide .home-review-card { width: 100%; flex: 1 1 auto; scroll-snap-align: none; }
.hr-slide[inert] .home-review-card { pointer-events: none; }

/* Cards: keep them uniform and the quote short inside the carousel. */
.hr-carousel .home-review-quote {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hr-arrow {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194, 142, 52, 0.4);
  border-radius: 50%;
  background: #ffffff;
  color: #b45309;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 19, 37, 0.14);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hr-arrow:hover { background: #d97706; color: #fff; transform: scale(1.06); }
.hr-arrow:focus-visible { outline: 3px solid #8ab4ff; outline-offset: 3px; }
.hr-prev { left: 0; }
.hr-next { right: 0; }

.hr-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hr-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 19, 37, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.hr-dot.is-active { width: 26px; border-radius: 6px; background: #d97706; }
.hr-dot:focus-visible { outline: 3px solid #8ab4ff; outline-offset: 3px; }
.home-reviews--bg-dark .hr-dot { background: rgba(255, 255, 255, 0.35); }
.home-reviews--bg-dark .hr-dot.is-active { background: #f59e0b; }

/* No motion needed: fewer cards than columns => static, centred row. */
.hr-carousel.is-static .hr-track { justify-content: center; }
.hr-carousel.is-static .hr-viewport { cursor: default; }

@media (max-width: 991.98px) {
  .hr-carousel { --hr-cols: var(--hr-cols-tablet, 2); padding: 0 46px 44px; }
}
@media (max-width: 575.98px) {
  .hr-carousel { --hr-cols: 1; padding: 0 0 44px; }
  .hr-viewport { margin: 0; }
  .hr-slide { padding: 8px 6px 16px; }
  /* Arrows overlap the card edges on phones; swipe + dots are the main controls. */
  .hr-arrow { top: auto; bottom: 0; width: 38px; height: 38px; font-size: 16px; }
  .hr-prev { left: calc(50% - 130px); }
  .hr-next { right: calc(50% - 130px); }
  .hr-dots { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hr-track.is-animating { transition: none; }
  .hr-arrow, .hr-dot { transition: none; }
}

/* ---- Continuous (marquee) mode: slow seamless motion; cards ~2.75 / 2.15 / 1.12 visible ---- */
.hr-carousel.is-marquee .hr-viewport {
  overflow: hidden;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 3%, black 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 3%, black 97%, transparent 100%);
}
.hr-carousel.is-marquee .hr-track { width: max-content; transition: none; }
.hr-carousel.is-marquee .hr-slide { flex: 0 0 var(--rm-slide-w, 33%); }
.hr-carousel.is-marquee .hr-dots { display: none; }
.hr-carousel.is-marquee { padding-bottom: 20px; }

/* Premium star row */
.home-review-stars { display: inline-flex; align-items: center; gap: 3px; }
.home-review-stars i { font-size: 18px; color: #f59e0b; }
.home-review-rating-num { margin-left: 8px; font-size: 14px; font-weight: 700; color: #92400e; letter-spacing: 0.02em; }
.home-reviews--bg-dark .home-review-rating-num { color: #fbbf24; }

@media (max-width: 575.98px) {
  .hr-carousel.is-marquee { padding: 0 0 20px; }
  .hr-carousel.is-marquee .hr-arrow { top: calc(50% - 19px); bottom: auto; }
  .hr-carousel.is-marquee .hr-prev { left: 4px; }
  .hr-carousel.is-marquee .hr-next { right: 4px; }
}

/* "Video review" tag on video cards */
.home-review-video { position: relative; }
.home-review-video-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  background: rgba(11, 19, 37, 0.78); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
