/*============= DEPOIMENTOS: PRINTS DE CLIENTES ===============*/
/*
 * Os cards de texto continuam com o estilo original (main.css).
 * Aqui fica só a moldura dos prints, que padroniza imagens de qualquer tamanho:
 *  - fundo = o próprio print desfocado + filtro nas cores da marca;
 *  - moldura "phone" (conversas verticais) ou "window" (e-mails / prints horizontais).
 * Mobile-first: base = celular; min-width = telas maiores.
 */

.tp-frame {
  --tp-h: 300px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--tp-h);
  border-radius: 16px;
  overflow: hidden;
  background: #1a1719;
  box-shadow: 0 24px 40px -24px rgba(2, 38, 144, 0.45);
  cursor: zoom-in;
}

/* Fundo: o print ampliado e desfocado preenche qualquer sobra de espaço */
.tp-backdrop {
  position: absolute;
  inset: -40px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.3) brightness(0.8);
  transform: scale(1.1);
}

/* Filtro de cor da marca (azul AJA -> laranja) por cima do fundo */
.tp-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(2, 38, 144, 0.7) 0%, rgba(2, 38, 144, 0.35) 55%, rgba(227, 91, 28, 0.45) 100%);
}

.tp-device {
  position: relative;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp-screen {
  display: block;
  overflow: hidden;
  background: #fff;
}

.tp-screen img {
  display: block;
  width: 100%;
}

/*----- Moldura celular (prints verticais) -----*/
.tp-frame--phone .tp-device {
  width: 170px;
  height: calc(var(--tp-h) - 36px);
  padding: 7px;
  border-radius: 30px;
  background: #0d0d10;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

/* "Notch" do celular */
.tp-frame--phone .tp-device::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 38%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  background: #0d0d10;
  z-index: 2;
}

.tp-frame--phone .tp-screen {
  height: 100%;
  border-radius: 23px;
}

/* Mostra o topo do print; no hover "rola" a conversa até o fim */
.tp-frame--phone .tp-screen img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: object-position 5s ease-in-out;
}

