/* ==========================================================================
   Rainbow Guest House - Fixed-Background Booking CTA Section Styles
   ========================================================================== */

:root {
  --cta-overlay-color: rgba(16, 20, 35, 0.62); /* Navy-gray dark overlay */
  --cta-text-color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Section Banner & Fixed Parallax Background
   -------------------------------------------------------------------------- */
.experience-cta-section {
  position: relative;
  width: 100%;
  min-height: 675px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    linear-gradient(var(--cta-overlay-color), var(--cta-overlay-color)),
    url('../assets/Experience%20the%20Life%20of%20Kolkata%20City%201.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Essential fixed background parallax on desktop */
  overflow: hidden;
}

/* Optional overlay element kept transparent as linear-gradient handles 62% tint */
.experience-cta-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Container & Content Alignment
   -------------------------------------------------------------------------- */
.experience-cta-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.experience-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* --------------------------------------------------------------------------
   Main Heading: 2-line wrapped on desktop
   -------------------------------------------------------------------------- */
.experience-cta-title {
  color: var(--cta-text-color);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.4px;
  max-width: 850px;
  margin: 0;
}

.experience-cta-title-line {
  display: block;
}

/* --------------------------------------------------------------------------
   Supporting Description
   -------------------------------------------------------------------------- */
.experience-cta-description {
  color: var(--cta-text-color);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 26px;
  margin-bottom: 0;
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   Booking Call to Action Label
   -------------------------------------------------------------------------- */
.experience-cta-booking-wrap {
  margin-top: 86px; /* Noticeable vertical gap matching reference */
}

.experience-cta-booking-label {
  color: var(--cta-text-color);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Telephone Icon & Clickable Number
   -------------------------------------------------------------------------- */
.experience-cta-phone-wrap {
  margin-top: 20px;
}

.experience-cta-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--cta-text-color);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.experience-cta-phone-link:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.experience-cta-phone-link:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 4px;
  border-radius: 4px;
}

.experience-cta-phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.experience-cta-phone-number {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Large Tablets / Laptops (1024px – 1199px) */
@media (max-width: 1199px) {
  .experience-cta-section {
    min-height: 620px;
  }

  .experience-cta-title {
    font-size: 42px;
  }

  .experience-cta-booking-wrap {
    margin-top: 65px;
  }

  .experience-cta-phone-number {
    font-size: 44px;
  }

  .experience-cta-phone-icon {
    width: 38px;
    height: 38px;
  }
}

/* Medium Tablets (768px – 1023px) */
@media (max-width: 1023px) {
  .experience-cta-section {
    min-height: 560px;
  }

  .experience-cta-title {
    font-size: 38px;
  }

  .experience-cta-description {
    font-size: 16px;
    margin-top: 22px;
  }

  .experience-cta-booking-wrap {
    margin-top: 50px;
  }

  .experience-cta-phone-number {
    font-size: 38px;
  }

  .experience-cta-phone-icon {
    width: 34px;
    height: 34px;
  }

  .experience-cta-phone-link {
    gap: 18px;
  }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 767px) {
  .experience-cta-section {
    min-height: 500px;
    /* Stable scroll attachment fallback on mobile to prevent viewport jumping */
    background-attachment: scroll;
    background-position: center top;
  }

  .experience-cta-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .experience-cta-title {
    font-size: 32px;
    line-height: 1.25;
  }

  .experience-cta-title-line {
    display: inline; /* Natural fluid wrapping on smaller screens */
  }

  .experience-cta-description {
    font-size: 15px;
    margin-top: 18px;
  }

  .experience-cta-booking-wrap {
    margin-top: 40px;
  }

  .experience-cta-booking-label {
    font-size: 15px;
    letter-spacing: 1.5px;
  }

  .experience-cta-phone-wrap {
    margin-top: 16px;
  }

  .experience-cta-phone-number {
    font-size: 28px;
    letter-spacing: 0;
  }

  .experience-cta-phone-icon {
    width: 28px;
    height: 28px;
  }

  .experience-cta-phone-link {
    gap: 12px;
  }
}

/* Small Mobile (Below 480px) */
@media (max-width: 479px) {
  .experience-cta-title {
    font-size: 27px;
  }

  .experience-cta-phone-number {
    font-size: 24px;
  }

  .experience-cta-phone-icon {
    width: 24px;
    height: 24px;
  }

  .experience-cta-phone-link {
    gap: 10px;
  }
}
