/**
 * za-hero-slider.css
 * ZA Framework Addon — Hero Slider
 *
 * FILE: assets/css/addons/za-hero-slider.css
 */

/* ── CONTAINER ─────────────────────────────────────────────── */
.za-hero-slider {
  position: relative;
  width:    100%;
  height:   clamp(220px, 30vh, 440px);
  overflow: hidden;
}

/* ── SLIDES WRAPPER ────────────────────────────────────────── */
.za-slides-inner {
  position: relative;
  width:    100%;
  height:   100%;
}

/* ── INACTIVE SLIDE ────────────────────────────────────────── */
.za-slide {
  position:        absolute;
  inset:           0;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  opacity:         0;
  transform:       translateY(12px) scale(0.98);
  filter:          blur(6px);
  pointer-events:  none;
  transition:
    opacity   0.75s ease,
    transform 0.75s ease,
    filter    0.75s ease;
}

/* ── ACTIVE SLIDE ──────────────────────────────────────────── */
.za-slide.active {
  opacity:        1;
  transform:      none;
  filter:         none;
  pointer-events: auto;
}

/* ── HEADINGS ──────────────────────────────────────────────── */
.za-hero-slider h1,
.za-hero-slider h2 {
  font-family:   'Plus Jakarta Sans', sans-serif;
  font-weight:   700;
  line-height:   1.15;
  font-size:     clamp(2rem, 4.5vw, 3.8rem);
  margin:        0 0 0.5rem 0;
  color:         #ffffff;
}

/* ── PARAGRAPH ─────────────────────────────────────────────── */
.za-hero-slider p {
  font-family: 'Inter', sans-serif;
  font-size:   clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  color:       rgba(255, 255, 255, 0.75);
  max-width:   560px;
  margin:      0;
}

/* ── GRADIENT SPAN — moving animated color ─────────────────── */
.za-hero-slider span {
  background: linear-gradient(
    90deg,
    #FBB040   0%,
    #ff7a18  35%,
    #ffd166  65%,
    #FBB040 100%
  );
  background-size:         200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color:                   transparent;
  display:                 inline;
  animation:               zaSliderGrad 3.5s linear infinite;
}

@keyframes zaSliderGrad {
  0%   { background-position:   0% center; }
  100% { background-position: 200% center; }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .za-slide { text-align: left; }
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .za-slide {
    transition: opacity 0.4s ease !important;
    filter:     none !important;
    transform:  none !important;
  }
  .za-hero-slider span {
    animation:           none !important;
    background-position: 0% center !important;
  }
}