/*
Theme Name: ArcHub Child
Theme URI: https://archub.liquid-themes.com/
Author: Liquid Themes
Author URI: https://themeforest.net/user/liquidthemes
Template: archub
Description: Smart, Powerful and Unlimited Customizable WordPress Theme.
Version: 1.0
License: GNU General Public License
License URI: license.txt
Text Domain: archub-child
Tags: responsive, retina, rtl-language-support, blog, portfolio, custom-colors, live-editor
*/

/* The section that will be pinned */
/* Make the button stay on screen throughout the whole page */
.sticky-project-btn {
    position: fixed !important;
    top: 270px; 
    left: 40px;  
    z-index: 9999 !important;
    width: auto;
}

/* Optional: Hide or reset it on Mobile so it doesn't block content */
@media (max-width: 768px) {
    .sticky-project-btn {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 20px;
    }
}
.matrix-footer ul.elementor-icon-list-items {
    padding-left: 0px !important;
}
/*gsap*/

/* --- DESKTOP ONLY (1024px and above) --- */
@media (min-width: 1024px) {
    /* 1. The Outer Track */
    .home #hero-scroll-track {
        height: 180vh !important;
        position: relative !important;
        display: block !important;
    }

    /* 2. The Inner Hero (STAYS AT TOP) */
    .home #hero-pin-section {
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 5;
        overflow: hidden !important;
    }

    /* 3. The Floating Hero Logo */
    .home #hero-logo-wrapper {
        position: fixed !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999999;
        pointer-events: none;
        width: 100%;
        max-width: 1200px; 
    }

    /* 4. Hide Header Bar and Logo Initially */
    .home header.header {
        background-color: transparent !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: none !important;
    }

    /* 
       CRITICAL FIX: Force the black header logo to stay hidden 
       even if the theme tries to show it.
    */
    .home .final-header-logo img, 
    .home .navbar-brand-inner img {
        opacity: 0 !important;
        visibility: hidden !important;
    }
    .matrix-service .carousel-nav.carousel-nav-floated.carousel-nav-top.carousel-nav-lg.carousel-nav-square.carousel-nav-solid.elementor-element{
    display: none !important;
}
}

