/* ============================================================
   Componente: depoimentos-video
   BEM puro. Mobile-first. Tokens via CSS custom properties.

   Tokens expostos (sobrescrever em :root da landing):
   - --cor-marca-texto         : fundo amarelo do marca-texto
   - --cor-marca-texto-borda   : borda lateral do marca-texto
   - --cor-marca-texto-circulo : círculos decorativos do marca-texto
   - --cor-texto-titulo        : cor do texto do título e nome
   - --cor-texto-corpo         : cor do texto do quote e subtitulo
   - --cor-fundo               : fundo da seção
   - --cor-cta-play            : cor do botão play e CTAs futuros (placeholder)
   - --fonte-titulo-serif      : fonte serif do título e nome
   - --fonte-corpo-sans        : fonte sans do subtítulo e quote
   - --fonte-nome-serif        : alias do título (mantido por compat)
   ============================================================ */

.depoimentos-video {
  /* tokens default (placeholders neutros, sobrescrever na landing) */
  --cor-marca-texto: #FFCA4075;
  --cor-marca-texto-borda: #FFCA40A3;
  --cor-marca-texto-circulo: #FFCA40D6;
  --cor-texto-titulo: #171717;
  --cor-texto-corpo: #2a2a2a;
  --cor-fundo: transparent;
  --cor-cta-play: #E63946;
  --fonte-titulo-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --fonte-corpo-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --fonte-nome-serif: var(--fonte-titulo-serif);

  /* tokens internos do layout (NÃO sobrescrever, são da fidelidade da referência) */
  --dv-padding-vert: 50px;
  --dv-padding-horiz: 20px;
  --dv-titulo-size: 29px;
  --dv-subtitulo-size: 18px;
  --dv-nome-size: 26px;
  --dv-quote-size: 15px;
  --dv-quote-leading: 1.5;
  --dv-gap-itens: 64px;
  --dv-gap-coluna: 32px;
  --dv-radius-video: 8px;

  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: var(--dv-padding-vert) var(--dv-padding-horiz);
  background: var(--cor-fundo);
  font-family: var(--fonte-corpo-sans);
  color: var(--cor-texto-corpo);
}

.depoimentos-video *,
.depoimentos-video *::before,
.depoimentos-video *::after {
  box-sizing: border-box;
}

.depoimentos-video__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============ TÍTULO ============ */
.depoimentos-video__titulo {
  font-family: var(--fonte-titulo-serif);
  font-size: var(--dv-titulo-size);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  text-align: center;
  color: var(--cor-texto-titulo);
  margin: 0 0 16px;
}

.depoimentos-video__titulo-destaque {
  position: relative;
  display: inline-block;
  font-style: italic;
  padding: 2px 8px;
  background: var(--cor-marca-texto);
  border-left: 1px solid var(--cor-marca-texto-borda);
  border-right: 1px solid var(--cor-marca-texto-borda);
  color: var(--cor-texto-titulo);
}

.depoimentos-video__titulo-destaque::before,
.depoimentos-video__titulo-destaque::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cor-marca-texto-circulo);
  pointer-events: none;
}

.depoimentos-video__titulo-destaque::after {
  top: -4px;
  left: -4px;
}

.depoimentos-video__titulo-destaque::before {
  right: -4px;
  bottom: -4px;
}

/* ============ SUBTÍTULO ============ */
.depoimentos-video__subtitulo {
  font-family: var(--fonte-corpo-sans);
  font-size: var(--dv-subtitulo-size);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--cor-texto-corpo);
  max-width: 720px;
  margin: 0 auto 48px;
}

.depoimentos-video__subtitulo-destaque {
  font-weight: 700;
  color: var(--cor-texto-titulo);
}

/* ============ LISTA ============ */
.depoimentos-video__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--dv-gap-itens);
}

/* ============ ITEM (linha doutora) ============ */
.depoimentos-video__item {
  display: flex;
  flex-direction: column;
  gap: var(--dv-gap-coluna);
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

/* ============ COLUNA TEXTO ============ */
.depoimentos-video__coluna-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.depoimentos-video__nome {
  font-family: var(--fonte-nome-serif);
  font-size: var(--dv-nome-size);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0;
  color: var(--cor-texto-titulo);
}

.depoimentos-video__nome-marca {
  position: relative;
  display: inline-block;
  font-style: italic;
  padding: 2px 8px;
  background: var(--cor-marca-texto);
  border-left: 1px solid var(--cor-marca-texto-borda);
  border-right: 1px solid var(--cor-marca-texto-borda);
  color: var(--cor-texto-titulo);
}

.depoimentos-video__nome-marca::before,
.depoimentos-video__nome-marca::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cor-marca-texto-circulo);
  pointer-events: none;
}

.depoimentos-video__nome-marca::after {
  top: -4px;
  left: -4px;
}

.depoimentos-video__nome-marca::before {
  right: -4px;
  bottom: -4px;
}

/* ============ QUOTE ============ */
.depoimentos-video__quote {
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--fonte-corpo-sans);
  font-size: var(--dv-quote-size);
  font-weight: 400;
  font-style: italic;
  line-height: var(--dv-quote-leading);
  letter-spacing: -0.2px;
  color: var(--cor-texto-corpo);
}

.depoimentos-video__quote p {
  margin: 0 0 12px;
}

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

.depoimentos-video__quote strong {
  font-weight: 700;
  color: var(--cor-texto-titulo);
}

/* ============ COLUNA VÍDEO ============ */
.depoimentos-video__coluna-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

/* ============ PLAYER (iframe YouTube) ============ */
.depoimentos-video__player {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--dv-radius-video);
  border: 0;
  outline: none;
}

iframe.depoimentos-video__player {
  height: 100%;
}

video.depoimentos-video__player {
  height: auto;
  object-fit: cover;
}

/* ============================================================
   TABLET (≥768px): texto à esquerda, vídeo à direita em 2 colunas
   ============================================================ */
@media (min-width: 768px) {
  .depoimentos-video {
    --dv-padding-vert: 80px;
    --dv-titulo-size: 35px;
    --dv-subtitulo-size: 20px;
    --dv-nome-size: 32px;
    --dv-quote-size: 17px;
    --dv-quote-leading: 1.45;
  }

  .depoimentos-video__subtitulo {
    line-height: 1.3;
  }

  .depoimentos-video__item {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }

  .depoimentos-video__coluna-texto {
    flex: 0 0 46%;
    max-width: 46%;
    align-items: flex-start;
    text-align: left;
  }

  .depoimentos-video__coluna-video {
    flex: 1 1 auto;
    max-width: 52%;
  }

  /* Modificador: invertido (vídeo esq, texto dir). Opcional. */
  .depoimentos-video__item--invertido {
    flex-direction: row-reverse;
  }
}

/* ============================================================
   DESKTOP grande (≥1024px): apenas refinos tipográficos
   ============================================================ */
@media (min-width: 1024px) {
  .depoimentos-video__coluna-texto {
    gap: 20px;
  }
}
