/* Custom styles for Allie's Grand RV & Tiny Cabins */

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

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Navigation states */
.nav-fill-light {
    color: #ffffff;
}

.nav-fill-coral {
    color: #e8653a;
}

.nav-scrolled .nav-fill-light {
    color: #1a1a1a;
}

.nav-scrolled .nav-fill-coral {
    color: #e8653a;
}

.nav-link {
    position: relative;
}

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

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal-item {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal-item.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger animation */
#menu-line-1.active {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-line-2.active {
    opacity: 0;
}

#menu-line-3.active {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Selection color */
::selection {
    background-color: #e8653a;
    color: #ffffff;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* Subtle hover lift for cards */
.group:hover .group-hover\:scale-105 {
    will-change: transform;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal-item {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
