/* header.css — site header / primary nav. Matches design/homepage.html header. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.brand .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}
.brand .sub {
  display: block;
  font-size: .56rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--soft-text);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: var(--small);
  padding: 10px 2px;
  display: inline-block;
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu {
  display: none;
}

/* no-JS mobile menu (details/summary), opens as a full-screen popup */
.menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--bg);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary .icon-close {
  display: none;
}
.menu[open] summary .icon-open {
  display: none;
}
.menu[open] summary .icon-close {
  display: block;
}

.menu-panel {
  display: none;
}
.menu[open] .menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 24px var(--gutter);
  overflow-y: auto;
}
.menu-panel-header {
  margin-bottom: 48px;
}
.menu-panel-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: auto;
}
.menu-panel-nav a {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}
.menu-panel-cta {
  width: 100%;
  margin-top: 32px;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
  .nav-cta > .btn-primary {
    display: none;
  }
  .menu {
    display: block;
  }
  /* Keep the toggle reachable in the same visual spot whether the
     popup is open or closed, so it also acts as the close control. */
  .menu summary {
    position: fixed;
    top: 14px;
    right: var(--gutter);
    z-index: 61;
  }
  body:has(.menu[open]) {
    overflow: hidden;
  }
  .brand .sub {
    display: none;
  }
}
