/* ============================================
   WICKED WRENCH AUTOMOTIVE & TOWING
   Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #06121a;
    color: #ffffff;
}

::selection {
    background-color: rgba(212, 168, 75, 0.3);
    color: #ffffff;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 18, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 75, 0.1), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4a84b, #e8c472);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

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

#mobileMenu.open .mobile-link {
    animation: slideIn 0.4s ease forwards;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Buttons --- */
.btn-gold {
    background: linear-gradient(135deg, #d4a84b 0%, #e8c472 50%, #d4a84b 100%);
    background-size: 200% 200%;
    color: #06121a;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 168, 75, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    background-position: right center;
    box-shadow: 0 6px 30px rgba(212, 168, 75, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #06121a;
}

.btn-gold:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 168, 75, 0.3);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.btn-outline:hover {
    border-color: rgba(212, 168, 75, 0.5);
    background: rgba(212, 168, 75, 0.08);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Service Cards --- */
.service-card {
    opacity: 1;
}

.service-card:hover .rounded-xl {
    border-color: rgba(212, 168, 75, 0.3) !important;
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    cursor: pointer;
}

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

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Form Inputs --- */
select option {
    background: #0a1f2c;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #06121a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2a3f4f;
}

/* --- 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;
    }

    .gallery-item img,
    .rounded-2xl img {
        transition: none;
    }

    .gallery-item:hover img,
    .rounded-2xl:hover img {
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }
}
