/* ============================================================================
   ATIVE-DEPOIMENTOS.CSS (Refino premium + credibilidade)
   Escopo: seção #depoimentos
   Regra: sem hardcode de cores (usar tokens)
   ============================================================================ */

#depoimentos .ative-tm-stars {
  display: inline-flex;
  gap: 0.18rem;
  color: var(--dourado);
  line-height: 1;
}

#depoimentos .ative-tm-grid {
  margin-top: 0.5rem;
}

/* Card */
#depoimentos .ative-tm-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-layered-sm);

  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;

  transition: var(--transicao-suave);
  overflow: hidden; /* para controlar pseudo-elementos */
}

/* barra superior “premium” (discreta) */
#depoimentos .ative-tm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dourado), var(--cobre));
  opacity: 0;
  transition: var(--transicao-media);
}

/* marca de aspas (bem sutil) */
#depoimentos .ative-tm-card::after {
  content: '“';
  position: absolute;
  right: 1.25rem;
  top: 0.85rem;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(var(--dourado-rgb), 0.12);
  pointer-events: none;
}

/* cabeçalho do card */
#depoimentos .ative-tm-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

/* texto do depoimento */
#depoimentos .ative-tm-quote {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.85;
  font-style: italic;
  letter-spacing: 0.005em;
  position: relative;
  z-index: 1;
}

/* rodapé (autor) */
#depoimentos .ative-tm-foot {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Linha separadora premium */
#depoimentos .ative-tm-foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--dourado), transparent);
  border-radius: 2px;
}

#depoimentos .ative-tm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(var(--dourado-rgb), 0.14);
  border: 1px solid rgba(var(--dourado-rgb), 0.22);

  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
}

#depoimentos .ative-tm-name {
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

/* destaque sutil no card principal */
#depoimentos .ative-tm-card.is-featured {
  border-color: rgba(var(--dourado-rgb), 0.45);
  box-shadow: var(--sombra-dourada);
}

#depoimentos .ative-tm-card.is-featured::before {
  opacity: 1;
}

/* hover: discreto e premium (só quando faz sentido) */
@media (hover: hover) and (pointer: fine) {
  #depoimentos .ative-tm-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--dourado-rgb), 0.25);
    box-shadow: var(--shadow-layered-md);
  }

  #depoimentos .ative-tm-card:hover::before {
    opacity: 1;
  }
}

/* foco acessível */
#depoimentos .ative-tm-card:focus-within {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-soft);
}

/* nota do CTA */
#depoimentos .ative-tm-cta-note {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

/* responsividade */
@media (max-width: 991px) {
  #depoimentos .ative-tm-card {
    padding: 1.75rem;
  }
  #depoimentos .ative-tm-quote {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  #depoimentos .ative-tm-card {
    padding: 1.45rem;
  }
}

/* reduz movimento */
@media (prefers-reduced-motion: reduce) {
  #depoimentos .ative-tm-card {
    transition: none;
    transform: none !important;
  }
}