/* --- MOBILE RESET (Unchanged) --- */
@media (max-width: 1023px) {
    .home #hero-scroll-track { height: auto !important; }
    .home #hero-pin-section { position: relative !important; height: 90vh !important; }
    .home #hero-logo-wrapper { display: none !important; }
    .home header.header {
        /*position: fixed !important;*/
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background-color: #121b1d !important;
    }
    .home .final-header-logo img, 
    .home .navbar-brand-inner img {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
/*gsap close*/
.elementor-8030 .elementor-element.elementor-element-28bdcb7 .nav-trigger.is-active .bar:before, .elementor-8030 .elementor-element.elementor-element-28bdcb7 .nav-trigger.is-active .bar:after{
    background: #650722 !important;
}
button.nav-trigger.main-nav-trigger.d-flex.pos-rel.align-items-center.justify-content-center.style-3.txt-left.collapsed:hover {
    background: #650722 !important;
}
button.nav-trigger.main-nav-trigger.d-flex.pos-rel.align-items-center.justify-content-center.style-3.txt-left.collapsed:hover span.bars.d-inline-flex.align-items-center.justify-content-center.pos-rel.z-index-1{
    background: #650722 !important;
}
span.highlight-max {
    font-size: 48px;
    line-height: 48px;
    font-weight: 700;
}
button.nav-trigger.main-nav-trigger.d-flex.pos-rel.align-items-center.justify-content-center.style-3.txt-left.collapsed {
    background: #161616 !important;
    border-radius: 45px !important;
    padding: 10px 10px 10px 15px !important;
    height: 45px !important;
}
.ld-module-sd{
    align-items: center !important;
}
/*.carousel-nav.carousel-nav-floated {*/
/*    left: 0 !important;*/
/*}*/
.matrix-icon a:hover svg path{
    fill: #650722 !important;
}

.leylkW{
    background: #0000 !important;
}
/* --- Home Project Final Fixes --- */
.matrix-project .carousel-nav.carousel-nav-floated {
    bottom: 0 !important;
}

/* 2. Force the container to match the image height */
.matrix-project .carousel-item-content, 
.matrix-project .lqd-pf-item {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. Layout Structure */
.matrix-project .row.d-flex.flex-wrap.align-items-start {
    flex-direction: column !important;
}

body .matrix-project .perspective {
    display: none !important;
}

/* 4. FIX ARROW OVERLAP AND POSITIONING */
/* This targets the buttons inside the nav container */
.matrix-project .flickity-button.flickity-prev-next-button {
    position: relative !important; /* Change from absolute to relative to stop overlap */
    top: auto !important;
    bottom: 0 !important;
    transform: none !important;
    display: inline-flex !important; /* Put them side by side */
    margin: 0 !important;
    width: 60px !important;
    height: 60px !important;
}

/* 5. Image & Gradient Overlay */
.matrix-project .lqd-pf-img {
    position: relative !important;
    display: block;
    line-height: 0;
}

.matrix-project .lqd-pf-img::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
}

/* 6. Clickable Link */
.matrix-project .lqd-pf-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* 7. Details Fix (Vertical Text) */
.matrix-project .lqd-pf-details {
    position: absolute !important;
    bottom: 0;
    right: 0;
    height: 100%;
    margin: 0 !important;
    z-index: 4;
    pointer-events: none;
}

/* Hide original header if any */
.matrix-project header.lqd-pf-carousel-header {
    display: none;
}

/* Shortened: Removes all dimming and overlays globally (including Selected state) */
.matrix-project .lqd-pf-overlay-bg {
    display: none !important;
}

.matrix-project .lqd-pf-img img {
    filter: none !important;
    opacity: 1 !important;
    -webkit-filter: none !important;
}

.matrix-project .lqd-pf-item {
    background: transparent !important;
}
/* --- Home Project Close --- */
/*home-service*/
.matrix-service .lqd-slsh-item {
    height: 562px !important;
    padding-top: 0 !important;
    min-height: 562px !important;
    display: flex;
    flex-direction: column;
}

.matrix-service .flickity-viewport,
.matrix-service .lqd-slsh-img-container,
.matrix-service .lqd-slsh-img-full {
    height: 562px !important;
    min-height: 562px !important;
}

.matrix-service .lqd-slsh-content {
    height: 100% !important;
    /*padding-bottom: 40px !important; */
    justify-content: flex-end !important;
}

.matrix-service .lqd-slsh-content-inner {
    max-height: 100% !important;
}

/*home-service close*/
.header-form .col-md-12.modal-p.modal-b{
    background: #fff;
}
input.wpcf7-form-control:focus, textarea.wpcf7-form-control:focus {
    color: #474747 !important;
}
.modal-b input.wpcf7-form-control::placeholder,
.modal-b textarea.wpcf7-form-control::placeholder {
    color: #474747 !important;
    font-size: 18px;
    font-family: 'Orkney-Light';
    font-weight: 400;
    line-height: 40px;
}
.modal-b{
border:1px solid #EBEBEB;
}
.modal-bl-n{
border-left:none;
}
.modal-bb-n{
border-bottom:none;
}
.modal-p{
padding:20px 10px 15px 20px;
}
.modal-text{
margin: 0; color: #595959; font-size: 14px; font-family: 'Orkney-Light'; font-weight: 400;
}
/*main-project-project*/
/* --- 1. FORCE VISIBILITY AT ALL LEVELS --- */



/*close main project*/
/* =============================================================
   1. PARENT SECTION WRAPPER
   (Apply ID 'service-section-wrapper' to your Elementor Section)
   ============================================================= */
/* 1. THE PARENT SECTION */
#service-section-wrapper {
    position: relative !important;
    min-height: 562px !important; /* Ensure the section exists */
    background: #fff;
    overflow: hidden !important;
}

/* Hide theme slideshow when active */
#service-section-wrapper.popup-active .elementor-widget-ld_slideshow {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 2. THE POPUP SHELL */
#service-content-popup {
    display: none; 
    position: absolute !important;
    /* Using 'inset: 0' instead of width/height for better stability */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#service-content-popup.is-visible {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 3. FLEX LAYOUT FIX */
.popup-inner-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.popup-flex-container {
    display: flex !important;
    flex-direction: row !important;
    /* Important: align-items stretch ensures both sides are equal height */
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 562px;
    margin: 0 !important;
}

/* 4. LEFT SIDE (IMAGE SLIDER) - The Fix Area */
.popup-media {
    flex: 0 0 50% !important;
    width: 50% !important;
    position: relative !important;
    background: #f0f0f0 !important;
    overflow: hidden !important;
    /* We remove 'height: 100%' and rely on Flex Stretch */
}

.custom-slider {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Forces image to fill the 50% box */
    display: block !important;
}

/* 5. RIGHT SIDE (TEXT) */
.popup-text {
    flex: 0 0 50% !important;
    width: 50% !important;
    padding: 50px 6% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    overflow-y: auto;
}

/* 6. BUTTONS & UI */
.custom-popup-close {
    position: absolute !important;
    top: 30px !important;
    right: 40px !important;
    width: 50px !important; height: 50px !important;
    border-radius: 50% !important;
    border: 1px solid #EBEBEB !important;
    background: #FFF !important;
    color: #595959 !important;
    font-size: 24px !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.slider-controls {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    z-index: 100 !important;
}

.slider-controls button {
    width: 80px !important; height: 75px !important;
    background: #fff !important; border: none !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}

/*newcss*/
.service-title {
    font-size: 32px !important;
    font-family: 'TerminaTest-Bold' !important;
    margin-bottom: 25px;
    color:#474747 !important;
    margin: 0 !important;
}

.service-description {
    font-size: 16px;
    line-height: 22px;
    font-family: 'Orkney-Regular';
    font-weight: 400;
    color: #595959;
    margin-bottom: 30px;
}


.service-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-points-list li {
font-size: 12px;
    line-height: 22px;
    margin-bottom: 20px;
    font-family: 'TerminaTest-Bold';
    display: flex;
    align-items: center;
    color: #161616 !important;
}
.service-point-icon {
    width: 16px;
    height: 16px;   
    margin-right: 8px;
    display: inline-block;
    object-fit: contain;
}
.project-bold{
    font-weight: 700;
    color:#161616;
}

/* 7. MOBILE RESPONSIVE */
@media (max-width: 991px) {
article#post-10283 .lqd-pf-item-inner {
    min-height: unset !important;
}
article#post-10283 img.w-100.ld-lazyload.wp-post-image.entered.loaded {
    min-height: unset !important;
}
}

@media (max-width: 991px) {
        /* 1. HIDE THE THEME MOBILE HEADER COMPLETELY */
    /* This targets the exact code you shared from inspect */
    body.popup-locked .lqd-mobile-sec,
    body.popup-locked .lqd-mobile-sec-inner,
    body.popup-locked .lqd-mobile-sec-nav {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* 2. MAKE POPUP COVER EVERYTHING */
    #service-content-popup {
        position: fixed !important; /* Full screen overlay */
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        z-index: 9999999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* 3. PIN CLOSE BUTTON TO SCREEN */
    /* Positioned fixed so it's always at top right while scrolling */
    .custom-popup-close {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 99999999 !important;
        background: #000 !important; /* Black background for high contrast */
        color: #fff !important;
        width: 40px !important;
        height: 40px !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    }

    /* 4. LAYOUT ADJUSTMENTS */
    .popup-flex-container {
        flex-direction: column !important;
        display: block !important;
        height: auto !important;
    }

    .popup-media, .custom-slider {
        width: 100% !important;
        height: 280px !important; /* Lower height for smaller screens */
        position: relative !important;
    }

    .popup-text {
        width: 100% !important;
        padding: 30px 20px 100px 20px !important;
        height: auto !important;
    }
}
/*@media (max-width: 768px) {*/
/*.max-split .ld-fh-txt-outline{*/
/*    position: unset !important;*/
/*}*/
/*}*/
@media (max-width: 425px) {
    span.highlight-max {
        font-size: unset !important;
        line-height: unset !important;
}
.ld-fh-txt-outline{
    width:1px !important;
    -webkit-text-stroke-width: 1px !important;
}
.fr-window-skin-fresco.fr-svg .fr-side-previous .fr-side-button-icon{
            background-position: 0px 30px !important;
}
.fr-window-skin-fresco.fr-svg .fr-side-next .fr-side-button-icon {
        background-position: 30px 30px !important;
    }
}

/*project*/
/* --- SHARED CORE STYLES --- */
#main-project-matrix .lqd-pf-item .lqd-pf-details,
#main-project-matrix .lqd-pf-item .lqd-pf-info,
#main-project-matrix .lqd-pf-item .lqd-pf-title,
#main-project-matrix .lqd-pf-item .lqd-pf-details-inner,
#main-project-matrix .lqd-pf-item .lqd-pf-info-inner {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
}

#main-project-matrix .lqd-pf-overlay-bg,
#main-project-matrix .lqd-pf-cat,
#main-project-matrix .lqd-pf-item:hover .lqd-pf-overlay-bg {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

#main-project-matrix .lqd-pf-item:hover .lqd-pf-img img {
    filter: none !important;
    opacity: 1 !important;
}

