/* testimonials.css — draggable stacked "Client Feedback" cards.
 * Kept in its own file (loaded last) so a future Claude-design update
 * can't wipe it. Old .testi-viewport/.testi-track/.testi-slide rules in
 * site.css are now unused (Testimonials.jsx no longer renders those
 * classes) — left in place, harmless. .fan-arrow/.testi-dots/.testi-name/
 * .testi-role/.testi-person/.testi-avatar ARE still used, from site.css.
 */

/* The stage owns the centering/width; cards use inset:0 (not a transform)
   to fill it, because the top card's drag handler overwrites its whole
   `transform` property every frame — anything relying on a transform for
   centering would get clobbered mid-drag. */
.testi-stage {
  position: relative;
  max-width: 480px;
  height: 360px;
  margin: 0 auto var(--space-8);
}

.testi-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}

.testi-card-back {
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.testi-card-back[data-depth="1"] { transform: translateY(10px) scale(.96); opacity: .85; z-index: 2; }
.testi-card-back[data-depth="2"] { transform: translateY(20px) scale(.92); opacity: .5; z-index: 1; }

.testi-card-top {
  z-index: 3;
  cursor: grab;
  touch-action: pan-y; /* drag is horizontal-only; let vertical page scroll pass through natively */
  user-select: none;
}
.testi-card-top.is-dragging { cursor: grabbing; }

.testi-stars { display: flex; gap: 3px; color: var(--color-accent); }
.testi-stars svg:not([fill="currentColor"]) { color: var(--color-border-strong); }

.testi-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 620px) {
  .testi-stage { max-width: 92vw; height: 400px; }
  .testi-card { padding: 28px 24px; }
}

@media (hover: none) {
  .testi-card-top { cursor: default; }
}

@media (prefers-reduced-motion: reduce) {
  .testi-card-back { transition: none; }
}
