/* Custom styles for Allisons Automotive */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #2d5a87;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Selection color */
::selection {
    background: #4ade80;
    color: #0a1a2e;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Subtle pulse animation for hero badge */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
}
.animate-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Hover lift for cards */
.group:hover .group-hover\\:-translate-y-1 {
    transform: translateY(-4px);
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
