/* Mobile simple sub-menu — injected last so it wins the cascade */
html body .mobile-submenu { display: none; }

@media (max-width: 820px) {

  html body .site-header .nav-list > .nav-item > .mega-menu,
  html body .site-header .nav-list > .nav-item > .industries-mega-panel,
  html body .site-header .nav-list > .nav-item > .services-mega-panel,
  html body .site-header .nav-list > .nav-item > .solutions-mega-panel,
  html body .site-header .nav-list > .nav-item > .company-mega-panel,
  html body .site-header .nav-list > .nav-item > section,
  html body .site-header .nav-list > .nav-item > div {
    display: none !important;
  }


  html body .site-header .main-nav {
    position: fixed !important;
    top: var(--mobile-header-h, 72px) !important;
    right: auto !important;
    left: 0 !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: none !important;
    background: #0a0620 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
  }

  html body .site-header .nav-list {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
  }

  html body .site-header .nav-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  html body .site-header .nav-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  html body .site-header .main-nav {
    max-height: calc(100vh - var(--mobile-header-h, 72px));
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 8px 18px 24px;
  }

  html body .site-header .nav-link {
    padding: 15px 0 !important;
    font-size: 17px !important;
  }

  html body .site-header .nav-item.has-submenu > .nav-link::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.65);
    border-bottom: 2px solid rgba(255, 255, 255, 0.65);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: none;
  }

  html body .site-header .nav-item.mobile-open > .nav-link::after {
    transform: rotate(-135deg);
  }

  html body .site-header .mobile-submenu {
    display: none;
    margin: 0 0 10px;
    padding: 2px 0 2px 4px;
    list-style: none;
    border-left: 2px solid rgba(159, 114, 255, 0.45);
  }

  html body .site-header .nav-item.mobile-open > .mobile-submenu {
    display: block !important;
  }

  html body .site-header .nav-item:not(.mobile-open) > .mobile-submenu {
    display: none !important;
  }

  html body .site-header .mobile-submenu > li > a {
    display: block;
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
  }

  html body .site-header .mobile-submenu > li + li > a {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  html body .site-header .mobile-cta {
    display: block;
    margin: 16px 0 4px;
    padding: 14px 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 12px;
  }

}

@media (min-width: 821px) {
  html body .site-header .mobile-cta { display: none; }
}

@media (max-width: 820px) {
  html body .site-header .nav-item > .nav-link {
    padding: 14px 18px !important;
  }

  html body .site-header .mobile-submenu {
    padding: 4px 0 10px 18px !important;
  }

  html body .site-header .nav-cta {
    margin: 14px 18px 20px !important;
  }

  html body .site-footer .footer-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 16px !important;
  }
}

@media (max-width: 820px) {
  html body .site-footer .footer-columns > .brand-column {
    grid-column: 1 / -1 !important;
  }

  html body .site-footer .brand-column img,
  html body .site-footer .brand img {
    max-width: 180px !important;
    height: auto !important;
  }

  html body .site-footer .footer-page,
  html body .site-footer .footer-columns {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
