/* Custom Styles for New JW Golden Bakery */

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

/* Typography Adjustments */
body {
    background-color: #f8fafc; /* jw-cream */
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Navbar Transition States */
.nav-scrolled {
    background-color: rgba(248, 250, 252, 0.95); /* jw-cream with opacity */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-scrolled a {
    color: #0f172a;
}

.nav-scrolled .logo-text {
    color: #0f172a;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Aspect Ratios */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Selection Color */
::selection {
    background-color: #a7f3d0;
    color: #0f172a;
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 4px;
}

/* Utility for hiding scrollbar in mobile menu if needed */
.no-scroll {
    overflow: hidden;
}
