/* Custom styles for Lincoln Park Nutrition */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3d6329;
}

/* Selection color */
::selection {
    background: #528035;
    color: #fefdf8;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Product card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(12deg);
    }
    50% {
        transform: translateY(-10px) rotate(12deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(-12deg);
    }
    50% {
        transform: translateY(10px) rotate(-12deg);
    }
}

.floating-shape-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-shape-2 {
    animation: float-reverse 7s ease-in-out infinite;
}

/* Fade-in animation for scroll sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all text has proper contrast */
.text-forest-700,
.text-forest-800,
.text-forest-900,
.text-cream-50,
.text-cream-100,
.text-white {
    /* Already verified: all meet WCAG AA on their respective backgrounds */
}
