/* =========================================================
   REVIEWS — Stats Banner + Dual Marquee
   ========================================================= */

/* ---------- Section shell ---------- */
.clients {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vh, 96px) 0;
  overflow: hidden;
}

/* Section heading styles live in base.css - no need to duplicate */

/* =========================================================
   STATS BANNER
   ========================================================= */
.rev-stats {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  margin-bottom: clamp(28px, 3.5vh, 48px);
  padding: clamp(18px, 2vh, 28px) 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.rev-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.rev-stat__number {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
}

.rev-stat__label {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================================
   MARQUEE ROWS
   ========================================================= */
.marquee-row {
  position: relative;
  width: 100%;
  margin: 8px auto 0;
  overflow: hidden;
  padding: 10px 0;
}

/* Fade edges */
.marquee-row::before,
.marquee-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-row::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.marquee-row::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

/* Animated belt — starts paused, JS enables it */
.marquee {
  display: flex;
  width: max-content;
  animation: marquee-left var(--marquee-duration, 40s) linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.clients.marquee-ready .marquee {
  animation-play-state: running;
}

.dir-right .marquee {
  animation-name: marquee-right;
}

/* Each group is a flex row of cards with trailing gap */
.group {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  padding-right: 20px;
}

/* Pause on hover */
.marquee-row:hover .marquee {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* =========================================================
   REVIEW CARDS
   ========================================================= */
.review {
  width: clamp(280px, 24vw, 340px);
  flex-shrink: 0;
}

.rev {
  background: var(--about-tile-bg, var(--bg-secondary));
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: clamp(16px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.rev:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Top row: avatar + name/stars */
.rev-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rev-name {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rev-stars {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1;
}

/* Quote body */
.rev-body {
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* =========================================================
   AVATARS
   ========================================================= */
.rev-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--avatar-bg, #6366f1);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  border: 2px solid var(--border-primary);
  user-select: none;
  position: relative;
  flex-shrink: 0;
}

.rev-avatar::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  z-index: 1;
}

.rev-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

.rev-avatar.fallback img { display: none; }

/* Color variations */
.rev-avatar[data-color="red"] { background: #ef4444; }
.rev-avatar[data-color="orange"] { background: #f97316; }
.rev-avatar[data-color="amber"] { background: #f59e0b; }
.rev-avatar[data-color="yellow"] { background: #eab308; }
.rev-avatar[data-color="lime"] { background: #84cc16; }
.rev-avatar[data-color="green"] { background: #22c55e; }
.rev-avatar[data-color="emerald"] { background: #10b981; }
.rev-avatar[data-color="teal"] { background: #14b8a6; }
.rev-avatar[data-color="cyan"] { background: #06b6d4; }
.rev-avatar[data-color="sky"] { background: #0ea5e9; }
.rev-avatar[data-color="blue"] { background: #3b82f6; }
.rev-avatar[data-color="indigo"] { background: #6366f1; }
.rev-avatar[data-color="violet"] { background: #8b5cf6; }
.rev-avatar[data-color="purple"] { background: #a855f7; }
.rev-avatar[data-color="fuchsia"] { background: #d946ef; }
.rev-avatar[data-color="pink"] { background: #ec4899; }
.rev-avatar[data-color="rose"] { background: #f43f5e; }