/* Custom styles for BJ's Bed & Breakfast */

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

/* Scroll reveal base state - always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal enhanced with JS (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        animation: revealIn 0.7s ease forwards;
    }
    
    .scroll-reveal.revealing {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

@keyframes revealIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 245, 252, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

.navbar-scrolled .nav-link {
    color: #5c1f65 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #7B2D8E !important;
}

.navbar-scrolled .logo-text {
    color: #5c1f65 !important;
}

/* Subtle hover animations */
a {
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* Image lazy load fade-in */
img {
    transition: opacity 0.3s ease;
}

/* Custom selection color */
::selection {
    background-color: #7B2D8E;
    color: #fff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
    border-radius: 2px;
}

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

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

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