/* =============================================
   PM Capital — Mobile Menu CSS
   Enqueue via wp_enqueue_style() in functions.php
   ============================================= */

/* Hamburger toggle button */
.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a2e44;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}
.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay backdrop */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 60, 0.55);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.is-open {
  display: block;
}
.mobile-menu-overlay.is-visible {
  opacity: 1;
}

/* Main panel */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.mobile-menu-panel.is-open {
  transform: translateX(0);
}

/* Panel header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.mobile-menu-logo img,
.mobile-menu-logo svg {
  width: auto;
  /* height: 36px; */
  max-width: 160px;
  flex-shrink: 0;
}

/* Close button */
.mobile-menu-close {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  font-family: inherit;
}
.mobile-menu-close svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Screens container */
.mobile-menu-screens {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Individual screen */
.mobile-menu-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  transform: translateX(0); /* root: visible by default */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  background: #fff; /* prevents bleed-through */
  will-change: transform;
}

/* Root slides OUT to the left when a child opens */
.mobile-menu-screen.slide-out-left {
  transform: translateX(-100%) !important;
}

/* Every submenu screen starts hidden to the RIGHT */
.mobile-menu-screen.submenu-screen {
  transform: translateX(100%);
}

/* Active submenu slides IN from the right */
.mobile-menu-screen.submenu-screen.is-active {
  transform: translateX(0);
}

/* Scrollbar */
.mobile-menu-screen::-webkit-scrollbar {
  width: 4px;
}
.mobile-menu-screen::-webkit-scrollbar-track {
  background: transparent;
}
.mobile-menu-screen::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

/* Back row */
.mobile-menu-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: inherit;
}
.mobile-menu-back svg {
  width: 14px;
  height: 14px;
}

.mobile-menu-back-title {
  font-family: inherit;
  font-size: 15px;
  /*font-weight: 700;*/
  color: #1a2e44;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0;
  padding: 0 0px 0px;
}
.mobile-menu-back-title a{
    text-decoration: none;
}
/* Menu list resets */
.mobile-menu-panel .menu,
.mobile-menu-panel .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.mobile-menu-panel .menu > li,
.mobile-menu-panel .sub-menu > li {
  border-bottom: 1px solid #f2f2f2;
}
.mobile-menu-panel .menu > li:first-child,
.mobile-menu-panel .sub-menu > li:first-child {
  border-top: 1px solid #f2f2f2;
}

/* Item links and buttons */
.mobile-menu-panel .menu > li > a,
.mobile-menu-panel .menu > li > .menu-item-has-children-trigger,
.mobile-menu-panel .sub-menu > li > a,
.mobile-menu-panel .sub-menu > li > .menu-item-has-children-trigger,
.mobile-menu-back-title a
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 28px;
  text-decoration: none;
  color: #1a2e44;
  font-size: 16px;
  font-family: inherit;
  font-weight: 400;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  box-sizing: border-box;
  line-height: 1.3;
}
.mobile-menu-panel .menu > li > a:hover,
.mobile-menu-panel .menu > li > .menu-item-has-children-trigger:hover,
.mobile-menu-panel .sub-menu > li > a:hover,
.mobile-menu-panel .sub-menu > li > .menu-item-has-children-trigger:hover {
  background: #fafafa;
}

/* Active/current item */
.mobile-menu-panel .current-menu-item > a,
.mobile-menu-panel .current-menu-ancestor > a,
.mobile-menu-panel .current-menu-item > .menu-item-has-children-trigger,
.mobile-menu-panel .current-menu-ancestor > .menu-item-has-children-trigger {
  font-weight: 700;
}

/* Chevron */
.menu-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #c0392b;
}

/* Footer */
.mobile-menu-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.mobile-menu-cta {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 2px;
  margin-bottom: 16px;
  transition: background 0.2s ease;
}
.mobile-menu-cta:hover {
  background: #a93226;
}

/* Search */
.mobile-menu-search {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}
.mobile-menu-search input[type="search"],
.mobile-menu-search input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  font-family: inherit;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.mobile-menu-search button {
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
}
.mobile-menu-search button:hover {
  color: #1a2e44;
}

@media (max-width: 767px) {
  #navigations ul.menu li.header-top-contact a {
    margin-top: 22px;
    margin-bottom: 22px;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;
    border: 0;
    background-color: #EE464C;
    border-radius: 2px;
    color: #ffffff;
    padding: 9px 15px;
    border-radius: 0;
    height: 100%;
    display: inline-block;
    
    text-transform: uppercase;
    background-image: none;
    max-width: 150px;
  }
  #navigations ul.menu .header-top-contact {
    margin-left: 24px;
    margin-right: 24px;
  }
  ul.menu > li.menu-item a.pm-popup{
      display: flex;
  }
  ul.menu > li.menu-item a.pm-popup svg polyline{
      stroke:#c0392b;
  }
}