/* Custom styles for Leonard's Used Mowers and Parts */

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

/* Navigation link styles */
.nav-link {
    position: relative;
}

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

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

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #1a2744;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #fdf2f2;
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 30, 27, 0.12);
}

/* Floating animation for hero stat cards */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-card-1 {
    animation: float-1 4s ease-in-out infinite;
}

.float-card-2 {
    animation: float-2 5s ease-in-out infinite;
    animation-delay: 1s;
}

.float-card-3 {
    animation: float-3 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: none;
}

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

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

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .float-card-1,
    .float-card-2,
    .float-card-3 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .card-hover:hover {
        transform: none;
    }
    
    .reveal.hidden {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Form focus ring animation */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(174, 39, 33, 0.1);
}

/* Print styles */
@media print {
    .nav-fixed,
    #mobile-menu,
    .float-card-1,
    .float-card-2,
    .float-card-3 {
        display: none !important;
    }
    
    body {
        color: #000
