/* Mobile Header - Optimized for 767px and below screens */

/* Mobile Header Container */
.header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 150, 83, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header-mobile.scrolled {
    background: rgba(247, 150, 83, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile Header Content */
.header-mobile-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Mobile Logo */
.header-mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-mobile-logo:hover {
    transform: scale(1.02);
}

.header-mobile-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
}

/* Mobile Menu Button */
.header-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.header-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.header-mobile-menu-btn.active {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile Menu Button Icon */
.header-mobile-menu-btn::before {
    content: '☰';
    font-size: 18px;
    transition: all 0.3s ease;
}

.header-mobile-menu-btn.active::before {
    content: '✕';
    font-size: 16px;
}

/* Mobile Navigation */
.header-mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 150, 83, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 20px 20px 40px;
    z-index: 10000;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.header-mobile-nav.active {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    overflow-y: auto !important;
}

/* Mobile Navigation List */
.header-mobile-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-mobile-nav-item {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-mobile-nav-item:last-child {
    border-bottom: none;
}

/* Mobile Navigation Links */
.header-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 18px 0;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.header-mobile-nav-link:hover {
    color: #fff;
    padding-left: 10px;
}

/* Mobile Dropdown Arrow */
.header-mobile-dropdown-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.header-mobile-nav-item.dropdown.active .header-mobile-dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Dropdown */
.header-mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.header-mobile-nav-item.dropdown.active .header-mobile-dropdown {
    max-height: 300px;
}

.header-mobile-dropdown-link {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.header-mobile-dropdown-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
    padding-left: 25px;
}

/* Mobile CTA Section */
.header-mobile-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.header-mobile-cta-button {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-mobile-cta-button:hover {
    background: #fff;
    color: #f79653;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Body Padding */
body {
    padding-top: 60px;
}

/* Mobile Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-mobile-nav.active {
    animation: slideDown 0.3s ease;
}

/* Mobile Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .header-mobile-nav-link {
        padding: 20px 0;
    }
    
    .header-mobile-dropdown-link {
        padding: 10px 20px;
    }
    
    .header-mobile-cta-button {
        padding: 18px 20px;
    }
}
