﻿/* =====================================================
   MOBILE MENU STYLES - v3.2
   Updated January 23, 2026
   
   CHANGES IN 3.2:
   - Moved Talk to Advisor & Client Login to bottom
   - Removed green left border from sections
   - Section titles now bold, left-aligned, more prominent
   - Separated Our Process and Our Services into separate accordions
   - Full By Situation list included
   - Green icons throughout
   ===================================================== */

/* =====================================================
   MOBILE MENU CONTAINER
   ===================================================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.site-header.menu-open .mobile-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-inner {
    padding: 20px;
    padding-bottom: 120px;
}

/* =====================================================
   MOBILE ACCORDION
   ===================================================== */
.mobile-accordion {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-accordion:first-of-type {
    border-top: 1px solid #e2e8f0;
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1f295e;
    cursor: pointer;
    text-align: left;
}

.accordion-trigger:hover {
    color: #02c153;
}

.accordion-arrow {
    font-size: 12px;
    color: #8892a6;
    transition: transform 0.3s ease;
}

.mobile-accordion.is-open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding-bottom: 16px;
}

.mobile-accordion.is-open .accordion-content {
    display: block;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   ACCORDION SECTIONS (By Situation, By Industry)
   ===================================================== */
.accordion-section {
    margin-bottom: 16px;
    padding-left: 0;
    border-left: none;
}

.accordion-section:last-child {
    margin-bottom: 0;
}

/* Section Title - Bold, prominent, left-aligned */
.accordion-section-title {
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f295e;
    padding: 12px 0 8px 0;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.accordion-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 4px;
}

.accordion-section-header svg {
    width: 16px;
    height: 16px;
    color: #02c153;
    stroke: #02c153;
    flex-shrink: 0;
}

.accordion-heading {
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f295e;
    text-transform: none;
    letter-spacing: 0;
}

/* =====================================================
   ACCORDION LINKS
   ===================================================== */
.accordion-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #334155;
    text-decoration: none;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    margin: 2px 0;
}

.accordion-content a:hover {
    background: #f1f5f9;
    color: #02c153;
}

.accordion-content a svg {
    width: 16px;
    height: 16px;
    color: #02c153;
    stroke: #02c153;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.accordion-content a:hover svg {
    opacity: 1;
}

.accordion-section a {
    padding-left: 16px;
}

/* =====================================================
   MOBILE DIRECT LINKS (Pricing, Outplacement)
   ===================================================== */
.mobile-direct-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1f295e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-direct-link:hover {
    color: #02c153;
}

.mobile-direct-link svg {
    width: 18px;
    height: 18px;
    color: #02c153;
    stroke: #02c153;
    flex-shrink: 0;
}

/* =====================================================
   MOBILE GET STARTED CTA (GREEN)
   ===================================================== */
.mobile-cta {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #02c153 0%, #00a847 100%);
    color: #fff;
    text-align: center;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(2, 193, 83, 0.35);
    transition: all 0.2s ease;
}

.mobile-cta:hover,
.mobile-cta:active {
    background: linear-gradient(135deg, #00a847 0%, #008f3d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 193, 83, 0.45);
}

/* =====================================================
   MOBILE PHONE LINK
   ===================================================== */
.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    background: #f8fafc;
    color: #1f295e;
    text-decoration: none;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.mobile-phone:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #02c153;
}

.mobile-phone svg {
    width: 18px;
    height: 18px;
    color: #02c153;
    stroke: #02c153;
}

/* =====================================================
   MOBILE CTA BUTTONS - Now at BOTTOM
   ===================================================== */
.mobile-cta-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mobile-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Primary Button - Talk to Advisor (GREEN) */
.mobile-btn-primary {
    background: linear-gradient(135deg, #02c153 0%, #00a847 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(2, 193, 83, 0.3);
}

.mobile-btn-primary:hover,
.mobile-btn-primary:active {
    background: linear-gradient(135deg, #00a847 0%, #008f3d 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 193, 83, 0.4);
}

.mobile-btn-primary svg {
    stroke: #fff;
    color: #fff;
}

/* Outline Button - Client Login (NAVY) */
.mobile-btn-outline {
    background: #fff;
    color: #1f295e;
    border: 2px solid #1f295e;
}

.mobile-btn-outline:hover,
.mobile-btn-outline:active {
    background: #1f295e;
    color: #fff;
}

.mobile-btn-outline svg {
    stroke: #1f295e;
    color: #1f295e;
    transition: all 0.2s ease;
}

.mobile-btn-outline:hover svg,
.mobile-btn-outline:active svg {
    stroke: #fff;
    color: #fff;
}

/* =====================================================
   HAMBURGER MENU TOGGLE
   ===================================================== */
.mobile-toggle {
    display: none;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 991px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: #1f295e;
    transition: all 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #1f295e;
    transition: all 0.25s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.site-header.menu-open .hamburger {
    background: transparent;
}

.site-header.menu-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.menu-open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* =====================================================
   HIDE DESKTOP NAV ON MOBILE
   ===================================================== */
@media (max-width: 991px) {
    .nav-menu {
        display: none !important;
    }
    
    .nav-cta {
        display: none !important;
    }
}

/* =====================================================
   HIDE MOBILE MENU ON DESKTOP
   ===================================================== */
@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-toggle {
        display: none !important;
    }
}

/* =====================================================
   ADJUSTMENTS FOR SMALLER SCREENS
   ===================================================== */
@media (max-width: 400px) {
    .mobile-cta-buttons {
        flex-direction: column;
    }
    
    .mobile-btn {
        width: 100%;
    }
    
    .accordion-trigger {
        font-size: 16px;
    }
    
    .accordion-content a {
        font-size: 14px;
        padding: 10px;
    }
}

/* =====================================================
   HIDE TOP BAR ON MOBILE (for service pages)
   ===================================================== */
@media (max-width: 767px) {
    .service-page-body .top-bar,
    .process-page-body .top-bar {
        display: none !important;
    }
    
    .service-page-body .mobile-menu,
    .process-page-body .mobile-menu {
        top: 70px;
    }
}

/* =====================================================
   iOS SAFE AREA SUPPORT
   ===================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-menu-inner {
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
}

/* =====================================================
   REDUCED MOTION SUPPORT
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .accordion-content,
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        animation: none;
        transition: none;
    }
}

/* =====================================================
   LIVE CHAT BUTTON - Matches button group style
   ===================================================== */
.mobile-btn-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    color: #1f295e;
    font-family: 'AvertaPE', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-btn-chat:hover,
.mobile-btn-chat:active {
    background: #1f295e;
    color: #fff;
    border-color: #1f295e;
}

.mobile-btn-chat svg {
    width: 18px;
    height: 18px;
    color: #02c153;
    stroke: #02c153;
    transition: all 0.2s ease;
}

.mobile-btn-chat:hover svg,
.mobile-btn-chat:active svg {
    color: #fff;
    stroke: #fff;
}