/* Custom styles for Country Living RV Park */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

/* Amenity card hover */
.amenity-card {
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.amenity-card:hover {
    border-color: rgba(196, 112, 75, 0.15);
}

/* FAQ accordion */
.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-content.open {
    max-height: 200px;
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#hero p {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Selection color */
::selection {
    background: rgba(196, 112, 75, 0.25);
    color: #3D2617;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .amenity-card {
        transition: none;
    }
    
    .amenity-card:hover {
        transform: none;
    }
    
    #mobile-menu {
        animation: none;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .amenity-card:hover {
        transform: translateY(-4px);
    }
}

/* Large screens */
@media (min-width: 1024px) {
    #hero h1 {
        font-size: clamp(2.5rem, 5vw, 4.5rem);
    }
}
