.site-navbar .services-nav-item {
  position: static;
}

.site-navbar .tenant-mega-menu-shell {
  position: static;
}

.site-navbar .tenant-mega-menu__toggle {
  cursor: pointer;
}

.site-navbar .tenant-mega-menu-panel {
  position: absolute;
  top: calc(100% - 1rem);
  left: 50%;
  z-index: 1040;
  width: min(1180px, calc(100vw - 2rem));
  max-width: none;
  padding-top: 1rem;
  border: 0;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-navbar .tenant-mega-menu-shell.is-open .tenant-mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-navbar .tenant-mega-menu-panel > .tenant-mega-menu {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}

.site-navbar .services-dropdown-menu:has(.tenant-mega-menu) {
  left: 50%;
  width: min(1180px, calc(100vw - 2rem));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  transform: translateX(-50%);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}

.tenant-mega-menu-shell,
.tenant-mega-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tenant-mega-menu {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 2fr);
  min-height: 430px;
  color: #fff;
  background: #191b24;
}

.tenant-mega-menu__services {
  padding: 1.5rem 1rem 1.5rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #151720;
}

.tenant-mega-menu__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0 0.65rem;
  color: #a0a1a5;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tenant-mega-menu__heading a {
  color: var(--bs-warning);
  font-size: 0.7rem;
  text-decoration: none;
}

.tenant-mega-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: min(62vh, 390px);
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.tenant-mega-menu__service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.tenant-mega-menu__service i {
  flex: 0 0 auto;
  color: var(--bs-warning);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tenant-mega-menu__service:hover,
.tenant-mega-menu__service:focus-visible,
.tenant-mega-menu__service.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.tenant-mega-menu__service:hover i,
.tenant-mega-menu__service:focus-visible i,
.tenant-mega-menu__service.active i {
  opacity: 1;
  transform: translateX(0);
}

.tenant-mega-menu__previews {
  position: relative;
  min-width: 0;
  min-height: 430px;
}

.tenant-mega-menu__preview {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1fr);
  gap: 1.75rem;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.tenant-mega-menu__preview.active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tenant-mega-menu__image {
  display: block;
  min-height: 330px;
  border-radius: 7px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--theme-secondary), var(--bs-primary));
}

.tenant-mega-menu__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tenant-mega-menu__image > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 330px;
  font-size: 6rem;
  font-weight: 800;
}

.tenant-mega-menu__image:hover img {
  transform: scale(1.04);
}

.tenant-mega-menu__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 1rem 1rem 0;
}

.tenant-mega-menu__eyebrow {
  margin-bottom: 0.65rem;
  color: var(--bs-warning);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tenant-mega-menu__content h3 {
  margin: 0;
  color: #fff;
  font-family: var(--theme-heading-font);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.15;
}

.tenant-mega-menu__content p {
  margin: 1rem 0 1.5rem;
  color: #b8bac1;
  font-size: 0.92rem;
  line-height: 1.7;
}

.tenant-mega-menu__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.65rem;
  padding: 0 0 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tenant-mega-menu__cta i {
  color: var(--bs-warning);
  font-size: 0.75rem;
  transition: transform 0.18s ease;
}

.tenant-mega-menu__cta:hover,
.tenant-mega-menu__cta:focus-visible {
  color: var(--bs-warning);
  background: transparent;
  border-color: var(--bs-warning);
}

.tenant-mega-menu__cta:hover i,
.tenant-mega-menu__cta:focus-visible i {
  transform: translateX(4px);
}

@media (max-width: 1199.98px) {
  .tenant-mega-menu {
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.8fr);
  }

  .tenant-mega-menu__preview {
    grid-template-columns: minmax(210px, 0.85fr) minmax(240px, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .site-navbar .tenant-mega-menu-panel {
    position: static;
    width: auto;
    padding-top: 0.5rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-navbar .services-dropdown-menu:has(.tenant-mega-menu) {
    width: auto;
    transform: none;
  }
}
