/* ============================================
   D&M Drive-Thru Coffee and Pastries
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(16, 185, 129, 0.3);
    color: #fffef8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0d;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar-scrolled {
    background: rgba(10, 15, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Button hover effects
   ============================================ */
a[href^="tel:"]:hover {
    transform: scale(1.02);
}

/* ============================================
   Image lazy loading placeholder
   ============================================ */
img {
    background-color: #111a14;
}

/* ============================================
   Testimonial card hover
   ============================================ */
/* Already handled via Tailwind classes */

/* ============================================
   Smooth section transitions
   ============================================ */
section {
    position: relative;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    nav, #mobile-menu-btn, .reveal-hidden {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a[href^="tel:"]::after {
        content: none;
    }
}
