/* Header Components - WhatsApp, Language Switcher, Responsive */

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    color: #FFFFFF;
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-whatsapp span {
    font-weight: 600;
}

/* Language Switcher Pill */
/* Language Switcher Pill */
.lang-switcher-pill {
    position: relative;
    display: inline-flex;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 24px;
    padding: 4px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.lang-option {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    padding: 0 16px;
    border: none;
    background: transparent;
    color: #000000 !important;
    /* Black text */
    font-weight: 700;
    /* Bolder for visibility */
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 400ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.lang-option span {
    color: #000000 !important;
    /* Black text */
}

.lang-option:hover {
    color: #000000 !important;
    /* Black text */
}

.lang-option.active {
    color: #000000 !important;
    /* Black text */
    text-shadow: none;
}

.lang-option.active span {
    color: #000000 !important;
    /* Black text */
}

.lang-pill-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #00D4FF 0%, #0099BB 100%);
    /* Slightly darker gradient end */
    border-radius: 20px;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
    z-index: 1;
}

.lang-option[data-lang="ar"].active~.lang-pill-indicator {
    transform: translateX(100%);
}

/* Enhanced Search Icon */
#search-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1A1A1A;
    /* Dark for visibility */
}

#search-trigger:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00D4FF;
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1199px) {

    /* Hide full navigation on tablet/mobile */
    .nav-wrapper {
        display: none;
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Adjust header actions spacing */
    .header-actions {
        gap: var(--space-md);
    }

    /* Stack WhatsApp text on smaller screens */
    .btn-whatsapp span {
        display: none;
    }

    .btn-whatsapp {
        padding: 10px 12px;
        min-width: 40px;
        justify-content: center;
    }
}

@media (min-width: 1200px) {

    /* Ensure full nav is visible on desktop */
    .nav-wrapper {
        display: flex !important;
    }

    /* Hide hamburger on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* Further optimize for mobile */
    .lang-switcher-pill {
        padding: 3px;
    }

    .lang-option {
        min-width: 36px;
        height: 28px;
        padding: 0 10px;
        font-size: 0.75rem;
    }

    #search-trigger {
        width: 36px;
        height: 36px;
    }

    .btn-whatsapp {
        padding: 8px 10px;
    }
}

/* Extra small mobile - further condensing */
@media (max-width: 400px) {
    .header-actions {
        gap: 6px !important;
    }

    .lang-option {
        min-width: 32px;
        padding: 0 8px;
    }

    #search-trigger {
        width: 32px;
        height: 32px;
    }

    .btn-whatsapp {
        padding: 6px 8px;
    }

    .logo img {
        height: 24px !important;
    }
}

/* Header Sticky Behavior Enhancement */
.glass-nav {
    height: 80px;
    display: flex;
    align-items: center;
    transition: height 300ms ease;
    /* Smooth height transition */
}

.glass-nav.scrolled {
    height: 72px;
    /* Subtle height reduction (was 70px) */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.glass-nav.scrolled .logo img {
    height: 28px !important;
    /* Minimal shrink from 30px to 28px */
}

/* Logo Transition */
.logo img {
    transition: height 300ms ease;
}