/* ============================================================
   SC HOME BUYERS — testimonials.css
   Peek carousel: one card centered, faded slivers of the
   prev/next cards on each side to signal "swipe for more".
   Shared styles (nav, footer, buttons, .final, .reveal) come
   from index.css.
   ============================================================ */

/* ---------- 1 · HEADING ---------- */
.tst-head {
  text-align: center;
  padding: clamp(7.5rem, 13vh, 9.5rem) var(--pad-x) clamp(2rem, 4vw, 3rem);
  max-width: 46rem;
  margin: 0 auto;
}
.tst-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.tst-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 22px rgba(201, 162, 75, 0.18);
}
.tst-head__sub {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.9;
  color: rgba(245, 242, 236, 0.72);
  max-width: 38rem;
  margin: 0 auto;
}

/* ---------- 2 · CAROUSEL ---------- */
.tst-carousel {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

/* viewport is narrower than the cards so neighbours peek in on the sides */
.tst-viewport {
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
}

/* the sliding track holds all the cards in a row */
.tst-track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 2rem);
  transition: transform .6s cubic-bezier(0.6, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
}
.tst-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

/* each card — fixed width; the JS centers the active one */
.tst-card {
  flex: 0 0 clamp(20rem, 62vw, 34rem);
  box-sizing: border-box;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--charcoal);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  /* inactive cards are dimmed + slightly shrunk; active one pops */
  opacity: 0.4;
  transform: scale(0.9);
  transition: opacity .5s ease, transform .5s ease, border-color .5s ease,
              box-shadow .5s ease;
  user-select: none;
}
.tst-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(201, 162, 75, 0.12);
}
.tst-card__quote {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: 1.2rem;
  height: 1.5rem;
}
.tst-card__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.6;
  color: var(--ivory);
  margin-bottom: 2rem;
  flex-grow: 1;
}
.tst-card__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.tst-card__avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tst-card__meta { display: flex; flex-direction: column; gap: 0.2rem; }
.tst-card__name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
}
.tst-card__role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- controls ---------- */
.tst-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.tst-arrow {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  transition: background .35s ease, color .35s ease,
              transform .3s ease, box-shadow .35s ease;
}
.tst-arrow:hover,
.tst-arrow:focus-visible {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.3);
  outline: none;
}
.tst-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tst-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(245, 242, 236, 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .4s ease, background .4s ease, box-shadow .4s ease;
}
.tst-dot.is-active {
  width: 22px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 162, 75, 0.6);
}

/* ---------- 3 · TRUST STRIP ---------- */
.tst-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: 1.8rem var(--pad-x);
  background: var(--charcoal);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.tst-trust__item {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-left: 1.4rem;
}
.tst-trust__item::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--gold);
  font-size: 0.6rem;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tst-track { transition: none; }
  .tst-card { transition: opacity .2s ease; }
}