/* Custom styles for Eighteen-Thirty House Motel */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base — always visible by default */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Progressive enhancement: only animate when JS adds the class and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar scroll state */
#navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(253, 246, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 74, 110, 0.08);
}

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

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

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

/* Subtle gradient for hero text highlight */
.text-amber-300 {
  background: linear-gradient(135deg, #FDE68A 0%, #F5B835 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF6F7;
}
::-webkit-scrollbar-thumb {
  background: #EBADBA;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D97A9A;
}

/* Ensure form inputs have proper focus ring in all browsers */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 122, 154, 0.2);
}
