/* Mobile menu styles for ZPE Ceará theme */

.mobile-menu-container { position: relative; z-index: 2000; }

.mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 22px;
  padding: 8px 10px;
  color: #ffffff;
  border-radius: 6px;
  position: relative;
  z-index: 2001;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -110%;
  width: 94%;
  max-width: 420px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -6px 0 24px rgba(11, 36, 54, 0.28);
  overflow-y: auto;
  padding: 116px 32px 36px;
  border-radius: 26px 0 0 26px;
  transition: right 0.35s ease, opacity 0.35s ease;
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 4px;
  background: #1d9c9e;
  border-radius: 0 0 3px 3px;
}
.mobile-menu.active {
  right: 0;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: #ffffff;
  border-radius: 26px 0 0 0;
  box-shadow: 0 6px 16px rgba(7, 55, 72, 0.08);
}
.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
}
.mobile-menu-brand img {
  max-height: 48px;
  width: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 26px;
  color: #1d9c9e;
  transition: transform 0.3s ease, color 0.3s ease;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #ecba42;
  transform: rotate(90deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 33, 46, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1001;
}
.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu-items > li {
  margin: 0;
}
.mobile-menu-section-title {
  font-weight: 800;
  color: #1d9c9e;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.18em;
  margin: 0;
}
.mobile-menu-items li.mobile-menu-section-title {
  padding: 0;
  margin-top: 18px;
}
.mobile-menu-items li.mobile-menu-section-title:first-child {
  margin-top: 0;
}
.mobile-menu-items li {
  border: none;
}
.mobile-menu-items li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  color: #1d9c9e !important;
  background: #9aeded;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  box-shadow: 0 8px 22px rgba(9, 57, 74, 0.06), inset 0 0 0 1px rgba(29, 156, 158, 0.18);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.mobile-menu-items li a:hover,
.mobile-menu-items li a:focus {
  background: #8ee5e5;
  color: #1d9c9e !important;
  box-shadow: 0 12px 26px rgba(9, 57, 74, 0.12), inset 0 0 0 1px rgba(29, 156, 158, 0.28);
}
.mobile-menu-highlight a {
  background: #1d9c9e;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(29, 156, 158, 0.24);
}
.mobile-menu-highlight a:hover,
.mobile-menu-highlight a:focus {
  background: #17878a;
  color: #ffffff !important;
}

.mobile-submenu-toggle {
  margin-left: auto;
  border: none;
  background: rgba(29, 156, 158, 0.1);
  font-size: 14px;
  color: #1d9c9e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(29, 156, 158, 0.18);
}
.mobile-menu-items li.open > .mobile-submenu-toggle,
.mobile-submenu-toggle {
  display: none !important;
}
.mobile-submenu-toggle:hover,
.mobile-submenu-toggle:focus {
  background: rgba(29, 156, 158, 0.22);
  color: #0a2a43;
}

.mobile-menu-items li.menu-item-has-children > a {
  padding-right: 16px;
}
.mobile-menu-items li.menu-item-has-children > .sub-menu {
  display: block;
  padding: 10px 0 0;
  margin: 0;
  list-style: none;
}
.mobile-menu-items li.open > a {
  background: #1d9c9e;
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(10, 68, 86, 0.14), inset 0 0 0 2px rgba(29, 156, 158, 0.35);
}
.mobile-menu-items li.open > .sub-menu {
  display: block;
}
.mobile-menu-items .sub-menu li {
  margin: 8px 0 0;
}
.mobile-menu-items .sub-menu li a {
  background: #f4fcfc;
  color: #1d9c9e !important;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 12px 18px 12px 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(29, 156, 158, 0.18);
}
.mobile-menu-items .sub-menu li a:hover,
.mobile-menu-items .sub-menu li a:focus {
  background: #e1f5f5;
  color: #1d9c9e !important;
  box-shadow: inset 0 0 0 1px rgba(29, 156, 158, 0.28);
}

.mobile-menu-items .sub-menu a {
  padding-left: 28px;
}

@media (min-width: 992px) { .mobile-menu-container { display: none; } }

/* Oculta o menu de navegação padrão em telas pequenas para evitar duplicidade */
@media (max-width: 991px) {
  #nav { display: none; }
  /* Oculta ícones/headers do plugin WP Mobile Menu para manter apenas o menu do tema */
  .mobmenu-left-burger,
  .mobmenu-right-burger,
  .mobmenu-header-holder,
  .mobmenu-logo { display: none !important; }
}

/* Garante que elementos do plugin WP Mobile Menu não capturem toques/cliques */
.mobmenu-overlay,
.mobmenu-left-alignment,
.mobmenu-right-alignment,
.mob-menu-header-holder { display: none !important; }
