/* ========================================
   BG SLIDER — Full-section background swap
   ======================================== */

.bg-slider {
  position: relative;
  overflow: hidden;
  background: #000 !important;
}

/* Kill the section ::after overlay */
.bg-slider::after {
  content: none !important;
  display: none !important;
}

/* ---- Stacked background images ---- */
.bg-slider__images {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
}

.bg-slider__overlay {
  position: absolute !important;
  z-index: 1 !important;
}

.bg-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bg-slider__img--active {
  opacity: 1;
}

/* ---- Light overlay ---- */
.bg-slider__overlay {
  inset: 0;
  background: rgba(0, 50, 2, 0.35);
  pointer-events: none;
}

/* ---- 3x2 text grid ---- */
.bg-slider__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl) var(--space-2xl);
  text-align: center;
  padding: var(--space-2xl) 0;
}

.bg-slider__text {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-cream);
  position: relative;
  display: inline-block;
  padding: var(--space-lg) var(--space-md);
  transition: transform 0.3s ease;
}

.bg-slider__text:hover {
  transform: scale(1.05);
}

/* Reuse the same character-wrap animation classes from hover-slider */
.bg-slider__text .hs-char--ghost {
  opacity: 0.85;
  color: var(--color-cream);
}

.bg-slider__text.hs-text--active .hs-char--ghost {
  transform: translateY(-110%);
  opacity: 0;
}

.bg-slider__text.hs-text--active .hs-char--real {
  transform: translateY(0);
}


/* ---- Left-aligned variant (Detection & Tracking) ---- */
.bg-slider--left {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--space-2xl) !important;
  padding-bottom: 0 !important;
}

/* Anchor image to top so the pitch/action is always visible */
.bg-slider--left .bg-slider__img {
  object-position: top center;
}

/* Pin radio buttons to the bottom */
.bg-slider__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-bottom: var(--space-2xl);
}

.bg-slider--left .bg-slider__overlay {
  display: none;
}

/* ---- 3D Radio Group ---- */
.radio-3d {
  display: flex;
  align-items: center;
  padding-bottom: var(--space-lg);
}

.radio-3d__glass {
  z-index: 2;
  height: 210px;
  width: 68px;
  margin-right: 18px;
  padding: 6px;
  background-color: rgba(0, 95, 2, 0.45);
  border-radius: 28px;
  box-shadow:
    rgba(0, 60, 0, 0.3) 0px 25px 50px -10px,
    rgba(0, 0, 0, 0.25) 0px 10px 30px -15px,
    rgba(0, 40, 0, 0.25) 0px -2px 6px 0px inset;
  backdrop-filter: blur(8px);
}

.radio-3d__glass-inner {
  width: 100%;
  height: 100%;
  border: 6px solid rgba(192, 184, 122, 0.35);
  border-radius: 24px;
}

.radio-3d__options {
  display: flex;
  flex-direction: column;
}

.radio-3d__option {
  margin: 6px 0;
  display: flex;
  align-items: center;
}

.radio-3d__circle-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  z-index: 0;
}

.radio-3d__input {
  appearance: none;
  height: 100%;
  width: 100%;
  border-radius: 100%;
  border: 6px solid rgba(192, 184, 122, 0.4);
  cursor: pointer;
  box-shadow: 0px 0px 16px -10px rgba(0, 0, 0, 0.4), 0px 0px 16px -10px rgba(0, 0, 0, 0.3) inset;
  background: transparent;
  margin: 0;
}

.radio-3d__ball {
  z-index: 1;
  position: absolute;
  inset: 0;
  transform: translateX(-68px);
  box-shadow:
    rgba(0, 0, 0, 0.17) 0px -8px 8px 0px inset,
    rgba(0, 0, 0, 0.15) 0px -12px 12px 0px inset,
    rgba(0, 0, 0, 0.1) 0px -30px 16px 0px inset,
    rgba(0, 0, 0, 0.06) 0px 2px 1px,
    rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px;
  border-radius: 100%;
  transition: transform 800ms cubic-bezier(1, -0.4, 0, 1.4);
  background-color: var(--color-orange);
}

.radio-3d__input:checked + .radio-3d__ball {
  transform: translateX(0px);
}

.radio-3d__label {
  color: var(--color-cream);
  font-size: clamp(0.85rem, 0.7rem + 0.8vw, 1.15rem);
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .bg-slider__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-xl);
  }

  .bg-slider__text {
    font-size: clamp(1.3rem, 1.1rem + 1.5vw, 2rem);
    padding: var(--space-md) var(--space-sm);
  }
}

@media (max-width: 480px) {
  .bg-slider__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .radio-3d__glass {
    height: 170px;
    width: 52px;
    margin-right: 12px;
    padding: 5px;
    border-radius: 22px;
  }

  .radio-3d__glass-inner {
    border-width: 4px;
    border-radius: 18px;
  }

  .radio-3d__circle-wrap {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }

  .radio-3d__input {
    border-width: 4px;
  }

  .radio-3d__ball {
    transform: translateX(-52px);
  }

  .radio-3d__label {
    font-size: 0.75rem;
  }
}
