/* Custom styles for Hwy 79 Tire and Lube */

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

/* Custom selection color */
::selection {
    background-color: #2f5033;
    color: #faf9f6;
}

/* Header scroll state */
.header-scrolled {
    background-color: rgba(250, 249, 246, 0.97) !important;
    box-shadow: 0 1px 0 rgba(47, 80, 51, 0.1);
}

.header-scrolled .font-serif,
.header-scrolled span {
    color: #1f3422 !important;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero parallax subtle effect */
#hero {
    will-change: background-position;
}

/* Custom select styling */
select option {
    background-color: #f5f3ed;
    color: #1f3422;
    padding: 0.75rem;
}

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

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Subtle image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Print styles */
@media print {
    header, #contact, .animate-bounce {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
