/* ================================================================
   Approved site header for the older pages that use style.css (Nov 2026).
   Same markup as the service pages (website_2026-11_service-pages/build/shell.py); the rules below are copied from
   components.css and scoped to .site-header, so nothing outside the header changes. The menu button and Escape
   handling come from js/pages.js. Fixed like the old .nav it replaces, so the pages' hero spacing still fits.
   ================================================================ */
@font-face { font-family: 'JD Header Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('../assets/fonts/dm-sans-latin-opsz-normal.woff2') format('woff2-variations'); }

.site-header {
  --blue: #3766AE; --blue-deep: #2659A3; --blue-ink: #1B3F78; --navy: #14233B; --line: #D9E2EF; --line-strong: #B9C7DB; --text: #14233B;
  --shadow-md: 0 6px 24px rgba(27,63,120,.08), 0 1px 3px rgba(20,35,59,.05);
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: 'JD Header Sans', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--text); text-align: left; letter-spacing: normal; -webkit-font-smoothing: antialiased;
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site-header ul { margin: 0; padding: 0; list-style: none; }
.site-header li { margin: 0; padding: 0; }
.site-header img { display: block; max-width: 100%; }
.site-header :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.site-header .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.site-header .brand { flex: none; }
.site-header .brand img { height: 38px; width: auto; }
.site-header .header-call { font-weight: 700; color: var(--navy); text-decoration: none; margin-left: auto; padding: 10px 4px; white-space: nowrap; }
.site-header .header-call:hover { color: var(--blue-deep); }
.site-header .site-nav ul { display: flex; align-items: center; gap: 24px; }
.site-header .site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 12px 0; display: inline-block; white-space: nowrap; }
.site-header .site-nav a:not(.btn):hover { color: var(--blue-deep); }
.site-header .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0; min-height: 42px; padding: 8px 16px;
  border-radius: 8px; border: 1.5px solid transparent; font-family: inherit; font-weight: 600; font-size: .95rem;
  letter-spacing: normal; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none;
  background: var(--blue-deep); color: #fff; transition: background .18s, border-color .18s, color .18s, transform .12s;
}
.site-header .btn:hover { background: var(--blue-ink); color: #fff; transform: none; box-shadow: none; }
.site-header .btn:active { transform: translateY(1px); }
.site-header .nav-toggle {
  display: none; align-items: center; gap: 10px; margin: 0; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px;
  min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.site-header .nav-toggle-bars { width: 18px; height: 2px; background: var(--navy); box-shadow: 0 -6px 0 var(--navy), 0 6px 0 var(--navy); }

/* Wide screens: links in the bar, phone number last (as on the service pages) */
@media (min-width: 1181px) {
  .site-header .header-call { order: 3; margin-left: 0; }
  .site-header .site-nav { margin-left: auto; }
}
/* These pages carry seven links, so the menu button takes over below 1181 px (the service pages switch at 900 px with four) */
@media (max-width: 1180px) {
  .js .site-header .nav-toggle { display: inline-flex; }
  .js .site-header .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); max-height: calc(100vh - 72px); overflow-y: auto; }
  .js .site-header .site-nav.is-open { display: block; }
  .site-header .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; max-width: 1160px; margin: 0 auto; }
  .site-header .site-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header .site-nav .btn { margin-top: 16px; width: 100%; }
  /* Without JavaScript the links stay visible in a wrapped row, and the taller header joins the page flow
     instead of covering the top of the content */
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .site-header .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  html:not(.js) .site-header .site-nav { width: 100%; }
  html:not(.js) .site-header .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; padding: 0; }
  html:not(.js) .site-header .site-nav a:not(.btn) { border: 0; padding: 8px 0; }
  html:not(.js) .site-header .site-nav .btn { width: auto; margin: 0; }
}
@media (max-width: 700px) {
  .site-header .wrap { padding: 0 20px; }
  .site-header .header-inner { gap: 10px; min-height: 64px; }
  .site-header .brand img { height: 28px; }
  .site-header .header-call { font-size: .9rem; padding: 10px 0; }
  .site-header .nav-toggle { padding: 8px 10px; }
  .site-header .site-nav ul { padding: 8px 20px 20px; }
}
@media (max-width: 380px) {
  .site-header .nav-toggle span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-header .nav-toggle { min-width: 44px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .site-header .btn { transition: none; } }
