/* Balanced header: 1400px maximum width, 168px desktop / 80px mobile. */
.site-header {
  padding: 12px 0 28px;
  color: #000;
  background: #fff;
  font-weight: 400;
}
.header-inner {
  width: min(1400px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.header-utility {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}
.site-header button, .header-menu button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  border: 0;
  background: transparent;
}
.header-contact { padding: 0 12px; min-height: 44px; font-size: 13px !important; }
.header-icon { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; flex: 0 0 44px; }
.header-icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 12px; }
.header-brand { display: block; width: clamp(220px, 18vw, 260px); flex-shrink: 0; }
.header-brand img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 1; }
.header-nav {
  display: flex; justify-content: space-evenly; align-items: center;
  width: 920px; min-width: 0; max-width: calc(100% - 280px);
  gap: 24px;
  border-block: 1px solid rgba(0,0,0,.18);
  padding: 16px 12px;
}
.header-nav a, .header-nav button {
  display: block; padding: 0; white-space: nowrap;
  text-align: center; font-size: 14px;
  line-height: 1.5; letter-spacing: .04em;
}
.header-nav small { display: block; margin-top: 6px; font: 400 11px/1.4 Arial, sans-serif; color: #777; letter-spacing: 0; }
.site-header :disabled, .header-menu :disabled { opacity: 1; cursor: not-allowed; }
.site-header :focus-visible, .header-menu :focus-visible { outline: 2px solid #e65757; outline-offset: 5px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px !important; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 5px 0; background: currentColor; }
.header-menu {
  border: 0; padding: max(24px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 24px)); max-width: 100%;
  max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; box-sizing: border-box;
  background: #fffefa; color: var(--ink, #333); overflow-y: auto;
  overscroll-behavior: contain; transform: translateX(100%);
  transition: transform var(--motion-menu, 320ms) var(--motion-ease, cubic-bezier(.22,1,.36,1));
}
.header-menu.is-visible { transform: translateX(0); }
.header-menu::backdrop {
  background: rgba(35,30,26,.32); opacity: 0;
  transition: opacity var(--motion-menu, 320ms) ease;
}
.header-menu.is-visible::backdrop { opacity: 1; }
.menu-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ddd; padding-bottom: 24px; }
.menu-heading h2 { font-size: 20px; }
.menu-heading img { display: block; width: 160px; max-width: 100%; height: auto; }
.menu-close { min-width: 44px; min-height: 44px; cursor: pointer; font-size: 13px !important; flex-shrink: 0; }
.menu-navigation { display: grid; margin-block: 16px 28px; }
.menu-navigation a, .menu-navigation button { padding: 18px 0; text-align: left; border-bottom: 1px solid #eee; font-size: 16px; }
.menu-navigation small { display: block; margin-top: 5px; font-size: 12px; color: #777; }
.menu-utility { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 3px; }
.menu-utility .header-icon { width: 44px; height: 44px; }
.menu-contact { margin-top: 20px; min-height: 44px; font-size: 14px !important; }
html.menu-is-open { overflow: hidden; }
@media (max-width: 1199px) {
  .site-header { padding: 18px 0; }
  .header-inner { width: calc(100% - var(--gutter) * 2); margin-inline: auto; }
  .header-row { margin-top: 0; gap: 16px; }
  .header-brand { width: clamp(170px, 26vw, 210px); }
  .header-nav, .header-utility { display: none; }
  .menu-toggle { display: block; }
}
@media (hover: hover) and (pointer: fine) {
  .site-header a:hover, .header-menu a:hover { color: #e65757; }
  .menu-close:hover, .menu-toggle:hover { color: #e65757; }
}
.site-header a, .header-menu a, .menu-close, .menu-toggle {
  transition: color var(--motion-fast, 180ms) ease;
}
@media (prefers-reduced-motion: reduce) {
  .header-menu, .header-menu::backdrop,
  .site-header a, .header-menu a, .menu-close, .menu-toggle { transition: none; }
  .header-menu { transform: none; }
}
