/* ============================================
   Ember and Oak Smokehouse — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #7c3aed;
    color: #faf5ff;
}

/* Navbar */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(250, 245, 249, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(124, 58, 237, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1c1917;
}

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

#navbar.scrolled #nav-logo-text {
    color: #1c1917;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #fbbf24;
}

/* Mobile Menu */
.mobile-nav-link {
    font-size: 1.125rem;
}

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

/* Mobile menu button states */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Hero Decorative Lines */
.decorative-line {
    position: absolute;
    background: linear-gradient to bottom, transparent, rgba(251, 191, 36, 0.08), transparent;
}

.line-1 {
    width: 1px;
    height: 100%;
    left: 15%;
    top: 0;
}

.line-2 {
    width: 1px;
    height: 100%;
    left: 85%;
    top: 0;
}

.line-3 {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    background: linear-gradient to right, transparent, rgba(251, 191, 36, 0.06), transparent;
}

/* Menu Items */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item::before {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.menu-item:hover::before {
    width: 2rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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;
    }
    
    .menu-item::before {
        display: none;
    }
    
    .menu-item {
        padding-bottom: 1rem;
    }
    
    img {
        transition: none;
    }
}

/* Mobile Menu Background Color */
#mobile-menu {
    background: rgba(250, 245, 249, 0.98);
}

#mobile-menu .mobile-nav-link {
    color: #1c1917;
}

#mobile-menu .mobile-nav-link:hover {
    color: #7c3aed;
}

/* Floating card animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

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

/* Apply floating to stat cards */
.absolute.top-32.-left-4 {
    animation: float-1 4s ease-in-out infinite;
}

.absolute.-top-4.right-0 {
    animation: float-2 5s ease-in-out infinite;
}

.absolute.bottom-8.right-8 {
    animation: float-3 3.5s ease-in-out infinite;
}

.absolute.bottom-24.-left-8 {
    animation: float-1 4.5s ease-in-out infinite;
}

/* Smooth image loading */
img {
    image-rendering: auto;
}

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