
/* ================================================================
HOME PAGE HEADER NAVIGATION (Desktop + Mobile + RTL)
================================================================ */

/* ========== BASE CONTAINER ========== */
.home-header-nav-wrapper {
    position: relative;
    width: 100%;
    min-height: 120px;
    /* background: var(--c-bg-dark); */
    /* border-bottom: 1px solid var(--c-black); */
    overflow: visible;
}
/* ========== HEADER LOGO - DESKTOP ========== */
.home-header-logo-desktop {
    position: absolute;
    top: 19px;
    left: 37px; /* LTR */
    width: 82px;
    height: 75px;
    z-index: 3;
    transition: all 0.3s ease;
}

.home-header-logo-desktop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* RTL for desktop logo */
/* [dir="rtl"] .home-header-logo-desktop {
    left: auto;
    right: 37px;
} */

/* Hide desktop logo on mobile */
@media (max-width: 767.98px) {
    .home-header-logo-desktop {
        display: none !important;
    }
}

/* ========== MOBILE HEADER ELEMENTS ========== */
.home-header-mobile-elements {
    display: none; /* Hidden by default, shown via max-md:flex */
}

/* Mobile Logo */
.home-header-logo-mobile {
    /* Position set via Blade classes: right-[40px] for Arabic, left-[40px] for English */
}

/* Mobile Toggle */
.home-header-toggle-mobile {
    /* Position set via Blade classes: left-[17px] for Arabic, right-[17px] for English */
    transition: opacity 0.2s ease;
}

.home-header-toggle-mobile:hover {
    opacity: 0.8;
}

/* Mobile Language Icon (optional) */
.home-header-lang-mobile {
    /* Position set via Blade classes */
}

/* ========== RESPONSIVE - MOBILE OVERRIDES ========== */
@media (max-width: 767.98px) {
    .home-header-mobile-elements {
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .home-header-nav-wrapper {
        min-height: 72px;
    }
     .home-mobile-menu { 
        left: 14px; 
        right: auto; 
    }
    /* Hide desktop nav */
    .home-header-nav {
        display: none !important;
    }
}

@media (max-width: 479.98px) {
    .home-mobile-menu { 
        left: 10px; 
        right: auto; 
    }
}

/* ========== LOGO (Figma: 82×75, top:19px, left:37px) ========== */
.home-header-logo {
    position: absolute;
    top: 19px;
    left: 37px;
    width: 82px;
    height: 75px;
    z-index: 3;
    transition: all 0.3s ease;
}

.home-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ========== NAVIGATION CONTAINER (Figma: 818×40, top:36px, centered) ========== */
.home-header-nav {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 818px;
    height: 40px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-header-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    height: 100%;
}

.home-header-nav-item {
    height: 29px;
    /* Figma item height */
    display: flex;
    align-items: center;
}

.home-header-nav-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1;
    font-weight: 400;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.3s ease;
    height: 100%;
}

.home-header-nav-link:hover,
.home-header-nav-link.is-active {
    color: var(--c-nav-accent);
}

/* ========== LANGUAGE ICON (Figma: 40×40) ========== */
.home-header-lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex: 0 0 auto;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-left: 12px;
    /* Space after nav links */
}

.home-header-lang-text {
    font-family: var(--font-latin);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    bottom: 1px;
    right: 1px;
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 3px;
    border-radius: 2px;
    color: #fff;
}

.home-header-lang-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* ========== MOBILE TOGGLE (keep existing styles) ========== */
.home-header-mobile-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 4;
}

.home-header-mobile-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ========== MOBILE MENU (keep existing styles) ========== */
.home-header-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    z-index: 5;
}

.home-header-mobile-list {
    margin: 0;
    display: flex;
    width: max-content;
    list-style: none;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.home-header-mobile-link {
    display: block;
    white-space: nowrap;
    border-radius: 3px;
    padding: 2px 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
}

.home-header-mobile-link:hover,
.home-header-mobile-link.is-active {
    color: var(--c-nav-accent);
}

/* Dropdown panel in <x-site-header /> uses .home-mobile-menu-link (not .home-header-mobile-link) */
.home-mobile-menu-link {
    color: #ffffff;
    transition: color 0.3s ease;
}

.home-mobile-menu-link:hover,
.home-mobile-menu-link.is-active {
    color: var(--c-nav-accent);
}

.home-header-mobile-contact {
    display: inline-flex;
    height: 36px;
    min-width: 100px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.home-header-mobile-contact:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========== RESPONSIVE - TABLET & MOBILE ========== */
@media (max-width: 991.98px) {
    .home-header-nav {
        width: 90%;
        max-width: 700px;
    }

    .home-header-nav-list {
        gap: 15px;
    }
}

@media (max-width: 767.98px) {
    .home-header-nav-wrapper {
        min-height: 180px;
    }

    /* Logo smaller on mobile */
    .home-header-logo {
        top: 14px;
        left: 20px;
        width: 60px;
        height: 55px;
    }

    /* Hide desktop nav on mobile */
    .home-header-nav {
        display: none;
    }

    .home-header-lang-icon {
        display: none;
    }

    /* Mobile toggle stays visible */
    .home-header-mobile-toggle {
        top: 20px;
        right: 20px;
        width: 30px;
        height: 24px;
    }
}

@media (max-width: 479.98px) {
    .home-header-nav-wrapper {
        min-height: 72px;
    }

    .home-header-logo {
        top: 12px;
        left: 16px;
        width: 50px;
        height: 45px;
    }
}

/* ========== RTL SUPPORT ========== */
/* [dir="rtl"] .home-header-logo {
    left: auto;
    right: 37px;
}

[dir="rtl"] .home-header-nav {
    left: 50%;
    transform: translateX(-50%);
}

[dir="rtl"] .home-header-nav-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .home-header-lang-icon {
    margin-left: 0;
    margin-right: 12px;
}

[dir="rtl"] .home-header-lang-text {
    right: auto;
    left: 1px;
}

[dir="rtl"] .home-header-mobile-toggle {
    right: auto;
    left: 20px;
}

[dir="rtl"] .home-header-mobile-list {
    text-align: right;
}

[dir="rtl"] .home-header-mobile-link {
    text-align: right;
}

@media (max-width: 767.98px) {
    [dir="rtl"] .home-header-logo {
        right: 20px;
    }

    [dir="rtl"] .home-header-mobile-toggle {
        left: 20px;
    }
} */
/* ========== END HOME PAGE HEADER NAVIGATION ========== */
