/* ============================================
   M&A Nutrition Bar — Custom Styles
   ============================================ */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #63212e;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #360f16;
}

#navbar.scrolled .nav-link {
    color: #7B2D3B;
}

#navbar.scrolled .nav-link:hover {
    color: #360f16;
}

#navbar.scrolled .menu-icon-open,
#navbar.scrolled .menu-icon-close {
    stroke: #360f16;
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 2px;
    background: #7B2D3B;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hover\\:scale-105:hover,
    .hover\\:scale-110:hover {
        transform: none;
    }
}

/* Hero Text Glow */
@supports (text-shadow: 0 0 40px rgba(0,0,0,0.3)) {
    #hero h1 {
        text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
    }
}

/* Button Hover Effects */
a[href="#menu"],
a[href="#visit"] {
    position: relative;
}

/* Selection Color */
::selection {
    background: #7B2D3B;
    color: #FDF8F5;
}

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

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Menu Item Hover */
.group:hover .border-b {
    border-color: rgba(245, 196, 181, 0.3);
}
