.site-header {
  --nav-ink: #173456;
  --nav-blue: #235bbc;
  --nav-tint: #edf4ff;
  --nav-line: #dce7f5;
  background: #fff;
  border-bottom: 1px solid var(--nav-line);
  box-shadow: 0 4px 16px #1734560a;
}
.site-header .brand { min-width: 0; color: var(--nav-ink); }
.site-header .brand strong { letter-spacing: -.025em; }
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header summary:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 3px;
}
.site-header .menu-links,
.site-header .menu-utilities {
  display: flex;
  align-items: center;
}
.site-header .menu-utilities { justify-content: flex-end; gap: 12px; }
.site-header .menu-utilities [data-language] {
  min-height: 40px;
  min-width: 42px;
  padding: 6px 10px;
  border: 1px solid var(--nav-line);
  border-radius: 9px;
  background: #fff;
  color: var(--nav-ink);
  box-shadow: none;
}
.site-header .menu-utilities .nav-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--nav-blue);
  color: white;
  box-shadow: none;
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 24px;
    padding: 0 max(24px, calc((100vw - 1240px) / 2));
    min-height: 0;
  }
  .site-header > .brand { grid-area: 1 / 1; min-height: 63px; }
  .site-header > nav { display: contents; }
  .site-header .menu-utilities { grid-area: 1 / 2; }
  .site-header .menu-links {
    grid-column: 1 / -1;
    gap: clamp(3px, 1vw, 16px);
    padding: 5px 0;
    border-top: 1px solid var(--nav-line);
  }
  .site-header .menu-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--nav-ink);
    font-weight: 650;
    font-size: clamp(.75rem, 1.12vw, .875rem) !important;
    text-align: center;
    line-height: 1.25;
  }
  .site-header .menu-links a:not([aria-current="page"]) { background: transparent; }
  .site-header .menu-links a:hover,
  .site-header .menu-links a[aria-current="page"] { background: var(--nav-tint); color: var(--nav-blue); }
  .site-header .menu-links .nav-new-clients { color: var(--nav-blue); }
}
@media (max-width: 1023px) {
  .site-header {
    min-height: 66px;
    padding: 8px clamp(12px, 3vw, 24px) !important;
    gap: 8px;
    z-index: 50;
  }
  .site-header > .brand { flex: 1 1 auto; max-width: none; }
  .site-header > nav { flex: 0 0 auto; margin-left: 0; }
  .site-header .menu-links,
  .site-header .menu-utilities a { display: none !important; }
  .site-header .mobile-menu { display: block !important; z-index: 51; }
  .site-header .mobile-menu summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--nav-tint);
    color: var(--nav-ink);
    border: 1px solid var(--nav-line);
    border-radius: 9px;
  }
  .site-header .mobile-menu[open] summary { background: var(--nav-blue); color: #fff; }
  .site-header .mobile-menu > .menu-panel {
    display: block !important;
    width: min(350px, calc(100vw - 24px));
    max-height: calc(100dvh - 92px);
    padding: 12px !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border: 1px solid var(--nav-line);
    border-radius: 14px;
    box-shadow: 0 16px 40px #17345626;
  }
  .site-header .mobile-menu:not([open]) > .menu-panel { display: none !important; }
  .site-header .menu-panel .menu-group-title {
    color: #526780;
    padding: 9px 10px 6px;
    font-size: .6875rem;
  }
  .site-header .menu-panel .menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 7px 10px;
    color: var(--nav-ink);
    border-radius: 8px;
    font-size: .875rem;
  }
  .site-header .menu-panel .menu-link:hover,
  .site-header .menu-panel .menu-link[aria-current="page"] { background: var(--nav-tint); }
  .site-header .menu-panel .nav-new-clients { color: var(--nav-blue); }
  .site-header .menu-panel .menu-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--nav-blue);
    background: var(--nav-tint);
  }
  .site-header .menu-panel svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .site-header .menu-panel .menu-arrow { margin-left: auto; color: #596f88; }
  .site-header .menu-panel .menu-divider { border-top: 1px solid var(--nav-line); margin-top: 6px; }
  .site-header .menu-panel .menu-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 10px;
    background: var(--nav-blue);
    color: white;
    border-radius: 8px;
  }
  .site-header .menu-panel .menu-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 1024px) {
  main > section[id] { scroll-margin-top: 124px; }
}
.site-header .property-nav { position: relative; }
.site-header .property-nav > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 5px 10px;
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
  color: var(--nav-ink);
  font-size: clamp(.75rem, 1.12vw, .875rem);
  font-weight: 650;
  white-space: nowrap;
}
.site-header .property-nav > summary::-webkit-details-marker { display: none; }
.site-header .property-nav > summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.site-header .property-nav[open] > summary svg { transform: rotate(180deg); }
.site-header .property-nav > summary:hover,
.site-header .property-nav[open] > summary { background: var(--nav-tint); }
.site-header .property-nav:not([open]) > .property-nav-panel { display: none; }
@media (min-width: 1024px) {
  .site-header .property-nav-panel {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 232px;
    padding: 6px;
    border: 1px solid var(--nav-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px #17345622;
  }
  .site-header .menu-links .property-nav-panel a {
    display: flex;
    justify-content: flex-start;
    text-align: start;
  }
}
@media (max-width: 1023px) {
  .site-header .property-nav-mobile > summary {
    justify-content: space-between;
    min-height: 44px;
    padding: 7px 10px;
    background: transparent;
    border: 0;
    font-size: .875rem;
  }
  .site-header .property-nav-mobile[open] > summary {
    background: var(--nav-tint);
    color: var(--nav-ink);
  }
  .site-header .property-nav-mobile .property-nav-panel {
    margin: 3px 0 5px 13px;
    padding-inline-start: 6px;
    border-inline-start: 1px solid var(--nav-line);
  }
}
.site-header .mobile-menu-close,
.site-header .mobile-menu-backdrop { display: none !important; }

@media (max-width: 1023px), (max-width: 1366px) and (pointer: coarse) {
  html.mobile-menu-visible { overflow: hidden; }
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header .mobile-menu > summary {
    gap: 7px;
    min-height: 44px;
    padding: 8px 12px;
    background: #edf4ff;
    border-color: #d1e0f4;
    border-radius: 11px;
    font-weight: 750;
  }
  .site-header .mobile-menu[open] > summary {
    background: #173f76;
    border-color: #173f76;
    color: #fff;
  }
  .site-header .mobile-menu[open] > summary > svg,
  .site-header .mobile-menu[open] .mobile-menu-label { display: none; }
  .site-header .mobile-menu[open] .mobile-menu-close { display: inline !important; }
  .site-header .mobile-menu[open] .mobile-menu-backdrop {
    display: block !important;
    position: fixed;
    z-index: 1;
    inset: var(--touch-menu-top, 66px) 0 0;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #10294366;
    box-shadow: none;
  }
  .site-header .mobile-menu[open] > .menu-panel {
    position: fixed;
    z-index: 2;
    top: calc(var(--touch-menu-top, 66px) + 9px);
    right: clamp(10px, 3vw, 26px);
    width: min(420px, calc(100vw - 20px));
    max-height: calc(100dvh - var(--touch-menu-top, 66px) - 20px - env(safe-area-inset-bottom, 0px));
    padding: 13px !important;
    border-color: #d1e0f3;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 18px 52px #1029434d;
    overscroll-behavior: contain;
  }
  .site-header .menu-primary-action {
    padding: 1px 0 9px;
    margin-bottom: 5px;
    border-bottom: 1px solid #e0eaf6;
  }
  .site-header .menu-primary-action .menu-quote {
    min-height: 46px;
    margin: 0;
    border-radius: 10px;
    font-size: .9rem;
  }
  .site-header .menu-panel .menu-group-title {
    padding: 9px 10px 5px;
    color: #405976;
    letter-spacing: .08em;
  }
  .site-header .menu-panel .menu-link {
    min-height: 45px;
    padding: 6px 10px;
    font-size: .875rem;
    font-weight: 680;
  }
  .site-header .property-nav-mobile > summary {
    justify-content: flex-start;
    gap: 10px;
    min-height: 46px;
    padding: 6px 10px;
    background: #f0f6ff;
    border: 1px solid #dbe7f7;
    border-radius: 9px;
    color: #183a68;
  }
  .site-header .property-nav-mobile[open] > summary {
    background: #e3efff;
    color: #153a6c;
  }
  .site-header .property-nav-mobile > summary > svg { margin-inline-start: auto; }
  .site-header .property-nav-mobile .property-nav-panel {
    margin: 4px 0 4px 24px;
    padding-inline-start: 7px;
  }
  .site-header .menu-panel .menu-contact {
    margin-top: 8px;
    padding-top: 4px;
  }
  .site-header .menu-panel .menu-contact a { color: #334f6d; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .site-header .mobile-menu[open] > .menu-panel { width: min(430px, calc(100vw - 52px)); }
}


@media (min-width: 1024px) and (max-width: 1366px) and (pointer: coarse) {
  .site-header { display: flex; min-height: 66px; padding: 8px 24px; gap: 12px; z-index: 50; }
  .site-header > .brand { flex: 1; min-height: 0; }
  .site-header > nav { display: flex; margin-left: 0; }
  .site-header .menu-links,
  .site-header .menu-utilities a { display: none !important; }
  .site-header .mobile-menu { display: block !important; }
  .site-header .mobile-menu > summary { display: flex; align-items: center; }
  .site-header .mobile-menu > summary > svg {
    width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  }
  .site-header .mobile-menu:not([open]) > .menu-panel { display: none !important; }
  .site-header .menu-panel .menu-link { display: flex; align-items: center; gap: 10px; }
  .site-header .menu-panel .menu-arrow { margin-inline-start: auto; }
  .site-header .menu-panel .menu-icon {
    display: grid; place-items: center; flex: 0 0 30px; height: 30px;
    border-radius: 8px; background: #edf4ff; color: #235bbc;
  }
  .site-header .menu-panel svg {
    width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .site-header .menu-panel .menu-quote {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #235bbc; color: #fff;
  }
  .site-header .menu-panel .menu-contact a { display: flex; align-items: center; gap: 8px; }
}
