/* Custom styles for Farrand Auto and Paint */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Nav transition */
.nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(255, 107, 74, 0.08);
}

/* Gallery item overlay on hover */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.3) 0%, transparent 50%);
    border-radius: 0 0 16px 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal when animated - only applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

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

/* Button focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Mobile menu active link highlight */
.mobile-link.active {
    color: #FF6B4A !important;
}

/* Hero text shadow for extra readability */
#hero h1 {
    text-shadow: 0 2px 20px rgba(26, 26, 26, 0.5);
}
