/* Custom styles for Napoli Pizzeria */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #a86a7e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8e4f62;
}

/* Navigation transitions */
#navbar.scrolled {
    background: rgba(250, 245, 247, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(82, 44, 55, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .mobile-link,
#navbar.scrolled .menu-line {
    color: #522c37;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hero card hover effects */
.absolute.bg-white,
.absolute.bg-plum-800,
.absolute.bg-amber-50 {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.absolute.bg-white:hover,
.absolute.bg-plum-800:hover,
.absolute.bg-amber-50:hover {
    box-shadow: 0 25px 60px rgba(82, 44, 55, 0.25);
}

/* Menu item hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Accent line animation */
.w-16.h-px.bg-amber-400 {
    transition: width 0.3s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

/* Print styles */
@media print {
    nav,
    #gallery,
    .absolute.bg-white,
    .absolute.bg-plum-800,
    .absolute.bg-amber-50 {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
