/* Custom styles for Cottages of Woodstock */

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

/* Scroll reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* Default state for animated elements (visible when JS is disabled) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(139, 26, 67, 0.08);
}

.nav-scrolled .nav-link {
    color: #8B1A43 !important;
}

.nav-scrolled .font-display {
    color: #8B1A43 !important;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #F9CBBF;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #F9CBBF;
    color: #8B1A43;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid #F9CBBF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover tilt effect */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Prevent content jump on mobile */
@media (max-width: 768px) {
    .mobile-menu-open {
        overflow: hidden;
    }
}
