.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e5ebf0; box-shadow: 0 3px 16px #173d6010; }
.navigation-loading { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1000; overflow: hidden; background: #e1f1ff; pointer-events: none; }
.navigation-loading[hidden] { display: none; }
.navigation-loading span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, #7dd3fc, #2585d5, #14538e); animation: navigation-loading 1.1s ease-in-out infinite; }
@keyframes navigation-loading { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@media(prefers-reduced-motion: reduce) { .navigation-loading span { animation: none; width: 100%; } }
.site-header-inner { max-width: 1440px; margin: auto; padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.site-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-brand img { object-fit: contain; display: block; }
.site-brand span { font-size: 22px; color: #593720; line-height: 1.2; }
.site-brand strong { color: inherit; font-weight: 500; }
.site-brand small { display: block; color: #6b7784; font-size: 11px; letter-spacing: .7px; margin-top: 5px; }
.primary-navigation { display: flex; align-items: center; gap: 4px; }
.primary-navigation > a, .services-menu > summary { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; white-space: nowrap; color: #36536c; }
.primary-navigation a:hover, .services-menu summary:hover { background: #f0f5f9; color: #14538e; }
.primary-navigation > a[aria-current], .services-menu > .is-active { color: #14538e; background: #eaf2f9; }
.site-header :is(a,button,summary):focus-visible { outline: 3px solid #b08b51; outline-offset: 3px; }
.services-menu { position: relative; }
.services-menu summary { list-style: none; cursor: pointer; gap: 8px; }
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu[open] summary span { transform: rotate(180deg); }
.services-panel { position: absolute; top: calc(100% + 14px); left: 0; width: 300px; padding: 12px; background: #fff; border: 1px solid #e5ebf0; border-radius: 14px; box-shadow: 0 14px 40px #153f6320; }
.services-panel p { padding: 8px 12px; color: #737f89; font-size: 12px; }
.services-panel a { display: block; padding: 11px 12px; border-radius: 8px; font-size: 15px; }
.primary-navigation > .header-line { background: #008737; color: #fff; gap: 7px; margin-left: 10px; }
.primary-navigation > .header-line:hover { background: #006d2d; color: #fff; }
.menu-toggle { display: none; border: 1px solid #dce5ed; background: #fff; padding: 10px 14px; border-radius: 10px; font-size: 16px; cursor: pointer; min-height: 44px; }
/* Small, optional motion for navigation; no delay before links can be used. */
.primary-navigation a, .services-menu summary, .menu-toggle {
 transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.primary-navigation > a:not(.header-line):hover,
.services-menu > summary:hover, .services-menu[open] > summary,
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] {
 background-color: #eaf4fc; color: #14538e;
}
.services-panel a:hover { background-color: #eaf4fc; }
.services-menu summary span { transition: transform 180ms ease; }
.services-menu[open] > .services-panel { animation: menu-appear 180ms ease-out; }
@keyframes menu-appear {
 from { opacity: 0; transform: translateY(-5px); }
 to { opacity: 1; transform: translateY(0); }
}
@media(max-width:1179px) {
 .site-header-inner { flex-wrap: wrap; padding: 10px 20px; gap: 0; }
 .menu-toggle:not([hidden]) { display: flex; align-items: center; gap: 8px; }
 .primary-navigation { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 0; }
 .has-menu-js .primary-navigation { display: none; position: absolute; top: 100%; left: 0; padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid #dce5ed; box-shadow: 0 12px 24px #153f6314; max-height: calc(100dvh - 76px); overflow-y: auto; }
 .menu-toggle[aria-expanded="true"] + .primary-navigation { display: flex; }
 .menu-toggle[aria-expanded="true"] + .primary-navigation { animation: menu-appear 180ms ease-out; }
 .services-panel { position: static; width: 100%; box-shadow: none; border: 0; border-left: 2px solid #dce7f0; border-radius: 0; margin: 6px 0; }
 .primary-navigation > .header-line { margin: 8px 0 0; justify-content: center; }
}
@media(max-width:480px) { .site-header-inner { padding: 10px 16px; } .site-brand span { font-size: 20px; } .site-brand img { width: 44px; height: 48px; } }
@media(prefers-reduced-motion: reduce) {
 .site-header *, .services-menu[open] > .services-panel,
 .menu-toggle[aria-expanded="true"] + .primary-navigation {
  animation: none; transition: none;
 }
}
