/* Custom Styles for Square One Nutrition */

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

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

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

::-webkit-scrollbar-thumb {
    background: #c98264;
    border-radius: 5px;
}

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

/* Selection Color */
::selection {
    background-color: #ebd5c7;
    color: #3c1c17;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #c98264;
    outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .hover\\:scale-105:hover,
    .group:hover > *:not(.group-hover\\:scale-105) {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

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

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

/* Navbar Background Transition */
#navbar.scrolled #nav-bg {
    opacity: 1;
}

/* Image Loading Placeholder */
img {
    background-color: #f5ebe3;
}

/* Form Input Focus States */
input:focus,
textarea:focus {
    border-color: #c98264;
    box-shadow: 0 0 0 3px rgba(201, 130, 100, 0.2);
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}
