/* Custom styles for Black Dog Deli */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #2D5A3D;
}

/* Hero animations */
.hero-badge {
    animation: fadeInUp 0.8s ease-out both;
}

.hero-badge:nth-child(1) { animation-delay: 0.1s; }

h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

h1 + p {
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

h1 + p + div {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

h1 + p + div + div {
    animation: fadeInUp 0.8s ease-out 0.65s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu item hover */
.menu-item {
    transform: translateY(0);
}

.menu-item:hover {
    transform: translateY(-2px);
}

/* Special card hover */
.special-card {
    transform: translateY(0);
}

.special-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    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; }

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

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

.mobile-menu-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    padding-left: 8px;
}

/* Custom selection color */
::selection {
    background: rgba(45, 90, 61, 0.15);
    color: #1a3a24;
}

/* Image loading placeholder */
img {
    background-color: #e8e2d4;
}

/* Subtle gradient text option */
.gradient-text {
    background: linear-gradient(135deg, #2D5A3D 0%, #4a7a4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2D5A3D;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .menu-item:hover,
    .special-card:hover {
        transform: none;
    }
    
    [class*="animate-"] {
        animation: none;
    }
}
