/* ===== Custom Styles for Queen's Deli ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f2;
}
::-webkit-scrollbar-thumb {
    background: #a32235;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b1d2e;
}

/* Selection color */
::selection {
    background: #fce7e7;
    color: #5c131e;
}

/* ===== Navigation ===== */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(163, 34, 53, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #5c131e !important;
}

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

.navbar-scrolled .nav-link:hover {
    color: #a32235 !important;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal-animated {
        opacity: 1;
        transform: none;
    }
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Hero ===== */
#hero {
    scroll-snap-align: start;
}

/* ===== Card Hover Effects ===== */
.bg-white.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ===== Image Loading ===== */
img {
    background: linear-gradient(135deg, #fdf2f2 0%, #fce7e7 100%);
}

/* ===== Subtle pattern overlay on sections ===== */
.bg-gradient-to-b.from-burgundy-50.to-cream-50::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(163, 34, 53, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255, 107, 107, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== Active nav link ===== */
.nav-link.active {
    color: #a32235 !important;
}

/* ===== Counter animation ===== */
.counter {
    display: inline-block;
}

/* ===== Pulse animation for badge ===== */
@keyframes soft-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* ===== Mobile menu link hover ===== */
.mobile-nav-link {
    padding: 8px 0;
    border-bottom: 1px solid #fce7e7;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .font-display.text-4xl {
        font-size: 2rem;
    }
}

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