/* ==========================================================================
   MOBILE MENU OVERLAY
   Body-level overlay, independent from the Elementor header context.
   ========================================================================== */

button.mo-menu-button,
.mo-mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  /* Clip decorative overflow so fixed elements align with the visual viewport. */
  html,
  body {
    overflow-x: hidden;
  }

  @supports (overflow-x: clip) {
    html,
    body {
      overflow-x: clip;
    }
  }

  /* Keep the Elementor widget slot, hide its own menu/toggle, and place the
     custom button in the header menu area instead of a floating button. */
  [data-elementor-id="12721"] .elementor-element-5adcc223 .elementor-widget-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  [data-elementor-id="12721"] .elementor-element-5adcc223 .elementor-menu-toggle,
  [data-elementor-id="12721"] .elementor-element-5adcc223 .elementor-nav-menu__container {
    display: none !important;
  }

  button.mo-menu-button.mo-menu-button--in-header {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    color: #FFFFFF;
    background: transparent;
    border: 0;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  button.mo-menu-button.mo-menu-button--in-header:hover,
  button.mo-menu-button.mo-menu-button--in-header:focus,
  button.mo-menu-button.mo-menu-button--in-header:focus-visible {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.16);
    border-color: transparent;
  }

  .mo-menu-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .mo-menu-button:focus-visible,
  .mo-mobile-menu__close:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
  }

  .mo-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: #FFFFFF;
    background: #0E1520;
  }

  .mo-mobile-menu.is-open {
    display: block;
  }

  .mo-mobile-menu__top {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: #0E1520;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mo-mobile-menu__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #FFFFFF;
    text-decoration: none;
  }

  .mo-mobile-menu__logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: 150px;
    object-fit: contain;
  }

  button.mo-mobile-menu__close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    color: #FFFFFF;
    background: #008D48;
    border: 1px solid #008D48;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  button.mo-mobile-menu__close:hover,
  button.mo-mobile-menu__close:focus,
  button.mo-mobile-menu__close:focus-visible {
    color: #FFFFFF;
    background: #007A3E;
    border-color: #007A3E;
  }

  .mo-mobile-menu__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  .mo-mobile-menu__nav {
    padding: 0 0 40px;
  }

  .mo-menu,
  .mo-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mo-menu {
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 20px 0;
  }

  .mo-menu > li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mo-menu > li > a {
    display: block;
    padding: 17px 52px 17px 4px;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.18s ease;
  }

  .mo-menu > li > a:active,
  .mo-menu > li.mo-submenu-open > a {
    color: #33A76E;
  }

  .mo-menu .sub-menu {
    max-height: 0;
    margin-left: 4px;
    padding-left: 14px;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height 0.28s ease;
  }

  .mo-menu .sub-menu a {
    display: block;
    padding: 11px 12px;
    color: #CBD5E1;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.18s ease, padding-left 0.18s ease;
  }

  .mo-menu .sub-menu a:active,
  .mo-menu .sub-menu li.current-menu-item > a {
    padding-left: 16px;
    color: #33A76E;
  }

  button.mo-submenu-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    color: #008D48;
    background: transparent;
    border: 0;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  button.mo-submenu-toggle:hover,
  button.mo-submenu-toggle:focus {
    color: #008D48;
    background: rgba(0, 141, 72, 0.14);
    border-color: transparent;
  }

  button.mo-submenu-toggle[aria-expanded="true"]:hover,
  button.mo-submenu-toggle[aria-expanded="true"]:focus {
    color: #008D48;
  }

  .mo-submenu-toggle svg {
    transition: transform 0.2s ease;
  }

  .mo-submenu-toggle[aria-expanded="true"] {
    color: #008D48;
  }

  .mo-submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(45deg);
  }

  .mo-submenu-toggle:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 0;
  }

  body.mo-menu-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }
}
