/* Reviews carousel — turns the static review grid into a rotating quote.
   Applied only when JS adds .rev-on, so without JS every review still shows. */

#reviews .bento-grid.rev-on {
  display: block;
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

#reviews .rev-on .pk-card {
  display: none;
}

#reviews .rev-on .pk-card.rev-active {
  display: block;
  animation: revFade 0.45s ease both;
}

@keyframes revFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.rev-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.rev-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white, #fff);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.rev-arrow:hover,
.rev-arrow:focus-visible {
  background: rgba(255, 107, 0, 0.18);
  border-color: var(--orange, #ff6b00);
  outline: none;
}

.rev-dots {
  display: flex;
  gap: 8px;
}

.rev-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.rev-dot.is-on {
  background: var(--orange, #ff6b00);
  transform: scale(1.25);
}

.rev-dot:focus-visible {
  outline: 2px solid var(--orange, #ff6b00);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #reviews .rev-on .pk-card.rev-active { animation: none; }
}

/* --- Hero Google reviews: show two at a time instead of all 17 ------------
   Without a clamp this block rendered every review (1,666px tall), which
   stretched the hero to 2,639px and blew the background video up 2.4x. */
.google-reviews-hero .gr-reviews-preview {
  max-height: 250px;
  overflow: hidden;
  position: relative;
}

.google-reviews-hero .gr-reviews-preview > .gr-review:nth-child(n + 3) {
  display: none;
}

.google-reviews-hero .gr-reviews-preview > .gr-review {
  animation: revFade 0.5s ease both;
}
