/* Custom styles for Blue Ridge 4x4 */

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #b8d0b8;
    color: #1a3a2a;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f5f0 25%, #e8f0e8 50%, #f0f5f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-marquee {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img {
        animation: none;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 0 rgba(26, 58, 42, 0.08);
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Ensure all text meets contrast requirements */
.text-forest-500 {
    color: #4a7e4a;
}

.text-forest-600 {
    color: #3a633a;
}

.text-forest-700 {
    color: #2d4f2d;
}

.text-forest-800 {
    color: #1a3a2a;
}

.text-forest-900 {
    color: #0f2418;
}

.text-cream-50 {
    color: #fefdf8;
}

.bg-forest-800 {
    background-color: #1a3a2a;
}

.bg-forest-900 {
    background-color: #0f2418;
}

.bg-cream-50 {
    background-color: #fefdf8;
}
