/* Custom styles for All American Tire and Brake */

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

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

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

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

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

/* Subtle gradient overlay for hero image */
.hero-gradient {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(15, 15, 15, 0.4) 100%);
}

/* Gold accent line animation */
.accent-line {
    position: relative;
    overflow: hidden;
}

.accent-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c2594a, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Service card hover effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Text selection color */
::selection {
    background: #c2594a;
    color: #0f0f0f;
}

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

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

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

/* Form input focus animation */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(194, 89, 74, 0.1);
}

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

button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
