/* Custom styles for Someplace Inn Time */

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

/* Selection color */
::selection {
  background: #F4845F;
  color: white;
}

/* Navbar transitions */
#navbar.scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

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

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

/* Room card hover */
.room-card {
  will-change: transform;
}

.room-card img {
  will-change: transform;
}

/* Testimonial card hover */
.testimonial-card {
  will-change: transform;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }

  .amenity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .amenity-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to top button */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:not(.visible) {
  transform: translateY(20px);
}

/* Form focus styles */
input:focus,
textarea:focus {
  outline: none;
}

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

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

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

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

/* Mobile link transition */
.mobile-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  padding-left: 8px;
}

/* Hero decorative blur animation */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-blur {
  animation: float 20s ease-in-out infinite;
}

/* Subtle pattern for cream background */
.bg-cream {
  background-color: #FFFBF7;
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 132, 95, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}
