/* Custom styles for Co Springs Nutrition */

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

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

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

/* Floating card animations */
@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation: float 3s ease-in-out infinite;
    }
    
    .card-1 {
        animation-delay: 0s;
    }
    
    .card-2 {
        animation-delay: 0.5s;
    }
    
    .card-3 {
        animation-delay: 1s;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 248, 244, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

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

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

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

/* Selection color */
::selection {
    background: #FFC8CE;
    color: #2D2D35;
}

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

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

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

/* Image lazy load placeholder */
img {
    background-color: #EFEFEF;
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(249, 117, 131, 0.06) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
