/* Custom Styles for Larson Diesel Services */

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

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }

/* Navbar scroll effect */
#navbar.scrolled #nav-bg {
    opacity: 1;
}

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

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

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

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #c45f52;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Form input focus states */
input:focus, textarea:focus {
    border-color: #d8cbb3;
    box-shadow: 0 0 0 3px rgba(216, 203, 179, 0.3);
}

/* Service card hover */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Subtle line decorations */
.line-decoration {
    position: relative;
}

.line-decoration::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c45f52, transparent);
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    #navbar {
        position: static;
    }
}
