/* Phase 8N: performance cleanup layer.
   Replaces heavyweight template plugin runtime styles where safe. */

/* WOW/Animate.js is no longer globally loaded. Keep migrated content visible. */
.wow {
  visibility: visible !important;
}

/* Lightweight native video modal used instead of Magnific Popup. */
.phase8n-modal-open {
  overflow: hidden;
}

.phase8n-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.82);
}

.phase8n-video-modal.is-open {
  display: flex;
}

.phase8n-video-modal__dialog {
  position: relative;
  width: min(100%, 1080px);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.phase8n-video-modal__dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.phase8n-video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f0d1d;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.phase8n-video-modal__close:focus-visible,
.popup-video:focus-visible {
  outline: 3px solid var(--theme-color, #ffcc01);
  outline-offset: 4px;
}

/* Core JS fades the preloader without jQuery. */
#preloader.phase8n-preloader-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

/* Template hover spans should never force overflow when JS positions them. */
.btn-hover {
  overflow: hidden;
}

/* Bootstrap JS was removed; the tiny Phase 8N tab handler manages these states. */
.tab-pane:not(.active) {
  display: none;
}

.tab-pane.active {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .wow,
  .animated,
  [class*="img-custom-anim"],
  .swiper-wrapper,
  .swiper-slide {
    animation: none !important;
    transition: none !important;
  }
}
