/* River's Bend RV Park — Custom Styles */

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

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F0FBF7;
}
::-webkit-scrollbar-thumb {
    background: #1FAF78;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #148A5E;
}

/* Selection color */
::selection {
    background: #D9F5E9;
    color: #0A1628;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

/* Reveal animations — progressive enhancement, only when JS is available */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@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);
    }
}

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

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(31, 175, 120, 0.1);
}

/* Subtle image hover */
img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero text rendering */
h1, h2, h3 {
    text-rendering: optimizeLegibility;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}
