/* Custom styles for EconoLodge of Fargo */

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

/* Navbar transitions */
.nav-text {
    transition: color 0.3s ease;
}

.nav-text-muted {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu button */
#mobile-menu-btn {
    transition: background-color 0.3s ease;
}

/* Mobile menu links */
.mobile-nav-link {
    transition: all 0.2s ease;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-scrolled .nav-text {
    color: #0f2f1c;
}

.nav-scrolled .nav-text-muted {
    color: #1a4d2e;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8bb590;
}

/* Selection color */
::selection {
    background: #dce8df;
    color: #0f2f1c;
}

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

/* Map container responsive */
@media (max-width: 1023px) {
    .lg\:h-auto {
        min-height: 350px;
    }
}

/* Floating stat cards animation */
@media (prefers-reduced-motion: no-preference) {
    .absolute {
        will-change: transform;
    }
}
