/* Custom styles for Loyal T Truck & Engine Repair */

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

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

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Scroll reveal base - always visible */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal with JS enhancement (progressive) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        animation: fadeUp 0.6s ease forwards;
    }
    
    .scroll-reveal:nth-child(1) { animation-delay: 0s; }
    .scroll-reveal:nth-child(2) { animation-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { animation-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { animation-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { animation-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { animation-delay: 0.5s; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .scroll-reveal.revealed {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
