/* 
  MOBILE HAMBURGER MENU STYLES (standardized from edmond-concrete/streakerswindow)
  Clean, modern mobile navigation
*/

/* Variables - customize these! */
:root {
    --primary: #FB080E;
    --text: #222222;
    --white: #FFFFFF;
}

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    color: var(--text);
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

.mobile-menu-toggle i {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Hamburger Animation when Active - for Lucide icons */
.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* Legacy span support (if not using Lucide) */
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

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

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

/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 0;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
}

.mobile-nav-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Close Button */
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Mobile Nav Main Nav Links - Override desktop flex to make vertical */
.mobile-nav .main-nav {
    display: flex !important;
    flex-direction: column !important;
    list-style: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100%;
    box-sizing: border-box;
}

.mobile-nav .main-nav li {
    margin-bottom: 0.5rem;
    width: 100%;
    display: block;
}

.mobile-nav .main-nav a:not(.header-cta-call) {
    display: block !important;
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.mobile-nav .main-nav a:not(.header-cta-call):hover,
.mobile-nav .main-nav a:not(.header-cta-call):focus {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* CTA Button in Mobile Menu */
.mobile-nav-links .mobile-cta {
    background: var(--primary);
    color: var(--white);
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.mobile-nav-links .mobile-cta:hover {
    background: var(--primary);
    opacity: 0.9;
    padding-left: 1rem;
}

/* High Contrast Call Button in Mobile Menu */
.mobile-nav .main-nav .header-cta-call {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border: 2px solid var(--white);
    width: 100%;
}

.mobile-nav .main-nav .header-cta-call:hover {
    background: #D9070C;
    transform: translateY(-2px);
    color: var(--white);
}

.mobile-nav .main-nav .header-cta-call i {
    width: 20px;
    height: 20px;
}

/* Show on Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide desktop nav on mobile */
    .main-navigation {
        display: none !important;
    }
    
    /* Ensure mobile nav is visible when active */
    .mobile-nav.active {
        display: block;
    }
}

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
    
    .menu-overlay {
        display: none !important;
    }
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .menu-overlay,
    .mobile-menu-toggle span,
    .mobile-nav-links a {
        transition: none;
    }
}


