/* RELM: Depoimentos em vídeo (snipplets/relm/relm-videos.tpl). Carregado só na Home por relm-head.tpl. */

.relm-videos {
  background: var(--relm-creme);
  color: var(--relm-verde-escuro);
  font-family: var(--relm-font-text);
  padding: clamp(64px, 9vw, 120px) 0;
}
.relm-videos .relm-home-inner { padding: 0 clamp(16px, 7vw, 110px); max-width: none; }
.relm-videos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto 32px; }
.relm-videos-head .relm-home-title { margin: 0; }

.relm-videos-nav { display: flex; gap: 8px; flex: none; }
.relm-videos-nav[hidden] { display: none; }
.relm-videos-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid rgba(27, 74, 31, .35); border-radius: 50%;
  background: transparent; color: var(--relm-verde-botao); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.relm-videos-arrow:hover:not(:disabled) { background: var(--relm-verde-botao); border-color: var(--relm-verde-botao); color: var(--relm-creme); }
.relm-videos-arrow:disabled { opacity: .35; cursor: default; }
.relm-videos-arrow:focus-visible { outline: 2px solid var(--relm-verde-botao); outline-offset: 2px; }

/* Faixa horizontal com scroll-snap */
.relm-videos-track {
  display: flex; gap: 16px;
  margin: 0; padding: 4px clamp(16px, 7vw, 110px) 12px;
  list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 clamp(16px, 7vw, 110px);
  scrollbar-width: thin; scrollbar-color: rgba(27, 74, 31, .3) transparent;
}
.relm-videos-track::-webkit-scrollbar { height: 6px; }
.relm-videos-track::-webkit-scrollbar-thumb { background: rgba(27, 74, 31, .3); border-radius: 3px; }

.relm-video-card { flex: 0 0 auto; width: min(70vw, 280px); scroll-snap-align: start; }
.relm-video-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: var(--relm-verde);
  box-shadow: 0 10px 30px -18px rgba(14, 42, 20, .45);
}
.relm-video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.relm-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Botão de play: ocupa o card inteiro (alvo grande), ícone redondo no centro */
.relm-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 0;
  background: linear-gradient(to top, rgba(14, 42, 20, .45), rgba(14, 42, 20, 0) 45%);
  color: var(--relm-verde-escuro); cursor: pointer;
}
.relm-video-play-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; padding-left: 4px;
  border-radius: 50%;
  background: var(--relm-amarelo);
  box-shadow: 0 6px 18px rgba(14, 42, 20, .3);
  transition: transform .2s ease;
}
.relm-video-play:hover .relm-video-play-icon { transform: scale(1.06); }
.relm-video-play:focus-visible { outline: 3px solid var(--relm-amarelo); outline-offset: -3px; }
noscript .relm-video-play,
a.relm-video-play { color: var(--relm-creme); font-weight: 700; text-align: center; padding: 16px; }

.relm-video-name {
  margin: 12px 2px 0;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--relm-verde-botao);
}

@media (prefers-reduced-motion: reduce) {
  .relm-videos-track { scroll-behavior: auto; }
  .relm-video-play-icon,
  .relm-videos-arrow { transition: none; }
  .relm-video-play:hover .relm-video-play-icon { transform: none; }
}
