/* ============================================
   Ela Mediterranean — Custom Styles
   Classic & Elegant Mediterranean Restaurant
   ============================================ */

/* 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;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #d4a574;
}

/* Selection */
::selection {
    background: #c49a6c;
    color: #0a1628;
}

/* Navigation */
#navbar {
    will-change: background-color, padding;
}

#navbar.scrolled {
    background: rgba(250, 250, 245, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

/* Mobile Menu Transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* Menu Card Hover */
#menu .group {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

#menu .group:hover {
    transform: translateY(-4px);
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Image Hover Zoom */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c49a6c;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Subtle Pattern Overlay for Sections */
.bg-navy-900::before,
.bg-navy-800::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(196, 154, 108, 0.03) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 50%, rgba(196, 154, 108, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Loading State for Images */
img {
    background: linear-gradient(135deg, #e8e4df 0%, #d4d0cb 100%);
}

/* Print Styles */
@media print {
    #navbar,
    #mobileMenu {
        display: none !important;
    }
    
    body {
        color: #0a1628;
        background: white;
    }
    
    .bg-navy-900,
    .bg-navy-800 {
        background: #0a1628 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
