/* =========================================================
   spaTestimonials.css — UPDATED responsive sizing (3 mostly visible)
   Keeps desktop cards at 360px, shrinks down in steps like clinic.
   IMPORTANT: remove the old "flex-basis: 78vw" rule.
   ========================================================= */

/* =========================
   A) TESTIMONIALS (scroll-snap embed)
   ========================= */
html[data-brand="spa"] .testimonials {
  padding: 60px 0 95px;
}

html[data-brand="spa"] .testimonials-head h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  color: rgba(18, 18, 18, .94);
}

html[data-brand="spa"] .testimonials-shell {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

html[data-brand="spa"] .t-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

/* Card base (shared) */
html[data-brand="spa"] .t-card {
  scroll-snap-align: start;
  border-radius: 22px;
  border: 1px solid rgba(18, 18, 18, .10);
  background: rgba(255, 255, 255, .88);
  padding: 18px;
  min-height: 230px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

html[data-brand="spa"] .t-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 163, 107, .28);
  background: rgba(255, 255, 255, .92);
}

/* Stars centered at top */
html[data-brand="spa"] .t-starsTop {
  text-align: center;
  font-weight: 950;
  letter-spacing: .22em;
  color: #d6a36b;
  margin-top: 2px;
}

/* Review text */
html[data-brand="spa"] .t-text {
  margin: 14px 0 0;
  color: rgba(18, 18, 18, .72);
  line-height: 1.65;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer row */
html[data-brand="spa"] .t-personRow {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Initial avatar */
html[data-brand="spa"] .t-initial {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: .02em;

  background: rgba(214, 163, 107, .18);
  border: 1px solid rgba(214, 163, 107, .28);
  color: rgba(28, 16, 10, .92);
}

html[data-brand="spa"] .t-personMeta {
  min-width: 0;
}

html[data-brand="spa"] .t-name {
  font-weight: 900;
  color: rgba(18, 18, 18, .92);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-brand="spa"] .t-sub {
  margin-top: 4px;
  color: rgba(18, 18, 18, .56);
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   B) TESTIMONIALS “wheel” marquee
   ========================= */
html[data-brand="spa"] .testimonials {
  position: relative;
  padding: 70px 0 95px;
  overflow: hidden;
}

html[data-brand="spa"] .testimonials::before {
  content: "";
  position: absolute;
  inset: -160px -140px auto -140px;
  height: 520px;

  filter: blur(10px);
  pointer-events: none;
}

html[data-brand="spa"] .t-wheel {
  position: relative;
  margin-top: 18px;
  border-radius: 26px;
  border: 1px solid rgba(18, 18, 18, .10);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

html[data-brand="spa"] .t-wheel::before,
html[data-brand="spa"] .t-wheel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 3;
  pointer-events: none;
}

html[data-brand="spa"] .t-wheel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(251, 250, 248, 1), rgba(251, 250, 248, 0));
}

html[data-brand="spa"] .t-wheel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(251, 250, 248, 1), rgba(251, 250, 248, 0));
}

html[data-brand="spa"] .t-wheel-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  will-change: transform;
}

/* Desktop default: keep your current size */
html[data-brand="spa"] .t-wheel-track .t-card {
  flex: 0 0 360px;
  min-height: 230px;
}

/* Pause on hover */
html[data-brand="spa"] .t-wheel:hover .t-wheel-track {
  animation-play-state: paused;
}

/* =========================
   Responsive sizing (same idea as clinic)
   ========================= */
@media (max-width: 1200px) {
  html[data-brand="spa"] .t-wheel-track .t-card {
    flex: 0 0 320px;
  }

  html[data-brand="spa"] .t-wheel::before,
  html[data-brand="spa"] .t-wheel::after {
    width: 90px;
  }
}

@media (max-width: 980px) {
  html[data-brand="spa"] .t-wheel-track {
    gap: 14px;
  }

  html[data-brand="spa"] .t-wheel-track .t-card {
    flex: 0 0 280px;
    min-height: 210px;
  }

  html[data-brand="spa"] .t-wheel::before,
  html[data-brand="spa"] .t-wheel::after {
    width: 70px;
  }
}

@media (max-width: 780px) {
  html[data-brand="spa"] .t-wheel {
    padding: 14px;
    border-radius: 22px;
  }

  html[data-brand="spa"] .t-wheel-track {
    gap: 12px;
  }

  html[data-brand="spa"] .t-wheel-track .t-card {
    flex: 0 0 240px;
    min-height: 200px;
  }

  html[data-brand="spa"] .t-wheel::before,
  html[data-brand="spa"] .t-wheel::after {
    width: 55px;
  }
}

/* Extra small phones: shrink harder so 3 are mostly visible */
@media (max-width: 520px) {
  html[data-brand="spa"] .t-wheel {
    padding: 12px;
  }

  html[data-brand="spa"] .t-wheel-track {
    gap: 8px;
  }

  html[data-brand="spa"] .t-wheel-track .t-card {
    flex: 0 0 150px;
    min-height: 165px;
    padding: 14px;
  }

  html[data-brand="spa"] .t-starsTop {
    font-size: .95rem;
    letter-spacing: .14em;
  }

  html[data-brand="spa"] .t-text {
    font-size: .92rem;
    -webkit-line-clamp: 3;
  }

  html[data-brand="spa"] .t-initial {
    width: 36px;
    height: 36px;
  }

  html[data-brand="spa"] .t-wheel::before,
  html[data-brand="spa"] .t-wheel::after {
    width: 18px;
  }
}