/* ============================================
   Hidden Acres RV Park — Custom Styles
   ============================================ */

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: rgba(16, 185, 129, 0.2);
    color: #051c0b;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(24px);
}

/* --- Nav active state --- */
.nav-link.active {
    color: #fefdf8 !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* --- Mobile nav active --- */
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fefdf8 !important;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
        opacity: 1 !important;
        transform: none !important;
    }
    .reveal[data-reveal-state="hidden"] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Focus visible --- */
:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Form focus rings --- */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* --- Smooth scrollbar for webkit --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c0a09;
}
::-webkit-scrollbar-thumb {
    background: #1a6b27;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d8639;
}
