/**
 * PhotoEZ Theme — Hero background slider + vertical centering
 */

/* Vertical centering for all hero sections */
.pez-hero-section.elementor-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100vh - var(--pez-header-height)) !important;
  padding-top: var(--pez-header-height) !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.pez-hero-section > .elementor-container {
  width: 100%;
  display: flex;
  align-items: center;
}

/* Hide Elementor static bg when slider is active */
.pez-hero-slider.elementor-section {
  background-image: none !important;
}

.pez-hero-slider > .elementor-background-overlay {
  z-index: 2 !important;
  opacity: 0.52 !important;
  pointer-events: none;
}

.pez-hero-slider > .elementor-container {
  position: relative;
  z-index: 4;
  max-width: var(--pez-container-xl);
  margin: 0 auto;
  min-height: calc(100vh - var(--pez-header-height) * 2);
}

.pez-hero-slider .elementor-column,
.pez-hero-slider .elementor-column-wrap,
.pez-hero-slider .elementor-widget-wrap {
  width: 100%;
}

/* Slide track */
.pez-hero-slider__track {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.pez-hero-slider__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6s ease;
  will-change: opacity, transform;
}

.pez-hero-slider__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Dot navigation */
.pez-hero-slider__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pez-hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pez-hero-slider__dot:hover {
  border-color: #fff;
  transform: scale(1.15);
}

.pez-hero-slider__dot.is-active {
  background: #E8315B;
  border-color: #E8315B;
}

@media (max-width: 767px) {
  .pez-hero-slider > .elementor-container {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .pez-hero-slider__dots {
    bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pez-hero-slider__slide {
    transition: none;
    transform: none;
  }
}
