/* =============================================================
   SECTION 8 — PATIENT TRUST / TESTIMONIALS (v2 — Split Panel)
   All rules scoped under .patient-trust-testimonials
   ============================================================= */

.patient-trust-testimonials {
  /* ── colour tokens ── */
  --ptt-navy-900:  #292130;
  --ptt-navy-800:  #3B2F4A;
  --ptt-navy-700:  #49384F;
  --ptt-teal-600:  #6F5878;
  --ptt-teal-500:  #8B5E83;
  --ptt-teal-300:  #C77D8A;
  --ptt-teal-050:  #FCF3F4;
  --ptt-cyan-300:  #A98BC2;
  --ptt-ink:       #29252F;
  --ptt-ink-soft:  #6D6670;
  --ptt-border:    #E6DEE7;
  --ptt-white:     #FFFFFF;

  /* ── layout ── */
  position: relative;
  background: linear-gradient(180deg, #FCF3F4 0%, #FBF5EC 100%);
  padding: 7rem 0;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  isolation: isolate;
}

/* ── Decorative background grid ── */
.ptt-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(199, 125, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 125, 138, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
  pointer-events: none;
}

/* ── Soft radial glow ── */
.ptt-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(199, 125, 138, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(169, 139, 194, 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.patient-trust-testimonials > .container { position: relative; z-index: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.ptt-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 4.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}

.ptt-header.will-animate {
  opacity: 0;
  transform: translateY(20px);
}

.ptt-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ptt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ptt-teal-500);
  margin-bottom: 1rem;
}

.ptt-eyebrow-dot {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--ptt-teal-300);
  animation: ptt-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes ptt-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .55; }
}

.ptt-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  color: var(--ptt-ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.ptt-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ptt-teal-500), var(--ptt-teal-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ptt-subtitle {
  font-size: 1.05rem;
  color: var(--ptt-ink-soft);
  line-height: 1.65;
}

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.ptt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  height: 480px;
}

/* ============================================================
   LEFT — SPOTLIGHT PANEL
   ============================================================ */
.ptt-spotlight {
  position: relative;
  background: var(--ptt-navy-900);
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow:
    0 0 0 1px rgba(199, 125, 138, 0.22),
    0 40px 80px -20px rgba(41, 33, 48, 0.45);
}

/* Inner grid lines inside the dark panel */
.ptt-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Subtle rose corner accent */
.ptt-spotlight::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 125, 138, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.ptt-spotlight-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3rem 2.25rem;
  height: 100%;
  gap: 1.25rem;
}

/* Giant decorative opening quote */
.ptt-giant-quote {
  position: absolute;
  top: 1.5rem;
  left: 2.25rem;
  font-family: 'Bricolage Grotesque', serif;
  font-size: 9rem;
  line-height: 1;
  color: var(--ptt-teal-300);
  opacity: .15;
  pointer-events: none;
  user-select: none;
  font-weight: 900;
}

/* Stars */
.ptt-spotlight-stars {
  display: flex;
  gap: .3rem;
  color: var(--ptt-teal-300);
  font-size: 1.1rem;
  margin-top: .5rem;
}

/* Blockquote */
.ptt-spotlight-quote {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ptt-white);
  margin: 0;
  flex: 1;
  min-height: 5rem;
  transition: opacity .4s ease, transform .4s cubic-bezier(.16,1,.3,1);
}

.ptt-spotlight-quote.is-exiting {
  opacity: 0;
  transform: translateY(-12px);
}

.ptt-spotlight-quote.is-entering {
  opacity: 0;
  transform: translateY(14px);
}

/* Author */
.ptt-spotlight-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  transition: opacity .35s ease;
}

.ptt-spotlight-author.is-transitioning { opacity: 0; }

.ptt-spotlight-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ptt-teal-500), var(--ptt-teal-300));
  color: #FFFFFF;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(199, 125, 138, 0.3);
}

.ptt-spotlight-meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.ptt-spotlight-name {
  color: var(--ptt-white);
  font-size: .95rem;
  font-weight: 700;
}

.ptt-spotlight-loc {
  color: var(--ptt-teal-300);
  font-size: .8rem;
  opacity: .9;
}

/* Progress bar */
.ptt-progress-bar {
  height: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .5rem;
}

.ptt-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ptt-teal-500), var(--ptt-teal-300));
  border-radius: 999px;
  transition: width .12s linear;
}