#main-project-matrix .lqd-pf-item .lqd-pf-title {
    font-family: 'TerminaTest-Bold';
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* --- DESKTOP VIEW (1025px and Up) - VERTICAL LAYOUT --- */
@media (min-width: 1025px) {
    #main-project-matrix .lqd-pf-item .lqd-pf-details {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 60px !important;
        height: 100% !important;
        z-index: 10 !important;
        pointer-events: none !important;
    }

    #main-project-matrix .lqd-pf-item .lqd-pf-info {
        position: absolute !important;
        bottom: 0px !important; 
        right: 10px !important;
        width: 40px !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    #main-project-matrix .lqd-pf-item .lqd-pf-title {
        writing-mode: vertical-rl !important;
        transform: rotate(180deg) !important;
        white-space: nowrap !important;
        font-size: 21.07px !important;
        line-height: 30.09px;
    }

    #main-project-matrix .lqd-pf-item .lqd-pf-title::after {
        content: " - " !important;
        display: inline-block;
        margin-top: 10px; 
    }

    #main-project-matrix .lqd-pf-item::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 150px !important;
        height: 100% !important;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%) !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    /* Keep specific height ONLY on Desktop */
    article#post-10283 .lqd-pf-item-inner,
    article#post-10283 img.wp-post-image {
        min-height: 469px !important;
    }
}

