/* Custom styles for Jamaica Cuisine Cafe */

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

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

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

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

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

/* Navigation transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Menu item hover effect */
.menu-item {
    position: relative;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d45228;
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
}

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

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #d45228;
    outline-offset: 2px;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    img,
    .menu-item::after {
        transition: none;
    }
    
    #mobile-menu {
        animation: none;
    }
}
