/* Client reviews marquee — added 2026-11-05 (V8 reviews update).
   Pure CSS continuous card strip on the homepage only.
   Uses the site accent var --accent (#FF5A1F) as a subtle accent only.
   No photos, avatars, logos or star ratings, per owner spec. */

.reviews-sec {
  background: #fbfaf8;
  overflow: hidden;
}

.reviews-sec .h-section {
  margin-bottom: 2rem;
}

/* The visible window: clips the moving track, never lets the page scroll sideways. */
.rev-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

/* Track holds the 7 cards twice (second set aria-hidden) for a seamless loop.
   7 cards x ~400px = ~2800px per set; 70s => ~40px/s, slow and readable. */
.rev-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: .25rem 0 1rem;
  animation: rev-scroll 70s linear infinite;
  will-change: transform;
}

.rev-marquee:hover .rev-track {
  animation-play-state: paused;
}

@keyframes rev-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rev-card {
  flex: 0 0 380px;
  max-width: 380px;
  background: #fff;
  border: 1px solid #ece9e4;
  border-radius: 16px;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 1px 2px rgba(14, 14, 15, .04), 0 8px 24px rgba(14, 14, 15, .05);
}

.rev-quote {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: .6;
  height: 1.4rem;
  color: var(--accent, #ff5a1f);
}

.rev-card blockquote {
  margin: 0 0 1.1rem;
}

.rev-card blockquote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #232322;
}

.rev-name {
  margin: 0 0 .15rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #0e0e0f;
}

.rev-meta {
  margin: 0;
  font-size: .85rem;
  line-height: 1.4;
  color: #6f6f68;
}

@media (max-width: 1024px) {
  .rev-card {
    flex-basis: 340px;
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  .rev-card {
    flex: 0 0 min(320px, 82vw);
    max-width: min(320px, 82vw);
    padding: 1.35rem 1.25rem 1.2rem;
  }

  .rev-track {
    animation-duration: 60s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rev-track {
    animation: none;
  }
}
