/* Custom styles for Clinton Township Nutrition */

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding: 1rem 0;
}

/* Mobile links */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.mobile-link:hover {
    padding-left: 0.5rem;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Custom selection color */
::selection {
    background: #f8c4b0;
    color: #6e291f;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce4d9 0%, #f4eace 100%);
}
