/* ==========================================================================
   Premium Hero Slider — Shwet Cera Innovations
   Split-panel layout: solid brand panel for copy, full-bleed vivid image
   stage for the product gallery (no dark wash over the photos).
   ========================================================================== */

.hero-slider {
  --hs-primary: #0B2E63;
  --hs-primary-deep: #082247;
  --hs-accent: #F4B400;
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 90vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
  background: var(--hs-primary);
}

/* ---------- Copy panel ---------- */
.hero-slider__panel {
  position: relative;
  z-index: 3;
  flex: 0 0 42%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px 60px 60px;
  color: #fff;
  background: linear-gradient(160deg, var(--hs-primary) 0%, var(--hs-primary-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.hero-slider__panel::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 180, 0, 0.28) 0%, rgba(244, 180, 0, 0) 70%);
  pointer-events: none;
}

.hero-slider__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  background: rgba(244, 180, 0, 0.22);
  border: 1px solid rgba(244, 180, 0, 0.55);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 26px;
}

.hero-slider__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hs-accent);
  box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.3);
}

.hero-slider__title {
  font-family: "DM Sans", "Poppins", sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.18;
  margin: 0 0 20px;
}

.hero-slider__title span {
  color: var(--hs-accent);
}

.hero-slider__desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 34px;
}

.hero-slider__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-btn--primary {
  background: var(--hs-accent);
  color: #0B2E63;
  border: 2px solid var(--hs-accent);
}

.hero-btn--primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-3px);
}

.hero-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn--outline:hover {
  background: #fff;
  color: var(--hs-primary);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ---------- Panel nav (arrows + counter) ---------- */
.hero-slider__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-nav {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-nav:hover {
  background: var(--hs-accent);
  border-color: var(--hs-accent);
  color: #0B2E63;
}

.hero-slider__counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-slider__counter .is-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--hs-accent);
}

.hero-slider__counter .divider {
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

/* ---------- Image stage ---------- */
.hero-slider__stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow: hidden;
  margin-left: -60px;
}

.hero-slider__track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.3s ease;
}

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

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transition: transform 7s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.hero-slide.is-active .hero-slide__img {
  transform: scale(1);
}

/* Soft blend where the panel meets the photo — no wash over the image itself */
.hero-slider__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 34, 71, 0.85) 0%, rgba(8, 34, 71, 0) 14%);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero-slider__title {
    font-size: 38px;
  }
}

@media (max-width: 991px) {
  .hero-slider {
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .hero-slider__panel {
    flex: none;
    max-width: none;
    width: 100%;
    clip-path: none;
    padding: 56px 30px 40px;
    order: 2;
  }

  .hero-slider__stage {
    flex: none;
    width: 100%;
    height: 42vh;
    min-height: 320px;
    margin-left: 0;
    order: 1;
  }

  .hero-slider__stage::before {
    background: linear-gradient(0deg, rgba(8, 34, 71, 0.85) 0%, rgba(8, 34, 71, 0) 22%);
  }

  .hero-slider__title {
    font-size: 32px;
  }

  .hero-slider__actions {
    margin-bottom: 30px;
  }
}

@media (max-width: 575px) {
  .hero-slider__panel {
    padding: 46px 22px 34px;
  }

  .hero-slider__eyebrow {
    font-size: 11px;
    padding: 6px 14px;
  }

  .hero-slider__title {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .hero-slider__desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-btn {
    padding: 12px 22px;
    font-size: 12px;
  }

  .hero-slider__stage {
    height: 34vh;
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide__img {
    transition: opacity 0.4s ease !important;
    transform: none !important;
  }
}
