/* BEYOND v1.1 — responsive bilingual navigation. */
.site-header {
  z-index: 100;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 86px;
}
.site-header .brand { min-width: 0; }
.site-header .brand-logo-final {
  width: 212px;
  max-width: 100%;
  height: auto;
}
.site-header .site-nav {
  position: static;
  display: block;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--blue);
}
.site-header .site-nav[hidden] { display: none !important; }
.primary-menu-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.primary-menu-list li { min-width: 0; }
.site-header .site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 1;
  text-decoration: none;
  text-underline-offset: 6px;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible,
.site-header .site-nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}
.site-header .site-nav .nav-cta {
  justify-content: center;
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--blue);
  text-align: center;
  letter-spacing: .025em;
  white-space: nowrap;
}
.menu-panel-title { display: none; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(8, 6, 105, .26);
  background: #fff;
}
.language-switch a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}
.language-switch a + a { border-left: 1px solid rgba(8, 6, 105, .2); }
.language-switch a:hover,
.language-switch a:focus-visible { background: var(--mist); color: var(--blue); }
.language-switch a[aria-current="true"] {
  background: var(--blue);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--yellow);
}
.language-switch a:focus-visible { z-index: 1; }
.site-header .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 44px;
  gap: 5px;
  width: 44px;
  min-height: 44px;
  padding: 9px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.site-header .menu-toggle span:not(.sr-only) {
  display: block;
  width: 25px;
  height: 2px;
  margin: 0;
  background: var(--blue);
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
}
.site-header .menu-toggle span:nth-child(2) { background: var(--yellow); }
.site-header .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header .menu-toggle:hover { background: var(--mist); }
.site-header a:focus-visible,
.site-header button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.footer-grid > div,
.footer-bottom > span { min-width: 0; }
.footer-grid a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.site-footer .footer-cta .button { display: inline-flex; padding: 12px 18px; line-height: 1.4; min-height: 46px; }
.site-footer .footer-phone { margin-top: 10px; font-size: 14px; white-space: nowrap; }
.footer-bottom { gap: 20px; }
.footer-bottom > span { overflow-wrap: anywhere; }

@media (min-width: 1200px) and (max-width: 1350px) {
  .site-header .header-inner { gap: 16px; }
  .site-header .brand-logo-final { width: 196px; }
  .primary-menu-list { gap: 14px; }
  .site-header .site-nav a { font-size: 11px; }
  .site-header .site-nav .nav-cta { padding-inline: 13px; }
}

@media (max-width: 1199px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 82px;
  }
  .site-header .brand-logo-final { width: 210px; max-width: 100%; }
  .header-tools { grid-column: 2; grid-row: 1; gap: 12px; }
  .site-header .menu-toggle { display: flex; }
  .site-header .site-nav {
    display: none;
    position: fixed;
    top: var(--beyond-header-bottom, 82px);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - var(--beyond-header-bottom, 82px));
    height: calc(100dvh - var(--beyond-header-bottom, 82px));
    max-height: calc(100dvh - var(--beyond-header-bottom, 82px));
    padding: 28px max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    box-shadow: 0 20px 40px rgba(5, 4, 47, .2);
  }
  .site-header .site-nav.open { display: block; }
  .menu-panel-title {
    display: block;
    max-width: 720px;
    margin: 0 auto 16px;
    color: rgba(255, 255, 255, .6);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.5;
    text-transform: uppercase;
  }
  .primary-menu-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }
  .site-header .site-nav a {
    min-height: 62px;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.015em;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .site-header .site-nav a:hover,
  .site-header .site-nav a:focus-visible,
  .site-header .site-nav a[aria-current="page"] { color: var(--yellow); text-decoration: none; }
  .site-header .site-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
  .primary-menu-contact { margin-top: 24px; }
  .site-header .site-nav .nav-cta {
    min-height: 54px;
    margin: 0;
    padding: 15px 20px;
    border: 1px solid var(--yellow);
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
  }
  html.beyond-menu-open,
  html.beyond-menu-open body { overflow: hidden; overscroll-behavior: none; }
  .menu-open .back-to-top { visibility: hidden; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header .header-inner { width: calc(100% - 28px); gap: 8px; min-height: 74px; }
  .site-header .brand-logo-final { width: clamp(132px, 44vw, 190px); }
  .header-tools { gap: 6px; }
  .language-switch a { width: 44px; }
  .site-header .site-nav {
    top: var(--beyond-header-bottom, 74px);
    height: calc(100vh - var(--beyond-header-bottom, 74px));
    height: calc(100dvh - var(--beyond-header-bottom, 74px));
    max-height: calc(100dvh - var(--beyond-header-bottom, 74px));
    padding-top: 24px;
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { gap: 10px; }
}

@media (max-width: 1199px) and (max-height: 480px) {
  .site-header .header-inner { min-height: 66px; }
  .site-header .brand-logo-final { width: 175px; }
  .site-header .site-nav { padding-top: 16px; }
  .menu-panel-title { margin-bottom: 6px; }
  .site-header .site-nav a { min-height: 50px; padding-block: 12px; font-size: 20px; }
  .primary-menu-contact { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .menu-toggle span { transition: none; }
}
