/* Custom styles for Enzo's Deli & Imports */

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

/* Navbar scroll effect */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

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

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

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

/* Selection color */
::selection {
    background: #e9d5ff;
    color: #581c87;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile link transitions */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3e8ff;
}

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

/* Card hover lift */
.reveal:hover {
    transform: translateY(-4px);
}

/* Hero underline animation */
@keyframes underline-grow {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

h1 span.relative {
    display: inline-block;
}

h1 span.relative svg {
    transition: stroke-dashoffset 1s ease;
}

/* Subtle gradient text effect for display font */
.font-display {
    text-rendering: optimizeLegibility;
}
