/* ==========================================================================
   34. TESTIMONIALS PAGE  (_testimonials.css)
   ========================================================================== */

/* ── Star helpers ── */
.tmn-star--on  { color: #f59e0b; }
.tmn-star--off { color: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.tmn-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #243044 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.tmn-hero::before {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,146,47,.1) 0%, transparent 70%);
  pointer-events: none;
}

.tmn-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

/* Text side */
.tmn-hero__text .eyebrow--gold { display: block; margin-bottom: 1rem; }

.tmn-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 1.1rem;
}

.tmn-hero__title--accent { color: var(--color-accent); }

.tmn-hero__sub {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.75rem;
  max-width: 480px;
}

.tmn-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.tmn-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .35rem .9rem;
  border-radius: 999px;
}

.tmn-badge--verified {
  background: rgba(34,197,94,.15);
  color: #86efac;
  border: 1px solid rgba(34,197,94,.25);
}

.tmn-badge--reviews {
  background: rgba(201,146,47,.15);
  color: #fcd34d;
  border: 1px solid rgba(201,146,47,.25);
}

/* Score panel */
.tmn-hero__score {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  text-align: center;
  min-width: 240px;
}

.tmn-hero__score-num {
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: .5rem;
}

.tmn-hero__score-stars {
  display: flex;
  justify-content: center;
  gap: .25rem;
  margin-bottom: .75rem;
}

.tmn-hero__score-label {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}

.tmn-hero__score-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.tmn-hero__score-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}

.tmn-hero__score-stat strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.tmn-hero__score-stat span {
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ══════════════════════════════════════════
   RATING BREAKDOWN
   ══════════════════════════════════════════ */
.tmn-breakdown {
  background: #fff;
  padding: 4rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.tmn-breakdown__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

/* Metrics */
.tmn-breakdown__metrics {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tmn-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.tmn-metric__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tmn-metric__icon--gold   { background: linear-gradient(135deg, #c9922f, #a87520); }
.tmn-metric__icon--green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.tmn-metric__icon--blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.tmn-metric__value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: .1rem;
}

.tmn-metric__value span {
  font-size: 1rem;
}

.tmn-metric__label {
  font-size: .78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Bar chart */
.tmn-breakdown__bars {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.tmn-breakdown__bars-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  margin-bottom: .25rem;
}

.tmn-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.tmn-bar-row__label {
  flex-shrink: 0;
  width: 32px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: right;
}

.tmn-bar-row__track {
  flex: 1;
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.tmn-bar-row__fill {
  height: 100%;
  border-radius: 999px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.tmn-bar-row__fill--gold    { background: linear-gradient(90deg, #c9922f, #f59e0b); }
.tmn-bar-row__fill--neutral { background: #94a3b8; }
.tmn-bar-row__fill--low     { background: #cbd5e1; }

.tmn-bar-row__pct {
  flex-shrink: 0;
  width: 36px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-dark);
  text-align: right;
}

.tmn-bar-row__count {
  flex-shrink: 0;
  font-size: .75rem;
  color: #9ca3af;
  width: 28px;
}

/* ══════════════════════════════════════════
   FEATURED QUOTE
   ══════════════════════════════════════════ */
.tmn-featured {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 4.5rem 0;
}

.tmn-featured__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.tmn-featured__quote-mark {
  color: var(--color-accent);
  opacity: .35;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.tmn-featured__text {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 2.5rem;
}

.tmn-featured__author {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: .875rem 1.5rem;
  border-radius: 999px;
}

.tmn-featured__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tmn-featured__name {
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
}

.tmn-featured__role {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}

.tmn-featured__stars {
  display: flex;
  gap: .2rem;
  color: #f59e0b;
  margin-left: .5rem;
}

/* ══════════════════════════════════════════
   TESTIMONIALS GRID
   ══════════════════════════════════════════ */
.tmn-grid-section {
  background: #f8fafc;
  padding: 5rem 0;
}

.tmn-grid-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.tmn-grid-section__header .eyebrow--gold { display: block; margin-bottom: .75rem; }

.tmn-grid-section__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-dark);
  margin: 0;
}

.tmn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ══════════════════════════════════════════
   TESTIMONIAL CARD
   ══════════════════════════════════════════ */
.tmn-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}

.tmn-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
  transform: translateY(-4px);
}

.tmn-card__bar {
  height: 4px;
  flex-shrink: 0;
}

.tmn-card__body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header: stars + verified */
.tmn-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.tmn-card__stars {
  display: flex;
  gap: .15rem;
}

.tmn-card__verified {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #16a34a;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  padding: .2rem .6rem;
  border-radius: 999px;
}

/* Service tag */
.tmn-card__service-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-accent);
  background: rgba(201,146,47,.08);
  border: 1px solid rgba(201,146,47,.2);
  padding: .2rem .7rem;
  border-radius: 6px;
  margin-bottom: .75rem;
}

/* Decorative quote icon */
.tmn-card__quote-icon {
  margin-bottom: .5rem;
}

/* Quote text */
.tmn-card__quote {
  font-size: .9rem;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 1.25rem;
  flex: 1;
  font-style: italic;
}

/* Footer */
.tmn-card__footer {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.tmn-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmn-card__name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-dark);
}

.tmn-card__role {
  font-size: .75rem;
  color: #9ca3af;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tmn-hero__inner         { grid-template-columns: 1fr; gap: 2.5rem; }
  .tmn-hero__score         { min-width: unset; display: grid; grid-template-columns: auto auto; gap: 1.25rem 2rem; padding: 1.75rem 2rem; text-align: left; }
  .tmn-hero__score-num     { grid-row: 1; grid-column: 1; }
  .tmn-hero__score-stars   { justify-content: flex-start; }
  .tmn-breakdown__layout   { grid-template-columns: 1fr; gap: 2.5rem; }
  .tmn-breakdown__metrics  { flex-direction: row; flex-wrap: wrap; }
  .tmn-metric              { flex: 1 1 180px; }
  .tmn-grid                { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tmn-hero                { padding: 3.5rem 0 3rem; }
  .tmn-hero__score         { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .tmn-hero__score-stars   { justify-content: center; }
  .tmn-breakdown__metrics  { flex-direction: column; }
  .tmn-grid                { grid-template-columns: 1fr; }
  .tmn-featured__author    { flex-direction: column; text-align: center; border-radius: 16px; }
  .tmn-featured__stars     { margin-left: 0; justify-content: center; }
}

/* ── GDPR consent ── */
.ts-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.ts-gdpr input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
}

.ts-gdpr a { color: var(--color-accent); text-decoration: underline; }
.ts-required { color: var(--color-accent); }

.ts-gdpr-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-top: 0.4rem;
}

.ts-gdpr-note svg { flex-shrink: 0; margin-top: 1px; color: #22c55e; }
