/* ============================================================
   11. Vídeos / Depoimentos — center-stage video carousel. The
   active slide is scaled up, plays inline (muted until the visitor
   opts in via the mute toggle), and auto-advances to the next clip
   on end. Side slides are dimmed, paused, permanently muted
   previews — click one to bring it to center (js/videos-carousel.js).
   ============================================================ */

.videos {
  background: var(--color-bg-surface);
  overflow: hidden;
}

.videos .eyebrow {
  color: var(--color-link-on-light);
  margin-bottom: var(--space-5);
}

.videos h2 {
  margin-bottom: var(--space-4);
}

.videos__lead {
  color: var(--color-text-muted);
  font-size: var(--text-lead);
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

.videos__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: var(--space-9);
}

.videos__track {
  display: flex;
  align-items: center;
  gap: var(--gap-tight);
  list-style: none;
  padding-inline: var(--container-pad);
  margin: 0;
  transition: transform var(--duration-slow) var(--ease-out);
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
}


.videos__track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.videos__track.is-dragging .videos__slide {
  cursor: grabbing;
}

.videos__slide {
  position: relative;
  flex: 0 0 auto;
  height: clamp(400px, 72vh, 680px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-inverted);
  box-shadow: var(--shadow-sm);
  opacity: 0.45;
  transform: scale(0.82);
  cursor: pointer;
  transition: opacity var(--duration-base) var(--ease-soft), transform var(--duration-base) var(--ease-soft), box-shadow var(--duration-base) var(--ease-soft);
}

.videos__slide.is-active {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
  cursor: default;
  z-index: 2;
}

.videos__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 41, 66, 0) 55%, rgba(15, 41, 66, 0.78) 100%);
}

.videos__slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.videos__select {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.videos__caption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 3;
  max-width: calc(100% - 56px);
  color: var(--color-white);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.videos__mute {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(15, 41, 66, 0.45);
  color: var(--color-white);
  opacity: 0.85;
  pointer-events: none;
  transition: background var(--duration-base) var(--ease-soft), color var(--duration-base) var(--ease-soft), opacity var(--duration-base) var(--ease-soft);
}

.videos__mute svg {
  width: 16px;
  height: 16px;
}

.videos__slide.is-active .videos__mute {
  background: rgba(243, 244, 246, 0.92);
  color: var(--color-accent-primary-hover);
  opacity: 1;
  pointer-events: auto;
}

.videos__slide.is-active .videos__mute:hover {
  background: var(--color-accent-primary);
  color: var(--color-text-on-accent);
}

.videos__arrow {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  color: var(--color-text-body);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.videos__arrow svg {
  width: 18px;
  height: 18px;
}

.videos__arrow--prev svg {
  transform: rotate(180deg);
}

.videos__arrow:hover {
  background: var(--color-accent-primary);
  color: var(--color-text-on-accent);
}

.videos__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.videos__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  transition: width var(--duration-base) var(--ease-soft), background var(--duration-base) var(--ease-soft);
}

.videos__dot.is-active {
  width: 24px;
  background: var(--color-accent-primary);
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .videos__arrow {
    display: inline-flex;
  }

  .videos__arrow--prev {
    left: var(--space-5);
  }

  .videos__arrow--next {
    right: var(--space-5);
  }
}