/* --- TABLET & MOBILE VIEW (1024px and Below) - HORIZONTAL LAYOUT --- */
@media (max-width: 1024px) {
    #main-project-matrix .lqd-pf-item .lqd-pf-details {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100px !important;
        z-index: 10 !important;
    }

    #main-project-matrix .lqd-pf-item .lqd-pf-info {
        position: absolute !important;
        bottom: 25px !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    #main-project-matrix .lqd-pf-item .lqd-pf-title {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }

    #main-project-matrix .lqd-pf-item .lqd-pf-title::after {
        content: " -" !important;
        margin-left: 10px;
    }

    #main-project-matrix .lqd-pf-item::before {
        content: "" !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 140px !important; /* Made shadow slightly taller for better visibility */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%) !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    /* UNSET the height for Mobile/Tablet so images don't look stretched */
    article#post-10283 .lqd-pf-item-inner,
    article#post-10283 img.wp-post-image {
        min-height: unset !important;
        height: auto !important;
    }
}

/* --- HOVER STATE GRADIENT --- */
#main-project-matrix .lqd-pf-item:hover::before {
    background: linear-gradient(to left, rgba(77, 0, 23, 0.7) 0%, rgba(77, 0, 23, 0) 100%) !important;
}

@media (max-width: 1024px) {
    #main-project-matrix .lqd-pf-item:hover::before {
        background: linear-gradient(to top, rgba(77, 0, 23, 0.8) 0%, rgba(77, 0, 23, 0) 100%) !important;
    }
}
