/* Custom styles for Panaderia Del Valle */

/* Scroll reveal base - content is visible by default, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active via the .js-loaded class */
.js-loaded .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-loaded .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .js-loaded .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .js-loaded .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state is visible - animation is progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #86efac;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 21, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Hero text glow */
h1 span.text-mint-300 {
    text-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
}

/* Card hover lift */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Subtle pattern overlay for sections */
.bg-mint-50::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(34, 197, 94, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}
