/* ==========================================================================
   AQUILA COMMONS GLOBAL SLIDER & DEPTH OVERRIDES
   ========================================================================== */

/* 1. Force the parent container to allow depth stacking */
body section#content #slider .swiper-slide .container {
    position: relative !important;
    z-index: 9999 !important;
    height: 100% !important;
    display: block !important;
}

/* 2. Force the caption box out of hiding and drop it into position */
body section#content #slider .swiper-slide .slider-caption {
    position: absolute !important;
    top: 50% !important;
    left: 15px !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    max-width: 650px !important;
}

/* 3. Ensure the text elements inside are forced white and visible */
body section#content #slider .slider-caption h1,
body section#content #slider .slider-caption h2,
body section#content #slider .slider-caption p {
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 4. FIX: Prevent Zoomed Slider Background Images From Stretching */
body section#content #slider .swiper-slide-bg-fallback {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ==========================================================================
   HORIZONTAL NAVIGATION ENGINE & PROTECTION (Desktop & Laptops)
   ========================================================================== */
@media (min-width: 992px) {
    
    #header,
    #header-wrap {
        background-color: #ffffff !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.04) !important;
        height: 100px !important;
    }

    #header .header-row,
    #header .container,
    #header-wrap .container {
        max-width: 1440px !important;
        width: 95% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #logo img {
        max-height: 170px !important;
        width: auto !important;
    }

    /* CENTERED MENU WRAPPER ENGINE */
    #primary-menu {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        margin-left: auto !important;   
        margin-right: 15px !important;  
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #primary-menu ul.menu-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
    }

    #primary-menu ul.menu-container li.menu-item {
        margin: 0 2px !important;
        background: transparent !important;
        background-color: transparent !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        position: relative;
    }

    /* CRITICAL LINK TEXT VISIBILITY FORCE ENGINE */
    #primary-menu ul.menu-container > li.menu-item > a.menu-link {
        font-family: 'Playfair Display', 'Georgia', serif !important; /* MATCHES THE SERIF BRAND FONT */
        font-size: 15px !important;       
        font-weight: 600 !important;       
        color: #434343 !important;         
        text-transform: uppercase;
        letter-spacing: 0.5px !important;
        padding: 12px 8px !important;
        white-space: nowrap !important;
        transition: color 0.15s ease, background-color 0.15s ease !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 4px !important;
    }

    /* Restored Hover State for Top Level Menu Links */
    #primary-menu ul.menu-container > li.menu-item:hover > a.menu-link {
        color: #353c22 !important; 
        background-color: transparent !important;
    }

    /* Target Current Active Page (Cleanly Sage Green) */
    #primary-menu ul.menu-container li.menu-item.current > a.menu-link {
        color: #353c22 !important;
        background-color: transparent !important;
    }

    /* REMOVES OLD ACCENT STROKES */
    #primary-menu ul.menu-container li.menu-item a.menu-link::after,
    #primary-menu ul.menu-container li.menu-item a.menu-link::before {
        display: none !important;
        content: none !important;
    }

    /* ==========================================================================
       DROPDOWN MENU SPACING ENGINE
       ========================================================================== */
    
    /* 1. Clear room around the absolute dropdown block */
    #primary-menu ul.menu-container ul.sub-menu-container {
        background-color: #000 !important;
        border: 1px solid #eeeeee !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
        padding: 12px 0 !important;
        border-radius: 4px !important;
        top: 85px !important;
    }

    /* 2. Format individual text rows inside the dropdown lists */
    #primary-menu ul.menu-container ul.sub-menu-container li.menu-item {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
        height: auto !important;
    }

  /* 3. Padding expansion layer around dropdown text links */
    #primary-menu ul.menu-container ul.sub-menu-container li.menu-item a.menu-link {
        font-family: 'Playfair Display', 'Georgia', serif !important; /* MATCHES THE SERIF BRAND FONT */
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #000 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        padding: 10px 24px !important;
        display: block !important;
        line-height: 1.5 !important;
        border-radius: 0 !important;
        transition: all 0.2s ease !important;
        background-color: #ffffff !important; 
    }

    /* 4. Dropdown hover behaviors */
    #primary-menu ul.menu-container ul.sub-menu-container li.menu-item:hover > a.menu-link {
        color: #ffffff !important;         
        background-color: #000 !important;
    }
    
    /* FIXED PORTAL BUTTON MISALIGNMENT:
       Forcing container height and center alignment layout properties to lock it to center grid line */
    .header-misc {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .header-misc .button.button-light:hover {
        transform: translateY(-1px) !important;
    }
}
/* ==========================================================================
   THE UNBREAKABLE LOCK: COMBINED CAROUSEL IMAGE & HOVER OVERLAY 
   ========================================================================== */

/* 1. Force the Outer Card, Image Frame, and Overlay Container to a Strict 260px Width */
body #oc-portfolio .owl-item,
body #oc-portfolio .portfolio-item,
body #oc-portfolio .portfolio-image,
body #oc-portfolio .bg-overlay {
    width: 260px !important;
    max-width: 260px !important;
    min-width: 260px !important;
}

/* 2. Force the Image Asset to Fill the 260px Container Perfectly */
body #oc-portfolio .portfolio-image img,
body #oc-portfolio .portfolio-image a img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* 3. Re-Anchor and Format the Hover Mask Layer Structure */
body #oc-portfolio .bg-overlay {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    opacity: 0 !important; /* Kept completely hidden until mouse hover */
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 10 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    pointer-events: none !important; /* Allows drag-scrolling to pass through easily */
}

/* 4. Trigger the Hover Reveal via the Carousel's Master Wrapper Level */
body #oc-portfolio .owl-item:hover .bg-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important; /* Re-activates click controls on hover */
}

/* 5. Center the Action Button Links Flawlessly over the Blueprints */
body #oc-portfolio .bg-overlay-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
    height: 100% !important;
}

/* 6. Enforce Dimensions and Centering for the Circular Action Icons */
body #oc-portfolio .overlay-trigger-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 999 !important;
    pointer-events: auto !important;
}

/* Force the inner graphic icon fonts to render clearly at 16px */
body #oc-portfolio .overlay-trigger-icon i {
    font-size: 16px !important;
    color: #434343 !important;
    display: inline-block !important;
    line-height: 1 !important;
}