/* ==========================================================================
   Responsive Stylesheet for Golden Sands – By The Bay
   ========================================================================== */

/* Mobile Navigation Hamburger & Offcanvas */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--color-ocean-dark);
  cursor: pointer;
  padding: 0.4rem;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-ocean-dark);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ocean-dark);
  display: block;
}

.mobile-nav-links a:hover {
  color: var(--color-gold);
}

/* Mobile Sticky Bar - strict <= 15% viewport height constraint */
.mobile-sticky-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 0.65rem 1rem;
  z-index: 998;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-action-inner {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-sticky-action-inner .btn-primary,
.mobile-sticky-action-inner .btn-whatsapp {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  min-height: 44px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-actions {
    display: none;
  }

  .hero-wrapper {
    min-height: 75vh;
  }

  .hero-content {
    padding: 3.5rem 1rem 2.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-whatsapp,
  .hero-cta-group .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .booking-widget-wrapper {
    margin-top: 0;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }

  .booking-widget-card {
    padding: 1.25rem 1rem;
  }

  .booking-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mobile-sticky-action-bar {
    display: block;
  }

  .whatsapp-float {
    bottom: 4.8rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  body {
    padding-bottom: 4.2rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section-padding {
    padding: 3.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
