/* Site header: a floating glass bar matched to allorafpga.dev (DM Sans, pill nav). Colors come from the page tokens in site.css. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/dm-sans-600.ttf) format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/dm-sans-700.ttf) format("truetype");
}

:root { --menu-bg: #162a3a; }

html { scroll-padding-top: 112px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 18px;
  isolation: isolate;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -30px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
}

.site-header .nav {
  position: relative;
  z-index: 1;
  min-height: 66px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--nav);
  box-shadow: 0 8px 30px rgba(46,92,128,.06);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  font-weight: 700;
}
.site-header .brand-logo { width: auto; height: 40px; }
.site-header .brand > span { display: grid; gap: 5px; line-height: 1; }
.site-header .brand strong { font-size: 14px; letter-spacing: .17em; }
.site-header .brand small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .22em; }

.site-header .nav-links { margin-left: auto; display: flex; gap: 4px; }
.site-header .nav-links a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.site-header .nav-links a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.site-header .nav-links a[aria-current="location"] { color: var(--accent); }
.site-header .nav-links[hidden] { display: none; }

.site-header .nav-actions { display: flex; align-items: center; gap: 10px; }

.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(125,211,252,.28);
  border-radius: 12px;
  background: linear-gradient(135deg, #0a6fe0, #0660c4);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(8,120,239,.2), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .18s, box-shadow .18s;
}
.site-header .header-cta:hover { transform: translateY(-2px); }

.site-header .menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
}
.site-header .menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Below 1080px the links collapse into a dropdown under the bar, as on allorafpga.dev. */
@media (max-width: 1080px) {
  .site-header .menu-toggle { display: inline-flex; }
  .site-header .nav-actions { margin-left: auto; }
  .site-header .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    margin: 0;
    padding: 10px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--menu-bg);
    box-shadow: 0 18px 44px rgba(15,23,42,.12);
  }
  .site-header .nav-links a { padding: 12px; font-size: 15px; }
}

@media (max-width: 760px) {
  .site-header .header-cta { display: none; }
}

@media (max-width: 520px) {
  .site-header { padding-top: 10px; }
  .site-header .nav { gap: 8px; padding: 8px; border-radius: 16px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-logo { height: 34px; }
  .site-header .brand strong { font-size: 12px; }
  .site-header .brand small { font-size: 9px; }
  .site-header .nav-actions { gap: 6px; }
  .site-header .menu-toggle { width: 36px; height: 36px; }
}

