/* Mobile Menu Styles with unique class names */
.mob-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  font-family: PPNeueMontreal-Regular, sans-serif;
}

.mob-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mob-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: #fff;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Prevent scrolling issues */
}

.mob-menu-container.active {
  transform: translateX(0);
}

.mob-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mob-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mob-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.mob-home-link,
.mob-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
}

.mob-home-link svg,
.mob-menu-close svg {
  width: 24px;
  height: 24px;
}

.mob-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.mob-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mob-nav a {
  display: block;
  padding: 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
  width: 100%;
  font-family: PPNeueMontreal-Regular, sans-serif;
}

.mob-nav a:hover {
  background-color: #f5f5f5;
}

.mob-menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: PPNeueMontreal-Regular, sans-serif;
}

.mob-menu-icon {
  margin-right: 12px;
  font-size: 18px;
  color: #666;
}

.mob-arrow-right {
  margin-left: auto;
  font-size: 24px;
  color: #666;
}

.mob-menu-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mob-contact-btn,
.mob-company-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.mob-contact-btn {
  background-color: #ad2324;
  color: white;
}

.mob-company-profile {
  border: 1px solid #333;
  color: #333;
}

.mob-contact-btn svg,
.mob-company-profile svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu View System - More specific styling */
.mob-menu-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: none; /* Hidden by default */
  flex-direction: column;
  z-index: 1;
}

/* Use ID selectors for stronger specificity */
#crux-mob-main-menu-view,
#crux-mob-who-we-are-view,
#crux-mob-what-we-do-view,
#crux-mob-insights-view,
#crux-mob-supply-chain-solutions-view,
#crux-mob-advisory-consulting-view {
  display: none; /* Initially hidden */
}

/* The view that should be visible will have display:flex set via JS */

.mob-menu-header.with-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
}

.mob-menu-header h2 {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-family: PPNeueMontreal-Regular, sans-serif;
}

.mob-back-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #555;
  font-size: 16px;
  font-family: PPNeueMontreal-Regular, sans-serif;
}

.mob-back-icon {
  font-size: 24px;
  margin-right: 4px;
}

/* Simplified icons */
.mob-icon-home,
.mob-icon-close {
  font-size: 24px;
  line-height: 1;
}

.mob-icon-close {
  font-size: 32px;
  font-weight: bold;
}

.mob-arrow-icon {
  display: inline-block;
  margin-left: 8px;
}

/* Media Queries */
@media (max-width: 991px) {
  .main-nav,
  .contact-btn {
    display: none;
  }

  .mob-menu-toggle {
    display: flex;
  }

  .main-header {
    justify-content: space-between;
  }

  body.mob-menu-open {
    overflow: hidden;
  }
}
