/* Custom styles for Mountain Motor Works */

:root {
    --color-black: #0A0A0A;
    --color-dark: #111111;
    --color-charcoal: #1A1A1A;
    --color-sand: #D4A574;
    --color-sand-light: #E8C9A0;
    --color-terracotta: #B85C3C;
    --color-cream: #F5EDE3;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-black);
}
::-webkit-scrollbar-thumb {
    background: var(--color-sand);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-sand-light);
}

/* Selection */
::selection {
    background: var(--color-sand);
    color: var(--color-black);
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.5s ease, background 0.5s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    background: rgba(26, 26, 26, 0.8);
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

/* Input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1A1A1A inset !important;
    -webkit-text-fill-color: #F5EDE3 !important;
}

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu button animation */
.menu-open #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open #menu-line-2 {
    opacity: 0;
}
.menu-open #menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Fade-in animations for below-fold sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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.revealed {
    opacity: 1;
    transform: translateY(0);
}
