/*
 * Homepage hero slider
 * Uses the theme variables from assets/pages-css/default.css
 */

.nasawa-hero {
  --hero-height: clamp(520px, 82vh, 820px);
  --hero-overlay: linear-gradient(90deg, rgba(1, 41, 90, 0.92) 0%, rgba(1, 41, 90, 0.72) 40%, rgba(1, 41, 90, 0.15) 100%);
  position: relative;
  overflow: hidden;
  background-color: var(--heading-color);
}

.nasawa-hero__slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--hero-height);
  padding: 80px 0;
}

/* Image + overlay */
.nasawa-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.nasawa-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.nasawa-hero__media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(1, 41, 90, 0.6) 0%, rgba(1, 41, 90, 0) 100%);
  z-index: 1;
}

.nasawa-hero .nasawa-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}

.nasawa-hero .owl-item.active .nasawa-hero__img,
.nasawa-hero:not(.has-multiple) .nasawa-hero__img {
  animation: nasawa-hero-zoom 9s ease-out forwards;
}

/* Content */
.nasawa-hero .container {
  position: relative;
  z-index: 2;
}

.nasawa-hero__content {
  max-width: 680px;
  color: var(--white-color);
}

.nasawa-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-color);
}

.nasawa-hero__eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 40px;
  height: 3px;
  background-color: var(--main-color);
}

.nasawa-hero .nasawa-hero__title {
  margin: 0 0 20px;
  font-family: var(--heading-font-family);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--white-color);
}

.nasawa-hero__text {
  max-width: 560px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.nasawa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nasawa-hero__actions .default-btn i {
  position: relative;
  top: 2px;
  margin-left: 6px;
}

.nasawa-hero__btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--white-color);
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.nasawa-hero__btn-outline:hover,
.nasawa-hero__btn-outline:focus {
  color: var(--heading-color);
  background-color: var(--white-color);
  border-color: var(--white-color);
}

/* Content entrance on the active slide */
.nasawa-hero.has-multiple .nasawa-hero__content > * {
  opacity: 0;
  transform: translateY(24px);
}

.nasawa-hero .owl-item.active .nasawa-hero__content > * {
  animation: nasawa-hero-rise 0.8s ease-out 0.3s forwards;
}

.nasawa-hero .owl-item.active .nasawa-hero__content > :nth-child(2) { animation-delay: 0.42s; }
.nasawa-hero .owl-item.active .nasawa-hero__content > :nth-child(3) { animation-delay: 0.54s; }
.nasawa-hero .owl-item.active .nasawa-hero__content > :nth-child(4) { animation-delay: 0.66s; }

/* Prev / next arrows: side by side, vertically centred, aligned to the container's right edge */
.nasawa-hero__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 3;
  transform: translateY(-50%);
  pointer-events: none;
}

.nasawa-hero__nav-inner {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.nasawa-hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--white-color);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: auto;
  transition: var(--transition);
}

.nasawa-hero__arrow:hover,
.nasawa-hero__arrow:focus-visible {
  background-color: var(--main-color);
  border-color: var(--main-color);
}

.nasawa-hero a:focus-visible,
.nasawa-hero button:focus-visible {
  outline: 2px solid var(--white-color);
  outline-offset: 3px;
}

@keyframes nasawa-hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes nasawa-hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 991px) {
  .nasawa-hero {
    --hero-overlay: linear-gradient(90deg, rgba(1, 41, 90, 0.9) 0%, rgba(1, 41, 90, 0.7) 100%);
  }

  .nasawa-hero__text {
    font-size: 16px;
  }

  /* Swipe on tablets and phones; arrows would cover the text */
  .nasawa-hero__nav {
    display: none;
  }
}

@media (max-width: 575px) {
  .nasawa-hero__slide {
    min-height: 560px;
    padding: 60px 0;
  }

  .nasawa-hero:not(.has-multiple) .nasawa-hero__slide {
    min-height: 0;
  }

  .nasawa-hero__actions a {
    width: 100%;
    justify-content: center;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .nasawa-hero .nasawa-hero__img,
  .nasawa-hero .owl-item.active .nasawa-hero__img {
    animation: none !important;
  }

  .nasawa-hero.has-multiple .nasawa-hero__content > *,
  .nasawa-hero .owl-item.active .nasawa-hero__content > * {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
