/* Custom styles for Highland RV Campground */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(161, 22, 54, 0.1);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #6e142e;
}

/* Image loading placeholder */
img {
    background-color: #fce7eb;
}

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

/* Button hover glow effect */
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(161, 22, 54, 0.3);
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(249, 207, 217, 0.3) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(252, 231, 235, 0.3) 0%, transparent 50%);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(161, 22, 54, 0.15) !important;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #a11636, #f4a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated underline for links */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a11636;
    transition: width 0.3s ease;
}

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