/* Custom styles for Travelers Inn */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF6EE;
}
::-webkit-scrollbar-thumb {
  background: #2D5A3D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e3d28;
}

/* Selection color */
::selection {
  background: #2D5A3D;
  color: #FDFBF7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.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; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

/* Hero image subtle animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* Geometric pattern overlay */
.geo-pattern {
  background-image: radial-gradient(circle, rgba(45, 90, 61, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Active nav link */
.nav-link-active {
  color: #2D5A3D;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
  border-color: #2D5A3D !important;
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1) !important;
}

/* Image loading placeholder */
img {
  background-color: #EDE4CC;
}

/* Gallery hover overlay */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Print styles */
@media print {
  #navbar, #back-to-top, .reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
