/* ============================================
   Phillipsburg City Campground & Park
   Custom Styles
   ============================================ */

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

/* Custom Selection Color */
::selection {
    background-color: #c49a2a;
    color: #0a1628;
}

/* ============================================
   Navbar Styles
   ============================================ */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animation states (applied by JS) */
.animate-on-scroll.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.animate-on-scroll.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.animate-on-scroll.reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

/* ============================================
   Gold Accent Line
   ============================================ */
.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #c49a2a, transparent);
}

/* ============================================
   Image Hover Effects
   ============================================ */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Button Focus States
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c49a2a;
    outline-offset: 2px;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #c49a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4aa35;
}

/* ============================================
   Mobile Menu Animation
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    #navbar {
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(12px);
    }

    .font-serif {
        line-height: 1.15;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    img {
        transition: none;
    }
}
