/* Sticky header — United VAT menubar on all pages */
.header.header-one {
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  isolation: isolate;
}

.header-one .header-main {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 12px rgba(61, 15, 17, 0.06);
}

/* ── Mobile header bar: logo + hamburger alignment (all pages) ── */
@media screen and (max-width: 991px) {
  .header.header-one {
    position: sticky;
    top: 0;
    z-index: 99999;
    isolation: isolate;
  }

  .header-one .header-main {
    z-index: 99999;
  }

  .header-one .header-main > .container,
  .header-one .header-main > .w-container {
    padding-top: 0;
    padding-bottom: 0;
  }

  .header-one .uv-navbar.w-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    height: 72px !important;
    min-height: 72px;
    max-height: 72px;
    position: relative;
    width: 100%;
  }

  .header-one .uv-navbar.w-nav::before,
  .header-one .uv-navbar.w-nav::after {
    display: none !important;
    content: none !important;
  }

  .header-one .logo-link.w-nav-brand {
    float: none !important;
    order: 0;
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    justify-content: flex-start;
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
    max-height: 44px;
    line-height: 1 !important;
    z-index: 100002;
  }

  .header-one .logo {
    display: block !important;
    height: 38px !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: unset !important;
  }

  .header-one .uv-header-actions,
  .header-one .header-right-content.uv-header-actions {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    justify-content: flex-end;
    flex: 0 0 auto;
    order: 2;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    gap: 0;
    z-index: 100002;
  }

  .header-one .menu-button,
  .header-one .uv-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    order: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(61, 15, 17, 0.12);
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }

  .header-one .uv-menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 24px;
    grid-row-gap: 5px;
    margin: 0;
  }

  .header-one .uv-nav-menu {
    float: none !important;
    flex: 0 0 auto !important;
    order: 3;
    z-index: 100001;
    background-color: #ffffff !important;
  }

  .header-one .uv-nav-backdrop {
    z-index: 100000;
  }

  .header-one .uv-nav-list {
    background: #ffffff !important;
  }

  .header-one .uv-nav-item,
  .header-one .uv-nav-link {
    background-color: #ffffff;
  }

  /* Keep the full hamburger panel scrollable when Solutions accordion expands */
  .header-one .uv-nav-menu,
  .header-one .uv-nav-menu.uv-nav-open {
    position: fixed !important;
    top: 72px !important;
    left: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    max-height: calc(100vh - 88px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 28px !important;
    transform: none !important;
  }

  /* Never show the desktop Solutions megamenu card on mobile */
  .header-one .uv-solutions-desktop-only,
  .header-one .uv-solutions-megamenu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: static !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  .header-one .uv-solutions-mobile-only {
    display: block !important;
    width: 100%;
  }

  .header-one .uv-solutions-mobile-accordion {
    list-style: none;
    margin: 0;
    padding: 4px 0 10px;
    width: 100%;
  }

  .header-one .uv-solutions-mobile-accordion__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .header-one .uv-solutions-mobile-accordion__item:last-child {
    border-bottom: none;
  }

  .header-one .uv-solutions-mobile-accordion__link {
    display: block;
    width: 100%;
    padding: 12px 12px 12px 20px;
    font-size: 14px;
    line-height: 1.4;
    color: #381e1f;
    text-decoration: none;
    background: #faf7f7;
    border-radius: 6px;
    margin: 4px 0;
  }

  .header-one .uv-solutions-mobile-accordion__link:hover,
  .header-one .uv-solutions-mobile-accordion__link:active {
    color: #c02026;
    background: #f7f0f0;
  }

  .header-one .uv-nav-item--solutions.is-open .uv-nav-link--solutions::after {
    transform: rotate(180deg);
  }
}

@media screen and (min-width: 992px) {
  .header-one .uv-solutions-mobile-only,
  .header-one .uv-solutions-mobile-accordion {
    display: none !important;
  }

  .header-one .uv-solutions-desktop-only {
    display: contents;
  }
}

@supports (height: 100dvh) {
  @media screen and (max-width: 991px) {
    .header-one .uv-nav-menu,
    .header-one .uv-nav-menu.uv-nav-open {
      max-height: calc(100dvh - 88px) !important;
    }
  }
}

@media screen and (max-width: 479px) {
  .header-one .uv-navbar.w-nav {
    height: 64px !important;
    min-height: 64px;
    max-height: 64px;
    gap: 10px;
  }

  .header-one .logo {
    height: 34px !important;
  }

  .header-one .menu-button,
  .header-one .uv-menu-toggle {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    min-height: 42px;
  }

  .header-one .uv-nav-menu,
  .header-one .uv-nav-menu.uv-nav-open {
    top: 64px !important;
    max-height: calc(100vh - 80px) !important;
  }
}

@supports (height: 100dvh) {
  @media screen and (max-width: 479px) {
    .header-one .uv-nav-menu,
    .header-one .uv-nav-menu.uv-nav-open {
      max-height: calc(100dvh - 80px) !important;
    }
  }
}
