/* ===== Mobile Header Optimization ===== */

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

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

.mobile-nav-overlay.active {
    opacity: 1;
}

@media (max-width: 768px) {
    /* Two-line mobile header */
    .header-content {
        flex-wrap: wrap;
    }
    
    /* Line 1: Logo + Hamburger */
    .site-logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .hamburger {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    
    /* Line 2: CTA Icons (always visible) */
    .header-cta {
        order: 3;
        display: flex !important;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #eee;
    }
    
    .header-cta .cta-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-primary);
        color: white;
        border-radius: 50%;
        font-size: 1.2rem;
    }
    
    /* Hide desktop navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        gap: 0;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 1.5rem;
    }
    
    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation ul li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    /* Dropdown in mobile menu */
    .main-navigation .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: #f9f9f9;
        padding: 0.5rem 0 0.5rem 1rem;
        margin: 0;
    }
    
    .main-navigation .dropdown.active .dropdown-content {
        display: block;
    }
    
    .main-navigation .dropdown > a::after {
        content: ' ▼';
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
    
    .main-navigation .dropdown.active > a::after {
        content: ' ▲';
    }
    
    /* Language switcher in mobile menu */
    .language-switcher {
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid #eee;
        justify-content: center;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
}

/* ===== Mobile Process Timeline ===== */
@media (max-width: 768px) {
    .process-steps {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .process-step {
        display: flex;
        gap: 1rem;
        position: relative;
        padding-bottom: 2rem;
    }
    
    .process-step:last-child {
        padding-bottom: 0;
    }
    
    .process-step::after {
        content: '';
        position: absolute;
        left: 20px;
        top: 50px;
        width: 2px;
        height: calc(100% - 30px);
        background: rgba(255, 136, 0, 0.3);
    }
    
    .process-step:last-child::after {
        display: none;
    }
    
    .step-number {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin: 0;
    }
    
    .step-icon {
        display: none;
    }
    
    .process-step h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .process-step > div:last-child {
        flex: 1;
    }
}

/* ===== Mobile Statistics Cards ===== */
@media (max-width: 768px) {
    .stats-illustration > div {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .stats-illustration > div > div {
        background: white;
        padding: 2rem 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .stats-illustration > div > div:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .stats-illustration > div > div > div:first-child {
        font-size: 3.5rem !important;
    }
    
    .stats-illustration > div > div > div:nth-child(2) {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
    
    .stats-illustration > div > div > p {
        font-size: 0.95rem !important;
        margin: 0;
    }
    
    .stats-illustration > img {
        display: none;
    }
}

/* Touch-friendly buttons */
@media (max-width: 768px) {
    button,
    .btn,
    .cta-btn,
    a[href^="tel"],
    a[href^="mailto"],
    a[href^="https://wa.me"],
    a[href^="https://tidycal.com"] {
        min-height: 44px;
        min-width: 44px;
    }
}

