/* Custom styles for Ixtapa Silverton */

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

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

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

/* Reveal animations — progressive enhancement, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* Fallback: ensure reveal content is visible even if JS is disabled */
.no-js .reveal,
:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* Navbar active state */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fefcf8;
}

::-webkit-scrollbar-thumb {
  background: #f4d9aa;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e4ab52;
}

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

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* Subtle pattern overlay for sections */
section::before {
  content: '';
  pointer-events: none;
}
