/* The header keeps its layout height so the scroll-driven sections stay aligned. */
.site-header { --header-height: 86px; --bar-height: 64px; height: var(--header-height); display: flow-root; transition: background .25s, border-color .25s; }
.header-inner { gap: 22px; }
.header-actions { gap: 12px; }
.desktop-nav { gap: 24px; }
.desktop-nav a { white-space: nowrap; }
.nav-home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.desktop-nav .nav-home { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; }
.nav-home:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.mobile-nav .nav-home { display: flex; align-items: center; gap: 12px; }
/* Equal side columns keep the links centered in both header states. */
@media (min-width: 1251px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .header-inner > .brand { justify-self: start; }
  .desktop-nav { justify-self: center; }
  .header-actions { margin-left: 0; justify-self: end; }
}
.site-header.is-floating,
:root[data-theme="light"] .site-header.is-floating { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
.is-floating .header-inner {
  height: var(--bar-height);
  margin-block: calc((var(--header-height) - var(--bar-height)) / 2);
  padding-inline: 22px;
  border: 1px solid #ffffff1f;
  border-radius: 40px;
  background: #0e191bd9;
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 8px 30px #0000001f;
}
:root[data-theme="light"] .is-floating .header-inner { background: #f8f5eed4; border-color: #253e2924; box-shadow: 0 8px 30px #253e2910; }
.is-floating .header-cta { border-radius: 24px; }
.language-picker { position: relative; flex-shrink: 0; }
.language-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 11px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; font-size: .75rem; font-weight: 600; }
.language-toggle:hover { border-color: var(--mint); }
.language-toggle svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.language-toggle .language-chevron { width: 10px; height: 10px; transition: transform .2s; }
.language-toggle[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; top: calc(100% + 12px); right: 0; width: 180px; padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 36px #0002; z-index: 2; }
.language-options button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 0; background: transparent; color: var(--text); border-radius: 11px; text-align: left; font-size: .875rem; }
.language-options button span { color: var(--muted); font-size: .7rem; }
.language-options button:hover,
.language-options button[aria-pressed="true"] { background: var(--mint-dark); color: var(--mint); }
.mobile-nav { position: absolute; top: calc(100% - 2px); left: 12px; right: 12px; border: 1px solid var(--line); border-radius: 22px; background: #101a1bea; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 12px 35px #0002; }
:root[data-theme="light"] .mobile-nav { background: #f8f5eef0; }
@media (max-width: 1150px) { .desktop-nav { gap: 16px; } .header-inner { gap: 16px; } .is-floating .header-inner { padding-inline: 18px; } }
@media (max-width: 1250px) { .desktop-nav { display: none; } .menu-toggle { display: block; flex-shrink: 0; } }
@media (max-width: 680px) {
  .site-header { --header-height: 73px; --bar-height: 58px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 7px; }
  .header-cta { display: none; }
  .language-toggle { height: 38px; padding-inline: 9px; gap: 5px; }
  .theme-toggle { width: 38px; height: 38px; padding: 9px; }
  .is-floating .header-inner { width: calc(100% - 20px); padding-inline: 12px; }
  .is-floating .brand > span { font-size: 1.45rem; }
  .is-floating .brand img { width: 28px; height: 28px; }
  .is-floating .brand { gap: 6px; }
  .language-options { right: -30px; }
}
@media (max-width: 370px) { .header-inner { gap: 7px; } .brand { gap: 5px; } .brand > span { font-size: 1.4rem; } .language-toggle > svg:first-child { display: none; } .language-options { right: -40px; } }
@media (prefers-reduced-motion: reduce) { .site-header, .language-chevron { transition: none; } }
