/* ============================================================
   Showcase Section (Vídeo & Carrossel de Prints)
   ============================================================ */
.showcase {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.showcase-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.showcase-header h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.showcase-header p {
  font-size: 1.125rem;
  color: #666;
}

/* ─── Vídeo ─────────────────────────────────────────────────── */
.video-wrapper {
  max-width: 980px;
  margin: 0 auto 5rem;
  border-radius: calc(var(--border-radius) + 6px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(3, 15, 55, 0.18);
  background: var(--color-primary);
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 2;
  background: #000;
}

/* Placeholder mostrado quando não há vídeo (ou antes de carregar) */
.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 2rem;
}

.video-placeholder span {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.video-placeholder h3 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.video-placeholder p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ─── Carrossel ─────────────────────────────────────────────── */
.carousel-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 2.5rem;
}

.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  user-select: none;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 16px 50px rgba(3, 15, 55, 0.14);
  background: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  /* Não tem width definida aqui - o JS define os slides em px */
}

.carousel-slide {
  flex: none;           /* não deixa o flex encolher/crescer */
  /* width definida via JS igual à largura viìsível do container */
  position: relative;
}

/* A imagem ocupa toda a largura — altura auto para preservar aspecto */
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 620px;
  background: #fff;
}

/* Caption escura no rodapé do slide */
.carousel-caption {
  background: linear-gradient(to right, var(--color-primary), #062160);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-caption h4 {
  font-size: 1.05rem;
  color: var(--color-white);
  margin: 0 0 0.2rem;
}

.carousel-caption p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.4;
}

/* ─── Botões de navegação ──────────────────────────────────── */
.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(3, 15, 55, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-primary);
  line-height: 1;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(3, 122, 200, 0.4);
}

.carousel-btn-prev { left: -28px; }
.carousel-btn-next { right: -28px; }

/* ─── Indicadores (dots) ───────────────────────────────────── */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(3, 15, 55, 0.18);
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-secondary);
  width: 28px;
  border-radius: 5px;
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .video-wrapper {
    margin-bottom: 3.5rem;
  }

  .carousel-btn-prev { left: 6px; }
  .carousel-btn-next { right: 6px; }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
  }

  .carousel-slide img {
    max-height: 280px;
  }

  .carousel-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.9rem 1.25rem;
  }

  .carousel-caption h4 {
    font-size: 0.95rem;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }
}