/* Dot nav */
.ptt-dot-nav {
  display: flex;
  gap: .45rem;
  align-items: center;
  margin-top: .25rem;
}

.ptt-dot-nav-btn {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: width .3s cubic-bezier(.16,1,.3,1), background .3s ease;
}

.ptt-dot-nav-btn:hover {
  background: rgba(255,255,255,.5);
}

.ptt-dot-nav-btn.is-active {
  width: 1.4rem;
  background: linear-gradient(90deg, var(--ptt-teal-500), var(--ptt-teal-300));
}

/* ============================================================
   RIGHT — FEED PANEL
   ============================================================ */
.ptt-feed-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  overflow: hidden;
}

/* ── Stats row ── */
.ptt-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ptt-navy-900);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow:
    0 0 0 1px rgba(199, 125, 138, 0.2),
    0 20px 40px -12px rgba(41, 33, 48, 0.28);
  flex-shrink: 0;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .6s ease .2s, transform .6s cubic-bezier(.16,1,.3,1) .2s;
}

.ptt-stats-row.will-animate {
  opacity: 0;
  transform: translateX(20px);
}

.ptt-stats-row.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.ptt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  flex: 1;
}

.ptt-stat-num {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ptt-white);
  line-height: 1;
}

.ptt-stat-plus,
.ptt-stat-pct,
.ptt-stat-decimal {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ptt-teal-300);
  line-height: 1;
}

.ptt-stat-label {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(234, 227, 235, 0.65);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .2rem;
}

.ptt-stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ── Scrolling feed ── */
.ptt-feed-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--ptt-border);
  background: linear-gradient(160deg, #FFFFFF 0%, #FCF3F4 100%);
  opacity: 1;
  transform: translateX(0);
  transition: opacity .6s ease .35s, transform .6s cubic-bezier(.16,1,.3,1) .35s;
}

.ptt-feed-viewport.will-animate {
  opacity: 0;
  transform: translateX(20px);
}

.ptt-feed-viewport.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade masks top and bottom */
.ptt-feed-viewport::before,
.ptt-feed-viewport::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3.5rem;
  z-index: 2;
  pointer-events: none;
}

.ptt-feed-viewport::before {
  top: 0;
  background: linear-gradient(to bottom, #FFFFFF, transparent);
}

.ptt-feed-viewport::after {
  bottom: 0;
  background: linear-gradient(to top, #FCF3F4, transparent);
}

.ptt-feed-track {
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  will-change: transform;
}

/* Individual feed bubble */
.ptt-feed-bubble {
  background: var(--ptt-white);
  border: 1px solid var(--ptt-border);
  border-radius: 1.1rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 16px -6px rgba(41, 33, 48, 0.06);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.ptt-feed-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ptt-feed-bubble-author {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.ptt-feed-bubble-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ptt-navy-900), var(--ptt-navy-800));
  color: var(--ptt-teal-300);
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ptt-feed-bubble-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ptt-ink);
}

.ptt-feed-bubble-loc {
  font-size: .7rem;
  color: var(--ptt-ink-soft);
  display: block;
  line-height: 1.2;
}

.ptt-feed-bubble-stars {
  display: flex;
  gap: .15rem;
  color: var(--ptt-teal-300);
  font-size: .65rem;
}

.ptt-feed-bubble-text {
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ptt-ink);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .patient-trust-testimonials {
    padding: 5.5rem 0;
  }

  .ptt-split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ptt-spotlight {
    height: 380px;
  }

  .ptt-feed-panel {
    height: 340px;
  }

  .ptt-spotlight-inner {
    padding: 2.5rem 2rem 2rem;
  }
}

@media (max-width: 575.98px) {
  .patient-trust-testimonials {
    padding: 4rem 0;
  }

  .ptt-title {
    font-size: 1.75rem;
  }

  .ptt-stats-row {
    padding: 1.1rem 1.25rem;
  }

  .ptt-stat-num {
    font-size: 1.55rem;
  }

  .ptt-giant-quote {
    font-size: 6rem;
  }

  .ptt-spotlight-inner {
    padding: 2rem 1.5rem 1.75rem;
  }

  .ptt-spotlight-quote {
    font-size: 1.1rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ptt-header,
  .ptt-stats-row,
  .ptt-feed-viewport,
  .ptt-spotlight-quote,
  .ptt-spotlight-author,
  .ptt-progress-fill,
  .ptt-dot-nav-btn,
  .ptt-eyebrow-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .ptt-feed-track {
    animation: none !important;
  }
}