/* Custom styles for J and K Muffler Systems */

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

/* Prevent flash of hidden content - all content visible by default */
body {
    opacity: 1;
}

/* Custom selection color */
::selection {
    background-color: #f59e0b;
    color: #332033;
}

/* Service card stagger animation - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.5s ease;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #f59e0b;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(102, 61, 102, 0.08);
}

/* Image loading placeholder */
img {
    background-color: #f3eaf3;
}

/* Subtle line decorations */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8d6e8, transparent);
}

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

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

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

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

/* Form styles for contact */
input, textarea {
    border: 1px solid #e8d6e8;
    background: #f9f5f9;
    color: #332033;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

/* Hero text animation on load - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .hero-word {
        display: inline-block;
        will-change: transform;
    }
}
