/* ===========================
   Minimal Header Consistency Fixes
   =========================== */

/* Keep default Casper navigation styling - only add consistency fixes */

/* Fix logo size - override screen.css default */
.gh-head-logo img {
    max-height: 180px !important;
    height: auto !important;
}

@media (max-width: 767px) {
    .gh-head-logo img {
        max-height: 120px !important;
    }
}

/* Only override navigation for transparent hero templates */
body.has-transparent-nav #gh-head,
body.home-template #gh-head,
body.digest-template #gh-head {
    background: transparent !important;
    box-shadow: none !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body.has-transparent-nav #gh-head a,
body.home-template #gh-head a,
body.digest-template #gh-head a {
    color: #ffffff !important;
}

body.has-transparent-nav #gh-head a:hover,
body.home-template #gh-head a:hover,
body.digest-template #gh-head a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.has-transparent-nav .gh-head-button,
body.home-template .gh-head-button,
body.digest-template .gh-head-button {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

body.has-transparent-nav .gh-head-button:hover,
body.home-template .gh-head-button:hover,
body.digest-template .gh-head-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile navigation for transparent templates */
@media (max-width: 767px) {
    /* White icons on transparent nav templates */
    body.has-transparent-nav .gh-burger,
    body.has-transparent-nav .gh-search,
    body.home-template .gh-burger,
    body.home-template .gh-search,
    body.digest-template .gh-burger,
    body.digest-template .gh-search {
        color: #ffffff !important;
    }
    
    body.has-transparent-nav .gh-search svg,
    body.has-transparent-nav .gh-search svg path,
    body.home-template .gh-search svg,
    body.home-template .gh-search svg path,
    body.digest-template .gh-search svg,
    body.digest-template .gh-search svg path {
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }
}

/* Only ensure content spacing for transparent headers */
body.has-transparent-nav .site-content,
body.home-template .site-content,
body.digest-template .site-content {
    margin-top: 0;
}
