/* ==========================================================================
   SEÇÃO 11: PROVA SOCIAL / DEPOIMENTOS (Figma Node 566:1813)
   ========================================================================== */

.section-depoimentos {
  padding: 80px 0 100px;
  background-color: var(--color-bg-primary, #ffffff);
}

.depoimentos-header {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.depoimentos-eyebrow {
  margin-bottom: 20px;
}

.depoimentos-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 400;
  color: #4e4e4e;
  margin: 0;
  max-width: 590px;
}

/* Carrossel */
.depoimentos-carousel-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.depoimento-card {
  background: rgba(110, 221, 212, 0.025);
  border: 1px solid rgba(110, 221, 212, 0.3);
  border-radius: 30px;
  padding: 56px 70px 50px;
  text-align: center;
  width: 100%;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(110, 221, 212, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Conteúdo com Transição Suave */
.depoimento-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Estados de Saída / Entrada para Transição Suave */
.depoimento-content.is-exit-left {
  opacity: 0;
  transform: translateX(-24px);
}

.depoimento-content.is-exit-right {
  opacity: 0;
  transform: translateX(24px);
}

.depoimento-content.is-enter-left {
  opacity: 0;
  transform: translateX(24px);
}

.depoimento-content.is-enter-right {
  opacity: 0;
  transform: translateX(-24px);
}

.depoimento-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: #4e4e4e;
  margin: 0;
  max-width: 740px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.depoimento-author-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.depoimento-avatar-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #6eddd4;
  box-shadow: 0 4px 12px rgba(110, 221, 212, 0.25);
  flex-shrink: 0;
}

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

.depoimento-meta {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.depoimento-stars {
  display: flex;
  gap: 4px;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 2px;
}

.depoimento-stars .filled {
  color: #21948b;
}

.depoimento-stars .empty {
  color: #cae2e2;
}

.author-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #4e4e4e;
  margin: 0;
}

.author-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #64748b;
  margin: 0;
}

/* Botões de Navegação */
.carousel-nav-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #6eddd4;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(110, 221, 212, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.carousel-nav-btn:hover {
  background-color: #21948b;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(33, 148, 139, 0.4);
}

.carousel-nav-btn:active {
  transform: scale(0.96);
}

.prev-btn {
  left: -26px;
}

.next-btn {
  right: -26px;
}

/* Dots de Navegação */
.depoimentos-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.depoimento-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(33, 148, 139, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.depoimento-dot:hover {
  background-color: rgba(33, 148, 139, 0.5);
}

.depoimento-dot.active {
  width: 26px;
  background-color: #21948b;
}

/* Responsividade */
@media (max-width: 768px) {
  .section-depoimentos {
    padding: 60px 0;
  }

  .depoimentos-title {
    font-size: 30px;
    max-width: 300px;
  }

  .depoimento-card {
    padding: 40px 20px 32px;
    min-height: 320px;
  }

  .depoimento-quote {
    font-size: 16px;
    line-height: 1.55;
  }

  .prev-btn {
    left: -12px;
    width: 42px;
    height: 42px;
  }

  .next-btn {
    right: -12px;
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   DESTAQUE DEPOIMENTO EM VÍDEO VERTICAL (CASE MAGSUL)
   ========================================================================== */
.depoimento-video-showcase {
  max-width: 960px;
  margin: 0 auto 48px;
  background: linear-gradient(135deg, rgba(110, 221, 212, 0.08) 0%, rgba(255, 255, 255, 0.98) 55%);
  border: 1px solid rgba(110, 221, 212, 0.38);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 14px 36px rgba(33, 148, 139, 0.08);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  box-sizing: border-box;
}

.depoimento-video-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.depoimento-slides-viewport {
  width: 100%;
  display: flex;
  justify-content: center;
}

.depoimento-video-slide {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: magsulSlideFade 0.28s ease;
}

.depoimento-video-slide[hidden] {
  display: none !important;
}

@keyframes magsulSlideFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.depoimento-video-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(110, 221, 212, 0.14);
  border: 1px solid rgba(33, 148, 139, 0.24);
  padding: 5px 10px;
  border-radius: 999px;
}

.depoimento-video-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #166f68;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.depoimento-video-arrow:hover {
  background: #21948b;
  color: #ffffff;
  transform: scale(1.06);
}

.depoimento-video-counter {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #166f68;
  min-width: 86px;
  text-align: center;
}

.depoimento-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  border: 2px solid rgba(110, 221, 212, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.depoimento-portrait-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.depoimento-play-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 20px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.62) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  transition: opacity 0.25s ease, visibility 0.25s ease, background 0.25s ease;
}

.depoimento-play-overlay:hover {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.depoimento-play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.depoimento-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #21948b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(110, 221, 212, 0.32), 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.depoimento-play-overlay:hover .depoimento-play-btn {
  transform: scale(1.07);
  background: #1a7a72;
}

.depoimento-play-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.72);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.depoimento-story-col {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.depoimento-story-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.depoimento-story-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #166f68;
  background: rgba(110, 221, 212, 0.22);
  border: 1px solid rgba(33, 148, 139, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

.depoimento-slide-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(33, 148, 139, 0.22);
  padding: 4px;
  border-radius: 999px;
}

.depoimento-slide-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  color: #475569;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.depoimento-slide-tab .tab-idx {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(33, 148, 139, 0.14);
  color: #166f68;
}

.depoimento-slide-tab:hover {
  color: #166f68;
}

.depoimento-slide-tab.is-active {
  background: #21948b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 148, 139, 0.26);
}

.depoimento-slide-tab.is-active .tab-idx {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.depoimento-story-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21948b;
}

.depoimento-story-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #363636;
  margin: 0;
}

.depoimento-story-headline span {
  color: #21948b;
}

.depoimento-story-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.62;
  color: #4e4e4e;
}

.depoimento-story-copy p {
  margin: 0;
}

.depoimento-story-lead {
  font-weight: 600;
  color: #2c3e50;
}

.depoimento-story-authors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(33, 148, 139, 0.18);
}

.depoimento-story-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(33, 148, 139, 0.2);
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.depoimento-story-author:hover {
  border-color: rgba(33, 148, 139, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(33, 148, 139, 0.1);
}

.depoimento-story-author.is-active {
  background: rgba(110, 221, 212, 0.14);
  border-color: #21948b;
  box-shadow: 0 8px 20px rgba(33, 148, 139, 0.14);
}

.depoimento-author-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #21948b 0%, #166f68 100%);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(33, 148, 139, 0.25);
}

.depoimento-author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.depoimento-story-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #21948b;
  font-size: 13px;
  line-height: 1;
  margin-bottom: 2px;
}

.depoimento-story-stars i {
  font-style: normal;
  display: inline-block;
}

.depoimento-client-name,
.depoimento-story-author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #1e293b;
}

.depoimento-client-role,
.depoimento-story-author span {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: #64748b;
}

.depoimento-story-actions {
  padding-top: 4px;
}

.btn-depoimento-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #21948b;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(33, 148, 139, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-depoimento-cta:hover {
  background: #1a7a72;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(33, 148, 139, 0.34);
}

@media (max-width: 900px) {
  .depoimento-video-showcase {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 28px;
    margin-bottom: 36px;
  }

  .depoimento-portrait-frame {
    max-width: 320px;
  }

  .depoimento-story-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .depoimento-slide-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .depoimento-slide-tab {
    flex: 1;
    justify-content: center;
  }

  .depoimento-story-authors {
    grid-template-columns: 1fr;
  }

  .depoimento-story-headline {
    font-size: 23px;
  }

  .btn-depoimento-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 18px;
  }
}
