/* Rotating reader reviews — hero strip */

/* Full-width band that sits at the top of the hero, above other content */
.hero-reviews-band {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none; /* let clicks pass through except on the card itself */
}
.hero-reviews-band > .container {
  pointer-events: none;
}
.hero-reviews-band .hero-reviews {
  pointer-events: auto;
}

/* Default (compact) variant — kept for any other placement */
.hero-reviews {
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(20, 33, 61, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(180, 131, 22, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 580px;
  flex-wrap: wrap;
}

/* Wide variant — spans the hero container so the whole quote fits */
.hero-reviews--wide {
  max-width: none;
  width: 100%;
  padding: 16px 26px;
  gap: 22px;
  background: rgba(20, 33, 61, 0.65);
  border-color: rgba(180, 131, 22, 0.65);
  flex-wrap: nowrap;
}

.hero-reviews__stars {
  display: inline-flex;
  gap: 3px;
  color: #f0c14b;
  flex-shrink: 0;
}

.hero-reviews__stars svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.hero-reviews--wide .hero-reviews__stars svg {
  width: 20px;
  height: 20px;
}

.hero-reviews__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 1.6em;
  overflow: hidden;
}

.hero-reviews__quote {
  position: absolute;
  inset: 0;
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(16px, 1.6vw, 22px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: #f6efde;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 600ms ease, transform 600ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.01em;
}

.hero-reviews--wide .hero-reviews__quote {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  text-align: center;
}

.hero-reviews__quote.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-reviews__attr {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 239, 222, 0.7);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-reviews-band {
    top: clamp(16px, 2.5vw, 28px);
  }
  .hero-reviews--wide {
    padding: 14px 18px;
    gap: 14px;
  }
  .hero-reviews--wide .hero-reviews__quote {
    white-space: normal;
    text-align: left;
    font-size: 17px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-reviews-band {
    position: relative;
    top: auto;
    padding: 16px 0 0;
  }
  .hero-reviews-band > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-reviews--wide {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px;
  }
  .hero-reviews--wide .hero-reviews__stars svg {
    width: 16px;
    height: 16px;
  }
  .hero-reviews--wide .hero-reviews__viewport {
    flex-basis: 100%;
    min-height: 2.8em;
  }
  .hero-reviews--wide .hero-reviews__quote {
    font-size: 16px;
    line-height: 1.35;
    text-align: left;
  }
  .hero-reviews__attr {
    width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reviews__quote {
    transition: opacity 200ms linear;
    transform: none;
  }
}
