/*
 * Targeted stability fixes kept separate from the Webflow export so they
 * survive future exports.
 */

/*
 * Webflow sets .body to overflow:hidden between 480px and 767px. On touch
 * devices in landscape this prevents the page itself from receiving a scroll.
 */
@media (min-width: 480px) and (max-width: 767px) {
  .body {
    overflow: visible !important;
  }
}

@media (max-width: 767px) {
  html {
    overflow-x: clip;
  }
}

/* The header stays transparent at the top. On scroll, only the content behind
 * the visible navigation is softened; there is no white surface behind it. */
.navbar1_component,
.navbar2_component {
  background-color: transparent;
  box-shadow: none;
  isolation: isolate;
  transition: none;
}

.navbar1_component::after,
.navbar2_component::after {
  background: transparent;
  bottom: -24px;
  content: "";
  display: block;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 220ms ease;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 35%,
    rgba(0, 0, 0, 0.72) 68%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 35%,
    rgba(0, 0, 0, 0.72) 68%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .navbar1_component.kitemi-header-is-scrolled.kitemi-header-nav-visible::after,
  .navbar2_component.kitemi-header-is-scrolled.kitemi-header-nav-visible::after {
    opacity: 1;
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
  }
}

.navbar1_component > .new-navbar,
.navbar2_component > .new-navbar-2 {
  position: relative;
  z-index: 1;
}

/* The smallest breakpoint has a white rounded navigation surface by default.
 * Remove that surface only in the scrolled state so it does not sit on top of
 * the full-width glass treatment. */
.navbar2_component.kitemi-header-is-scrolled .new-navbar-2 {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.kitemi-menu-toggle {
  display: none;
}

@media (max-width: 767px) {
  .navbar1_component .new-navbar,
  .navbar2_component .new-navbar-2 {
    position: relative;
  }

  .kitemi-menu-toggle {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(73, 104, 214, 0.48);
    border-radius: 8px;
    color: #4262ce;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    margin-left: 4px;
    padding: 0;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
    width: 44px;
  }

  .kitemi-menu-toggle:hover,
  .kitemi-menu-toggle[aria-expanded="true"] {
    background: #4262ce;
    border-color: #4262ce;
    color: #fff;
  }

  .kitemi-menu-toggle:focus-visible {
    outline: 3px solid rgba(66, 98, 206, 0.45);
    outline-offset: 3px;
  }

  .kitemi-menu-toggle-icon {
    height: 20px;
    width: 20px;
  }

  .navbar1_component .navbar1_menu-links,
  .navbar2_component .navbar1_menu-links-4 {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(73, 104, 214, 0.2);
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 16px 40px rgba(25, 38, 85, 0.16);
    display: none;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 0;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 100% !important;
    z-index: 10000;
  }

  .navbar1_component.kitemi-menu-open .navbar1_menu-links,
  .navbar2_component.kitemi-menu-open .navbar1_menu-links-4 {
    display: grid !important;
  }

  .navbar1_component .navbar1_menu-links .navbar1_link,
  .navbar2_component .navbar1_menu-links-4 .navbar1_link {
    align-items: center;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    text-align: center;
    white-space: normal;
  }

  .navbar1_component .navbar1_menu-links .navbar1_link:hover,
  .navbar1_component .navbar1_menu-links .navbar1_link:focus-visible,
  .navbar2_component .navbar1_menu-links-4 .navbar1_link:hover,
  .navbar2_component .navbar1_menu-links-4 .navbar1_link:focus-visible {
    background: rgba(66, 98, 206, 0.09);
    outline: none;
  }
}

@media (max-width: 599px) {
  .navbar1_component .navbar1_menu-links,
  .navbar2_component .navbar1_menu-links-4 {
    grid-template-columns: 1fr;
  }

  .navbar1_component .navbar1_menu-links .navbar1_link,
  .navbar2_component .navbar1_menu-links-4 .navbar1_link {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kitemi-menu-toggle,
  .navbar1_component,
  .navbar2_component,
  .navbar1_component::after,
  .navbar2_component::after {
    transition: none;
  }
}
