@import './brand.css';

.header {
  display: flex; align-items: center; gap: 35px;
  color: var(--ds-ink);
}
.header.shell {
  position: fixed; z-index: 50; top: 0; left: 50%; transform: translateX(-50%);
  margin: 0; height: 85px; width: min(1248px, calc(100% - 96px)); padding: 0;
  border: 0; border-radius: var(--ds-radius-control); background: transparent;
  isolation: isolate;
}
.header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: #b8d4c31f; pointer-events: none; transition: opacity 160ms ease-out;
}
.header-surface {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 1px solid #a8b8d226; border-radius: var(--ds-radius-control);
  background: rgba(17,17,18,.76); backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 6px 24px #0002; opacity: 0; transform-origin: 0 0;
}
.header-space { height: 85px; }
.header nav { display: flex; gap: 31px; font-size: 11px; color: #b8c9ca; margin-left: auto; margin-right: 42px; }
.header nav a:hover { color: white; }
.header.is-compact { top: 12px; width: min(1000px, calc(100% - 48px)); height: 60px; padding: 0 20px; }
.header.is-compact .header-surface { opacity: 1; }
.header.is-compact::after { opacity: 0; }
.header .contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--ds-radius-control);
  background: var(--ds-action); color: var(--ds-on-action);
  font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap;
  transition: background-color 140ms ease-out, transform 140ms ease-out;
}
.header .contact:hover { background: var(--ds-action-hover); }
.header .contact:active { transform: scale(.9); }
.header .contact svg { width: 14px; height: 14px; flex-shrink: 0; }
[data-forge-theme="light"] .header {
  --header-label-ink: color-mix(in srgb, var(--ds-ink) 90%, var(--ds-brand-blue));
}
[data-forge-theme="light"] .header .brand-secondary {
  color: var(--header-label-ink);
  font-weight: 450;
}
[data-forge-theme="light"] .header nav {
  color: var(--header-label-ink);
  font-size: clamp(12px, 1.05vw, 13px);
  font-weight: 500;
}
[data-forge-theme="light"] .header nav a:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
}
[data-forge-theme="light"] .header-surface { background: var(--ds-canvas); border-color: var(--ds-line); }
[data-forge-theme="light"] .header::after { background: var(--ds-line); }
@media (max-width: 1100px) {
  .header.shell { width: calc(100% - 64px); }
  .header.is-compact { width: min(1000px, calc(100% - 48px)); }
  .header nav { gap: 22px; margin-right: 20px; }
}
@media (max-width: 650px) {
  .header { gap: 20px; }
  .header-space { height: 74px; }
  .header.shell { height: 74px; width: calc(100% - 40px); }
  .header.is-compact { top: 8px; height: 54px; width: calc(100% - 24px); padding: 0 12px; }
  .header nav { margin-right: 0; gap: 14px; font-size: 10px; }
  .header nav a:not(:first-child) { display: none; }
  .header nav a.header-nav-compact { display: block; }
  .header .contact { font-size: 11px; gap: 7px; }
}
@media (max-width: 360px) { .header nav a:first-child:not(.header-nav-compact) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .header::after, .header .contact { transition: none; }
  .header .contact:active { transform: none; }
}
