/* Custom styles for Andys Food Mart */

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

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(144, 82, 110, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c48fa6;
}

/* Selection color */
::selection {
    background: #ebd5dc;
    color: #592a39;
}

/* Image loading placeholder */
img {
    background-color: #f5ecee;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #b06988, #c48fa6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(219, 184, 196, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255, 214, 109, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
