/* === Custom Styles for 309 Nutrition at Halstead === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F3F5;
}
::-webkit-scrollbar-thumb {
    background: #D4A3B8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B87A95;
}

/* === Header Scroll State === */
#site-header {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#site-header.scrolled {
    background: rgba(249, 243, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 44, 61, 0.08);
}

#site-header.scrolled .font-display,
#site-header.scrolled a:not(.bg-plum-800):not(.bg-amber-500) {
    color: #4A2C3D;
}

/* === Mobile Menu === */
#mobile-menu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* === Menu Toggle Animation === */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* === Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Hero Parallax === */
.hero-bg {
    will-change: transform;
}

/* === Product Card Hover === */
.group .group-hover\:scale-110 {
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* === Input Focus === */
input:focus,
textarea:focus {
    border-color: #D4A84B;
}

/* === Button Ripple Effect === */
button, a {
    position: relative;
    overflow: hidden;
}

/* === Selection === */
::selection {
    background: #D4A84B;
    color: #1A0F15;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .font-display.text-5xl {
        font-size: 2.5rem;
    }
    .font-display.text-4xl {
        font-size: 2rem;
    }
}

/* === Print styles === */
@media print {
    #site-header, #mobile-menu {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
