/* Residential-only client quotes. The tallest slide sets a stable card height. */
.industry-hero--residential .hero-reviews {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 40px));
  margin: 2px auto 0;
  padding: 14px 18px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.16), rgba(255, 253, 248, 0.08));
  box-shadow: 0 18px 34px rgba(5, 14, 6, 0.14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--white-on-dark);
  text-align: left;
}

.hero-reviews__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-reviews__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(245, 241, 232, 0.8);
  font-size: 0.7rem;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

.hero-reviews__source:hover { color: var(--white-on-dark); }
.hero-reviews__source svg { width: 14px; height: 14px; }

.hero-reviews__stars {
  margin: 0;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.hero-reviews__viewport {
  display: grid;
  overflow: hidden;
  margin-top: 8px;
}

.hero-reviews__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-reviews__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-reviews__slide blockquote {
  margin: 0;
  color: var(--white-on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: pretty;
}

.hero-reviews__slide figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding-right: 206px;
  line-height: 1.25;
}

.hero-reviews__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.1);
  color: var(--white-on-dark);
  font-size: 0.64rem;
  font-weight: 600;
}

.hero-reviews__slide figcaption strong {
  display: block;
  color: var(--white-on-dark);
  font-size: 0.76rem;
  font-weight: 600;
}

.hero-reviews__detail {
  display: block;
  margin-top: 2px;
  color: rgba(245, 241, 232, 0.76);
  font-size: 0.68rem;
}

.hero-reviews__controls {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-reviews__controls[hidden] { display: none; }
.hero-reviews__pages { display: flex; }

.hero-reviews__page,
.hero-reviews__toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--white-on-dark);
  cursor: pointer;
}

.hero-reviews__page span {
  width: 16px;
  height: 3px;
  border-radius: 4px;
  background: rgba(245, 241, 232, 0.28);
  transition: background 180ms ease;
}

.hero-reviews__page[aria-current="true"] span { background: var(--gold); }
.hero-reviews__page:hover,
.hero-reviews__toggle:hover { background: var(--gold-soft); }

.hero-reviews__toggle span {
  width: 8px;
  height: 11px;
  border-inline: 2px solid currentColor;
}

.hero-reviews__toggle.is-paused span {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 9px solid currentColor;
}

.hero-reviews :is(a, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .industry-hero--residential .hero-reviews {
    width: calc(100% - 32px);
    padding: 12px 16px 10px;
    border-radius: 20px;
  }

  .hero-reviews__source { font-size: 0.68rem; gap: 4px; }
  .hero-reviews__slide figcaption { padding-right: 0; }
  .hero-reviews__controls { position: static; justify-content: flex-end; margin-top: 2px; }
  .hero-reviews__page, .hero-reviews__toggle { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reviews__page span { transition: none; }
}
