@media (max-width: 767px) {

  .chm-mobile-header-wrap { position: relative; z-index: 300; }

  .chm-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 350;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }

  /* WP admin bar handling */
  body.admin-bar .chm-mobile-header { top: 32px; }
  @media (max-width: 782px) {
    body.admin-bar .chm-mobile-header { top: 46px; }
  }

  .chm-mobile-logo img { max-width: 140px; height: auto; display: block; }

  .mobile-menu__opener {
    position: relative;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    z-index: 400;
    background: none;
    border: 0;
    padding: 0;
  }

  /* Hamburger bars */
  .mobile-menu__opener span,
  .mobile-menu__opener::before,
  .mobile-menu__opener::after {
    position: absolute;
    left: 50%;
    width: 32px;
    height: 4px;
    background: #33414a;
    border-radius: 2px;
    content: '';
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
  }

  .mobile-menu__opener span { top: 50%; transform: translate(-50%, -50%); opacity: 0; }
  .mobile-menu__opener::before { top: 30%; }
  .mobile-menu__opener::after  { top: 63%; }

  .mobile-menu__opener.is-open::before { top: 50%; transform: translateX(-50%) rotate(45deg); }
  .mobile-menu__opener.is-open::after  { top: 50%; transform: translateX(-50%) rotate(-45deg); }

  .mobile-menu__screen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 340;
  }

  /* Menu panel */
  .menu {
    position: fixed;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 345;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.35s ease, opacity 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* top offset for header + admin bar */
  .menu {
    top: 100px;
    height: calc(100vh - 100px);
	background: #0b143d;
  }
  body.admin-bar .menu { top: calc(100px + 32px); height: calc(100vh - (100px + 32px)); }
  @media (max-width: 782px) {
    body.admin-bar .menu { top: calc(100px + 46px); height: calc(100vh - (100px + 46px)); }
  }

  .menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .menu__inner { padding: 2em 1.5em; }

  .menu__item {
    display: block;
    width: 100%;
    text-align: left;
	font-family: "DroidSans-Bold", "Droid Sans", Arial, sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    padding: 0.5em 0.25em;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .sub-menu {
    display: none;
    margin-left: 0;
    padding-left: 1em;
    border-left: 2px solid #ddd;
    background: #fafafa;
    width: 100%;
  }

  .submenu-arrow {
    font-family: 'ETmodules';
    font-size: 1em !important;
    float: right;
    transition: transform 0.2s ease;
    color: #D83D2E !important;
  }

  .submenu-arrow.open { transform: rotate(90deg); }

  /* Scroll lock (this is the important part) */
  body.chm-menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

/* Links inside menu inherit the same styling */
  #chm-mobile-menu a.menu__item,
  #chm-mobile-menu button.menu__item {
    color: #fff;
    font-family: "DroidSans-Bold", "Droid Sans", Arial, sans-serif;
    font-size: 1.8em;
    font-weight: 700;
  }

  /* Active/current page item */
  #chm-mobile-menu .menu__item_active,
  #chm-mobile-menu .current-menu-item > a.menu__item,
  #chm-mobile-menu .current-menu-item > button.menu__item {
    color: #d11e48 !important;
  }

  /* Submenu container + submenu item sizing */
  .sub-menu {
    background: rgba(255,255,255,0.06);
    border-left: 2px solid rgba(255,255,255,0.22);
  }

  .sub-menu .menu__item {
    font-size: 1.2em; /* larger than before, but slightly smaller than top-level */
    color: #fff;
  }

  /* Arrow color on dark background */
  .submenu-arrow {
    color: #fff !important;
  }
 	
}

/* Optional: hide Divi header elements while open */
body.chm-menu-open .et_pb_menu,
body.chm-menu-open .et_pb_image {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.chm-menu-cta {
  margin-top: 1.25rem;
  padding: 1.1rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(216, 61, 46, 0.10), rgba(51, 65, 74, 0.06));
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.chm-menu-cta__label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.chm-menu-cta__phone {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #D83D2E;
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.chm-menu-cta__phone:active {
  transform: scale(0.99);
}

.chm-menu-cta__button {
  display: block;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: #d11e48; 
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 16px rgba(51, 65, 74, 0.20);
}

.chm-menu-cta__button:active {
  transform: translateY(1px);
}

  .chm-mobile-tagline {
    flex: 1;
    text-align: left;
    font-style: italic;
    padding: 0 10px;
    font-family: 'Montserrat', sans-serif;
    color: #d11e48;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.15;

    /* allow 2 lines max */
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }


