/* Custom Mobile Menu Styles */

.custom-mobile-menu-wrapper {
  position: relative;
  display: inline-block;
}

.menu-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  z-index: 99;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100svh;
  background-color: #1a9f7a;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99999;
  overflow-y: auto;
  padding: 20px 0;
  width: 320px;
  max-width: 85vw;
}

.custom-mobile-menu.active {
  transform: translateX(0);
}

.menu-close {
  background: transparent !important;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0 !important;
  line-height: 1;
}

.menu-close:hover {
  opacity: 0.8;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.menu-logo {
  flex: 1;
}

.menu-logo img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
}

.menu-logo-text {
  font-weight: bold;
  color: white;
  font-size: 24px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 25px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
  color: white;
}

.menu-item > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
  margin-left: 10px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.menu-item.has-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.menu-divider {
  margin: 30px 0;
  height: 1px;
  /* background: rgba(255, 255, 255, 0.1); */
}

.submenu {
  background-color: #1a9f7a;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu.active {
  max-height: 300px;
}

.submenu li {
  list-style: none;
}

.submenu a {
  display: block;
  padding: 15px 45px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.submenu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-bottom {
  margin-top: 30px;
  padding: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-icons {
  margin-bottom: 0;
}

.icon-item {
  margin-bottom: 12px;
}

.icon-item a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
  padding: 8px 0;
}

.icon-item a:hover {
  opacity: 0.8;
}

.icon-item .icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: white;
}

.icon-item .text {
  flex: 1;
  line-height: 1.4;
}

.icon-item .arrow {
  margin-left: auto;
  font-size: 16px;
  font-weight: bold;
}

/* Remove all contact info styles since we removed that section */

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-mobile-menu {
    width: 280px;
  }

  .menu-item > a {
    padding: 16px 20px;
    font-size: 15px;
  }

  .submenu a {
    padding: 12px 35px;
    font-size: 13px;
  }

  .menu-bottom {
    padding: 20px;
  }

  .icon-item a {
    font-size: 13px;
  }

  .menu-header {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .custom-mobile-menu {
    width: 90vw;
  }
}

/* Animation improvements */
.custom-mobile-menu * {
  box-sizing: border-box;
  border: none !important;
}

.menu-trigger {
  transition: all 0.3s ease;
}

.menu-item a {
  position: relative;
  overflow: hidden;
}

.menu-item a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.menu-item a:hover::before {
  left: 100%;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .menu-trigger {
    color: #ffffff;
  }
}

/* Print styles */
@media print {
  .custom-mobile-menu-wrapper {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .menu-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .menu-item {
    border-bottom-color: rgba(255, 255, 255, 0.3);
  }

  .menu-bottom {
    border-top-color: rgba(255, 255, 255, 0.3);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .custom-mobile-menu,
  .menu-overlay,
  .dropdown-arrow,
  .submenu,
  .menu-trigger,
  .menu-item a {
    transition: none;
  }
}

/* Focus styles for accessibility */
/* .menu-trigger:focus,
.menu-close:focus,
.menu-item a:focus,
.submenu a:focus,
.icon-item a:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
} */

/* Loading state */
.custom-mobile-menu.loading {
  opacity: 0.7;
  pointer-events: none;
}

.custom-mobile-menu.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dropdown-toggle::after {
  display: none !important;
}

.menu-close svg,
.dropdown-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
