/* Custom styles for White River Vacation RV Resort */

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

/* Nav transitions */
#mainNav.scrolled {
    background: rgba(90, 30, 9, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#mainNav:not(.scrolled) {
    background: transparent;
}

.nav-link {
    position: relative;
}

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

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img, .hover\\:scale-110:hover {
        transition: none;
    }
    
    .hover\\:scale-110:hover {
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #c24a10;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9f3608;
}

/* Selection color */
::selection {
    background: #f5c9a8;
    color: #5e2009;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    border-color: #ee9d68 !important;
    box-shadow: 0 0 0 3px rgba(245, 201, 168, 0.3) !important;
}

/* Image hover effects */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(50deg); }
}

.hero-shape-1 {
    animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float-delayed 8s ease-in-out infinite;
}

/* Gallery grid adjustments */
.grid-cols-2 .rounded-2xl:nth-child(1) {
    grid-row: span 2;
}

@media (min-width: 768px) {
    .grid-cols-3 .rounded-2xl:nth-child(2) {
        grid-row: span 2;
    }
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

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

.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
