.site-header { border-bottom: 1px solid rgba(74, 52, 59, 0.18); }

/* Keep the native Kadence header fixed while preserving the homepage overlay. */
#masthead,
#mobile-header {
    left: 0;
    position: fixed !important;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
}

body.admin-bar #masthead,
body.admin-bar #mobile-header { top: 32px; }

body:not(.home) #inner-wrap { padding-top: 74px; }
.site-header .site-header-row-container-inner > .site-container { min-height: 74px; }
.site-header .site-main-header-inner-wrap { align-items: center; }
.site-header .main-navigation .primary-menu-container > ul > li > a { font-size: 0.86rem; font-weight: 500; letter-spacing: 0.045em; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid #c9b38b; outline-offset: 3px; }

/* Sitewide translucent header. Kadence remains the structural owner. */
#masthead .site-main-header-wrap .site-header-row-container-inner {
    background: rgba(33, 26, 24, 0.78);
    border-bottom: 1px solid rgba(201, 179, 139, 0.20);
    box-shadow: 0 8px 24px rgba(18, 12, 10, 0.16);
}
#masthead .site-branding .site-title,
#masthead .main-navigation .primary-menu-container > ul > li > a { color: #f5efe7; }
#masthead .site-branding .custom-logo {
    filter: brightness(0) saturate(100%) invert(94%) sepia(10%) saturate(365%) hue-rotate(337deg) brightness(105%);
}
#masthead .site-branding .site-title-wrap {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    line-height: 1;
}
#masthead .site-branding .site-title {
    color: #f5efe7;
    font-family: "Antic Didone", var(--global-heading-font-family), serif;
    font-size: 1.48rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.05;
    text-transform: uppercase;
}
#masthead .site-branding .site-title .velvet-owl-title-first-word {
    color: #c39aaf;
}
#masthead .site-branding .site-description {
    border-top: 1px solid rgba(201, 179, 139, 0.72);
    color: #c9b38b;
    font-family: Raleway, var(--global-body-font-family), sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    margin-top: 6px;
    padding-top: 5px;
    text-transform: uppercase;
    width: 100%;
}
#masthead .main-navigation .primary-menu-container > ul > li > a:hover,
#masthead .main-navigation .primary-menu-container > ul > li > a:focus,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
#masthead .main-navigation .primary-menu-container > ul > li.current_page_item > a { color: #c9b38b; }
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a::after,
#masthead .main-navigation .primary-menu-container > ul > li.current_page_item > a::after {
    background: #c9b38b; bottom: 15px; content: ""; height: 1px; left: 1.2em; opacity: 0.8; position: absolute; right: 1.2em;
}
#masthead .header-button {
    align-items: center;
    background: #604557;
    border-color: #604557;
    border-radius: 3px;
    color: #fff9f1;
    display: inline-flex;
    font-family: var(--global-primary-nav-font-family), "Antic Didone", serif;
    font-size: 0.86rem;
    font-weight: 500;
    justify-content: center;
    letter-spacing: 0.045em;
    line-height: 1;
    min-height: 42px;
    padding: 0 20px;
    text-align: center;
}
#masthead .header-button-wrap {
    align-items: center;
    display: flex;
}
#masthead .header-button:hover,
#masthead .header-button:focus { background: #765d6e; border-color: #765d6e; color: #fff9f1; }

/* Native WordPress menu children automatically inherit this dropdown treatment. */
.site-header .main-navigation .sub-menu {
    background: rgba(26, 21, 19, 0.97); border: 1px solid rgba(201, 179, 139, 0.20); box-shadow: 0 12px 26px rgba(18, 12, 10, 0.24); padding: 8px 0;
}
.site-header .main-navigation .sub-menu a { color: #f5efe7; font-size: 0.84rem; font-weight: 400; padding: 11px 18px; }
.site-header .main-navigation .sub-menu a:hover,
.site-header .main-navigation .sub-menu a:focus,
.site-header .main-navigation .sub-menu .current-menu-item > a { background: #302522; color: #c9b38b; }

@media (max-width: 1024px) {
    body:not(.home) #inner-wrap { padding-top: 68px; }
    .site-header .site-header-row-container-inner > .site-container { min-height: 68px; }
    #mobile-header .site-main-header-wrap .site-header-row-container-inner {
        background: rgba(33, 26, 24, 0.82); border-bottom: 1px solid rgba(201, 179, 139, 0.20);
    }
    #mobile-header .site-title,
    #mobile-header .menu-toggle-open { color: #f5efe7; }
    #mobile-header .custom-logo {
        filter: brightness(0) saturate(100%) invert(94%) sepia(10%) saturate(365%) hue-rotate(337deg) brightness(105%);
    }
    #mobile-header .site-title { font-size: 1.08rem; }
    #mobile-header .site-description { font-size: 0.5rem; letter-spacing: 0.14em; margin-top: 4px; padding-top: 4px; }
}

@media (max-width: 782px) {
    body.admin-bar #masthead,
    body.admin-bar #mobile-header { top: 46px; }
}
