/* Gold Tire Service - Custom Styles */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #803d36;
}

/* Selection Color */
::selection {
    background-color: #d68c3d;
    color: white;
}

/* Base Animations */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Mobile Menu Active State */
body.menu-open {
    overflow: hidden;
}

#mobile-menu.menu-active {
    opacity: 1;
    pointer-events: all;
}

#menu-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(0.35rem, 0.35rem);
}

#menu-icon.open span:nth-child(2) {
    opacity: 0;
}

#menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(0.35rem, -0.35rem);
    width: 1.5rem;
}

/* Mobile Links Animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.menu-active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.menu-active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.menu-active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.menu-active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.menu-active .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.menu-active .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .mobile-link {
        opacity: 1;
        transform: none;
    }
    
    #mobile-menu {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Print Styles */
@media print {
    header, footer, .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white;
    }
}
