/* Custom styles for Down The Bayou Nutrition */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #e8694f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4573e;
}

/* Selection color */
::selection {
    background: #e8694f;
    color: #ffffff;
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Parallax hero fix for mobile */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

/* Card image container fix */
.h-56 {
    overflow: hidden;
}

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

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

/* Ensure section dividers render properly */
.section-divider {
    background: linear-gradient(90deg, transparent, #e8694f, transparent);
    height: 2px;
}
