/* Custom Header Styles to match reference image */

/* Use specific selector to override style.css */
header.site-header.header-global {
    background-color: transparent !important; /* Make main container transparent */
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1000 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

@media (max-width: 991px) {
    header.site-header.header-global {
        background-color: transparent !important; /* Make container transparent to prevent white gaps */
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

.site-header .topbar {
    background-color: #0d1b2a !important; /* Deep Navy */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 10px 0 !important;
    position: relative !important;
    z-index: 2000 !important;
}

.topbar-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.contact-info {
    float: none !important;
}

.contact-info ul {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.contact-info ul li {
    display: inline-flex !important;
    align-items: center !important;
    color: #ffffff !important;
    font-size: 13px !important;
    margin-right: 30px !important;
    margin-left: 0 !important;
}

.contact-info ul li i {
    color: #ffffff !important;
    margin-right: 8px !important;
    font-size: 14px !important;
}

/* Topbar Booking Button */
.topbar-action {
    float: none !important;
}

.topbar-booking-btn {
    background-color: #3e5c43 !important; /* Darker Green for accessibility contrast */
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    z-index: 2001 !important;
    pointer-events: auto !important;
}

.topbar-booking-btn:hover {
    background-color: #2e4a36 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Main Navigation */
.site-header .navigation {
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f5f5f5 !important;
    padding: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    z-index: 1000 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important; /* Force removal of minimum height */
}

@media (max-width: 991px) {
    .site-header .navigation {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: transparent !important; /* Base layout transparent */
    }

    .navigation .container {
        background-color: #fff !important; /* Only white for the content area */
        margin: 0 auto !important;
    }
}

/* Fix sticky header overlap hijack */
.sticky-header {
    visibility: hidden !important;
    pointer-events: none !important;
}

.sticky-header.sticky-on {
    visibility: visible !important;
    pointer-events: auto !important;
}

.navbar-header {
    padding: 10px 0 !important;
}

@media (max-width: 991px) {
    .navbar-header {
        padding: 4px 0 !important;
    }
}

.site-logo {
    max-height: 70px !important; /* Increased from 50px */
}

.footer-logo {
    max-height: 80px !important;
}

.navbar-brand {
    padding: 0 !important;
}

.navbar-nav {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.site-header #navbar ul li a {
    font-family: "Inter", sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #444 !important;
    padding: 35px 18px !important;
    text-transform: capitalize !important;
}

.site-header #navbar ul li a:hover {
    color: #007bff !important; /* Electric Blue */
}

.header-right-actions {
    display: flex !important;
    align-items: center !important;
    margin-left: 15px !important;
}

.search-toggle-btn {
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    color: #444 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.search-toggle-btn:hover {
    color: #ff6b00 !important;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 991px) {
    .navigation .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        height: auto !important; /* Remove fixed 70px height from style.css */
        min-height: 0 !important;
    }

    .site-header .topbar {
        padding: 5px 0 !important;
    }

    .contact-info ul {
        justify-content: center !important;
    }

    .contact-info ul li {
        margin: 3px 10px !important;
        font-size: 11px !important;
    }

    .topbar-booking-btn {
        padding: 5px 15px !important;
        font-size: 11px !important;
        margin-top: 5px !important;
    }

    .social-links {
        display: none !important; /* Hide social on small tablets/mobile topbar to save space */
    }

    /* --- MOBILE HEADER RESET & FORCE SINGLE ROW --- */
    /* --- FORCED 1-ROW MOBILE HEADER --- */
    .navigation .container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
    }

    /* Boost z-index for navigation on mobile to cover topbar */
    .site-header .navigation {
        z-index: 9999 !important;
    }

    .navbar-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        min-height: 0 !important; /* Remove fixed height */
    }

    /* Neutralize all clearing and floats */
    .navbar-header:before,
    .navbar-header:after,
    .container:before,
    .container:after {
        display: none !important;
        content: none !important;
    }

    .navbar-brand {
        flex: 0 1 auto !important;
        display: flex !important;
        align-items: center !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        max-width: 70% !important;
    }

    .site-logo {
        max-height: 32px !important;
        width: auto !important;
        display: block !important;
    }

    .open-btn {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: #6a9a7a !important;
        border-radius: 4px !important;
        width: 44px !important;
        height: 38px !important;
        margin: 0 !important;
        float: none !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
    }

    .open-btn .icon-bar {
        background-color: #fff !important;
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        margin: 2px 0 !important;
    }

    .open-btn .icon-bar {
        background-color: #fff !important;
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        margin: 2px 0 !important;
        border-radius: 0 !important;
    }

    /* Mobile Menu Overlay Styling (Sidebar) */
    .navigation-holder {
        background-color: #ffffff !important;
        width: 100% !important;
        max-width: 280px !important;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2) !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important; /* Start hidden off-screen left */
        height: 100vh !important;
        z-index: 10000 !important; /* Ensure it's the top-most element */
        transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1) !important;
        display: block !important;
        visibility: hidden; /* Hide from flow height */
    }

    .navigation-holder.slideInn {
        left: 0 !important;
        visibility: visible;
    }

    .navigation-holder .nav {
        margin: 100px 0 0 !important; /* Large top margin for close button */
        padding: 0 !important;
        display: block !important; /* Ensure vertical stack */
        float: none !important;
    }

    .navigation-holder .nav > li {
        width: 100% !important;
        display: block !important; /* Ensure vertical stack */
        float: none !important; /* Disable any template floats */
        border-bottom: 1px solid #eeeeee !important;
        margin: 0 !important;
        background-color: #fff !important; /* Force white background */
    }

    .navigation-holder .nav > li.active > a {
        background-color: #f7faf8 !important;
        color: #6a9a7a !important;
    }

    .navigation-holder .nav > li > a {
        color: #222 !important;
        padding: 20px 25px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        display: block !important; /* Ensure link fills the block */
        text-align: left !important;
        text-transform: capitalize !important;
        transition: all 0.3s !important;
    }

    .navigation-holder .nav > li > a:hover {
        background-color: #f7faf8 !important; /* Light green tint */
        color: #6a9a7a !important;
    }

    /* Green Square Close Button on Left */
    .close-navbar {
        position: absolute !important;
        top: 15px !important;
        left: 15px !important;
        right: auto !important;
        background-color: #6a9a7a !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        text-align: center !important;
        color: #fff !important;
        font-size: 18px !important;
        opacity: 1 !important;
        border-radius: 4px !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 100 !important;
    }

    .header-right-actions {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .topbar {
        display: none !important;
    }
}

