/* Custom styles for Nutrition 360 */

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

/* Base transitions */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 200ms;
    transition-timing-function: ease;
}

/* Reveal animations for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal-content {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-image {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    }
    
    .reveal-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

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

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

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

/* Button hover effects */
button:hover,
a:hover {
    cursor: pointer;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #881337;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

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

/* Form input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.1);
}

/* Hero image float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-badge {
    animation: float 4s ease-in-out infinite;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .map-section {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