/*----- Moldura janela (e-mails e prints horizontais) -----*/
.tp-frame--window .tp-device {
  width: calc(100% - 40px);
  max-width: 520px;
  padding-top: 26px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Barra superior com os 3 "botões" de janela */
.tp-frame--window .tp-device::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  border-bottom: 1px solid #ececf1;
  background:
    radial-gradient(circle at 14px 13px, #ff5f57 4px, transparent 4.5px),
    radial-gradient(circle at 28px 13px, #febc2e 4px, transparent 4.5px),
    radial-gradient(circle at 42px 13px, #28c840 4px, transparent 4.5px),
    #f5f5f8;
}

.tp-frame--window .tp-screen {
  max-height: calc(var(--tp-h) - 36px - 26px);
}

/*----- Selo de origem e botão de ampliar -----*/
.tp-source {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ztc-text-text-2);
  font-family: var(--ztc-family-font1);
  font-size: 13px;
  font-weight: var(--ztc-weight-bold);
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tp-source--whatsapp i { color: #25d366; }
.tp-source--instagram i { color: #e1306c; }
.tp-source--linkedin i { color: #0a66c2; }
.tp-source--email i { color: #022690; }
.tp-source--google i { color: #4285f4; }
.tp-source--outro i { color: #e35b1c; }

.tp-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e35b1c;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(227, 91, 28, 0.45);
  transition: transform 0.3s ease;
}

/*----- Interações (só em dispositivos com mouse) -----*/
@media (hover: hover) {
  .tp-frame:hover .tp-device {
    transform: translateY(-6px);
  }

  .tp-frame--phone:hover .tp-screen img {
    object-position: bottom center;
  }

  .tp-frame:hover .tp-zoom {
    transform: scale(1.12);
  }
}

.tp-frame:focus-visible {
  outline: 3px solid #e35b1c;
  outline-offset: 3px;
}

/* Avatar com iniciais quando o cliente não tem foto */
.tp-initials {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #022690;
  color: #fff;
  font-family: var(--ztc-family-font1);
  font-size: 18px;
  font-weight: var(--ztc-weight-bold);
}

/*============= DEPOIMENTOS: FAIXA CONTÍNUA (FULL WIDTH) ===============*/
.tm-section {
  background: #FBF9F4;
  padding: 60px 0 40px;
  overflow: hidden;
}

.tm-header h2 {
  color: #022690;
}

.tm-marquee {
  --tm-gap: 24px;
  margin-top: 40px;
  overflow: hidden;
  /* Esmaece as bordas para os cards "entrarem" e "saírem" suavemente */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tm-track {
  display: flex;
  width: max-content;
  animation: tm-scroll var(--tm-duration, 60s) linear infinite;
}

/* Pausa para leitura com o mouse em cima ou com foco do teclado */
.tm-marquee:hover .tm-track,
.tm-marquee:focus-within .tm-track,
.tm-marquee.is-paused .tm-track {
  animation-play-state: paused;
}

.tm-group {
  display: flex;
  align-items: stretch;
  gap: var(--tm-gap);
  /* O espaço depois do último card mantém o -50% exato entre as duas cópias */
  padding-right: var(--tm-gap);
}

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

.tm-card {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -28px rgba(2, 38, 144, 0.35);
  border: 1px solid rgba(2, 38, 144, 0.06);
}

.tm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tm-stars {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-stars li {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
  background: rgba(255, 186, 0, 0.1);
  color: #FFBA00;
  font-size: 12px;
}

.tm-card-body {
  flex: 1;
}

.tm-text {
  margin: 0;
  color: var(--ztc-text-text-3);
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  font-weight: var(--ztc-weight-medium);
  line-height: 26px;
}

.tm-text--caption {
  margin-top: 16px;
}

.tm-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 23, 25, 0.08);
}

.tm-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.tm-name {
  margin: 0;
  color: var(--ztc-text-text-2);
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s18);
  font-weight: var(--ztc-weight-bold);
  line-height: 1.2;
}

.tm-role {
  margin: 4px 0 0;
  color: var(--ztc-text-text-3);
  font-family: var(--ztc-family-font2);
  font-size: var(--ztc-font-size-font-s14);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .tm-card {
    width: 380px;
    padding: 28px;
  }

  .tm-text {
    font-size: var(--ztc-font-size-font-s18);
    line-height: 28px;
  }
}

@media (min-width: 992px) {
  .tm-section {
    padding: 100px 0 50px;
  }

  .tm-marquee {
    --tm-gap: 30px;
    margin-top: 56px;
  }
}

/* Sem animação: vira uma faixa com rolagem horizontal manual */
@media (prefers-reduced-motion: reduce) {
  .tm-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tm-track {
    animation: none;
  }

  .tm-group[aria-hidden="true"] {
    display: none;
  }
}

/* Lightbox (Magnific Popup): print ampliado com cantos arredondados */
.mfp-tp .mfp-img {
  border-radius: 12px;
  padding: 0;
  margin: 40px 0;
}

.mfp-tp .mfp-bottom-bar {
  margin-top: -36px;
}

/* Abertura/fechamento suave do lightbox */
.mfp-fade.mfp-bg,
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mfp-fade.mfp-wrap .mfp-content {
  transform: scale(0.96);
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.85;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: none;
}

.mfp-fade.mfp-bg.mfp-removing,
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

/*----- CTA após os depoimentos (WhatsApp) -----*/
/* Mesmo fundo da seção de depoimentos, como uma continuação dela */
.tp-cta-area {
  background: #FBF9F4;
  padding: 0 0 60px;
}

.tp-cta {
  text-align: center;
}

/* Botão ocupa a largura no celular (texto longo) e volta ao tamanho natural em telas maiores */
.tp-cta .tp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  line-height: 1.3;
  white-space: normal;
  animation: tp-cta-pulse 2.4s ease-out infinite;
}

.tp-cta .tp-cta-btn i {
  font-size: 1.3em;
}

@keyframes tp-cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 91, 28, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(227, 91, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 91, 28, 0); }
}

/*----- Tablet em diante -----*/
@media (min-width: 768px) {
  .tp-frame {
    --tp-h: 340px;
  }

  .tp-frame--phone .tp-device {
    width: 190px;
  }

  .tp-cta .tp-cta-btn {
    width: auto;
  }
}

/*----- Desktop -----*/
@media (min-width: 992px) {
  .tp-frame {
    --tp-h: 360px;
  }

  .tp-frame--phone .tp-device {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .tp-cta-area {
    padding-bottom: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-cta .tp-cta-btn {
    animation: none;
  }

  .tp-device,
  .tp-zoom,
  .tp-frame--phone .tp-screen img {
    transition: none !important;
  }
}
