.site-header { position: sticky; top: var(--site-sticky-top); z-index: 40; background: var(--wp--preset--color--background); border-bottom: var(--wp--custom--border-width) solid var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.site-header-inner { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); min-height: var(--site-header-height); padding-block: 0.5rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.65rem; max-width: 15rem; color: inherit; font-family: var(--wp--preset--font-family--heading); font-stretch: 118%; font-size: clamp(0.9375rem, 2vw, 1.125rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; text-decoration: none; }
.site-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; background: var(--wp--preset--color--warm); border: 2px solid var(--wp--preset--color--primary); border-radius: 999px; }
/* In a tight header the logo gives way; the CTA label must never overflow its pill. */
.custom-logo-link { display: inline-flex; flex: 0 1 auto; min-width: 0; }
.custom-logo { width: auto; height: auto; max-width: min(100%, var(--site-logo-max-width)); max-height: var(--site-logo-max-height); }
.site-brand { min-width: 0; }
.site-header-actions { display: flex; align-items: center; gap: 0.65rem; flex: 0 0 auto; order: 2; }
.site-navigation { flex: 1 1 auto; min-width: 0; order: 1; }
.site-menu { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; gap: 0.375rem clamp(0.75rem, 2vw, 2rem); padding: 0; margin: 0; font-family: var(--wp--preset--font-family--heading); font-stretch: 112%; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.02em; }
.site-menu a { display: block; padding-block: 0.65rem; color: inherit; text-decoration: none; }
.site-menu a:hover, .site-menu .current-menu-item > a { color: var(--wp--preset--color--warm); }
.site-menu .sub-menu { list-style: none; padding-left: 1rem; font-size: var(--wp--preset--font-size--small); }
.site-header-cta { flex-shrink: 0; min-height: 44px; padding: 0.625rem 1.25rem; font-size: 0.875rem; white-space: nowrap; }
.site-menu-toggle { min-height: 44px; min-width: 44px; padding: 0.4rem 0.65rem; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: inherit; border: 2px solid currentColor; border-radius: var(--wp--custom--radius--small); cursor: pointer; }
.site-menu-toggle-icon, .site-menu-toggle-icon::before, .site-menu-toggle-icon::after { width: 20px; height: 2px; display: block; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-menu-toggle-icon { position: relative; }
.site-menu-toggle-icon::before, .site-menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.site-menu-toggle-icon::before { top: -6px; }
.site-menu-toggle-icon::after { top: 6px; }
.site-header.is-open .site-menu-toggle-icon { background: transparent; }
.site-header.is-open .site-menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .site-menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }
/* Mobile: logo column shrinks, CTA + toggle keep their size, the menu drops to its own row. */
.site-header.nav-ready .site-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(0.75rem, 2vw, 1.5rem); }
.site-header.nav-ready .site-navigation { grid-column: 1 / -1; order: 3; display: none; }
.site-header.nav-ready.is-open .site-navigation { display: block; }
.site-header.nav-ready .site-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding-top: 0.5rem; }
.site-header.nav-ready .site-menu a { padding-block: 0.85rem; border-top: 1px solid rgba(22, 79, 134, 0.18); }
