/* Custom styles for Bridgers Food Store */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2C1E14;
}
::-webkit-scrollbar-thumb {
    background: #8B1A4B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c72052;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(44, 30, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled #nav-logo-text,
.nav-scrolled .nav-link {
    color: #FDF8F4 !important;
}

/* Hero badge animation */
.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero headline animation */
.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero paragraph animation */
.hero-paragraph {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Hero CTA animation */
.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

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

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

/* Subtle pattern overlay for cream sections */
.bg-cream-50::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(139, 26, 75, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(237, 133, 96, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

/* Selection color */
::selection {
    background-color: rgba(139, 26, 75, 0.2);
    color: #2C1E14;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    #navbar, .hero-badge, .scroll-indicator {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
