/* Mobile-only services nav inside hamburger drawer */
@media (min-width: 769px) {
  .mobile-services-nav {
    display: none !important;
  }
}

.mobile-services-nav {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

body.dark .mobile-services-toggle {
  color: #f9fafb;
}

.mobile-services-toggle i {
  font-size: 12px;
  transition: transform 0.25s ease;
  color: #dc2626;
}

.mobile-services-toggle.open i {
  transform: rotate(180deg);
}

.mobile-services-list {
  display: none;
  flex-direction: column;
  max-height: min(52vh, 360px);
  overflow-y: auto;
  margin: 2px 0 6px;
  padding: 4px 0 4px 10px;
  border-left: 2px solid #dc2626;
  scrollbar-width: thin;
}

.mobile-services-list.open {
  display: flex;
}

.mobile-services-list::-webkit-scrollbar {
  width: 4px;
}

.mobile-services-list::-webkit-scrollbar-thumb {
  background: rgba(220, 38, 38, 0.45);
  border-radius: 999px;
}

.mobile-services-list a {
  text-decoration: none;
  color: #4b5563;
  font-size: 13px;
  font-weight: 400;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.3;
}

.mobile-services-list a:last-child {
  border-bottom: none;
}

body.dark .mobile-services-list a {
  color: #d1d5db;
  border-bottom-color: #374151;
}

.mobile-services-list a:active,
.mobile-services-list a:hover {
  color: #dc2626;
}

@media (max-width: 768px) {
  .mobile-menu {
    width: min(100vw, 300px);
    overflow-y: auto;
  }

  .mobile-links {
    gap: 16px;
  }
}
