/* 
 * Custom styles for Main Street Creamery and Grill
 * These complement the Tailwind utility classes
 */

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

/* 
 * Navbar transition state
 * Applied via JS when scrolled
 */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* 
 * Subtle gradient for the hero background
 * Ensures the mint-50 gradient is visible on all browsers
 */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

/* 
 * Custom scrollbar for webkit browsers
 * Matches the midnight blue theme
 */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1c2d3d;
}

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

/* 
 * Animation for the floating card in hero
 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* 
 * Reduced motion preference
 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .floating-card {
        animation: none;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

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

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}
