/* Custom styles for On The River Campground */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 57, 0.1);
}

#navbar.scrolled a:not([class*="bg-"]) {
    color: #e3e3e3;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #e2b85a;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* For browsers that support prefers-reduced-motion, disable animations */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Gold accent line animation */
a[href="#hero"]:hover svg,
a[href="#sites"]:hover svg,
a[href="#experience"]:hover svg,
a[href="#amenities"]:hover svg,
a[href="#location"]:hover svg {
    transform: scaleX(1.2);
}

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Selection color */
::selection {
    background: rgba(240, 96, 72, 0.3);
    color: #f7f7f7;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
}

/* Subtle gold shimmer on important text */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}

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

/* Subtle gradient overlay for text readability on images */
.bg-gradient-hero {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.4) 100%
    );
}
