/* Custom styles for Mossy Oak Campground */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8f6ef;
}
::-webkit-scrollbar-thumb {
    background: #c6dfc8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9cc49e;
}

/* Selection color */
::selection {
    background: #c6dfc8;
    color: #1d2e1f;
}

/* Reveal on scroll - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Hero animations - only run if JS is enabled (handled by script.js) */
.hero-anim {
    /* Default visible, JS adds animation class */
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), pointer-events 0.5s;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Navbar transition */
#nav-bg {
    transition: opacity 0.5s ease;
}

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

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

/* Print styles */
@media print {
    #site-header,
    .reveal-on-scroll,
    iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 639px) {
    .font-serif {
        line-height: 1.15;
    }
}
