/*
Theme Name: LDF Coach
Theme URI: https://lisadfostercoach.com/
Description: Hello Elementor child theme for Lisa D. Foster Coach migration (staging build).
Author: LDF Coach Dev
Template: hello-elementor
Version: 1.0.1
Text Domain: ldf-coach
*/

/* Mobile header: compact burger + left off-canvas (#ldf-topmenu) */
@media (max-width: 1024px) {
  #ldf-topmenu {
    width: auto !important;
    max-width: none !important;
    align-self: center !important;
  }

  #ldf-topmenu .elementor-menu-toggle {
    width: 40px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    background-color: #005c7c !important;
    border-radius: 2px;
    box-sizing: border-box;
    line-height: 1 !important;
  }

  #ldf-topmenu .elementor-menu-toggle i,
  #ldf-topmenu .elementor-menu-toggle svg {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    margin: 0 !important;
    fill: #b89d6a !important;
  }

  #ldf-topmenu .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: min(300px, 86vw) !important;
    max-width: 300px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 88px 20px 32px !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18) !important;
    transform: translateX(-110%);
    transition: transform 0.28s ease, visibility 0.28s ease;
    visibility: hidden;
    pointer-events: none;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 100000;
    display: block !important;
  }

  #ldf-topmenu .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  #ldf-topmenu .elementor-nav-menu--dropdown .elementor-item {
    display: block;
    padding: 12px 8px !important;
    border-bottom: 1px solid #eeeeee;
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-weight: 500;
  }

  #ldf-topmenu .elementor-nav-menu--dropdown .elementor-item:hover,
  #ldf-topmenu .elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
    color: #b89d6a !important;
  }

  #ldf-topbar .e-con-inner,
  #ldf-topbar > .e-con {
    align-items: center !important;
  }
}

body:has(#ldf-topmenu .elementor-menu-toggle.elementor-active)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  pointer-events: none;
}
