/* ============================================
   Dragon Garden Chinese Restaurant
   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: #3d6630;
    color: #fdfcf8;
}

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

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

::-webkit-scrollbar-thumb {
    background: #8fb57e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a7a3a;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(253, 252, 248, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(31, 53, 26, 0.08);
}

.nav-scrolled .nav-link {
    color: #315227 !important;
}

.nav-scrolled .nav-link:hover {
    color: #4a7a3a !important;
}

.nav-scrolled .font-display {
    color: #1f351a !important;
}

/* Scroll reveal - Progressive enhancement */
.scroll-reveal {
    /* Content is visible by default - JS adds animation */
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobile-menu.open {
    max-height: 500px;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a7a3a;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 3px solid #8fb57e;
    outline-offset: 3px;
    border-radius: 0.5rem;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #dce8d8 0%, #b9d0af 100%);
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
