/* Custom styles for Hallman Automotive */

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

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

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

::-webkit-scrollbar-thumb {
    background: #9a3333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7f2c2c;
}

/* Animation for cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(154, 51, 51, 0.15);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #9a3333 0%, #b94747 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7f2c2c 0%, #9a3333 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(154, 51, 51, 0.3);
}

.btn-secondary {
    border: 2px solid #9a3333;
    color: #9a3333;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #9a3333;
    color: white;
    transform: translateY(-2px);
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Only apply animations if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Hero pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(154, 51, 51, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 82, 97, 0.05) 0%, transparent 50%);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(154, 51, 51, 0.2);
}

/* Print styles */
@media print {
    nav,
    .mobile-menu-btn,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
