/* ===========================================================
   Shared, authoritative header stylesheet.
   Linked LAST on every page so the header, logo, nav, theme
   toggle, Log in and Book a demo are pixel-identical site-wide,
   overriding any page-specific or inline header CSS.
   =========================================================== */

/* Reserve scrollbar space so pages with/without a scrollbar
   never shift sideways. */
html { scrollbar-gutter: stable; }

header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

/* container (the <div class="wrap nav">) */
header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  max-width: 1200px;
  padding: 0 28px;
  margin: auto;
}

header .logo { width: 175px; height: auto; }
html[data-theme=dark] header .logo { filter: brightness(0) invert(1); }

header .nav .links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
header .nav .links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: normal;
  white-space: nowrap;
}
header .nav .links .navarr { opacity: .75; flex: none; }

header .navactions {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 14px;
}
header .navactions .hide-mobile { color: inherit; text-decoration: none; }
header .navactions .btn { white-space: nowrap; }

header .theme {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--card);
  color: var(--text);
  padding: 7px 12px;
}
header .theme .active-icon {
  background: #dbe8ff;
  color: #23408b;
  border-radius: 20px;
  padding: 1px 5px;
}

header .menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--card);
  color: var(--text);
}

@media (max-width: 1050px) {
  header .nav .links { gap: 10px; font-size: 12px; }
}
@media (max-width: 850px) {
  header .nav .links { display: none; }
  header .menu-toggle { display: inline-block; }
  header .nav { gap: 8px; }
  header .logo { width: 135px; }
  header .navactions { gap: 8px; }
  header .navactions .btn { font-size: 12px; padding: 10px; }
  header .navactions .hide-mobile { display: none; }
}
@media (max-width: 640px) {
  header .nav { gap: 6px; padding: 0 18px; }
  header .logo { width: 116px; }
  header .navactions { gap: 6px; }
  header .navactions .btn { padding: 9px 12px; font-size: 12px; }
  header .theme { padding: 6px 9px; }
  header .menu-toggle { padding: 7px 9px; }
}
