/* Custom styles for 101 Tire and Repair */

:root {
    --nav-text-color: #3d632b;
    --nav-logo-color: #3d632b;
    --nav-bg: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base — content is visible by default, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 64, 29, 0.1);
}

.nav-scrolled .nav-text-color {
    color: #3d632b !important;
}

.nav-scrolled .nav-logo-color {
    color: #3d632b !important;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0de;
}
::-webkit-scrollbar-thumb {
    background: #9dbe82;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #74a056;
}

/* Selection color */
::selection {
    background: #c5dab3;
    color: #213418;
}
</style>
