/* Depoimentos: esteira horizontal com rolagem automática. Pausa ao passar o
   mouse/tocar (via :hover, tratado em CSS) ou ao clicar num cartão, que abre
   o modal com o texto completo — ver js/ui/depoimentos.js. */

.depoimentos-viewport {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.depoimentos-trilha {
  display: flex;
  width: max-content;
  gap: var(--espaco-md);
  padding: 0.35rem 0;
  animation: depoimentos-deslizar 46s linear infinite;
}

.depoimentos-viewport:hover .depoimentos-trilha,
.depoimentos-trilha:focus-within {
  animation-play-state: paused;
}

@keyframes depoimentos-deslizar {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .depoimentos-trilha {
    animation: none;
  }
  .depoimentos-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.depoimento-card {
  flex-shrink: 0;
  width: min(340px, 82vw);
  background-color: var(--cor-petroleo-claro);
  border: 1px solid rgba(235, 193, 115, 0.18);
  border-radius: var(--raio-borda);
  padding: var(--espaco-md) var(--espaco-md) 1.25rem;
  text-align: left;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--sombra-card);
  transition: transform var(--transicao-padrao), border-color var(--transicao-padrao), box-shadow var(--transicao-padrao);
}

.depoimento-card:hover,
.depoimento-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(235, 193, 115, 0.55);
  box-shadow: var(--sombra-elevada);
}

.depoimento-aspas {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--cor-dourado);
  opacity: 0.85;
}

.depoimento-texto {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cor-texto-claro);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.depoimento-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(235, 193, 115, 0.18);
}

.depoimento-nome {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cor-texto-claro);
}

.depoimento-cta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cor-dourado-40);
  white-space: nowrap;
}

.depoimento-card:hover .depoimento-cta,
.depoimento-card:focus-visible .depoimento-cta {
  color: var(--cor-dourado);
}

/* Modal de leitura completa */
.depoimentos-modal-fundo {
  position: fixed;
  inset: 0;
  background: rgba(0, 16, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--espaco-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transicao-padrao);
  z-index: 1600;
}

.depoimentos-modal-fundo[data-aberto="true"] {
  opacity: 1;
  pointer-events: auto;
}

.depoimentos-modal-caixa {
  background-color: var(--cor-petroleo-claro);
  border: 1px solid rgba(235, 193, 115, 0.3);
  border-radius: var(--raio-borda);
  max-width: 560px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: var(--espaco-lg) var(--espaco-md) var(--espaco-md);
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transicao-padrao);
  box-shadow: var(--sombra-elevada);
}

.depoimentos-modal-fundo[data-aberto="true"] .depoimentos-modal-caixa {
  transform: translateY(0) scale(1);
}

.depoimentos-modal-fechar {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  color: var(--cor-petroleo-70);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transicao-rapida), color var(--transicao-rapida);
}

.depoimentos-modal-fechar:hover,
.depoimentos-modal-fechar:focus-visible {
  background-color: rgba(235, 193, 115, 0.12);
  color: var(--cor-dourado);
}

.depoimentos-modal-fechar svg {
  width: 16px;
  height: 16px;
}

.depoimentos-modal-aspas {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--cor-dourado);
  margin-bottom: 0.5rem;
}

.depoimentos-modal-texto p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cor-texto-claro);
}

.depoimentos-modal-texto p:last-child {
  margin-bottom: 0;
}

.depoimentos-modal-nome {
  margin: var(--espaco-md) 0 0;
  padding-top: var(--espaco-sm);
  border-top: 1px solid rgba(235, 193, 115, 0.2);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cor-texto-claro);
  text-align: right;
}
