.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 32px), 1280px);
  height: 70px;
  min-height: 70px;
  margin: 14px auto 0;
  padding: 8px 9px 8px 14px;
  isolation: isolate;
  border: 1px solid rgba(153, 177, 169, 0.42);
  border-radius: 20px;
  background: rgba(250, 252, 251, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 10px 30px rgba(7, 19, 20, 0.1);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: box-shadow 280ms ease, background-color 280ms ease, border-color 280ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 19px;
  background:
    radial-gradient(circle at 16% -40%, rgba(255, 255, 255, 0.92), transparent 46%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.22), transparent 48%, rgba(215, 181, 108, 0.07));
  pointer-events: none;
}

.site-header[data-elevated="true"] {
  border-color: rgba(133, 163, 153, 0.5);
  background: rgba(250, 252, 251, 0.98);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 14px 34px rgba(7, 19, 20, 0.14);
  transform: translateY(-4px);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0 8px 0 0;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-decoration: none;
}

.site-header .brand-mark {
  display: grid;
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(6, 63, 60, 0.12);
  border-radius: 13px;
  background: #f2f7f5;
  box-shadow: 0 7px 18px rgba(6, 63, 60, 0.12);
}

.site-header .brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 180ms ease;
}

.site-header .brand:hover .brand-mark img {
  transform: scale(1.02);
}

.site-header .brand strong,
.site-header .brand small {
  display: block;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-header .brand strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.site-header .brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.site-header .site-nav {
  display: flex;
  justify-content: center;
  justify-self: center;
  gap: 12px;
}

.site-header .site-nav a,
.mobile-menu a {
  position: relative;
  color: #29413b;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-header .site-nav a {
  padding: 9px 13px 11px;
}

.site-header .site-nav a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible,
.site-header .site-nav a.active {
  color: var(--gold);
}

.site-header .site-nav a:hover::after,
.site-header .site-nav a:focus-visible::after,
.site-header .site-nav a.active::after {
  transform: scaleX(1);
}

.site-header .language-picker {
  position: relative;
  z-index: 2;
  justify-self: end;
}

.site-header .language-toggle {
  display: inline-flex;
  min-width: 78px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.site-header .language-toggle:hover,
.site-header .language-toggle[aria-expanded="true"] {
  color: var(--gold);
}

.site-header .language-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-header .language-toggle .language-chevron {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.site-header .language-toggle strong {
  font-size: 12px;
  letter-spacing: 0.05em;
}

.site-header .header-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.site-header .header-action:hover,
.site-header .header-action:focus-visible {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

.site-header .header-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header .nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.site-header .nav-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 98px 16px auto 16px;
  z-index: 49;
  display: grid;
  gap: 2px;
  max-width: 480px;
  margin-inline: auto;
  padding: 8px;
  border: 1px solid rgba(184, 203, 197, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 55px rgba(7, 19, 20, 0.15);
  backdrop-filter: blur(20px);
}

.mobile-menu[hidden] {
  display: none;
}

/* Match the calmer 90% desktop viewing scale without shrinking touch layouts. */
@media (min-width: 1280px) {
  html {
    zoom: 0.9;
  }
}

.mobile-menu a {
  padding: 14px 16px;
  border-radius: 12px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--mist, #eff7f4);
  color: var(--teal);
}

html[dir="rtl"] .site-header {
  padding: 8px 14px 8px 9px;
}

html[dir="rtl"] .site-header .brand {
  padding: 0 0 0 8px;
}

html[dir="rtl"] .site-header .header-action svg {
  transform: scaleX(-1);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-header .site-nav,
  .site-header .header-action {
    display: none;
  }

  .site-header .nav-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    height: 64px;
    min-height: 64px;
    margin-top: 8px;
    gap: 10px;
    padding: 7px 8px 7px 10px;
    border-radius: 18px;
  }

  html[dir="rtl"] .site-header {
    padding: 7px 10px 7px 8px;
  }

  .site-header .language-toggle {
    min-width: 66px;
    min-height: 46px;
    gap: 6px;
    padding: 0 9px;
  }

  .site-header .brand small {
    display: none;
  }

  .site-header .brand {
    gap: 9px;
    padding-inline: 0;
  }

  .site-header .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .mobile-menu {
    inset: 82px 8px auto 8px;
  }
}
