/* Custom styles for Garland's Auto Repair */

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

/* Prevent scroll-reveal from hiding content by default — JS adds the animated state */
.service-card,
.reveal {
    opacity: 1;
    transform: none;
}

/* Navbar scroll state */
.navbar-scrolled {
    --tw-bg-opacity: 1;
    background-color: rgb(42 18 30 / var(--tw-bg-opacity));
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5eef3;
}
::-webkit-scrollbar-thumb {
    background: #d6b4c4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be859f;
}

/* Selection color */
::selection {
    background: #ffefc2;
    color: #4d2738;
}

/* Reduced motion */
@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;
    }
    .service-card,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

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