/* Homepage navigation: a quiet, solid header with separate primary and utility links. */
.site-header {
  --nav-height: 76px;
  position: fixed;
  z-index: 200;
  inset: 0 0 auto;
  height: var(--nav-height);
  border-bottom: 1px solid #e6e7e9;
  background: #fff;
  color: #17191d;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1116px, calc(100% - 112px));
  height: 100%;
  margin-inline: auto;
}

.site-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  color: #17191d;
}

.site-brand:hover { color: #17191d; }

.site-brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.site-nav,
.site-nav-primary,
.site-nav-actions {
  display: flex;
  align-items: center;
}

.site-nav {
  margin-left: auto;
  gap: 34px;
}

.site-nav-primary { gap: 26px; }

.site-nav-actions {
  gap: 24px;
  padding-left: 28px;
  border-left: 1px solid #e6e7e9;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #50555f;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: #17191d;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.site-nav a.site-review {
  color: #646973;
  font-size: 0.75rem;
}

.site-nav a.site-contact {
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #a9adb4;
  border-radius: 5px;
  color: #17191d;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.site-nav a.site-contact:hover,
.site-nav a.site-contact[aria-current="location"] {
  border-color: #17191d;
  background: #f5f5f6;
}

.site-header :is(a, button):focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

#header.site-header .site-language {
  flex: 0 0 auto;
  margin: 0;
  border-radius: 5px;
}

#header.site-header .lang-toggle {
  gap: 6px !important;
  width: auto !important;
  min-width: 56px !important;
  height: 44px !important;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent !important;
  color: #50555f !important;
  box-shadow: none;
  transform: none;
}

.site-language-code {
  min-width: 2ch;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

#header.site-header .lang-toggle svg { flex-shrink: 0; }
#header.site-header .lang-chevron { width: 12px; height: 12px; }

#header.site-header .lang-options {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  width: 178px;
  max-height: calc(100dvh - var(--nav-height) - 24px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e1e3e6 !important;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(23, 25, 29, 0.1) !important;
  visibility: hidden;
  transform: none;
  transition: none;
}

#header.site-header .site-language.open .lang-options {
  visibility: visible;
  transform: none;
}

#header.site-header .lang-option {
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  color: #30343b;
  font-size: 0.8125rem;
  background: #fff !important;
  box-shadow: none;
  transform: none;
  transition: background 140ms ease;
}

#header.site-header .lang-option:hover,
#header.site-header .lang-option.selected {
  background: #f1f2f4 !important;
}

#header.site-header .lang-option.selected { font-weight: 600; }

#header.site-header .lang-flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: none;
}

.site-menu-toggle { display: none; }
.site-menu-label-close { display: none; }

@media (max-width: 1100px) {
  .site-header { --nav-height: 64px; }

  .site-header-inner { gap: 20px; }

  #header.site-header .site-language { margin-left: auto; }

  .site-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    color: #17191d;
  }

  #site-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-menu-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
  }

  .site-menu-icon > span {
    position: absolute;
    inset: 3px 0 auto;
    height: 1.5px;
    background: currentColor;
    transition: transform 140ms ease;
  }

  .site-menu-icon > span:last-child { top: 10px; }
  .site-menu-toggle.open .site-menu-icon > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-menu-toggle.open .site-menu-icon > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-menu-toggle.open .site-menu-label-open { display: none; }
  .site-menu-toggle.open .site-menu-label-close { display: inline; }

  .site-nav {
    position: absolute;
    inset: var(--nav-height) 0 auto;
    display: none;
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 20px max(56px, calc((100vw - 1116px) / 2)) 28px;
    border-bottom: 1px solid #e1e3e6;
    background: #fff;
  }

  .site-nav.open { display: block; }

  .site-nav-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav-primary > a {
    min-height: 60px;
    padding: 12px 0;
    border-bottom: 1px solid #eceef0;
    color: #17191d;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    white-space: normal;
  }

  .site-nav-actions {
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 0;
    border: 0;
  }

  .site-nav a.site-contact { min-height: 44px; }
}

@media (max-width: 768px) {
  .site-header-inner { width: calc(100% - 72px); gap: 12px; }
  .site-nav { padding-inline: 36px; }
  .site-brand { gap: 6px; }
  .site-brand-mark { width: 38px; height: 38px; }
  .site-brand-name { font-size: 0.9375rem; }
}

@media (max-width: 380px) {
  .site-header-inner { width: calc(100% - 40px); gap: 8px; }
  .site-nav { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header *::before, .site-header *::after { transition: none !important; }
}