/* --- PORTFOLIO / PROJECT SECTION FIXES --- */
.hero {
    margin-top: 0 !important;
    padding-top: 150px !important; /* Match the actual height of topbar + nav */
}

@media (max-width: 991px) {
    .hero,
    .hero .slide {
        height: 100vh !important;
        min-height: 550px !important;
        display: block !important; /* Restore Slick slider compatibility */
        text-align: center !important;
        padding: 0 !important;
    }

    .hero .slide .container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100% !important;
        width: 100% !important;
        padding-top: 160px !important; /* Offset for header */
        padding-bottom: 40px !important;
    }

    .hero .slide-caption {
        padding: 0 15px !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .hero .slide-caption h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .hero .slide-caption p {
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }

    .hero .btns {
        display: flex !important;
        justify-content: center !important;
    }
}

/* Hide Hero Navigation Arrows on Desktop */
@media (min-width: 992px) {
    .hero-slider .slick-prev,
    .hero-slider .slick-next {
        display: none !important;
    }
}

/* Mobile Breadcrumb Fix */
@media (max-width: 992px) {
    .breadcumb-area {
        padding-top: 280px !important; /* Massive offset for absolute header */
        padding-bottom: 100px !important;
        text-align: center !important;
        min-height: 500px !important; /* Taller area */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background-position: center center !important;
    }

    .breadcumb-wrap {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 20px !important;
    }

    .breadcumb-wrap h2 {
        font-size: 36px !important; /* Larger title */
        margin-bottom: 25px !important;
        line-height: 1.1 !important;
        text-transform: uppercase !important;
        width: 100% !important;
        text-align: center !important;
        font-weight: 800 !important;
        letter-spacing: 1px !important;
    }

    .breadcumb-wrap ul {
        justify-content: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }

    .breadcumb-wrap ul li {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 10px !important;
        font-size: 15px !important;
        color: #fff !important;
    }
}

.project-section-2 {
    padding-bottom: 100px !important;
}

.project-grids {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
}

.project-grids .grid {
    flex: 0 0 calc(33.33% - 30px) !important;
    width: calc(33.33% - 30px) !important;
    margin: 15px !important;
    float: none !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 320px !important;
}

.project-grids .grid:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

.project-grids .entry-media {
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 35px !important;
    background: #eceff1 !important; /* Stronger contrast background for white logos */
    position: relative !important;
    flex: 1 !important;
}

.project-grids .entry-media a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.project-grids .entry-media img {
    max-width: 90% !important;
    max-height: 90% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    /* Layered shadow to create a strong silhouette for white/transparent logos */
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.4))
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) !important;
}

.project-grids .project-content {
    position: static !important; /* Fix overlap */
    background: #fdfdfd !important;
    padding: 15px !important;
    width: 100% !important;
    text-align: center !important;
    border-top: 1px solid #f5f5f5 !important;
    border-radius: 0 !important; /* Remove curve that cuts logos */
}

.project-grids .project-content h2 {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #222 !important;
    line-height: 1.2 !important;
}

.project-grids .project-content h2 a {
    color: #222 !important;
}

/* Responsive Portfolio */
@media (max-width: 1199px) {
    .project-grids .grid {
        flex: 0 0 calc(50% - 30px) !important;
        width: calc(50% - 30px) !important;
    }
}

@media (max-width: 767px) {
    .project-grids .grid {
        flex: 0 0 calc(100% - 30px) !important;
        width: calc(100% - 30px) !important;
        margin: 15px !important;
    }

    .project-grids .entry-media {
        height: 180px !important;
    }
}
