/* =============================================================
   HERO SLIDER — cinematic fire/MEP style
   Dark, moody background with red accent glow, Ken Burns
   background zoom, and staggered fade-up writeups.
   ============================================================= */

.hero-slider {
  position: relative;
  overflow: hidden;
  background-color: var(--theme-color2, #24201F);
  height: calc(100vh - var(--header-height, 112px) - 20px);
  min-height: 480px;
  max-height: 860px;
}

.hero-slider__carousel.owl-carousel {
  display: block;
  height: 100%;
}

.hero-slider .owl-stage-outer,
.hero-slider .owl-stage,
.hero-slider .owl-item,
.hero-slider .owl-item > div {
  height: 100%;
}

/* ---- Slide ---- */
.hero-slide {
  position: relative;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding-top: 110px;
  overflow: hidden;
}
@media (max-width: 767.98px), (max-height: 650px) {
  .hero-slide {
    padding-top: 60px;
  }
}

/* ---- Background image with slow "Ken Burns" zoom loading effect ---- */
.hero-slide__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  -webkit-transform: scale(1.12);
          transform: scale(1.12);
  opacity: 0;
  will-change: transform, opacity;
  -webkit-transition: opacity 1.2s ease;
  transition: opacity 1.2s ease;
  z-index: 1;
}

.hero-slider .owl-item.active .hero-slide__bg {
  opacity: 1;
  -webkit-animation: heroKenBurns 9s ease-out forwards;
          animation: heroKenBurns 9s ease-out forwards;
}

@-webkit-keyframes heroKenBurns {
  0% {
    -webkit-transform: scale(1.12);
            transform: scale(1.12);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes heroKenBurns {
  0% {
    -webkit-transform: scale(1.12);
            transform: scale(1.12);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

/* ---- Dark gradient + red glow overlay (matches fire-alarm reference image) ---- */
.hero-slide__overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    -webkit-linear-gradient(left, rgba(15, 12, 12, 0.94) 0%, rgba(15, 12, 12, 0.72) 32%, rgba(15, 12, 12, 0.35) 62%, rgba(15, 12, 12, 0.55) 100%);
  background:
    linear-gradient(90deg, rgba(15, 12, 12, 0.94) 0%, rgba(15, 12, 12, 0.72) 32%, rgba(15, 12, 12, 0.35) 62%, rgba(15, 12, 12, 0.55) 100%);
}
.hero-slide__overlay:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background:
    -webkit-radial-gradient(85% 85% at 85% 88%, rgba(201, 15, 22, 0.55) 0%, rgba(201, 15, 22, 0) 45%);
  background:
    radial-gradient(85% 85% at 85% 88%, rgba(201, 15, 22, 0.55) 0%, rgba(201, 15, 22, 0) 45%);
  mix-blend-mode: screen;
}
.hero-slide__overlay:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 45%;
  background: -webkit-linear-gradient(top, rgba(15, 12, 12, 0) 0%, rgba(15, 12, 12, 0.65) 100%);
  background: linear-gradient(180deg, rgba(15, 12, 12, 0) 0%, rgba(15, 12, 12, 0.65) 100%);
}

/* ---- Content ---- */
.hero-slider .auto-container {
  position: relative;
  z-index: 3;
}

.hero-slide__content {
  max-width: 700px;
  padding: 20px 0;
}
@media (max-width: 767.98px) {
  .hero-slide__content {
    max-width: 100%;
    text-align: center;
    padding: 12px 0;
  }
}

.hero-slide__label {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 16px 7px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.hero-slide__label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--theme-color1, #C90F16);
  -webkit-box-shadow: 0 0 0 0 rgba(201, 15, 22, 0.7);
          box-shadow: 0 0 0 0 rgba(201, 15, 22, 0.7);
  -webkit-animation: heroPulse 1.8s infinite;
          animation: heroPulse 1.8s infinite;
  -webkit-flex-shrink: 0;
      -ms-flex-negative: 0;
          flex-shrink: 0;
}
@-webkit-keyframes heroPulse {
  0% { -webkit-box-shadow: 0 0 0 0 rgba(201, 15, 22, 0.65); box-shadow: 0 0 0 0 rgba(201, 15, 22, 0.65); }
  70% { -webkit-box-shadow: 0 0 0 9px rgba(201, 15, 22, 0); box-shadow: 0 0 0 9px rgba(201, 15, 22, 0); }
  100% { -webkit-box-shadow: 0 0 0 0 rgba(201, 15, 22, 0); box-shadow: 0 0 0 0 rgba(201, 15, 22, 0); }
}
@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 15, 22, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(201, 15, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 15, 22, 0); }
}

.hero-slide__title {
  color: #fff;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
}
.hero-slide__title span {
  color: var(--theme-color1, #C90F16);
}
@media (max-width: 1199.98px) {
  .hero-slide__title {
    font-size: 48px;
  }
}
@media (max-width: 767.98px) {
  .hero-slide__title {
    font-size: 32px;
    margin-bottom: 12px;
  }
}
@media (max-height: 650px) {
  .hero-slide__title {
    font-size: 34px;
    margin-bottom: 8px;
  }
}

.hero-slide__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 24px;
}
@media (max-width: 767.98px) {
  .hero-slide__text {
    font-size: 14px;
    margin: 0 auto 18px;
  }
}
@media (max-height: 650px) {
  .hero-slide__text {
    display: none;
  }
}

