/* ========== RESPONSIVE NAVIGATION SYSTEM ========== */
/* Saddleview Christian Assembly - Responsive Navigation */
/* Drop this file into your /css/ folder */

/* Desktop Navigation - Top Right Gold Menu */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 30px;
    display: block;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.top-nav li {
    display: inline-block;
}

.top-nav .nav-link {
    text-decoration: none;
    color: #D4AF37;
    font-size: 16px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.top-nav .nav-link:hover {
    color: #FFFFFF;
    background-color: rgba(212, 175, 55, 0.3);
}

/* Hamburger Menu Button - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #D4AF37;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #b8941f;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

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

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #3D405B;
    z-index: 1000;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav .nav-link {
    color: #D4AF37;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-nav .nav-link:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #FFFFFF;
}

/* Responsive Breakpoints */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .top-nav {
        padding: 15px 20px;
    }
    
    .top-nav ul {
        gap: 15px;
    }
    
    .top-nav .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* Mobile (below 768px) */
@media (max-width: 768px) {
    /* Hide desktop menu */
    .top-nav {
        display: none !important;
    }
    
    /* Show hamburger button */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Show mobile menu */
    .mobile-nav {
        display: block;
    }
    
    /* Adjust hero section for mobile */
    .hero-section h1 {
        font-size: 32px !important;
    }
    
    .hero-section .custom-btn-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-section .custom-btn-group a {
        margin-bottom: 15px;
    }
    
    /* Adjust content sections */
    .about-section div[style*="margin-left"],
    .word-content,
    .meetings-content {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
    
    /* Adjust contact section */
    .contact-info {
        margin-top: 30px !important;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        top: 15px;
        right: 15px;
        padding: 10px 12px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
    }
    
    .mobile-nav {
        width: 250px;
    }
    
    .hero-section h1 {
        font-size: 28px !important;
    }
    
    .navbar-brand {
        font-size: 14px !important;
    }
    
    .custom-block-image-wrap {
        margin-bottom: 20px;
    }
    
    /* Mobile card adjustments for word.html */
    .articles-grid {
        grid-template-columns: 1fr !important;
    }
}

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

/* ========== END RESPONSIVE NAVIGATION ========== */
