/* =========================================================
   Aliis Slider (Hero) - Fullwidth / Mobile-first
   Depends on: main.css variables + Swiper bundle styles
========================================================= */

.al-slider{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* Swiper size */
.al-slider__swiper{
  width: 100%;
  height: clamp(420px, 72vh, 760px);
}

/* Slide base */
.al-slide{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* Background media */
.al-slide__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.al-slide__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  will-change: transform;
}
.al-slide__img--fallback{
  width: 100%;
  height: 100%;
  background:
    radial-gradient(900px 400px at 20% 30%, rgba(201,161,74,.28), transparent 55%),
    linear-gradient(120deg, rgba(15,27,45,.96), rgba(15,27,45,.55)),
    #0f1b2d;
}

/* Overlay (top dark + bottom readability) */
.al-slide__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15,27,45,.86) 0%, rgba(15,27,45,.40) 52%, rgba(15,27,45,.10) 100%),
    linear-gradient(0deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.00) 35%);
}

/* Content */
.al-slide__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  align-items: end;
  padding: 64px 0 56px;
}

.al-slide__stack{
  max-width: 720px;
  color: #fff;
  display: grid;
  gap: 12px;
}

.al-slide__kicker{
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 12px;
}

.al-slide__title{
  margin: 0;
  font-family: var(--al-font-head);
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.02;
  font-size: clamp(34px, 4.2vw, 62px);
  text-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.al-slide__desc{
  color: rgba(255,255,255,.86);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.65;
  max-width: 58ch;
}

.al-slide__btn{
  width: fit-content;
  margin-top: 6px;
}

/* Desktop arrows */
.al-slider__nav{
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.al-slider__arrow{
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.al-slider__arrow:hover{
  transform: translateY(-50%) scale(1.03);
  background: rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.32);
}
.al-slider__arrow--prev{ left: 16px; }
.al-slider__arrow--next{ right: 16px; }

/* Pagination bullets */
.al-slider .swiper-pagination{
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: auto;
  z-index: 6;
}
.al-slider .swiper-pagination-bullet{
  width: 9px;
  height: 9px;
  opacity: .55;
  background: rgba(255,255,255,.85);
  margin: 0 5px !important;
}
.al-slider .swiper-pagination-bullet-active{
  opacity: 1;
  background: var(--al-accent);
}

/* Autoplay progress bar */
.al-slider__progress{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 7;
  background: rgba(255,255,255,.14);
}
.al-slider__bar{
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--al-accent);
}

/* Subtle “Ken Burns” on active slide */
@keyframes alKenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.08); }
}
.swiper-slide-active .al-slide__img{
  animation: alKenBurns 7.5s linear both;
}

/* Text reveal */
.al-slide__stack > *{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.swiper-slide-active .al-slide__stack > *{
  opacity: 1;
  transform: translateY(0);
}
.swiper-slide-active .al-slide__stack > *:nth-child(1){ transition-delay: .05s; }
.swiper-slide-active .al-slide__stack > *:nth-child(2){ transition-delay: .12s; }
.swiper-slide-active .al-slide__stack > *:nth-child(3){ transition-delay: .18s; }
.swiper-slide-active .al-slide__stack > *:nth-child(4){ transition-delay: .24s; }

/* Mobile tweaks */
@media (max-width: 980px){
  .al-slider__swiper{ height: clamp(440px, 78vh, 720px); }
  .al-slide__content{ padding: 54px 0 62px; }
  .al-slide__stack{ max-width: 92vw; }
  .al-slide__overlay{
    background:
      linear-gradient(0deg, rgba(15,27,45,.70) 0%, rgba(15,27,45,.20) 65%, rgba(15,27,45,.05) 100%);
  }
  /* Hide arrows on mobile */
  .al-slider__nav{ display: none; }
}

/* Reduced motion (accessibility) */
@media (prefers-reduced-motion: reduce){
  .swiper-slide-active .al-slide__img{ animation: none !important; }
  .al-slide__stack > *{ transition: none !important; }
}