/* ==========================================================================
   Rainbow Guest House - Hero Banner Styles
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background-color: #121417;
  background-image: url('../assets/original/oyo-10079-rainbow-guest-29.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark semi-transparent overlay covering full hero */
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  z-index: 1;
  pointer-events: none;
}

/* Hero Content Area - Centered Layout */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 280px; /* Precise top distance matching reference */
  padding-bottom: 90px;
  display: flex;
  justify-content: center;
}

.hero-text-wrapper {
  max-width: 780px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Hero Main Heading */
.hero-title {
  color: var(--color-white);
  font-size: 74px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 26px;
  text-align: center;
}

.hero-title-line {
  display: block;
  text-align: center;
}

/* Description Area Container with Reserved Space to Prevent Layout Shifts */
.hero-description-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px; /* Distance to booking button */
  min-height: 56px;
  position: relative;
}

.hero-description-container .hero-message {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 635px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-paragraph);
  font-size: 17.5px;
  line-height: 1.5;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-description-container .hero-message.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Paragraph overrides within description container */
.hero-description-lead,
.hero-description-sub {
  margin: 0;
}

/* Warm light orange / peach highlight on brand name */
.hero-brand-highlight {
  color: var(--color-brand-highlight);
  font-weight: 700;
}

/* Booking Button Wrap */
.hero-action-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 263px;
  height: 54px;
  background-color: var(--color-white);
  color: var(--color-charcoal-btn);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  border-radius: var(--radius-btn-booking);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-booking-btn:hover {
  background-color: var(--color-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

.hero-booking-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Responsive Hero Rules
   ========================================================================== */

/* Large screens / laptops */
@media (max-width: 1440px) {
  .hero-content {
    padding-top: 250px;
  }
  
  .hero-title {
    font-size: 68px;
  }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .hero-content {
    padding-top: 200px;
    padding-bottom: 70px;
  }
  
  .hero-title {
    font-size: 56px;
    margin-bottom: 22px;
  }
  
  .hero-description-container {
    margin-bottom: 48px;
    min-height: 52px;
  }

  .hero-description-container .hero-message {
    font-size: 16.5px;
    max-width: 580px;
  }
}

/* Mobile landscape / small tablet (768px and below) */
@media (max-width: 768px) {
  .hero-section {
    background-position: 45% 20%;
  }
  
  .hero-content {
    padding-top: 150px;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .hero-description-container {
    margin-bottom: 40px;
    min-height: 50px;
  }

  .hero-description-container .hero-message {
    font-size: 15.5px;
    line-height: 1.5;
  }
  
  .hero-booking-btn {
    width: 250px;
    height: 50px;
    font-size: 12.5px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .hero-section {
    background-position: 42% 15%;
  }
  
  .hero-content {
    padding-top: 120px;
    padding-bottom: 50px;
  }
  
  .hero-title {
    font-size: 38px;
    line-height: 1.22;
    margin-bottom: 18px;
  }
  
  .hero-description-container {
    margin-bottom: 35px;
    min-height: 68px;
  }

  .hero-description-container .hero-message {
    font-size: 15px;
    line-height: 1.48;
  }
  
  .hero-booking-btn {
    width: 100%;
    max-width: 260px;
    height: 50px;
    font-size: 12.5px;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-description-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: auto;
  }
  
  .hero-description-container .hero-message {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}