.hero-slide__btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 22px;
}
@media (max-width: 767.98px) {
  .hero-slide__btns {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}

.hero-slide__play {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.hero-slide__play:hover {
  background-color: var(--theme-color1, #C90F16);
  border-color: var(--theme-color1, #C90F16);
  color: #fff;
}

/* ---- Scroll cue ---- */
.hero-slider__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}
.hero-slider__scroll span {
  display: block;
  width: 1px;
  height: 34px;
  margin: 0 auto 10px;
  background-color: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.hero-slider__scroll span:before {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--theme-color1, #C90F16);
  -webkit-animation: heroScrollLine 2s infinite;
          animation: heroScrollLine 2s infinite;
}
@-webkit-keyframes heroScrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
@keyframes heroScrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
@media (max-width: 767.98px) {
  .hero-slider__scroll {
    display: none;
  }
}

/* ---- Writeup fade-up-in-time effect (staggered) ---- */
.hero-slider .animate-2,
.hero-slider .animate-3,
.hero-slider .animate-4 {
  opacity: 0;
  -webkit-transform: translateY(34px);
      -ms-transform: translateY(34px);
          transform: translateY(34px);
  -webkit-transition: opacity 0.9s ease, -webkit-transform 0.9s ease;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero-slider .owl-item.active .animate-2 {
  opacity: 1;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition-delay: 0.5s;
          transition-delay: 0.5s;
}
.hero-slider .owl-item.active .animate-3 {
  opacity: 1;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition-delay: 0.8s;
          transition-delay: 0.8s;
}
.hero-slider .owl-item.active .animate-4 {
  opacity: 1;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition-delay: 1.1s;
          transition-delay: 1.1s;
}

/* ---- Owl nav / dots restyle ---- */
.hero-slider .owl-nav {
  position: absolute;
  right: 50px;
  bottom: 34px;
  z-index: 4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}
@media (max-width: 767.98px) {
  .hero-slider .owl-nav {
    display: none;
  }
}
.hero-slider .owl-nav [class*="owl-"] {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  margin: 0;
}
.hero-slider .owl-nav [class*="owl-"]:hover {
  background-color: var(--theme-color1, #C90F16);
  border-color: var(--theme-color1, #C90F16);
}

.hero-slider .owl-dots {
  position: absolute;
  left: 50px;
  bottom: 42px;
  z-index: 4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}
@media (max-width: 767.98px) {
  .hero-slider .owl-dots {
    left: 0;
    right: 0;
    bottom: 18px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}
.hero-slider .owl-dots .owl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.hero-slider .owl-dots .owl-dot.active {
  width: 26px;
  border-radius: 6px;
  background-color: var(--theme-color1, #C90F16);
}


/* =============================================================
   HERO SLIDER — reference-style additions
   CTA buttons, bottom services strip, slide counter
   ============================================================= */

.hero-slide__btns {
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-slide__btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.hero-slide__btn i {
  font-size: 12px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}
.hero-slide__btn:hover {
  color: #fff;
}
.hero-slide__btn:hover i {
  -webkit-transform: translateX(4px);
          transform: translateX(4px);
}
.hero-slide__btn--outline {
  background-color: transparent;
}
.hero-slide__btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.hero-slide__btn--solid {
  background-color: var(--theme-color1, #C90F16);
  border-color: var(--theme-color1, #C90F16);
}
.hero-slide__btn--solid:hover {
  background-color: transparent;
  border-color: #fff;
}
@media (max-width: 575.98px) {
  .hero-slide__btn {
    padding: 12px 22px;
    font-size: 12px;
  }
}

/* ---- Bottom services strip (Electrical / HVAC / Plumbing / Fire Fighting) ---- */
.hero-slider__services {
  position: absolute;
  left: 50px;
  left: max(15px, calc((100% - var(--container-width, 1230px)) / 2 + 15px));
  bottom: 64px;
  z-index: 5;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 36px;
}
.hero-slider__service-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  width: 90px;
  text-align: center;
}
.hero-slider__service-icon {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(201, 15, 22, 0.55);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--theme-color1, #C90F16);
  font-size: 19px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.hero-slider__service-item:hover .hero-slider__service-icon {
  background-color: var(--theme-color1, #C90F16);
  border-color: var(--theme-color1, #C90F16);
  color: #fff;
}
.hero-slider__service-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 1199.98px) {
  .hero-slider__services {
    gap: 22px;
  }
  .hero-slider__service-item {
    width: 76px;
  }
  .hero-slider__service-icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
  .hero-slider__service-label {
    font-size: 12px;
  }
}
@media (max-width: 991.98px), (max-height: 700px) {
  .hero-slider__services {
    display: none;
  }
}

/* ---- Slide counter (01 / 02) ---- */
.hero-slider__count {
  position: absolute;
  right: 50px;
  bottom: 34px;
  z-index: 4;
  height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-slider__count-current {
  color: #fff;
  font-size: 17px;
}
@media (max-width: 767.98px) {
  .hero-slider__count {
    display: none;
  }
}

/* ---- Move slide dots into the bottom-right control cluster (desktop only) ---- */
@media (min-width: 768px) {
  .hero-slider .owl-dots {
    left: auto;
    right: 50px;
    bottom: 92px;
  }
}

/* ---- Nav arrows removed per request; dots + counter only ---- */
.hero-slider .owl-nav {
  display: none !important;
}
