/* ================================================================
HOME HEADER - DEDICATED STYLES (Unique Classes)
================================================================ */

/* ========== BASE CONTAINER ========== */
.ha-header {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: var(--header-min-height);
    overflow: visible;
    z-index: 100;
}

/* ========== CLIP-PATH BACKGROUND ========== */
.ha-header-media {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 1) ;
    backdrop-filter: blur(0px);
    inset: 0;
    z-index: 0;
    /* width: 100%; */
    height: 90%;
    background-image: var(--header-bg-img);
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
    /* clip-path: polygon(
        var(--clip-p1-x) var(--clip-p1-y),
        var(--clip-p2-x) var(--clip-p2-y),
        var(--clip-p3-x) var(--clip-p3-y),
        var(--clip-p4-x) var(--clip-p4-y),
        var(--clip-p5-x) var(--clip-p5-y),
        var(--clip-p6-x) var(--clip-p6-y),
        var(--clip-p7-x) var(--clip-p7-y),
        var(--clip-p8-x) var(--clip-p8-y)
    ); */
}

.ha-header-media::after{
    content: '';
    position: absolute;
    inset: 0;
    background: var(--header-blur-bg);
    z-index: 1;
}

/* Dashboard sliders: stacked fade carousel (images only, see home-header.blade.php) */
.ha-header-media--has-carousel {
    background-image: none;
}

.ha-header-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ha-header-media-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 900ms ease-in-out;
    pointer-events: none;
}

.ha-header-media-slide.is-active {
    opacity: 1;
}

.ha-header-top {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 90%;
}

/* ========== BRAND LOGO (Centered) ========== */
.ha-header-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(150px, 37.5vw, 720px);
    aspect-ratio: 720 / 175;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

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

.mav-cam-section {
    position: relative;
    width: 100%;
    min-height: 60px; /* Adjust as needed */
    background: linear-gradient(310deg, transparent 9%, transparent 0.01%, #010109  0%, #010109 99.99%);
    /* border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2); */
    overflow: hidden;
}

/* Diagonal cut on right side */
.mav-cam-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 270px; /* Adjust width of diagonal */
    height: 100%;
    background: transparent;
    pointer-events: none;
}

/* Optional: Add the diagonal border effect */
.mav-cam-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent 48%, 
        rgba(255, 255, 255, 0.3) 49%, 
        rgba(255, 255, 255, 0.3) 51%, 
        transparent 52%);
    pointer-events: none;
}

.mav-cam-section-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
    min-height: 40px;
    background: linear-gradient(90deg, transparent 0%, transparent 0.01%, #010109  23.08%, #010109 99.99%);
    overflow: hidden;
}

/* Diagonal cut on right side */
.mav-cam-section-2::before {
    content: '';
    position: relative;
    bottom: 0;
    right: 0;  /* ← Changed from right: 0 */
    width: 270px;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

/* Optional: Add the diagonal border effect */
.mav-cam-section-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;  /* ← Changed from right: 0 */
    width: 150px;
    height: 100%;
    /* ← Changed gradient angle: 45deg for left-side diagonal */
    background: linear-gradient(145deg, 
        transparent 38%, 
        rgba(255, 255, 255, 0.3) 43%, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 40%);
    pointer-events: none;
}




/* ========== DESKTOP NAVIGATION CONTAINER ========== */
.ha-header-nav-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    /* padding: 8px 16px; */
    /* background: var(--c-bg-gradient); 
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid var(--c-bg-gradient); */
}


.ha-main-nav {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
    padding-right: 150px ;
}

.ha-main-nav::after{
    ::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 270px; /* Adjust width of diagonal */
    height: 100%;
    background: transparent;
    pointer-events: none;
}
}

.ha-main-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ha-main-nav-list::-webkit-scrollbar {
    display: none;
}

.ha-main-nav-item {
    flex: 0 0 auto;
}

.ha-main-nav-link {
    display: inline-block;
    text-decoration: none;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1;
    font-weight: 400;
    color: var(--c-white);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

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

/* ========== LANGUAGE SWITCHER ========== */
.ha-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;
}

button.ha-lang-icon {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
}

.ha-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 67px;
    height: 61px;
    cursor: pointer;
    flex: 0 0 auto;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.ha-logo-icon-img{
    width: 67px;
    height: 61px;
    object-fit: contain;
    display: block;
}
.ha-lang-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.ha-lang-icon-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: var(--c-white);
}

/* ========== ACTIONS: Social + CTA (Bottom-Right) ========== */
.ha-header-actions {
    /* position: absolute; */
    right: 0;
    bottom: 70px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    padding-left: 100px;
    /* background: var(--c-bg-gradient); */
    backdrop-filter: blur(10px);
    /* border-radius: 50px; */
    /* border: 1px solid var(--c-bg-gradient); */
}

.ha-header-social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ha-header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.ha-header-social-link:hover {
    transform: scale(1.1);
}

