/* =============================================
   DEPARTURE LOUNGE — Custom Styles
   ============================================= */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FBF5EC;
}
::-webkit-scrollbar-thumb {
  background: #D4A06A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B85C38;
}

/* Selection color */
::selection {
  background: #B85C38;
  color: #FFF8F0;
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 92, 56, 0.08);
}

#navbar.scrolled {
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 4px 20px rgba(110, 49, 29, 0.08);
}

/* =============================================
   MOBILE MENU
   ============================================= */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #B85C38;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   Progressive enhancement — only active with JS
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* =============================================
   HERO
   ============================================= */
#hero {
  background: linear-gradient(135deg, #FBF5EC 0%, #F5EAD6 50%, #FBF4F0 100%);
}

/* Floating card animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.absolute.-bottom-6.-left-6 {
  animation: float 4s ease-in-out infinite;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* =============================================
   BUTTONS
   ============================================= */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* =============================================
   FORM INPUTS
   ============================================= */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #E2C89A;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .absolute.-bottom-6.-left-6 {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    margin-left: 1rem;
    animation: none;
  }

  .lg\:col-span-7 {
    order: 2;
  }

  .lg\:col-span-5 {
    order: 1;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #B85C38;
  outline-offset: 2px;
  border-radius: 4px;
}
