/* ==========================================================================
   Witschey Consulting - Full Background Blur & Hero Scale Suite
   ========================================================================= */

/* Keep the strong text shadow to crisp up the typography */
.logo a, 
#header h1, 
#header h2 {
    text-shadow: 0 0 20px rgba(10, 24, 16, 0.95), 
                 0 4px 10px rgba(0, 0, 0, 0.85) !important;
}

/* Clear the isolated menu block strip we created before */
#hornav {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: 40px !important;       /* Clean vertical separation buffer */
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Force the header to command presence on massive monitors (Default / Index) */
#header {
    position: relative !important;
    min-height: 65vh !important;       /* Takes up 65% of the screen height dynamically */
    display: flex !important;          /* Flexbox layout to align elements */
    align-items: center !important;    /* Reinstated centering lock to protect desktop */
    justify-content: center !important;/* Centered horizontally */
    padding: 60px 0 !important;
    background-image: url('../img/header_bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* --- Sub-Page Slim Header Variant Overrides --- */
body.sub-page #header {
    min-height: 0 !important;          /* Strip the humongous dynamic height footprint */
    padding: 20px 0 10px 0 !important; /* Tight, slim top and bottom cushion */
}

body.sub-page #hornav {
    margin-top: 15px !important;       /* Pull the navigation menu tightly up under text */
}

#header::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(16, 31, 22, 0.2) !important; /* Lighter green tint */
    backdrop-filter: blur(2px) !important;             /* Subtle blur texture */
    -webkit-backdrop-filter: blur(2px) !important;
    z-index: 0 !important;
}

/* Ensure the logo, menu, and text content sit completely above the blur layer */
#header .container {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: none !important;        /* Breaks container bounds for wide monitors */
    padding-left: 5% !important;
    padding-right: 5% !important;
}

/* Keep menu links highly visible, centered, and set as block links */
#hornavmenu > li > a, 
#hornavmenu > li > span {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
    font-weight: 500 !important;
    display: block !important;
    text-align: center !important;
    transition: all 0.2s ease-in-out !important;
}

/* Force the icon wrapper to be a block element to push text down */
#hornavmenu li a i.fa {
    display: block !important;           
    margin: 0 auto 8px auto !important;  
    width: auto !important;
    height: auto !important;
    transition: transform 0.2s ease-in-out !important;
}

/* Crushing the nexus.css opacity lock on menu icon pseudo-elements directly */
#hornavmenu li a i.fa::before,
#hornavmenu li a i.fa:link::before,
#hornavmenu li a i.fa:visited::before {
    color: #ffffff !important;
    opacity: 1 !important;               
    display: block !important;       
    font-size: 24px !important;          
    padding: 0 !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9) !important;
    transition: color 0.2s ease-in-out !important;
}

/* Hover Effect: Bright High-Contrast Gold Highlight & Interactive Visual Pop */
#hornavmenu li a:hover {
    color: #ffca28 !important; 
    text-decoration: none !important;
}

#hornavmenu li a:hover i.fa {
    transform: translateY(-4px) !important; /* Elegant subtle upward lift on hover */
}

#hornavmenu li a:hover i.fa::before {
    color: #ffca28 !important;
}

/* Fix text color and structure inside the drop-down submenus */
#hornavmenu ul li a,
#hornavmenu ul li a:link,
#hornavmenu ul li a:visited {
    color: #333333 !important;      
    text-shadow: none !important;    
    text-align: left !important;     
    padding: 10px 15px !important;
    display: block !important;
}

#hornavmenu ul li a:hover {
    background-color: #ebebeb !important; 
    color: #101f16 !important;
}

/* Strip the template's sidebar chevron tracker from printing on top of the text link grid */
#hornav ul ul .parent:after {
    display: none !important;
}

/* ==========================================================================
   Witschey Consulting - Signature Green Footer Overrides
   ========================================================================= */

/* Remove the empty base spacer container display entirely if not needed */
#base {
    display: none !important;
}

/* Force the footer container to your deep signature chalkboard green */
#footer {
    background-color: #101f16 !important; 
    background-image: none !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important; 
}

/* Make the copyright text crisp, bright white to stand out against the green */
#footer,
#footer p,
#footer #copyright p {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   Witschey Consulting - Dynamic Fluid Text Logo Suite
   ========================================================================== */
.logo {
    padding-top: 0 !important;          
    padding-bottom: 10px !important;   
    text-align: center !important;
    width: 100% !important;
}

.logo a {
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
}

/* Premium bold corporate identity banner */
.logo-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 800 !important;       
    font-size: 4.8vw !important;        /* Dynamically scales to viewport width */
    letter-spacing: 0.35vw !important;  
    color: #ffffff !important;
    line-height: 1.1 !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.95), 
                 0 0 25px rgba(10, 24, 16, 0.7) !important;
}

/* Expanded tracking for the subtitle phrase */
.logo-subtitle {
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.35vw !important;       
    letter-spacing: 0.75vw !important;  
    color: #ffffff !important;
    display: inline-block !important;
    margin-top: 20px !important;
    text-transform: uppercase !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9) !important;
}

/* Compress typography proportions specifically when nested inside a subpage layout */
body.sub-page .logo-title {
    font-size: 3.2vw !important;        /* Compact title width scale */
}

body.sub-page .logo-subtitle {
    font-size: 1.0vw !important;        /* Compact subtext tracking */
    margin-top: 10px !important;
}

/* Hard fallback limits to keep presentation balanced on massive styles */
@media (min-width: 1921px) {
    .logo-title {
        font-size: 92px !important;     
        letter-spacing: 8px !important;
    }
    .logo-subtitle {
        font-size: 26px !important;
        letter-spacing: 16px !important;
    }
    body.sub-page .logo-title {
        font-size: 64px !important;     /* Max cap limits specifically for subpage elements */
    }
    body.sub-page .logo-subtitle {
        font-size: 18px !important;
    }
}

/* ==========================================================================
   Responsive tuning for mobile viewports (Strict Override Block)
   ========================================================================== */
@media (max-width: 767px) {
    #header {
        min-height: auto !important;
        background-image: url('../img/header_mobile.jpg') !important; 
        background-attachment: scroll !important;              
        background-size: cover !important;                     
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 80px 0 65px 0 !important;   
    }
    
    /* --- NEW SUB-PAGE BACKGROUND CONTAINER CONTROL --- */
    body.sub-page #header {
        /* This explicitly controls the background height box on the contact page */
        padding: 50px 0 85px 0 !important; 
    }
    
    /* Lock elements tightly together to cure subpage spacing drop */
    .logo a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .logo-text-wrapper {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0px !important;                
        width: 100% !important;
    }

    /* Keep the title font sizes distinct for visual variance between pages */
    .logo-title {
        font-size: 24px !important;
        letter-spacing: 1px !important;
        line-height: 1.0 !important;        
        margin-bottom: 0px !important;      
        padding-bottom: 0px !important;
    }

    body.sub-page .logo-title {
        font-size: 20px !important;
    }

    /* Equalized clean solid parchment container box badge style across ALL pages */
    .logo-subtitle,
    body.sub-page .logo-subtitle {
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
        margin-top: -12px !important;         
        padding: 4px 10px !important;       
        color: #101f16 !important;          
        background-color: #ebebeb !important; 
        border-radius: 2px !important;
        display: inline-block !important;
        width: auto !important;
        max-width: 95% !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) !important;
        text-shadow: none !important;       
    }
    
    /* Strict margin shift override specifically targeting subpages to resolve layout breaks */
    body.sub-page .logo-subtitle {
        margin-top: -14px !important;         
    }
}