/* Custom styles for Wattli Bar & Kitchen */

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 254, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #d1fae5;
    color: #064e3b;
}

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

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

/* Fade-in animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    img, .hover\\:scale-105:hover {
        transition: none;
    }
    
    .hover\\:scale-105:hover {
        transform: none;
    }
}

/* Ensure all text is readable */
.bg-emerald-900 h1,
.bg-emerald-900 h2,
.bg-emerald-900 h3,
.bg-emerald-900 h4,
.bg-emerald-900 p,
.bg-emerald-900 a {
    color: inherit;
}

/* Touch-friendly buttons */
@media (hover: none) {
    a:hover, button:hover {
        transform: none;
    }
}