.ha-header-social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ha-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ha-header-cta:hover {
    background: rgba(255, 255, 255, 0.2) padding-box,
                linear-gradient(179.51deg, #FFFFFF -13.95%, rgba(255, 255, 255, 0.4) 113.94%) border-box;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========== MOBILE TOGGLE BUTTON ========== */
.ha-header-mobile-toggle {
    position: absolute;
    top: 0px;
    left: 10px;
    /* width: 30px;
    height: 24px; */
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 4;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.ha-header-mobile-language{
 position: absolute;
    top: 0px;
    right: 20px;
    /* width: 30px;
    height: 24px; */
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 4;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/* Toggle button styling */
.ha-mobile-toggle-btn {
    width: 30px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ha-mobile-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ha-mobile-logo-img {
    width: 15px;
    height: 14px;
    object-fit: contain;
    display: block;
}


/* Icons inside mobile bar: size per element (avoid one rule shrinking both) */
.ha-header-mobile-toggle .ha-mobile-toggle-btn img {
    width: 26px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.ha-header-mobile-toggle .ha-mobile-logo-img {
    width: auto;
    height: 34px;
    min-height: 34px;
    object-fit: contain;
    display: block;
}

.ha-header-mobile-language .ha-lang-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

/* ========== MOBILE MENU ========== */
.ha-header-mobile-menu {
    /* Positioning */
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 5;
    
    /* Dimensions & Styling */
    height: auto;
    width: auto;
    border-radius: 10px;
    background: var(--c-bg-dark);
    padding: 10px 8px;
    
    /* Hidden by default */
    display: none;
}

.ha-header.is-mobile-open .ha-header-mobile-menu {
    display: block;
}

.ha-mobile-menu-top {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ha-mobile-menu-logo {
    display: block;
    height: 14px;
    width: 15px;
    object-fit: contain;
}

.ha-mobile-menu-toggle-mark {
    display: block;
    height: 7px;
    width: 10px;
    object-fit: contain;
}

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

.ha-mobile-menu-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: var(--c-text-primary);
    transition: color 0.3s ease;
    text-align: right;
}

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

[dir="ltr"] .ha-mobile-menu-list {
    text-align: left;
}
[dir="ltr"] .ha-mobile-menu-link {
    text-align: left;
}

.ha-mobile-contact-btn {
    display: inline-flex;
    height: 24px;
    min-width: 72px;
    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 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: right;
}

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

[dir="ltr"] .ha-mobile-contact-btn {
    text-align: left;
    justify-content: flex-start;
}
/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 991.98px) {
    .ha-header-nav-container {
        left: 4%;
    }
    
    .ha-main-nav-list {
        gap: 15px;
    }
    
    .ha-header-actions {
        right: 25px;
        gap: 15px;
    }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 767.98px) {
    .ha-header {
        height: 220px;
        border: 1px solid var(--c-black);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    }
    .ha-header-top {
        height: 220px;
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box;
    }
    
    .mav-cam-section{
        display: none;
    }
    .mav-cam-section::after{
        display: none;
    }
    .mav-cam-section::before{
        display: none;
    }

    
    .mav-cam-section-2{
        display: none;
    }
    .mav-cam-section-2::after{
        display: none;
    }
    .mav-cam-section-2::before{
        display: none;
    }

    .ha-header-media {
        height: auto;   
        background: var(--header-bg-img-sm);
        clip-path: none;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .ha-header-media.ha-header-media--has-carousel {
        background: transparent;
        background-image: none;
    }

    .ha-header-media--has-carousel .ha-header-media-slide {
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
    }

       .ha-header-media::after {
        display: none;
    }
    
    .ha-header-brand {
        width: clamp(170px, 58vw, 440px);
        opacity: 1;
        top: 46%;
        transform: translate(-50%, -50%);
    }
    
    .ha-header-nav-container,
    .ha-header-actions {
        display: none !important;
    }

    /* [dir="rtl"] .ha-header-mobile-toggle {
        left: auto;
        right: 20px;
    } */
    
    /* [dir="rtl"] .ha-header-mobile-toggle {
        flex-direction: row-reverse; 
    } */

    .ha-header-mobile-toggle {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        top: max(4px, env(safe-area-inset-top, 0px));
        inset-inline-start: max(12px, env(safe-area-inset-left, 0px));
        inset-inline-end: auto;
    }

    .ha-header-mobile-language {
        display: flex;
        align-items: center;
        top: max(4px, env(safe-area-inset-top, 0px));
        inset-inline-end: max(12px, env(safe-area-inset-right, 0px));
        inset-inline-start: auto;
    }

    .ha-mobile-toggle-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .ha-header-mobile-toggle .ha-mobile-toggle-btn img {
        width: 30px;
        height: 24px;
    }

    .ha-header-mobile-toggle .ha-mobile-logo-img {
        height: 40px;
        min-height: 40px;
    }

    .ha-header-mobile-language .ha-lang-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .ha-header-mobile-language .ha-lang-icon-img {
        width: 40px;
        height: 40px;
    }
    
    .ha-header-mobile-menu {
        padding: 12px 16px;
    }
    

    .ha-mobile-menu-link {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .ha-mobile-contact-btn {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
}

/* ========== RESPONSIVE - SMALL MOBILE ========== */
@media (max-width: 479.98px) {
    /* [dir="rtl"] .ha-header-mobile-menu {
        left: auto !important;
        right: 10px !important;
    } */
    .ha-header {
        min-height: 200px;
    }

    .ha-header-brand {
        width: clamp(140px, 52vw, 340px);
    }

    .ha-header-mobile-toggle {
        top: max(4px, env(safe-area-inset-top, 0px));
        inset-inline-start: max(8px, env(safe-area-inset-left, 0px));
        gap: 10px;
    }

    .ha-header-mobile-language {
        top: max(4px, env(safe-area-inset-top, 0px));
        inset-inline-end: max(8px, env(safe-area-inset-right, 0px));
    }
}
