/* =============================================================
   MODEKA - Hero Slider
   ============================================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  max-height: 960px;
  overflow: hidden;
  background: var(--color-black);
}

/* ─── Slides ─────────────────────────────────────────────────── */
.hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--dur-slower) var(--ease-inout);
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero__slide.is-prev {
  opacity: 0;
  z-index: 1;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 6s var(--ease-out);
  will-change: transform;
}

.hero__slide.is-active .hero__bg img {
  transform: scale(1);
}

/* Overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.38) 55%,
    rgba(0,0,0,0.12) 100%
  );
}

/* Content */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(4rem, 12vh, 7rem);
}

.hero__content-inner {
  max-width: 700px;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.hero__slide-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s var(--ease-out) 0.1s;
}

.hero__slide-label::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1px;
  background: rgba(255,255,255,0.5);
}

.hero__slide.is-active .hero__slide-label {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s var(--ease-out) 0.2s;
}

.hero__slide.is-active .hero__title {
  opacity: 1;
  transform: translateY(0);
}

.hero__description {
  font-size: var(--fs-base);
  font-weight: var(--fw-light);
  line-height: var(--lh-loose);
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.35s, transform 0.6s var(--ease-out) 0.35s;
}

.hero__slide.is-active .hero__description {
  opacity: 1;
  transform: translateY(0);
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.48s, transform 0.6s var(--ease-out) 0.48s;
}

.hero__slide.is-active .hero__cta-group {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Progress bar ────────────────────────────────────────────── */
.hero__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
  z-index: 10;
}

.hero__progress-bar {
  height: 100%;
  background: var(--color-white);
  width: 0%;
  transition: width linear;
}

/* ─── Pagination ─────────────────────────────────────────────── */
.hero__pagination {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.hero__pagination-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity var(--dur-base) ease;
  background: none;
  border: none;
  padding: 0.25rem 0;
}

.hero__pagination-item.is-active {
  opacity: 1;
}

.hero__pagination-item:hover {
  opacity: 0.8;
}

.hero__pagination-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-white);
  transition: opacity var(--dur-base) ease;
  display: none;
}

.hero__pagination-item.is-active .hero__pagination-label {
  display: block;
}

.hero__pagination-track {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.hero__pagination-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-white);
  border-radius: 2px;
  transition: width linear;
}

.hero__pagination-item.is-active .hero__pagination-track {
  width: 60px;
  background: rgba(255,255,255,0.3);
}

/* Arrow navigation */
.hero__arrows {
  position: absolute;
  bottom: 2.25rem;
  left: var(--gutter);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--color-white);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-base) ease,
              border-color var(--dur-base) ease,
              transform var(--dur-base) var(--ease-out);
}

.hero__arrow:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-black);
  transform: scale(1.05);
}

/* Counter */
.hero__counter {
  position: absolute;
  top: 2rem;
  right: var(--gutter);
  z-index: 10;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wider);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__counter-current {
  font-size: var(--fs-lg);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--color-white);
  line-height: 1;
}

.hero__counter-sep {
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

@media (min-width: 768px) {
  .hero__pagination {
    gap: 0.75rem;
  }
  .hero__pagination-item.is-active .hero__pagination-label {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero__content-inner {
    padding: 0;
    margin-left: calc((100vw - var(--container)) / 2 + var(--gutter));
  }
}
