/* ==========================================================================
   SkyAirways - Hero Section with Image Slider
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Container
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 360px;
  overflow: hidden;
  background-color: var(--rb-navy);
}

@media (min-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 420px;
  }
}

@media (min-width: 1024px) {
  .hero {
    height: 70vh;
    min-height: 500px;
  }
}

@media (min-width: 1440px) {
  .hero {
    max-height: 800px;
  }
}

/* --------------------------------------------------------------------------
   Slides
   -------------------------------------------------------------------------- */
.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

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

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide transition alternative (transform-based) */
.hero--slide-mode .hero__slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

.hero--slide-mode .hero__slide.is-active {
  transform: translateX(0);
}

.hero--slide-mode .hero__slide.is-exiting {
  transform: translateX(-100%);
}

/* --------------------------------------------------------------------------
   Dark Gradient Overlay
   -------------------------------------------------------------------------- */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 31, 94, 0.1) 0%,
    rgba(26, 31, 94, 0.35) 50%,
    rgba(26, 31, 94, 0.75) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Text Overlay
   -------------------------------------------------------------------------- */
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  padding-bottom: 80px;
  z-index: 5;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .hero__content {
    padding-bottom: 100px;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding-bottom: 120px;
  }
}

.hero__heading {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
  max-width: 700px;
}

@media (min-width: 768px) {
  .hero__heading {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }
}

@media (min-width: 1024px) {
  .hero__heading {
    font-size: 3.25rem;
  }
}

@media (min-width: 1440px) {
  .hero__heading {
    font-size: 3.75rem;
  }
}

.hero__subheading {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  max-width: 540px;
}

@media (min-width: 768px) {
  .hero__subheading {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero__subheading {
    font-size: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Arrow Navigation
   -------------------------------------------------------------------------- */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color var(--rb-transition), transform var(--rb-transition);
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero__arrow:focus-visible {
  outline: 2px solid var(--rb-gold);
  outline-offset: 2px;
}

.hero__arrow svg {
  width: 20px;
  height: 20px;
}

.hero__arrow--prev {
  left: 12px;
}

.hero__arrow--next {
  right: 12px;
}

@media (min-width: 768px) {
  .hero__arrow {
    width: 48px;
    height: 48px;
  }

  .hero__arrow svg {
    width: 24px;
    height: 24px;
  }

  .hero__arrow--prev {
    left: 24px;
  }

  .hero__arrow--next {
    right: 24px;
  }
}

@media (min-width: 1024px) {
  .hero__arrow--prev {
    left: 32px;
  }

  .hero__arrow--next {
    right: 32px;
  }
}

/* --------------------------------------------------------------------------
   Dot Indicators
   -------------------------------------------------------------------------- */
.hero__dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}

@media (min-width: 768px) {
  .hero__dots {
    bottom: 100px;
  }
}

@media (min-width: 1024px) {
  .hero__dots {
    bottom: 120px;
  }
}

.hero__dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--rb-transition), transform var(--rb-transition);
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero__dot.is-active {
  background: var(--rb-gold);
  transform: scale(1.2);
}

.hero__dot:focus-visible {
  outline: 2px solid var(--rb-gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Booking Form Overlay (positioned at bottom of hero)
   -------------------------------------------------------------------------- */
.hero__booking-anchor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transform: translateY(50%);
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .hero__booking-anchor {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .hero__booking-anchor {
    padding-inline: 32px;
  }
}

.hero__booking-anchor .booking-form {
  max-width: 1280px;
  margin-inline: auto;
}


/* --------------------------------------------------------------------------
   Logout Button in Header
   -------------------------------------------------------------------------- */
.header__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  background: transparent;
  cursor: pointer;
  transition: background var(--rb-transition), border-color var(--rb-transition);
  text-decoration: none;
  padding: 0;
  flex-shrink: 0;
}

.header__logout:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.header__logout svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }

  .hero--slide-mode .hero__slide {
    transition: none;
  }

  .hero__arrow,
  .hero__dot {
    transition: none;
  }
}
