/* ============================================
   New York Deli — Custom Styles
   Classic & Elegant | Forest Green + Off-White
   ============================================ */

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6ef;
}
::-webkit-scrollbar-thumb {
    background: #9cc18a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #558744;
}

/* ---- Smooth Scrolling ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Selection Color ---- */
::selection {
    background-color: #9cc18a;
    color: #0f1c0c;
}

/* ---- Base Typography Tweaks ---- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Navbar Transition ---- */
#navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(15, 28, 12, 0.08);
}

/* ---- Floating Card Animations ---- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.floating-card-1 { animation: float-slow 6s ease-in-out infinite; }
.floating-card-2 { animation: float-medium 5s ease-in-out infinite; }
.floating-card-3 { animation: float-fast 4.5s ease-in-out infinite; }
.floating-card-4 { animation: float-medium 5.5s ease-in-out infinite; }

/* ---- Hover Card Enhancement ---- */
.group:hover .floating-card-1,
.group:hover .floating-card-2,
.group:hover .floating-card-3,
.group:hover .floating-card-4 {
    animation-play-state: paused;
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .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; }
}

/* ---- Mobile Menu Transition ---- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* ---- Image Hover ---- */
img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Button Focus States ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #558744;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

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