/* Header and navigation. */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 243, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(80, 56, 42, .06); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.brand { flex: none; }
.brand img { width: auto; height: 64px; }
.site-nav { flex: 1; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease;
}
.nav-item > a:hover { background: rgba(80, 56, 42, .07); }
.nav-item > a[aria-current="page"] { color: var(--green); }
.panel-toggle {
  display: grid; place-items: center; width: 32px; height: 32px; margin-inline-start: -8px;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.panel-toggle .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.panel-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 0;
  min-width: 300px; padding: 14px;
  background: var(--paper); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(80, 56, 42, .16), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-panel:hover .nav-panel, .has-panel:focus-within .nav-panel, .panel-toggle[aria-expanded="true"] + .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.nav-panel a:hover { background: var(--cream); }
.nav-panel .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tone-bg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-actions .button { min-height: 48px; padding: 10px 22px; }
.lang-switch { font-weight: 700; text-decoration: none; padding: 8px 10px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; place-items: center; }

@media (max-width: 1100px) {
  .header-row { min-height: 76px; gap: 14px; }
  .brand img { height: 52px; }
  .menu-toggle { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .site-nav {
    position: fixed; inset: 76px 0 0; z-index: 49; overflow-y: auto;
    padding: 24px var(--gutter) 48px; background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; padding: 18px 0; font-family: var(--font-display); font-size: 1.6rem; border-radius: 0; }
  .nav-item > a:hover { background: none; }
  .panel-toggle { width: 48px; height: 48px; margin: 0; }
  .nav-panel { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 16px; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; }
  .panel-toggle[aria-expanded="true"] + .nav-panel { display: block; }
  .has-panel:hover .nav-panel { opacity: 1; }
}
@media (max-width: 560px) {
  .header-actions .button span { display: none; }
  .header-actions .button { width: 48px; padding: 0; }
}
