/* Custom Styles for Yum Bakery */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Hero blob animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-blob {
    animation: float 8s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: 2.67s; }
.blob-3 { animation-delay: 5.33s; }

/* About blob animations */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.about-blob .blob-1 {
    animation: pulse-slow 10s ease-in-out infinite;
}
.about-blob .blob-2 {
    animation: pulse-slow 12s ease-in-out infinite reverse;
}

/* CTA blob animations */
.cta-blob .blob-1 {
    animation: float 10s ease-in-out infinite;
}
.cta-blob .blob-2 {
    animation: float 12s ease-in-out infinite reverse;
}

/* Product card hover effects */
.product-card {
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Visit card hover effects */
.visit-card {
    transition: all 0.3s ease;
}

.visit-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(22, 101, 52, 0.1);
}

.nav-scrolled .logo-text {
    color: #166534 !important;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #4a9f4a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

/* Print styles */
@media print {
    nav, .animate-bounce, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
