/* ============================================
   O'DONNELL CAR WASH — Premium Dark Luxury
   Color Palette: Deep Emerald + Cream + Gold
   ============================================ */

/* --- Custom Tailwind Config --- */
tailwind.config = {
    theme: {
        extend: {
            colors: {
                emerald: {
                    400: '#34d399',
                    500: '#10b981',
                    900: '#064e3b',
                    950: '#022c22',
                },
                cream: {
                    50: '#fefdf8',
                    100: '#fdf9ed',
                    200: '#faf3d6',
                },
                yellow: {
                    400: '#facc15',
                    500: '#eab308',
                },
                neutral: {
                    900: '#0f1c15',
                    950: '#070e0a',
                }
            },
            fontFamily: {
                cormorant: ['"Cormorant Garamond"', 'Georgia', 'serif'],
                montserrat: ['"Montserrat"', 'system-ui', 'sans-serif'],
            }
        }
    }
};

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, sans-serif;
    background-color: #070e0a;
    color: #fefdf8;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(234, 179, 8, 0.3);
    color: #fefdf8;
}

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

#navbar.scrolled {
    background: rgba(7, 14, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* --- Hero --- */
.hero-bg-img {
    transition: transform 8s ease;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(7,14,10,0.4) 0%, rgba(7,14,10,0.85) 70%, rgba(7,14,10,0.97) 100%);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(7,14,10,0.3) 50%, #070e0a 100%);
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

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

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

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

/* --- CTA Section Background --- */
.hero-cta-bg {
    transition: transform 10s ease;
}

/* --- Focus Styles --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #facc15;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070e0a;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}

/* --- Selection --- */
::selection {
    background: rgba(234, 179, 8, 0.25);
    color: #fefdf8;
}
