/* =============================================
   MOBILE NAVIGATION STYLES
   ============================================= */

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #c9a854; /* Deep gold */
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85%;
    height: 100%;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    transform: translateX(0);
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(201, 168, 84, 0.3);
}

.mobile-nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c9a854;
    letter-spacing: -0.02em;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: #c9a854;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-nav-close:hover {
    transform: rotate(90deg);
}

/* Mobile Nav Links */
.mobile-nav-links {
    padding: 1rem 0;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-links a:hover {
    background: rgba(201, 168, 84, 0.1);
    border-left-color: #c9a854;
    color: #ffffff;
}

.mobile-nav-links a.active {
    background: rgba(201, 168, 84, 0.2);
    border-left-color: #c9a854;
    color: #c9a854;
    font-weight: 600;
}

/* Mobile Nav CTA */
.mobile-nav-cta {
    padding: 1.5rem;
    border-top: 1px solid rgba(201, 168, 84, 0.3);
    margin-top: auto;
}

.mobile-nav-cta a {
    display: block;
    background: #c9a854;
    color: #1a2332;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(201, 168, 84, 0.3);
}

.mobile-nav-cta a:hover {
    background: #d4b566;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 168, 84, 0.4);
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Show hamburger on tablets and mobile */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation */
    .main-nav,
    .site-nav {
        display: none !important;
    }
    
    /* Ensure header doesn't overflow */
    .header-content {
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    /* Logo section takes available space */
    .logo-section {
        flex: 1;
        min-width: 0;
    }
}

/* Adjust drawer width on very small screens */
@media (max-width: 480px) {
    .mobile-nav {
        width: 260px;
        max-width: 90%;
    }
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    color: #c9a854;
    border: 2px solid #c9a854;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(26, 35, 50, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, #2d3748 0%, #475569 100%);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(26, 35, 50, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Mobile adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}
