/* =========================================================
   Hero Slick Carousel — ported from rssafetynets.site
   (hero-three) — recolored to Neha Safety Nets branding,
   using Neha's own hero images.
   ========================================================= */

.hero-three {
  --wallox-white: #ffffff;
  --wallox-base: #1b4fa8;
  --wallox-base-rgb: 27, 79, 168;
  --wallox-text-dark: #0F172A;
  --wallox-text-dark-rgb: 15, 23, 42;
  position: relative;
}

.hero-three__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* Defensive fallback: guarantees slides stay clipped and
   stacked even if slick.css fails to load on the server
   (e.g. the vendor folder wasn't uploaded), preventing the
   whole page from scrolling horizontally on mobile. */
.hero-three__carousel .slick-list,
.hero-three__carousel .slick-track {
  overflow: hidden;
}
.hero-three__carousel .item {
  display: none;
  width: 100%;
}
.hero-three__carousel .item.slick-slide {
  display: block;
}
.hero-three__carousel:not(.slick-initialized) .item:first-child {
  display: block;
}
.hero-three__carousel .slick-dots {
  margin: auto 0;
  position: absolute;
  right: 33px;
  text-align: left;
  top: 50%;
  transform: translateY(-10%);
  width: auto;
}
@media (max-width: 1400px) {
  .hero-three__carousel .slick-dots {
    width: auto;
    right: 20px;
  }
}
@media (max-width: 1199px) {
  .hero-three__carousel .slick-dots {
    width: 40px;
  }
}
@media (max-width: 767px) {
  .hero-three__carousel .slick-dots {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-top: -100px;
    left: 0;
    top: auto;
    bottom: 40px;
  }
}
.hero-three__carousel .slick-dots li {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid transparent;
  margin: 0;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
  position: relative;
}
.hero-three__carousel .slick-dots li::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--wallox-white, #fff);
  transition: all 0.4s ease-in-out;
}
.hero-three__carousel .slick-dots button {
  display: none;
  margin: 2px 0;
}
@media (max-width: 767px) {
  .hero-three__carousel .slick-dots button {
    margin: 0 2px;
  }
}
.hero-three__carousel .slick-dots li:hover,
.hero-three__carousel .slick-dots li.slick-active {
  background-color: transparent;
  border: 2px solid var(--wallox-white, #fff);
}
.hero-three__carousel .slick-dots li:hover::after,
.hero-three__carousel .slick-dots li.slick-active::after {
  background-color: var(--wallox-base, #9fcc4f);
}
.hero-three__carousel .slick-dotted.slick-slider {
  margin-bottom: 0 !important;
}
.hero-three__item {
  background-color: var(--wallox-text-dark, #040840);
  position: relative;
  z-index: 3;
  padding-top: 95px;
  padding-bottom: 145px;
  height: 500px;
}
@media (max-width: 991px) {
  .hero-three__item {
    padding-top: 10px;
    padding-bottom: 20px;
    height: auto;
  }
}
@media (max-width: 767px) {
  .hero-three__item {
    padding-top: 10px;
    padding-bottom: 20px;
  }
}
.hero-three__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  transition: transform 500ms ease, opacity 500ms ease;
  transform: translateX(50%) scaleX(2);
  opacity: 0;
  z-index: -1;
  filter: contrast(1.08) saturate(1.12) brightness(1.02);
}
.hero-three__bg::before {
  display: none;
}
.hero-three__content {
  position: relative;
  z-index: 3;
  overflow: hidden;
}
.hero-three__sub-title {
  display: inline-block;
  color: var(--wallox-base, #9fcc4f);
  text-transform: uppercase;
  transition: transform 300ms ease, opacity 300ms ease;
  transform: translateY(-200px);
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  line-height: 19px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--wallox-base, #9fcc4f);
  background-color: #fff;
}
.hero-three__title {
  color: var(--wallox-white, #fff);
  overflow: hidden;
  margin: 10px 0 38px;
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
  transform: translateX(200px);
  font-style: normal;
  font-weight: 800;
  font-size: 80px;
  line-height: 112%;
  text-transform: capitalize;
      text-shadow: 0 0 6px #000 !important;
}
@media (max-width: 1199px) {
  .hero-three__title {
    font-size: 70px;
  }
}
@media (max-width: 991px) {
  .hero-three__title {
    font-size: 50px;
  }
}
@media (max-width: 767px) {
  .hero-three__title {
    font-size: 45px;
  }
}
@media (max-width: 575px) {
  .hero-three__title {
    font-size: 30px;
  }
}
.hero-three__title::after {
  content: "";
  width: 101%;
  height: 101%;
  position: absolute;
  top: 0px;
  left: 100%;
  background: currentColor;
  transition: 500ms cubic-bezier(0.858, 0.01, 0.068, 0.99);
  z-index: 3;
  transform: translateX(-100%);
  transition-delay: 500ms;
}
.hero-three__btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 5;
  padding-top: 4px;
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 1;
}
@media (max-width: 400px) {
  .hero-three__btn {
    flex-direction: column;
  }
}
.hero-three__btn a {
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  padding: 15px 25px;
  border: 1px solid transparent;
}
.hero-three__btn a:last-child {
  border-color: var(--wallox-white, #fff);
}
.hero-three__btn a:last-child:hover {
  border-color: transparent;
}
.hero-three__btn a:last-child:hover::before {
  background-color: var(--wallox-base, #9fcc4f);
}
.hero-three__btn a:hover {
  border-color: var(--wallox-white, #fff);
}
.hero-three__btn a:hover::before {
  background-color: transparent;
}
.hero-three .slick-active .hero-three__bg {
  opacity: 1;
  transform: translateX(0) scaleX(1);
  filter: contrast(1.08) saturate(1.12) brightness(1.02) blur(0);
  transition-delay: 0ms;
}
.hero-three .slick-active .hero-three__sub-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 60ms;
}
.hero-three .slick-active .hero-three__title {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 100ms;
}
.hero-three .slick-active .hero-three__title::after {
  transform: translateX(1%);
  transition-delay: 100ms;
}
.hero-three .slick-active .hero-three__btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 180ms;
}

/* ---------------------------------------------------------
   No-JS / JS-failed fallback — if Slick never initializes
   (script missing, blocked, or errors elsewhere on the
   page), the whole hero would otherwise stay permanently
   invisible, since the image and text only reveal via the
   .slick-active class Slick applies. Force the FIRST slide
   visible on its own as a static banner so the hero never
   renders as a blank box.
   --------------------------------------------------------- */
.hero-three__carousel:not(.slick-initialized) .item:first-child .hero-three__bg,
.hero-three__carousel:not(.slick-initialized) .item:first-child .hero-three__sub-title,
.hero-three__carousel:not(.slick-initialized) .item:first-child .hero-three__title,
.hero-three__carousel:not(.slick-initialized) .item:first-child .hero-three__btn {
  opacity: 1 !important;
  transform: none !important;
}
.hero-three__carousel:not(.slick-initialized) .item:first-child .hero-three__title::after {
  display: none !important;
}
.hero-three__carousel:not(.slick-initialized) .item:not(:first-child) {
  display: none !important;
}
.hero-three__counter__carousel {
  width: 100px;
  height: 100px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: rotate(90deg) translate(-50%, 40%);
}
@media (max-width: 767px) {
  .hero-three__counter__carousel {
    display: none;
  }
}
.hero-three__counter__carousel .slick-current.slick-active + .slick-active span {
  color: var(--wallox-base, #9fcc4f);
  text-shadow: 0 0 0.3px currentColor;
}
.hero-three__counter__item span {
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #40403e;
}

/* ---------------------------------------------------------
   Mobile layout — text overlaid directly on the image
   (badge/title/buttons sit on the photo itself, bottom-
   anchored, with a dark gradient scrim behind them for
   legibility) instead of a separate solid-color strip.
   --------------------------------------------------------- */
@media (max-width: 767px) {
  .hero-three__item {
    position: relative;
    width: 100%;
    aspect-ratio: 1.3 / 1;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0;
    background-color: var(--wallox-text-dark, #0F172A);
  }
  .hero-three__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    aspect-ratio: auto;
    background-size: cover;
    background-position: top center;
  }
  .hero-three__item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.30) 45%, rgba(15,23,42,0) 100%);
    pointer-events: none;
    z-index: 1;
  }
  .hero-three__content {
    position: relative;
    z-index: 2;
    padding: 0 12px 16px;
    pointer-events: none;
  }
  .hero-three__content a,
  .hero-three__content .hero-three__btn {
    pointer-events: auto;
  }
  .hero-three__sub-title {
    font-size: 11px;
    padding: 3px 8px;
  }
  .hero-three__title {
    font-size: 22px;
    line-height: 1.2;
    margin: 6px 0 10px;
  }
  .hero-three .wallox-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* re-position the dot nav so it doesn't collide with the
   button row now that the mobile hero is more compact.
   The dots now sit below the dark content strip on a
   plain white page background, so give them a small dark
   backing bar (instead of the white-on-photo styling)
   so they stay visible. */
@media (max-width: 767px) {
  .hero-three__carousel .slick-dots {
    position: static;
    display: flex;
    justify-content: center;
    margin: 0;
    bottom: auto;
    padding: 6px 0;
    background: var(--wallox-text-dark, #0F172A);
  }
  .hero-three__carousel .slick-dots li {
    width: 18px;
    height: 18px;
  }
}

/* wallox-btn — used inside the hero-three carousel buttons */
.hero-three .wallox-btn {
  display: inline-block;
  vertical-align: middle;
  -webkit-appearance: none;
  border: none;
  outline: none !important;
  font-family: inherit;
  padding: 15px 24px;
  transition: 500ms;
  background-color: var(--wallox-text-dark, #040840);
  color: #fff;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  text-transform: capitalize;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
}
.hero-three .wallox-btn:hover {
  color: var(--wallox-text-dark, #040840);
  background-color: #fff;
}
.hero-three .wallox-btn::before {
  content: "";
  background-color: var(--wallox-base, #9fcc4f);
  border-radius: 100px;
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-100%, 0) rotate(10deg);
  transform-origin: top left;
  transition: 0.2s transform ease-out;
  will-change: transform;
  z-index: -1;
}
.hero-three .wallox-btn--base {
  background: var(--wallox-base, #9fcc4f);
  color: var(--wallox-white, #fff);
}
.hero-three .wallox-btn--base::before {
  background-color: var(--wallox-text-dark, #040840);
}
.hero-three .wallox-btn--base:hover {
  color: var(--wallox-white, #fff);
}
.hero-three .wallox-btn--border {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.hero-three .wallox-btn--border:hover {
  color: var(--wallox-white, #fff);
  border-color: transparent;
}
.hero-three .wallox-btn:hover {
  color: var(--wallox-white, #fff);
  background: transparent;
  transform: scale(1.05);
  will-change: transform;
}
.hero-three .wallox-btn:hover::before {
  transform: translate(0, 0);
}
.hero-three .wallox-btn i {
  margin: 0 4px;
}
