/* ============================================================================
   Climate Service — hero slider redesign (dark urban style, 4 slides).
   Scoped under .cs-hero-slider to avoid bleeding into the rest of the theme.
   Pairs with assets/js/hero-slider.js. Mounted on [data-hero-slider].
   ============================================================================ */

.cs-hero-slider,
.cs-hero-slider *,
.cs-hero-slider *::before,
.cs-hero-slider *::after {
  box-sizing: border-box;
}

.cs-hero-slider {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 560px;
  overflow: hidden;
  background: #09152a;
  font-family: "Inter", sans-serif;
}

.cs-hero-slider__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cs-hero-slider .slider-track {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.78s cubic-bezier(0.77, 0, 0.175, 1);
}

.cs-hero-slider .slide {
  position: relative;
  width: 25%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ---- decorative layers ---- */

.cs-hero-slider .slide-grid {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.cs-hero-slider .slide-number {
  position: absolute;
  right: 24px;
  bottom: -46px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 280px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
}

.cs-hero-slider .slide-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 1;
}

/* ---- content column ---- */

.cs-hero-slider .slide-content {
  position: relative;
  z-index: 2;
  flex: 0 0 46%;
  max-width: 46%;
  padding: 54px 44px 54px 70px;
}

.cs-hero-slider .slide-content .hs-label,
.cs-hero-slider .slide-content .hs-title,
.cs-hero-slider .slide-content .hs-desc,
.cs-hero-slider .slide-content .hs-links,
.cs-hero-slider .slide-content .hs-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s, transform 0.2s;
}

.cs-hero-slider .slide.is-active .slide-content .hs-label { opacity: 1; transform: none; transition-delay: 0.25s; transition-duration: 0.55s; }
.cs-hero-slider .slide.is-active .slide-content .hs-title { opacity: 1; transform: none; transition-delay: 0.40s; transition-duration: 0.55s; }
.cs-hero-slider .slide.is-active .slide-content .hs-desc  { opacity: 1; transform: none; transition-delay: 0.55s; transition-duration: 0.55s; }
.cs-hero-slider .slide.is-active .slide-content .hs-links { opacity: 1; transform: none; transition-delay: 0.65s; transition-duration: 0.55s; }
.cs-hero-slider .slide.is-active .slide-content .hs-cta   { opacity: 1; transform: none; transition-delay: 0.78s; transition-duration: 0.55s; }

.cs-hero-slider .hs-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cs-hero-slider .hs-label .accent-line {
  display: block;
  width: 28px;
  height: 2px;
}

.cs-hero-slider .hs-title {
  margin: 0 0 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.1;
  color: #fff;
}

.cs-hero-slider .hs-desc {
  margin: 0 0 24px;
  max-width: 380px;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.52);
}

.cs-hero-slider .hs-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
}

.cs-hero-slider .hs-links a {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.cs-hero-slider .hs-links a:hover,
.cs-hero-slider .hs-links a:focus-visible {
  color: #fff;
}

.cs-hero-slider .hs-links a::before {
  content: "\2192";
  margin-right: 8px;
}

.cs-hero-slider .hs-cta {
  display: inline-block;
  padding: 15px 30px;
  background: #f5821f;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s;
}

.cs-hero-slider .hs-cta:hover,
.cs-hero-slider .hs-cta:focus-visible {
  background: #e0730f;
}

/* ---- visual column ---- */

.cs-hero-slider .slide-visual {
  position: relative;
  z-index: 1;
  flex: 0 0 54%;
  max-width: 54%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-hero-slider .visual-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.cs-hero-slider .visual-img {
  position: relative;
  max-width: 76%;
  max-height: 380px;
  object-fit: contain;
  animation: cs-hero-float 4s ease-in-out infinite;
}

@keyframes cs-hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---- arrows ---- */

.cs-hero-slider .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 10;
  font: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cs-hero-slider .slider-arrow:hover,
.cs-hero-slider .slider-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cs-hero-slider .slider-arrow--prev { left: 18px; }
.cs-hero-slider .slider-arrow--next { right: 18px; }

/* ---- progress bars ---- */

.cs-hero-slider .slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 10;
}

.cs-hero-slider .prog-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
}

.cs-hero-slider .prog-track + .prog-track {
  margin-left: 1px;
}

.cs-hero-slider .prog-fill {
  height: 100%;
  width: 0%;
}

/* ---- counter ---- */

.cs-hero-slider .slider-counter {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.3);
  z-index: 10;
}

/* ---- responsive ---- */

@media (max-width: 768px) {
  .cs-hero-slider {
    height: auto;
  }

  .cs-hero-slider .slide {
    flex-direction: column;
    align-items: stretch;
    min-height: 680px;
  }

  .cs-hero-slider .slide-content,
  .cs-hero-slider .slide-visual {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .cs-hero-slider .slide-content {
    padding: 70px 24px 30px;
    order: 2;
  }

  .cs-hero-slider .slide-visual {
    order: 1;
    height: 220px;
    padding-top: 40px;
  }

  .cs-hero-slider .visual-img {
    max-height: 180px;
  }

  .cs-hero-slider .hs-title {
    font-size: 26px;
  }

  .cs-hero-slider .slide-divider,
  .cs-hero-slider .slide-number {
    display: none;
  }

  .cs-hero-slider .slider-arrow {
    top: 110px;
  }
}
