/* Custom styles for Beaver Creek Village */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4a9c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e558e;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(87, 39, 76, 0.08);
}

.nav-scrolled .nav-link {
    color: #57274c !important;
}

.nav-scrolled .font-serif.text-xl {
    color: #57274c !important;
}

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Selection color */
::selection {
    background: #d4a9c8;
    color: #2a1125;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
}

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

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Only apply reveal animations when reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #contactForm {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
