/* Google reviews strip (Redstack, 2026-11-20): adapted from A+ Appliance Repair's homepage
   strip, in Spotless's palette. Used by /our-team and the homepage (lib/reviews-section.ts);
   the endless scroll is /js/reviews-marquee.js. */
.team-reviews {
  background-color: var(--relume-library-lite--primary);
  background-image: linear-gradient(rgba(81, 173, 229, .9), rgba(81, 173, 229, .9)), url("/images/688acecf14e1d2e8ca634eff_3.webp");
  background-position: 0 0, 50% 50%;
  background-size: auto, cover;
  padding: 60px 0 56px;
}
/* Full container width, like every other section's content. */
.team-reviews-head {
  background-color: #fff;
  border-radius: var(--rs-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0 0 36px;
  padding: 28px 40px;
}
.team-reviews-head .section-h2 { margin: 0; text-align: left; }
.team-reviews-rating {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  color: var(--relume-library-lite--rl-black); text-decoration: none;
}
.team-reviews-rating img { width: 44px; height: 44px; }
.team-reviews-rating-text { font-size: 15px; line-height: 1.4; white-space: nowrap; }
.team-reviews-rating-text strong { font-size: 22px; }
.team-reviews-stars { color: #f59e0b; letter-spacing: 2px; }
.team-reviews-link { color: var(--relume-library-lite--primary); font-weight: 600; }
.team-reviews-rating:hover .team-reviews-link { text-decoration: underline; }

.reviews-marquee {
  width: 100%; position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reviews-marquee-track {
  display: flex; align-items: stretch; column-gap: 24px; width: max-content;
  animation: reviews-marquee-scroll var(--marquee-duration, 40s) linear infinite;
}
.reviews-marquee:hover .reviews-marquee-track,
.reviews-marquee:focus-within .reviews-marquee-track { animation-play-state: paused; }
.reviews-marquee-item { flex-shrink: 0; width: 360px; display: flex; }
.reviews-marquee-card {
  background-color: #fff; border-radius: var(--rs-radius); display: flex; flex-direction: column; row-gap: 14px;
  width: 100%; padding: 24px; box-shadow: 0 6px 24px rgba(41, 49, 65, .08);
}
.reviews-marquee-head { display: flex; align-items: center; column-gap: 12px; }
.reviews-marquee-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background-color: #f0f5f9; }
.reviews-marquee-name { color: #293141; font-size: 16px; font-weight: 500; line-height: 1.3; margin: 0; }
.reviews-marquee-stars { color: #f59e0b; letter-spacing: 2px; margin-top: 4px; font-size: 14px; line-height: 1; }
.reviews-marquee-text { color: rgba(10, 10, 10, .89); font-size: 15px; line-height: 1.55; margin: 0; }
@keyframes reviews-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reviews-marquee-track { animation: none; padding: 0 16px; }
  .reviews-marquee-track [data-marquee-clone] { display: none; }
}
@media screen and (max-width: 991px) {
  .team-reviews-head { padding: 24px 28px; }
  .team-reviews-head .section-h2 { font-size: 30px; }
}
@media screen and (max-width: 767px) {
  .team-reviews { padding: 40px 0 36px; }
  .team-reviews-head { flex-direction: column; text-align: center; padding: 20px; margin-bottom: 28px; }
  .team-reviews-head .section-h2 { text-align: center; font-size: 26px; }
  .reviews-marquee-item { width: 290px; }
}
@media screen and (max-width: 479px) {
  .team-reviews-rating { flex-direction: column; gap: 8px; }
  .team-reviews-rating-text { white-space: normal; text-align: center; }
}


/* Homepage: the section sits right under the blue trust bar, so it uses the site's light blue
   instead of the blue photo band (the two blues would merge into one block). */
.team-reviews.is-light { background-color: var(--lightblue); background-image: none; }
.team-reviews.is-light .team-reviews-head { box-shadow: 0 6px 24px rgba(41, 49, 65, .06); }
.team-reviews.is-light .reviews-marquee-card { box-shadow: 0 6px 24px rgba(41, 49, 65, .07); }

/* "Read all reviews" under the strip, on the container's left edge. */
.team-reviews-more { align-items: flex-start; margin-top: 32px; }
.team-reviews-all {
  align-items: center; background-color: #fff; border: 1px solid var(--relume-library-lite--primary); border-radius: var(--rs-radius);
  color: var(--relume-library-lite--primary); display: inline-flex; font-family: Inter Variablefont Opsz Wght, Arial, sans-serif;
  font-size: 1rem; font-weight: 700; height: 52px; letter-spacing: .02em; line-height: 1; padding: 0 1.5rem;
  text-decoration: none; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.team-reviews-all:hover { background-color: var(--relume-library-lite--primary); color: #fff; }

/* The strip clips sideways for the scroll; this gives the cards' shadows room above and below
   (the negative margins keep the layout where it was). */
.reviews-marquee { margin: -24px 0 -48px; padding: 24px 0 48px; }
.team-reviews-more { position: relative; z-index: 1; }
