/* Custom styles for Ausable Huron Condominium Campground */

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

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

/* Navigation transitions */
#navbar.scrolled {
    background: rgba(250, 246, 241, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

#navbar.scrolled #nav-logo-text,
#navbar.scrolled .nav-link {
    color: #7B2D3B !important;
}

#navbar.scrolled .nav-link {
    color: #3C2415 !important;
}

#navbar.scrolled #nav-subtext {
    color: #A02F42 !important;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

/* Reveal animations - progressive enhancement, only when JS runs and motion preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state for reveal elements - visible without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF6F1;
}
::-webkit-scrollbar-thumb {
    background: #D9919E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A02F42;
}

/* Selection color */
::selection {
    background: #E8BDC4;
    color: #4A1018;
}

/* Image loading placeholder */
img {
    background-color: #E8DFD3;
}

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

/* Print styles */
@media print {
    #navbar,
    .reveal,
    #menu-toggle,
    #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a[href^="tel:"]::after,
    a[href^="#"]::after {
        content: "";
    }
}
