/* ============================================================
 * HERO / SLIDER
 * Matches the live site's fullwidth slider with parallax
 * background images and centered text overlay.
 * ============================================================ */

/* Fullwidth Slider */
.hero-slider {
  position: relative;
  overflow: visible;
}

.et_pb_slider {
  position: relative;
  overflow: visible;
  height: 50vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.hero-slide-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 1;
}


.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 80vw;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: .3rem;
}

.hero-slide-content h2 {
  font-size: 50px;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  padding-bottom: 15px;
  text-shadow: 0em 0.1em 0.1em rgba(0, 0, 0, 0.4);
}

.hero-slide-content p {
  font-size: 18px;
  color: #fff;
  margin: 0 0 25px;
  line-height: 1.8em;
  text-shadow: 0em 0.1em 0.1em rgba(0, 0, 0, 0.4);
}

.hero-button {
  position: relative;
  z-index: 3;
  margin-top: 25px;
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s;
}

.hero-button:hover {
  background: #fff;
  color: var(--color-primary);
  text-decoration: none;
}

/* Slider arrows */
.hero-slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  z-index: 10;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-slider-arrows .et-pb-arrow-prev,
.hero-slider-arrows .et-pb-arrow-next {
  position: absolute;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  pointer-events: all;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'ETmodules';
  line-height: 1;
}

.hero-slider-arrows .et-pb-arrow-prev:hover,
.hero-slider-arrows .et-pb-arrow-next:hover {
  opacity: 1;
}

.hero-slider-arrows .et-pb-arrow-prev {
  left: 20px;
}

.hero-slider-arrows .et-pb-arrow-next {
  right: 20px;
}

/* Slider dots */
.hero-slider-dots {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.hero-slider-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-slider-dots .dot.active {
  background: #fff;
  border-color: #fff;
}

/* Fullwidth Header (below slider) */
.fullwidth-header {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.fullwidth-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.fullwidth-header-content {
  position: relative;
  z-index: 2;
}

.fullwidth-header-content h1 {
  font-size: 46px;
  color: #fff;
  font-weight: 700;
  padding-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fullwidth-header-content .subhead {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media only screen and (max-width: 980px) {
  .et_pb_slider {
    height: 70vh;
    min-height: 450px;
  }

  .hero-slide-content h2 {
    font-size: 36px;
  }

  .hero-slide-content p {
    font-size: 16px;
  }

  .fullwidth-header {
    padding: 60px 0;
  }

  .fullwidth-header-content h1 {
    font-size: 32px;
  }
}

@media only screen and (max-width: 767px) {
  .et_pb_slider {
    height: 60vh;
    min-height: 350px;
  }

  .hero-slide-content h2 {
    font-size: 26px;
  }

  .hero-slider-arrows .et-pb-arrow-prev,
  .hero-slider-arrows .et-pb-arrow-next {
    font-size: 32px;
  }

  .fullwidth-header-content h1 {
    font-size: 26px;
  }
}
