/* Custom styles for The Bakery Cafe */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Stat card floating animation */
@keyframes float1 {
    0%, 100% { transform: translateY(1rem); }
    50% { transform: translateY(0); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(-1rem); }
    50% { transform: translateY(0); }
}

.stat-card:nth-child(1) { animation: float1 6s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: float2 6s ease-in-out infinite; }
.stat-card:nth-child(3) { animation: float2 6s ease-in-out infinite; }
.stat-card:nth-child(4) { animation: float1 6s ease-in-out infinite; }

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Menu card hover */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(22, 101, 52, 0.12);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .stat-card {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
    }
    
    img {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav, .stat-card, #gallery {
        display: none;
    }
}
