/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-bottom: 4px solid #5a3a1a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sticky-nav.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: 2px solid #fff3d6;
    color: #fff3d6;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
}

.hamburger:hover {
    background: rgba(255, 243, 214, 0.1);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff3d6;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 243, 214, 0.2);
    transform: translateY(-2px);
}

/* Back to Top Button - Mobile First */
.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(8px);
    color: #fff3d6;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top svg {
    width: 28px;
    height: 28px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:active {
    transform: scale(0.9);
}

@media (min-width: 769px) {
    .back-to-top {
        bottom: 2rem;
        right: 2rem;
        width: 52px;
        height: 52px;
    }
    
    .back-to-top svg {
        width: 24px;
        height: 24px;
    }
    
    .back-to-top:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.4);
        background: rgba(139, 69, 19, 1);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
        flex-direction: column;
        padding: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 4px solid #5a3a1a;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    
    .nav-links.open {
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
    }
}

/* Add padding to body to account for fixed nav */
body {
    padding-top: 70px !important;
}
