/* ==========================================================================
   Boate Bataclan - Hero morph (logo -> mulher)
   ========================================================================== */

.hero-morph-stage {
  position: relative;
  width: 100%;
  height: min(78vh, 700px);
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale3d(0.88, 0.88, 1);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 1.4s ease,
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.4s ease;
}

#heroLogoImg {
  width: min(340px, 70%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 35px rgba(255, 29, 115, 0.85));
  z-index: 3;
}

#heroWomanImg {
  height: min(78vh, 700px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 45px rgba(255, 29, 115, 0.9));
  z-index: 4;
}

.morph-element.is-visible {
  opacity: 1 !important;
  transform: translate3d(-50%, -50%, 0) scale3d(1, 1, 1);
}

.morph-element.is-hidden {
  opacity: 0 !important;
  transform: translate3d(-50%, -50%, 0) scale3d(1.1, 1.1, 1);
  pointer-events: none;
}

.morph-element.is-morphing {
  filter: url(#morphFilter) drop-shadow(0 0 40px rgba(255, 29, 115, 0.95));
}

#heroBurst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 29, 115, 0.85) 0%, rgba(0, 240, 255, 0.45) 40%, rgba(255, 29, 115, 0) 70%);
  transform: translate3d(-50%, -50%, 0) scale3d(0.1, 0.1, 1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
}

#heroBurst.is-active {
  opacity: 0.9;
  transform: translate3d(-50%, -50%, 0) scale3d(3.4, 3.4, 1);
}

@media (max-width: 992px) {
  .hero-morph-stage {
    height: min(42vh, 360px);
  }

  #heroWomanImg {
    height: min(42vh, 360px);
  }

  #heroLogoImg {
    width: min(220px, 52%);
  }
}

@media (max-width: 576px) {
  .hero-morph-stage {
    height: min(38vh, 300px);
  }

  #heroWomanImg {
    height: min(38vh, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .morph-element {
    transition: opacity 0.4s ease;
  }

  .morph-element.is-morphing {
    filter: drop-shadow(0 0 35px rgba(255, 29, 115, 0.85));
  }
}
