/* Custom styles for Ruby's Cafe & Bakery */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Subtle grid pattern for sections */
.section-grid-pattern {
    background-image: 
        linear-gradient(rgba(45, 106, 52, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 106, 52, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Card hover effects */
.menu-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Image hover zoom */
.gallery-img {
    transition: transform 0.5s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #66a56e;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #428548;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .gallery-img,
    .menu-card {
        transition: none;
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    .menu-card:hover {
        transform: none;
    }
}
