/* ============================================
   Northern Pride Car Wash - Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   Animations (Progressive Enhancement)
   ============================================ */

/* Hero animations - always visible (above fold) */
@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-slide-up-delay {
    animation: slideUp 0.6s ease-out 0.15s forwards;
    opacity: 1;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.6s ease-out 0.3s forwards;
    opacity: 1;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Scroll reveal - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

/* Fallback: ensure scroll-reveal elements are visible without JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Navigation
   ============================================ */

#navbar {
    will-change: transform;
}

/* ============================================
   Mobile Menu
   ============================================ */

#mobile-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ============================================
   Buttons & Links
   ============================================ */

a {
    text-decoration: none;
}

/* ============================================
   Selection
   ============================================ */

::selection {
    background-color: #A7F3D0;
    color: #064E3B;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* ============================================
   Utility: Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
    }
}
