/* Custom styles for 1898 Guesthouse */

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

/* Floating animation for stat cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 20px rgba(15, 34, 64, 0.08) !important;
}

.nav-scrolled .font-display,
.nav-scrolled span {
  color: #0f2240 !important;
}

.nav-scrolled .text-midnight-700 {
  color: #15305c !important;
}

/* Custom selection color */
::selection {
  background: #86efac;
  color: #0f2240;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-float-delayed {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image aspect ratio helpers */
.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Subtle gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0f2240 0%, #214a94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover lift */
.card-lift {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-lift:hover {
  transform: translateY(-4px);
}

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobileMenu.open {
  max-height: 400px;
}
