/* Universal Header — layout adapted from the ERG header.
   All colors come from CSS variables set inline on .uh-header (which in turn
   default to Elementor global colors, overridable in Settings > Universal Header). */
.uh-header {
  --uh-radius: 999px;
  --uh-shadow: 0 6px 20px rgba(0,0,0,0.10);
  position: relative;
  width: 100%;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.uh-header.is-sticky { position: sticky; top: 0; z-index: 999; }
.uh-header, .uh-header * { box-sizing: border-box; }
.uh-header ul { list-style: none; margin: 0; padding: 0; }
.uh-header a { text-decoration: none; }

/* An ancestor with overflow:hidden disables position:sticky; clip keeps
   sideways-scroll prevention without creating a scroll container. */
.uh-sticky-fix, .uh-sticky-fix body { overflow-x: clip !important; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.uh-topbar {
  background: var(--uh-topbar-bg);
  color: var(--uh-topbar-text);
}
.uh-topbar__inner {
  max-width: var(--uh-max, 1580px);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.uh-topbar__logo { flex: 0 0 auto; }
.uh-topbar__logo img {
  display: block;
  height: var(--uh-logo-h, 120px) !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  flex: none;
}
.uh-topbar__facts {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}
.uh-fact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}
.uh-fact svg { width: 24px; height: 24px; flex: 0 0 auto; }
.uh-topbar__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.uh-topbar__social a {
  color: var(--uh-topbar-text);
  display: inline-flex;
  transition: opacity .15s ease;
}
.uh-topbar__social a:hover { opacity: .75; }
.uh-topbar__social svg { width: 22px; height: 22px; }

/* ==========================================================================
   Nav bar
   ========================================================================== */
.uh-navbar { background: var(--uh-nav-bg); }
.uh-navbar__inner {
  max-width: var(--uh-max, 1580px);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.uh-menu-wrap { flex: 1 1 auto; }
.uh-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  background: var(--uh-menu-bg);
  border-radius: var(--uh-radius);
  padding: 8px 16px;
}
.uh-menu > li { position: relative; }
.uh-menu > li > a,
.uh-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--uh-nav-text);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: .01em;
  padding: 12px 18px;
  white-space: nowrap;
  border-radius: var(--uh-radius);
  transition: background .15s ease, color .15s ease;
}
.uh-menu > li > a:hover {
  background: var(--uh-accent);
  color: var(--uh-accent-text, #fff);
}
.uh-menu > li.current-menu-item > a,
.uh-menu > li.current-menu-parent > a,
.uh-menu > li.current-menu-ancestor > a,
.uh-menu .sub-menu > li.current-menu-item > a {
  background: var(--uh-active-bg);
  color: var(--uh-active-text, #fff);
}
.uh-menu .menu-item-has-children > a::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-top: -3px;
}
.uh-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--uh-nav-bg);
  border-radius: 14px;
  box-shadow: var(--uh-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 50;
}
.uh-menu li:hover > .sub-menu,
.uh-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.uh-menu .sub-menu li { width: 100%; }
.uh-menu .sub-menu a {
  width: 100%;
  border-radius: 10px;
  font-size: 0.95rem;
  padding: 10px 14px;
}
.uh-menu .sub-menu a:hover { background: var(--uh-menu-bg); }
.uh-menu .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); }

/* Actions cluster */
.uh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.uh-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--uh-nav-text);
  font-weight: 800;
  font-size: 1.25rem;
  white-space: nowrap;
}
.uh-phone svg { width: 24px; height: 24px; }
.uh-phone:hover { color: var(--uh-accent); }
.uh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--uh-button-bg);
  color: var(--uh-button-text) !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 16px 28px;
  border-radius: var(--uh-radius);
  white-space: nowrap;
  border: 2px solid var(--uh-button-bg);
  transition: background .15s ease, transform .05s ease, opacity .15s ease;
}
.uh-btn svg { width: 18px; height: 18px; }
.uh-btn:hover { opacity: .9; }
.uh-btn:active { transform: translateY(1px); }
.uh-btn--outline {
  background: transparent;
  color: var(--uh-button-bg) !important;
  border-color: var(--uh-button-bg);
}
.uh-btn--outline:hover { background: var(--uh-button-bg); color: var(--uh-button-text) !important; opacity: 1; }

/* Hamburger */
.uh-header .uh-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  max-width: 48px;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--uh-accent);
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  line-height: 0;
  cursor: pointer;
  flex: 0 0 48px;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.uh-toggle:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.uh-toggle span {
  display: block;
  width: 24px; height: 3px;
  margin: 0 auto;
  background: var(--uh-nav-text);
  border-radius: 3px;
  transition: transform .28s cubic-bezier(.68,-0.55,.27,1.55), opacity .2s ease, background .25s ease;
}
.uh-header.is-open .uh-toggle { background: var(--uh-active-bg); }
.uh-header.is-open .uh-toggle span { background: var(--uh-active-text, #fff); }
.uh-header.is-open .uh-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.uh-header.is-open .uh-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.uh-header.is-open .uh-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .uh-fact { font-size: 1rem; }
  .uh-menu { gap: 8px; padding: 8px 14px; }
  .uh-menu > li > a { padding: 10px 13px; font-size: 1rem; }
}
@media (max-width: 992px) {
  .uh-header .uh-toggle { display: flex; }
  .uh-topbar__inner { padding: 8px 16px; gap: 14px; flex-wrap: nowrap; }
  .uh-topbar__logo img { height: calc(var(--uh-logo-h, 120px) * 0.55) !important; }
  .uh-topbar__facts { flex-direction: row; align-items: center; gap: 16px; }
  .uh-fact { font-size: 0.82rem; }
  .uh-fact svg { width: 18px; height: 18px; }

  .uh-navbar__inner { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }

  .uh-menu-wrap {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .uh-header.is-open .uh-menu-wrap {
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .uh-menu {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
    margin-top: 6px;
  }
  .uh-menu > li > a { justify-content: space-between; }
  .uh-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 4px 0 4px 14px;
    min-width: 0;
  }
  .uh-menu .menu-item-has-children > a::after { margin-left: auto; }
  .uh-actions { margin-left: auto; }
  .uh-phone span { display: none; }
}
@media (max-width: 560px) {
  .uh-topbar__inner { gap: 10px; }
  .uh-topbar__logo img { height: calc(var(--uh-logo-h, 120px) * 0.45) !important; }
  .uh-topbar__facts { flex: 1 1 auto; min-width: 0; gap: 10px; overflow: hidden; }
  .uh-fact { font-size: 0.72rem; }
  .uh-fact svg { width: 15px; height: 15px; }
  .uh-topbar__social { display: none; }
  .uh-navbar__inner { padding: 8px 12px; }
  .uh-btn { padding: 11px 16px; font-size: 0.88rem; }
  .uh-phone { font-size: 1rem; }
}
