/* Pure CSS Mobile Navigation - No JavaScript Required */
/* Ultra-specific targeting to prevent conflicts with page-specific CSS */

/* Mobile-only media query to prevent desktop interference */
@media screen and (max-width: 768px) {
    /* Hide standard hamburger button on mobile - CSS-only approach */
    html body .site-header .hamburger {
        display: none !important;
    }
    
    /* CSS-Only Mobile Navigation System */
    .css-mobile-toggle {
        display: none; /* Hidden checkbox for CSS-only functionality */
    }
    
    /* CSS-Only Hamburger Button */
    .css-mobile-hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
        z-index: 1003;
        position: relative;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: background-color 0.3s ease;
        background: transparent;
        border: none;
        order: 2;
    }
    
    .css-mobile-hamburger:hover {
        background-color: rgba(31, 42, 54, 0.1);
    }
    
    .css-mobile-hamburger:focus {
        outline: 2px solid #CC6B5C;
        outline-offset: 2px;
    }
    
    /* Hamburger lines */
    .css-mobile-hamburger span {
        width: 28px;
        height: 3px;
        background-color: #1F2A36;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
        display: block;
    }
    
    /* Hamburger animation when checked */
    .css-mobile-toggle:checked + .css-mobile-hamburger span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .css-mobile-toggle:checked + .css-mobile-hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .css-mobile-toggle:checked + .css-mobile-hamburger span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hide standard main navigation on mobile completely */
    html body .site-header .main-nav {
        display: none !important;
    }
    
    /* CSS-Only Mobile Navigation Overlay */
    .css-mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #1F2A36;
        transition: right 0.3s ease;
        z-index: 1010;
        align-items: center;
        justify-content: center;
    }
    
    /* Show navigation when checkbox is checked */
    .css-mobile-toggle:checked ~ .css-mobile-nav {
        display: flex !important;
        right: 0 !important;
        visibility: visible !important;
        background-color: #1F2A36;
    }
    
    /* Navigation list styling */
    .css-mobile-nav ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2rem;
        width: 100%;
        list-style: none;
        margin: 0;
    }
    
    .css-mobile-nav li {
        width: 100%;
    }
    
    .css-mobile-nav a {
        font-size: 1.25rem;
        padding: 1.5rem 2rem;
        color: #FFFFFF !important;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 4px;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .css-mobile-nav a:hover,
    .css-mobile-nav a:active {
        color: #CC6B5C !important;
        text-shadow: 0 0 6px rgba(221, 221, 221, 0.4);
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .css-mobile-nav a.active-page {
        color: #CC6B5C !important;
        font-weight: 600;
    }
    
    /* Mobile CTA Buttons */
    .css-mobile-nav .btn-mobile {
        background-color: #D4806F !important;
        color: #FFFFFF !important;
        border: none;
        border-radius: 4px;
        padding: 1rem 1.5rem;
        margin: 0.5rem 0;
        min-width: 200px;
        min-height: 44px;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .css-mobile-nav .btn-mobile:hover {
        background-color: #CC6B5C !important;
        transform: translateY(-1px);
    }
    
    /* Active page button - ensure white text */
    .css-mobile-nav .btn-mobile.active-page {
        color: #FFFFFF !important;
        background-color: #CC6B5C !important;
        font-weight: 600;
    }
    
    .css-mobile-nav .btn-mobile-outline {
        background-color: transparent !important;
        color: #FFFFFF !important;
        border: 2px solid #FFFFFF;
        border-radius: 4px;
        padding: 1rem 1.5rem;
        margin: 0.5rem 0;
        min-width: 200px;
        min-height: 44px;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .css-mobile-nav .btn-mobile-outline:hover {
        background-color: #FFFFFF !important;
        color: #1F2A36 !important;
    }
}

/* Desktop - ensure no interference */
@media screen and (min-width: 769px) {
    .css-mobile-toggle,
    .css-mobile-hamburger,
    .css-mobile-nav {
        display: none !important;
    }
}