/* Custom styles for Pifher Trucking LLC */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 24, 40, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #0f2237;
}

nav.scrolled .nav-link {
    color: #1e4468;
}

nav.scrolled .nav-link:hover {
    color: #2da860;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always show content if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover glow */
.group:hover .group-hover\:bg-mint-200 {
    box-shadow: 0 0 20px rgba(45, 168, 96, 0.2);
}

.group:hover .group-hover\:bg-sky-200 {
    box-shadow: 0 0 20px rgba(42, 90, 138, 0.2);
}

.group:hover .group-hover\:bg-amber-200 {
    box-shadow: 0 0 20px rgba(180, 83, 9, 0.2);
}

/* Custom selection color */
::selection {
    background-color: #a8e6c3;
    color: #0a1828;
}

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

/* Subtle gradient text option (if needed) */
.gradient-text {
    background: linear-gradient(135deg, #0a2540 0%, #2da860 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
