/* Custom styles for Rapid River Motel */

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #FFC9B8;
    color: #1C1C1E;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #FFA88E !important;
    box-shadow: 0 0 0 3px rgba(255, 168, 142, 0.15) !important;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

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

/* Subtle card hover glow */
.rounded-2xl:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 74, 0.1) !important;
}

/* Hero parallax-like effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .bg-fixed-hero {
        background-attachment: fixed;
    }
}

/* Ensure all text meets contrast requirements */
.text-charcoal-700 {
    color: #3A3A3C;
}

.text-charcoal-800 {
    color: #2C2C2E;
}

.text-charcoal-900 {
    color: #1C1C1E;
}
