/* ==========================================================================
   testimonials.css
   - Cards estilo Instagram/BNG
   - Grid responsivo + carrossel no mobile (opcional)
   - Avatar, estrelas, aspas, selo Google
   ========================================================================== */

.testimonials {
  background: #fff;
}

.testimonials .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.testimonials .section-title {
  margin: 0;
}

.testimonials .section-subtitle {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

/* ==========================================================================
   Grid
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.testimonials-grid > .t-card {
  grid-column: span 4;
}

@media (max-width: 1023px) {
  .testimonials-grid > .t-card {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  /* No mobile fica tipo “feed” */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .testimonials-grid > .t-card {
    grid-column: auto;
  }
}

/* ==========================================================================
   Card base (Instagram vibe)
   ========================================================================== */

.t-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 16px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.t-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
  border-color: rgba(11, 31, 24, 0.18);
}

/* brilho leve no topo (bem sutil) */
.t-card::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    closest-side,
    rgba(201, 162, 90, 0.16),
    rgba(201, 162, 90, 0.00)
  );
  transform: rotate(10deg);
  pointer-events: none;
}

/* ==========================================================================
   Header (avatar + nome + estrelas)
   ========================================================================== */

.t-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(11, 31, 24, 0.06);
  border: 1px solid rgba(11, 31, 24, 0.12);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

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

.t-avatar-initials {
  font-weight: 800;
  color: var(--brand-green);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.t-who {
  min-width: 0;
  flex: 1 1 auto;
}

.t-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-time {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}

.t-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.t-stars {
  display: inline-flex;
  gap: 2px;
}

.t-star {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: conic-gradient(from 0deg, var(--brand-gold), var(--brand-gold-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.t-score {
  font-size: 12px;
  font-weight: 900;
  color: rgba(11, 31, 24, 0.70);
}

/* ==========================================================================
   Body (texto + aspas)
   ========================================================================== */

.t-body {
  position: relative;
}

.t-quote {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.t-quote::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: -2px;
  font-size: 38px;
  line-height: 1;
  color: rgba(201, 162, 90, 0.20);
  font-weight: 900;
  pointer-events: none;
}

.t-quote::after {
  content: "”";
  position: absolute;
  bottom: -22px;
  right: 2px;
  font-size: 38px;
  line-height: 1;
  color: rgba(201, 162, 90, 0.18);
  font-weight: 900;
  pointer-events: none;
}

/* Limitar texto (opcional) */
.t-quote.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Footer (selinho Google / CTA)
   ========================================================================== */

.t-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 31, 24, 0.14);
}

.t-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 700;
}

.t-google-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, rgba(255,255,255,0) 45%),
    conic-gradient(#4285F4 0 25%, #34A853 25% 50%, #FBBC05 50% 75%, #EA4335 75% 100%);
  border: 1px solid rgba(11, 31, 24, 0.08);
}

.t-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--brand-green);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(11, 31, 24, 0.04);
  border: 1px solid rgba(11, 31, 24, 0.10);
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.t-action:hover {
  background: rgba(11, 31, 24, 0.06);
  border-color: rgba(11, 31, 24, 0.16);
}

.t-action:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Variante para fundo escuro (se usar em section dark)
   ========================================================================== */

.testimonials.is-dark .t-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.testimonials.is-dark .t-name {
  color: rgba(255, 255, 255, 0.92);
}

.testimonials.is-dark .t-time,
.testimonials.is-dark .t-score,
.testimonials.is-dark .t-quote,
.testimonials.is-dark .t-source {
  color: rgba(255, 255, 255, 0.80);
}

.testimonials.is-dark .t-foot {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.testimonials.is-dark .t-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.testimonials.is-dark .t-action:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}
