/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height); /* matches the space reserved for it in styles.css at every breakpoint */
  z-index: 1000;
  background: rgba(224, 243, 252, 0.3); /* #E0F3FC at 70% transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;       /* clip anything taller than 100px */
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  /* Matches .container's inset (styles.css) so the logo and nav line up with
     the page content below. Without it, viewports just wider than --container
     render the header flush to the screen edge while everything else is inset. */
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.header-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
}

.header-topbar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text); /* keep the icon's color fixed even when the link/text hovers */
}

a.header-topbar-item:hover {
  color: var(--sky-dark);
}

.header-topbar-item .copy-number {
  color: var(--text);
  text-decoration-color: rgba(31, 42, 55, 0.35);
}

.header-topbar-item .copy-number:hover {
  color: var(--sky-dark);
}

.header-topbar-item .copy-tooltip {
  /* the fixed, overflow:hidden header clips a tooltip positioned above the number — show it below instead */
  bottom: auto;
  top: calc(100% + 8px);
}

.header-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.header-bottom-row {
  display: flex;
  align-items: center;
  gap: 4px;
}




.main-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.3fr);
  align-items: center;
  gap: 4px;
}

.main-nav a:not(.btn) {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  width: 100%;          /* TEMP reference — remove once spacing is finalized */
  transition: color 0.2s ease;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).active {
  color: var(--sky-dark);
}

/* Contact block inside the mobile dropdown — desktop shows the topbar instead
   (see .nav-contact in user_responsiveness.css for the ≤1024px treatment). */
.nav-contact {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  /* deliberately no background/hover fill — it would paint a box against the
     translucent header and the glass dropdown below it */
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* Logo + wordmark */
.site-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.site-brand__logo {
  height: 80px;
  width: auto;
  max-height: 100%;
  display: block;
}
