/* Custom styles for Bowser's Riverfront Campground */

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

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

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 250, 248, 0.95) !important;
    backdrop-blur: 12px;
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

.navbar-scrolled .nav-link {
    color: #14532d !important;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

/* Floating stat cards animation */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: -2s;
}

.stat-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scroll 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;
}

/* For browsers with reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .stat-card {
        animation: none;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img,
    .amenity-card,
    .stat-card {
        transition: none;
    }
    
    .amenity-card:hover,
    .stat-card:hover {
        transform: none;
    }
}

/* Amenity card hover */
.amenity-card {
    transition: all 0.5s ease;
}

/* Subtle line decorations */
.section-line {
    width: 48px;
    height: 1px;
    background: #bde0be;
}

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

::-webkit-scrollbar-track {
    background: #f5f5f0;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5fbf7e;
}

/* Selection color */
::selection {
    background: #dceddc;
    color: #071f14;
}

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

/* Image hover containers */
.rounded-2xl {
    overflow: hidden;
}

/* Thin utility line */
.line-thin {
    height: 1px;
    background: linear-gradient(to right, transparent, #bde0be, transparent);
}

/* Subtle pattern overlay for dark sections */
.pattern-overlay {
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}
