/* ═══════════════════════════════════════════════════════════════
   Testimonial Card
   Used on /alum (TestimonialsView) and inside TestimonialsTeaser.
   Glass-card pattern: white surface + subtle radial backdrop,
   round headshot inline-start, name+role+badges stack on the side.
   ═══════════════════════════════════════════════════════════════ */

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 280px at 85% -20%, rgba(8, 148, 255, 0.06), transparent 60%),
    radial-gradient(600px 240px at 10% 120%, rgba(189, 50, 214, 0.05), transparent 60%),
    #ffffff;
  border: 1px solid rgba(0, 60, 130, 0.08);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
}

.testimonial-card__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.testimonial-card__avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #eaf3ff 0%, #f5eaff 100%);
  border: 1px solid rgba(0, 60, 130, 0.08);
  overflow: hidden;
}

.testimonial-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-card__avatar-initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #5a5b6a;
}

.testimonial-card__identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #191a23;
  margin: 0;
  line-height: 1.2;
}

.testimonial-card__role {
  font-family: var(--font-body);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-card__role-title {
  font-size: 14.5px;
  font-weight: 400;
  color: #5a5b6a;
  line-height: 1.4;
}

.testimonial-card__role-company {
  font-size: 16px;
  font-weight: 600;
  color: #191a23;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.testimonial-card__badges {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.testimonial-card__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f6f9fe;
  border: 1px solid rgba(0, 60, 130, 0.08);
  color: #191a23;
}

.testimonial-card__badge--excellent {
  background: #ffffff;
}

.testimonial-card__badge--excellent::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0894FF 0%, #BD32D6 50%, #FFA304 100%);
}

.testimonial-card__badge--client {
  background: rgba(0, 113, 227, 0.06);
  border-color: rgba(0, 113, 227, 0.2);
  color: #0071e3;
}

.testimonial-card__badge--alum {
  background: rgba(189, 50, 214, 0.05);
  border-color: rgba(189, 50, 214, 0.18);
  color: #8a2eaf;
}

.testimonial-card__credentials {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.testimonial-card__credential {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #5a5b6a;
  padding-inline-start: 16px;
}

.testimonial-card__credential::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(0, 113, 227, 0.45);
}

.testimonial-card__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: #0071e3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.testimonial-card__source:hover {
  color: #0077ed;
  text-decoration: underline;
}

.testimonial-card__source svg {
  flex: 0 0 auto;
}

.testimonial-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-card__paragraph {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: #191a23;
  margin: 0;
}


/* ── "Gold" / featured variant ──────────────────────────────────
   Used by the pinned showcase card at the top of /reviews. Stays
   inside the brand palette by leaning on the warm-end stops
   (#FFA304, #C4551A) - no new token introduced. A thin warm
   gradient cap on top, a softer amber radial wash, a stronger
   shadow, and a slightly bigger padding/avatar for hierarchy. */
.testimonial-card--gold {
  padding: 40px 44px;
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(255, 163, 4, 0.10), transparent 60%),
    radial-gradient(640px 280px at 10% 120%, rgba(196, 85, 26, 0.07), transparent 60%),
    #ffffff;
  border-color: rgba(196, 85, 26, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 163, 4, 0.22),
    0 12px 36px rgba(0, 60, 130, 0.10),
    var(--shadow-md);
}

.testimonial-card--gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFA304 0%, #C4551A 50%, #FFA304 100%);
  /* Sits flush with the rounded corners. */
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  z-index: 2;
  pointer-events: none;
}

.testimonial-card--gold .testimonial-card__avatar {
  width: 108px;
  height: 108px;
  border-color: rgba(196, 85, 26, 0.2);
}


/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .testimonial-card {
    padding: 28px 28px;
    gap: 20px;
  }
  .testimonial-card__avatar {
    width: 84px;
    height: 84px;
  }
  .testimonial-card__name {
    font-size: 22px;
  }
  .testimonial-card__paragraph {
    font-size: 16px;
  }
  .testimonial-card--gold {
    padding: 32px 32px;
  }
  .testimonial-card--gold .testimonial-card__avatar {
    width: 96px;
    height: 96px;
  }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 24px 20px;
    gap: 18px;
    border-radius: var(--radius-md);
  }
  .testimonial-card__header {
    gap: 16px;
  }
  .testimonial-card__avatar {
    width: 72px;
    height: 72px;
  }
  .testimonial-card__avatar-initials {
    font-size: 26px;
  }
  .testimonial-card__name {
    font-size: 20px;
  }
  .testimonial-card__role-title {
    font-size: 13.5px;
  }
  .testimonial-card__role-company {
    font-size: 15px;
  }
  .testimonial-card__paragraph {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .testimonial-card__badge {
    font-size: 11px;
  }
  .testimonial-card--gold {
    padding: 24px 20px;
  }
  .testimonial-card--gold .testimonial-card__avatar {
    width: 80px;
    height: 80px;
  }
}
