/* ============================================
   SANTOS PROTEIN BAR — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #141414;
}
::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

/* Selection color */
::selection {
    background: #e8645b;
    color: #141414;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 61, 61, 0.5);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-white {
    color: #f5f5f5 !important;
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 5px;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* ============================================
   HERO FLOATING CARDS
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-protein {
    animation-delay: 0s;
}
.floating-card.card-ingredients {
    animation-delay: -2s;
}
.floating-card.card-batches {
    animation-delay: -4s;
}
.floating-card.card-local {
    animation-delay: -1s;
}

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

/* ============================================
   SCROLL REVEAL ANIMATIONS
   Gated behind prefers-reduced-motion for accessibility
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .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; }
}

/* ============================================
   PRODUCT CARD HOVER EFFECTS
   ============================================ */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   FORM STYLES
   ============================================ */
select option {
    background: #1f1f1f;
    color: #d4d4d4;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}

@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
