/* Custom styles for TRI Trailer Rentals */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #1d4517 !important;
}

.nav-scrolled .nav-link {
    color: #1d4517 !important;
}

/* Mobile menu link hover */
.mobile-link:hover {
    color: #3f8a33 !important;
}

/* Trailer card hover lift */
.trailer-card {
    transform: translateY(0);
}

.trailer-card:hover {
    transform: translateY(-4px);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #3f8a33 !important;
    box-shadow: 0 0 0 3px rgba(63, 138, 51, 0.15) !important;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .trailer-card:hover,
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
    
    img {
        transition: none;
    }
}

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

/* Ensure hero renders immediately */
#hero {
    opacity: 1;
}
