/* Custom styles for The Lodge at Windy Acres */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #D4955A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(22, 47, 31, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Nav link hover effect */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5E6D3;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile link styles */
.mobile-link {
    border-radius: 0.75rem;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.15);
}

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

/* Selection color */
::selection {
    background: #F3A080;
    color: #5E2C1D;
}

/* Subtle pattern overlay for sections */
.bg-pattern-dots {
    background-image: radial-gradient(circle, #C0603A 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.03;
}
