/* ==========================================================================
   testimonials.css
   Seção "Prova real" — depoimentos em card, com suporte a 1, 2 ou 3+ cards.
   Mobile-first. Reaproveita tokens de style.css.
   ========================================================================== */

.testimonial-section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Header centralizado */
.testimonial-heading {
  max-width: 680px;
  margin: 0 auto 46px;
  text-align: center;
}

.testimonial-heading h2 {
  margin-bottom: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.testimonial-heading p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Grid de cards — adaptável a 1, 2 ou 3+ depoimentos */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
  margin-inline: auto;
}

/* Card de depoimento */
.testimonial-card {
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 255, 56, 0.05), transparent 55%),
    var(--card);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.testimonial-card:hover {
  border-color: rgba(199, 255, 56, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

/* Estrelas */
.testimonial-stars {
  display: block;
  margin-bottom: 16px;
  color: var(--lime);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* Citação */
.testimonial-quote {
  margin: 0 0 24px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* Autor */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Avatar com inicial (fallback padrão) */
.testimonial-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

/* Avatar em imagem (quando houver autorização para usar foto) */
.testimonial-avatar-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(199, 255, 56, 0.35);
}

/* Dados do autor */
.testimonial-meta {
  min-width: 0;
}

.testimonial-meta strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.testimonial-meta small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Link verificável (ex: "ver no YouTube ↗") */
.testimonial-source {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.testimonial-source:hover,
.testimonial-source:focus-visible {
  color: #d7ff78;
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Card-convite (para captar depoimentos futuros)
   Fica FORA do .testimonial-grid — é um banner de largura total
   abaixo da grade, para não competir visualmente com depoimentos. */
.testimonial-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 34px 28px;
  border: 1px dashed rgba(199, 255, 56, 0.28);
  border-radius: 18px;
  background: rgba(199, 255, 56, 0.02);
  text-align: center;
}

.testimonial-invite-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(199, 255, 56, 0.1);
  color: var(--lime);
  font-size: 1.35rem;
}

.testimonial-invite p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.testimonial-invite p strong {
  color: var(--text);
}

.testimonial-invite a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid rgba(199, 255, 56, 0.4);
  border-radius: 100px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.testimonial-invite a:hover {
  background: rgba(199, 255, 56, 0.08);
  border-color: var(--lime);
}

/* Telas maiores */
@media (min-width: 700px) {
  .testimonial-section {
    padding: 100px 0;
  }
}

/* Quando houver 2+ depoimentos, o grid se expande automaticamente */
@media (min-width: 760px) {
  .testimonial-grid:has(.testimonial-card:nth-child(2)) {
    max-width: 960px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .testimonial-grid:has(.testimonial-card:nth-child(3)) {
    max-width: 1100px;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ajuste para 1 único depoimento: card centralizado, largura confortável */
.testimonial-grid:not(:has(.testimonial-card:nth-child(2))) {
  max-width: 560px;
}

.testimonial-grid:not(:has(.testimonial-card:nth-child(2))) .testimonial-card {
  width: 100%;
}