/* ============================================
   JUGNOOS — Custom Styles
   Classic & Elegant Restaurant Website
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ---------- Smooth Scroll Offset ---------- */
[id] {
    scroll-margin-top: 80px;
}

/* ---------- Floating Card Animations ---------- */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: none;
}

@media (prefers-reduced-motion: no-preference) {
    .card-1 {
        animation: float-1 5s ease-in-out infinite;
    }
    .card-2 {
        animation: float-2 6s ease-in-out infinite;
        animation-delay: 0.5s;
    }
    .card-3 {
        animation: float-3 5.5s ease-in-out infinite;
        animation-delay: 1s;
    }
}

/* ---------- Scroll Reveal (Progressive Enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

    .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; }
}

/* ---------- Navbar Transition ---------- */
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(44, 68, 39, 0.08);
}

#navbar.scrolled .menu-line {
    background: #2c4427;
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    opacity: 1;
    transform: none;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* ---------- Selection Color ---------- */
::selection {
    background: #c7d8c4;
    color: #1c2d1a;
}

/* ---------- Subtle Image Hover ---------- */
img {
    display: block;
    max-width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9db89a;
}

/* ---------- Menu Card Hover ---------- */
.bg-forest-700\/50:hover {
    background: rgba(44, 68, 39, 0.45);
}

/* ---------- Print Styles ---------- */
@media print {
    #navbar, #mobile-menu, .floating-card {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
