/* ===================================
   PROFESSIONAL HAMBURGER MENU SYSTEM
   =================================== */

/* ===================================
   HAMBURGER BUTTON STYLES
   =================================== */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1003;
}

.hamburger-btn:hover {
    background: rgba(1, 121, 111, 0.2); /* Pine Green hover background */
}

.hamburger-btn:focus {
    outline: 2px solid #01796F; /* Pine Green focus outline */
    outline-offset: 2px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #BFD4BF; /* Paris White hamburger lines for visibility on orange background */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 5px;
}

/* Hamburger animation when menu is open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: #BFD4BF; /* Paris White when active */
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #BFD4BF; /* Paris White when active */
}

/* ===================================
   MOBILE MENU CONTAINER
   =================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 1px solid rgba(240, 74, 0, 0.1);
}

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

/* ===================================
   MOBILE MENU HEADER
   =================================== */

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

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

.mobile-nav {
    padding: 24px 0;
}

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

.mobile-nav-item {
    margin-bottom: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: var(--text-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
    background: rgba(240, 74, 0, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* ===================================
   SUBMENU STYLES
   =================================== */

.has-submenu > .mobile-nav-link {
    cursor: pointer;
}

.submenu-toggle {
    justify-content: space-between;
}

.submenu-arrow {
    width: auto !important;
    font-size: 12px !important;
    transition: transform 0.3s ease;
    color: var(--text-secondary) !important;
}

.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(240, 74, 0, 0.02);
    border-top: 1px solid rgba(240, 74, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-submenu.active .mobile-submenu {
    max-height: 300px;
    border-bottom: 1px solid rgba(240, 74, 0, 0.1);
}

.mobile-submenu-item {
    border-bottom: 1px solid rgba(240, 74, 0, 0.05);
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.submenu-link {
    padding-left: 64px !important;
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    border-left: 4px solid transparent !important;
}

.submenu-link:hover {
    background: rgba(240, 74, 0, 0.08) !important;
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
}

.submenu-link i {
    font-size: 14px !important;
    color: var(--primary-color) !important;
}

/* ===================================
   MOBILE CTA BUTTON
   =================================== */

.mobile-cta {
    padding: 24px;
    margin-top: 20px;
    border-top: 1px solid rgba(240, 74, 0, 0.1);
}

.mobile-cta-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(240, 74, 0, 0.25);
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 74, 0, 0.35);
    background: linear-gradient(135deg, var(--primary-dark), #c13800);
}

.mobile-cta-btn i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===================================
   MOBILE MENU OVERLAY
   =================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ===================================
   RESPONSIVE BEHAVIOR
   =================================== */

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu {
        width: 320px;
        max-width: 90vw;
    }
    
    .mobile-nav-link {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .submenu-link {
        padding-left: 56px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
    }
    
    .mobile-menu-header {
        padding: 16px 20px;
    }
    
    .mobile-logo {
        height: 35px;
    }
    
    .mobile-nav-link {
        padding: 12px 20px;
        gap: 12px;
    }
    
    .mobile-cta {
        padding: 20px;
    }
    
    .mobile-cta-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }
    
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .desktop-nav {
        display: flex !important;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .hamburger-line,
    .mobile-nav-link,
    .mobile-submenu,
    .mobile-menu-overlay {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.mobile-nav-link:focus,
.mobile-cta-btn:focus,
.mobile-close-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-menu {
        border-left: 2px solid var(--primary-color);
    }
    
    .mobile-nav-link {
        border-bottom: 1px solid rgba(240, 74, 0, 0.2);
    }
}