/* =============================================
   The Blue Ridge Comfort Inn — Custom Styles
   ============================================= */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf7ed;
}
::-webkit-scrollbar-thumb {
  background: #c5d4c7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9cb89e;
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(254, 252, 248, 0.92) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Navbar links when scrolled (dark text) */
.nav-scrolled a:not(.bg-terra-500) {
  color: #273a2c !important;
}

/* Scroll reveal base — content is ALWAYS visible by default */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS adds the class (progressive enhancement) */
.reveal.is-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Reduced motion: never animate */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Amenity card hover */
.amenity-card {
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.amenity-card:hover {
  transform: translateY(-4px);
}

/* Hero image float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* Mountain SVG subtle animation */
@keyframes mountain-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
.mountains-animated {
  animation: mountain-drift 12s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.animate-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e05224;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #f8c4b0;
  color: #6c1f13;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #fdf7ed 0%, #fce3d8 100%);
}
