/* Shared site header for all pages (V5 pages and Tailwind pages).
   Self-contained: every rule is scoped to .site-header, so it does not depend on
   site-v5.css and cannot clash with Tailwind utility classes. Breakpoints match
   the V5 layout (1020 px / 760 px). Behaviour (mobile menu) lives in site-v5.js. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #1d1d1b;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.site-header, .site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header [hidden] { display: none !important; }
.site-header .wrap { width: 100%; max-width: 1228px; margin: 0 auto; padding: 0 24px; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.site-header .brand { display: inline-flex; flex-shrink: 0; }
.site-header .brand img { display: block; height: 28px; width: auto; }

.site-header .nav { display: flex; align-items: center; gap: 26px; }
.site-header .nav a { white-space: nowrap; color: #cfcec9; text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header .nav a:hover { color: #fff; }
.site-header .nav a[aria-current="page"] { color: #fff; border-bottom-color: #e30d13; }
.site-header :focus-visible { outline: 3px solid #2f6fd6; outline-offset: 3px; border-radius: 4px; }

.site-header a.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 9px;
  background: #e30d13; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s; }
.site-header a.btn:hover { background: #b60a10; color: #fff; }

.site-header .menu-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; padding: 0;
  background: none; border: 0; color: #fff; cursor: pointer; }
.site-header .menu-btn svg { width: 28px; height: 28px; }
.site-header .mobile-nav { display: none; }

@media (max-width: 1020px) {
  .site-header .nav { gap: 18px; }
  .site-header .nav a { font-size: 14px; }
}

@media (max-width: 900px) {
  .site-header .bar { gap: 16px; }
  .site-header .nav { gap: 12px; }
  .site-header .nav a { font-size: 13.5px; }
  .site-header a.btn { padding: 8px 12px; }
}

@media (max-width: 760px) {
  .site-header .wrap { padding: 0 18px; }
  .site-header .nav { display: none; }
  .site-header .menu-btn { display: inline-flex; }
  .site-header .mobile-nav.is-open { display: block; border-top: 1px solid rgba(255, 255, 255, .1); padding: 8px 18px 18px; }
  .site-header .mobile-nav a { display: flex; align-items: center; min-height: 48px; color: #e6e5e0; text-decoration: none; font-weight: 600; font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .site-header .mobile-nav a[aria-current="page"] { color: #fff; }
  .site-header .mobile-nav .btn { margin-top: 14px; width: 100%; min-height: 48px; border-bottom: 0; font-size: 16px; }
}
