/* Custom styles for Likewise Coffee */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f1f36;
}

/* Selection color */
::selection {
    background: #d4a574;
    color: #0f1f36;
}

/* Navbar transition */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

/* Image hover effects */
.rounded-2xl.overflow-hidden {
    transition: transform 0.3s ease;
}

.rounded-2xl.overflow-hidden:hover {
    transform: scale(1.02);
}

/* Button hover effects */
a[href="#menu"],
a[href="#location"],
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Only animate elements below fold with JS */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.hidden-init {
    opacity: 0;
    transform: translateY(20px);
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 300px;
}

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