/* ===================================================
   GAIATECH MOBILE NAVIGATION SYSTEM
   Clean Sandwich Menu & Slide-out Drawer
   =================================================== */

/* Top Mobile Bar elements */
.detail-mobile-menu,
.institutional-mobile-menu {
  display: none !important;
}

.mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 1024px) {
  .mobile-nav-actions {
    display: none !important;
  }
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="light"] .mobile-menu-toggle {
  background: rgba(12, 25, 34, 0.05);
  border-color: rgba(12, 25, 34, 0.14);
  color: #0c1922;
}
.mobile-menu-toggle:active {
  transform: scale(0.94);
  background: rgba(118, 163, 79, 0.2);
  border-color: #76A34F;
}

/* Mobile Drawer Overlay */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 10, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Panel */
.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86vw;
  max-width: 380px;
  background: #080f14;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.55);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
[data-theme="light"] .mobile-drawer-panel {
  background: #ffffff;
  border-left-color: #e2e8f0;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.15);
}
.mobile-drawer-backdrop.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

/* Drawer Header */
.mobile-drawer-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .mobile-drawer-header {
  border-bottom-color: #f1f5f9;
}
.mobile-drawer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="light"] .mobile-drawer-close {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0c1922;
}

/* Drawer Content Links */
.mobile-drawer-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
[data-theme="light"] .mobile-nav-link {
  color: #0f172a;
}
.mobile-nav-link i {
  color: #76A34F;
  width: 18px;
  text-align: center;
  font-size: 15px;
}
.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(118, 163, 79, 0.12);
  color: #76A34F;
}

/* Services Dropdown in Mobile Drawer */
.mobile-services-accordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .mobile-services-accordion {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.mobile-services-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
[data-theme="light"] .mobile-services-summary {
  color: #0f172a;
}
.mobile-services-summary::-webkit-details-marker {
  display: none;
}
.mobile-services-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-services-summary-left i {
  color: #76A34F;
  width: 18px;
  text-align: center;
}
.mobile-services-list {
  padding: 6px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .mobile-services-list {
  border-top-color: #f1f5f9;
}
.mobile-service-category-title {
  font-size: 10px;
  font-weight: 800;
  color: #76A34F;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 2px;
  padding-left: 6px;
}
.mobile-service-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease;
}
[data-theme="light"] .mobile-service-item {
  color: #475569;
}
.mobile-service-item:hover, .mobile-service-item:active {
  background: rgba(118, 163, 79, 0.1);
  color: #76A34F;
}

/* Drawer Footer */
.mobile-drawer-footer {
  padding: 18px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .mobile-drawer-footer {
  border-top-color: #f1f5f9;
}
.mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: #76A34F;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.mobile-drawer-cta:hover {
  opacity: 0.9;
}
