/* Custom styles for Upper Little Truckee Campground */

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

/* Ensure all text meets WCAG AA contrast */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F1419;
}
::-webkit-scrollbar-thumb {
    background: #2D3748;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E86A5B;
}

/* Selection color */
::selection {
    background: #E86A5B;
    color: #0F1419;
}

/* Scroll reveal base styles - content visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animation applied via JS only for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animated {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Nav active state */
nav a.active {
    color: #E86A5B;
}

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

/* Ensure map iframe is responsive */
iframe {
    max-width: 100%;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}
