@import url("./site-baseline.css");

/* Shared, widget-driven top bar. Existing Figma colors, fonts and container widths remain unchanged. */
.nr-site-header .nr-topbar {
  display: block;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font: 400 16px/1.5 var(--nr-body);
  text-transform: none;
}
.nr-site-header .nr-topbar .nr-topbar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px),1480px);
  min-height: 45px;
  padding: 9px 0;
}
.nr-site-header .nr-topbar-slot,
.nr-site-header .nr-topbar-contact { display: flex; align-items: center; min-width: 0; }
.nr-site-header .nr-topbar-location { gap: 11px; margin-right: auto; }
.nr-site-header .nr-topbar-contact { justify-content: flex-end; gap: clamp(14px,1.45vw,28px); }
.nr-site-header .nr-topbar-pin { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.nr-site-header .nr-topbar-widget { margin: 0; padding: 0; min-width: 0; }
.nr-site-header .nr-topbar-widget p { margin: 0; padding: 0; font-size: 16px; line-height: 1.5; white-space: nowrap; }
.nr-site-header .nr-topbar-widget a { color: inherit; text-decoration: none; }
.nr-site-header .nr-topbar-widget a:hover,
.nr-site-header .nr-topbar-widget a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.nr-site-header .nr-topbar-widget .nr-topbar-label { margin-right: 3px; opacity: .85; }
@media (max-width: 1179px) {
  .nr-site-header .nr-topbar .nr-topbar-inner { flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 7px 0; }
  .nr-site-header .nr-topbar-location { margin-right: 0; }
  .nr-site-header .nr-topbar-contact { flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
}
@media (max-width: 767px) {
  .nr-site-header {
    width: 100vw;
    max-width: none;
    margin: 0;
  }
  .nr-site-header .nr-topbar {
    width: 100%;
    max-width: none;
  }
  .nr-site-header .nr-topbar .nr-topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    width: calc(100% - 36px);
    max-width: none;
    margin-inline: auto !important;
    min-height: 0;
    padding: 8px 0;
    gap: 12px;
  }
  .nr-site-header .nr-topbar-location,
  .nr-site-header .nr-topbar-mobile { display: none; }
  .nr-site-header .nr-topbar-contact {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
  }
  .nr-site-header .nr-topbar-contact .nr-topbar-slot {
    width: 100%;
    justify-content: flex-start;
  }
  .nr-site-header .nr-topbar-widget p {
    font-size: 16px;
    text-align: left;
  }
  .nr-site-header .nr-topbar-social {
    display: flex !important;
    justify-content: flex-end !important;
    width: auto !important;
    margin-left: auto;
  }
  .nr-site-header .nr-topbar-social .nr-social-links--top {
    display: grid;
    grid-template-columns: repeat(2, 24px);
    align-items: center;
    justify-content: end;
    gap: 7px;
    width: 55px;
  }
  .nr-site-header .nr-topbar-social .nr-social-link {
    display: inline-flex;
    width: 24px;
    min-width: 24px;
    margin: 0;
  }
}

/* WordPress-owned nested menu: compact language label, dropdown on hover or keyboard focus. */
.nr-site-header .nr-nav .nr-menu li.menu-item-has-children { position: relative; }
@media (min-width: 1180px) {
  .nr-site-header .nr-nav .nr-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 105px;
    margin: 0;
    padding: 7px 0;
    list-style: none;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(1,35,65,.97);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  }
  .nr-site-header .nr-nav .nr-menu li:hover > .sub-menu,
  .nr-site-header .nr-nav .nr-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nr-site-header .nr-nav .nr-menu .sub-menu li { margin: 0; width: 100%; }
  .nr-site-header .nr-nav .nr-menu .sub-menu a {
    display: block;
    padding: 10px 15px;
    white-space: nowrap;
    text-align: left;
    color: #fff;
  }
  .nr-site-header .nr-nav .nr-menu .sub-menu a:hover,
  .nr-site-header .nr-nav .nr-menu .sub-menu a:focus-visible {
    background: rgba(255,255,255,.12);
    text-decoration: none;
  }
  .nr-site-header .nr-nav .nr-menu .sub-menu .sub-menu { top: 0; left: 100%; }
  .nr-site-header .nr-nav-right .nr-menu > li:last-child > .sub-menu { left: auto; right: 0; }
}
@media (max-width: 1179px) {
  /* Inside the burger, expose language choices directly: touch needs no hover. */
  .nr-site-header .nr-responsive-nav .nr-menu .sub-menu {
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
    background: transparent;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nr-site-header .nr-responsive-nav .nr-menu .sub-menu li { width: 100%; }
  .nr-site-header .nr-responsive-nav .nr-menu .sub-menu a { display: block; padding: 12px 4px; color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .nr-site-header .nr-nav .nr-menu .sub-menu { transition: none; }
}
