/* =========================================================
   SERVICES NAVIGATION
   Designed to match the original Vidhitsa black/white/gold UI
   ========================================================= */
.header-area .header-elements {
  position: relative;
}

.header-area .main-menu > ul > li.services-menu-item {
  position: static;
}

/* Invisible bridge prevents the menu closing while the pointer moves down. */
.header-area .main-menu > ul > li.services-menu-item::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 18px;
  pointer-events: none;
}

.header-area .main-menu > ul > li.services-menu-item:hover::before,
.header-area .main-menu > ul > li.services-menu-item:focus-within::before {
  pointer-events: auto;
}

.header-area .main-menu > ul > li.services-menu-item > .services-mega-menu {
  position: absolute !important;
  top: calc(100% + 14px) !important;
  left: 50% !important;
  z-index: 9999;
  width: min(1160px, calc(100vw - 48px)) !important;
  max-height: min(690px, calc(100vh - 150px));
  margin: 0 !important;
  padding: 0 30px 28px !important;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(252,185,14,.13), transparent 27%),
    #111111 !important;
  border: 1px solid rgba(252,185,14,.25) !important;
  border-top: 3px solid #fcb90e !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 26px 70px rgba(0,0,0,.30) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px) !important;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.header-area .main-menu > ul > li.services-menu-item > .services-mega-menu::before {
  content: "Explore Our Services";
  grid-column: 1 / -1;
  display: block;
  padding: 22px 0 17px;
  margin-bottom: 2px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.header-area .main-menu > ul > li.services-menu-item:hover > .services-mega-menu,
.header-area .main-menu > ul > li.services-menu-item:focus-within > .services-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) !important;
}

.header-area .services-mega-menu > li.service-mega-group {
  display: block !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 22px 22px 20px !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.header-area .services-mega-menu > li.service-mega-group:nth-of-type(4n) {
  border-right: 0 !important;
}

.header-area .services-mega-menu > li.service-mega-group:nth-last-child(-n+3) {
  border-bottom: 0 !important;
}

.header-area .services-mega-menu > li.service-mega-group.current-service-group {
  background: linear-gradient(145deg, rgba(252,185,14,.09), rgba(252,185,14,.02)) !important;
}

.header-area .services-mega-menu .service-mega-parent {
  display: flex !important;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  font-family: "Syne", sans-serif;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.header-area .services-mega-menu .service-mega-parent::after {
  display: none !important;
}

.header-area .services-mega-menu .service-mega-parent i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fcb90e !important;
  background: rgba(252,185,14,.11);
  border: 1px solid rgba(252,185,14,.20);
  border-radius: 9px;
  font-size: 14px;
}

.header-area .services-mega-menu .service-mega-parent:hover,
.header-area .services-mega-menu .service-mega-parent:focus-visible,
.header-area .services-mega-menu .service-mega-parent.current-menu-item {
  color: #fcb90e !important;
}

.header-area .services-mega-menu > li > ul {
  position: static !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.header-area .services-mega-menu > li > ul > li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-area .services-mega-menu > li > ul > li > a {
  position: relative;
  display: block !important;
  margin: 0 !important;
  padding: 6px 0 6px 15px !important;
  color: rgba(255,255,255,.62) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  transition: color .2s ease, padding-left .2s ease;
}

.header-area .services-mega-menu > li > ul > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(252,185,14,.58);
  transition: transform .2s ease, background .2s ease;
}

.header-area .services-mega-menu > li > ul > li > a::after {
  display: none !important;
}

.header-area .services-mega-menu > li > ul > li > a:hover,
.header-area .services-mega-menu > li > ul > li > a:focus-visible,
.header-area .services-mega-menu > li > ul > li > a.current-menu-item {
  color: #fcb90e !important;
  padding-left: 19px !important;
}

.header-area .services-mega-menu > li > ul > li > a:hover::before,
.header-area .services-mega-menu > li > ul > li > a:focus-visible::before,
.header-area .services-mega-menu > li > ul > li > a.current-menu-item::before {
  background: #fcb90e;
  transform: scale(1.35);
}

.header-area .services-mega-menu::-webkit-scrollbar {
  width: 8px;
}

.header-area .services-mega-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
}

.header-area .services-mega-menu::-webkit-scrollbar-thumb {
  background: rgba(252,185,14,.45);
  border-radius: 999px;
}

.service-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #111111;
  font-weight: 700;
  font-size: 14px;
  transition: color .25s ease, gap .25s ease;
}

.service-detail-link:hover {
  color: #fcb90e;
  gap: 12px;
}

/* Mobile: keep the original drawer but make the expanded hierarchy cleaner. */
.mobile-nav-list .mobile-services-menu > a,
.mobile-nav-list .mobile-service-group > a {
  font-family: "Syne", sans-serif;
  font-weight: 700 !important;
}

.mobile-nav-list .mobile-services-menu > .sub-menu {
  margin-top: 8px;
  padding: 8px 0 8px 10px !important;
  background: #fafafa;
  border-left: 2px solid #fcb90e;
}

.mobile-nav-list .mobile-service-group {
  border-bottom: 1px solid rgba(17,17,17,.07);
}

.mobile-nav-list .mobile-service-group:last-child {
  border-bottom: 0;
}

.mobile-nav-list .mobile-service-group > a {
  color: #111111 !important;
  font-size: 14px !important;
}

.mobile-nav-list .mobile-service-group > .sub-menu {
  margin: 0 0 8px 8px;
  padding: 2px 0 4px 10px !important;
  background: transparent;
  border-left: 1px solid rgba(252,185,14,.45);
}

.mobile-nav-list .mobile-service-group > .sub-menu a {
  color: #5c5c5c !important;
  font-size: 12.5px !important;
  line-height: 1.45;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

.mobile-nav-list .mobile-service-group > .sub-menu a:hover,
.mobile-nav-list .mobile-service-group > .sub-menu a.current-menu-item {
  color: #fcb90e !important;
}

.footer-links {
  max-height: none !important;
}

@media (max-width: 1199px) {
  .header-area .main-menu > ul > li.services-menu-item > .services-mega-menu {
    width: calc(100vw - 28px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .header-area .services-mega-menu > li.service-mega-group:nth-of-type(4n) {
    border-right: 1px solid rgba(255,255,255,.08) !important;
  }

  .header-area .services-mega-menu > li.service-mega-group:nth-of-type(3n) {
    border-right: 0 !important;
  }
}

@media (max-width: 991px) {
  .header-area .main-menu > ul > li.services-menu-item > .services-mega-menu {
    display: none !important;
  }
}

/* Final specificity overrides for legacy header and contrast rules. */
body.vt-redesign .header-area .header-elements {
  position: relative !important;
}

body.vt-redesign .header-area .main-menu > ul > li.services-menu-item {
  position: static !important;
}

body.vt-redesign .header-area .main-menu > ul > li.services-menu-item > .services-mega-menu {
  top: calc(100% + 14px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(12px) !important;
}

body.vt-redesign .header-area .main-menu > ul > li.services-menu-item:hover > .services-mega-menu,
body.vt-redesign .header-area .main-menu > ul > li.services-menu-item:focus-within > .services-mega-menu {
  transform: translateX(-50%) translateY(0) !important;
}

body.vt-redesign .header-area .services-mega-menu .service-mega-parent,
body.vt-redesign .header-area .services-mega-menu .service-mega-parent span {
  color: #ffffff !important;
  background: transparent !important;
}

body.vt-redesign .header-area .services-mega-menu .service-mega-parent:hover,
body.vt-redesign .header-area .services-mega-menu .service-mega-parent:focus-visible,
body.vt-redesign .header-area .services-mega-menu .service-mega-parent.current-menu-item,
body.vt-redesign .header-area .services-mega-menu .service-mega-parent:hover span,
body.vt-redesign .header-area .services-mega-menu .service-mega-parent:focus-visible span,
body.vt-redesign .header-area .services-mega-menu .service-mega-parent.current-menu-item span {
  color: #fcb90e !important;
}

body.vt-redesign .header-area .services-mega-menu .service-mega-parent i {
  color: #fcb90e !important;
}

body.vt-redesign .header-area .services-mega-menu > li > ul > li > a {
  color: rgba(255,255,255,.62) !important;
  background: transparent !important;
}

body.vt-redesign .header-area .services-mega-menu > li > ul > li > a:hover,
body.vt-redesign .header-area .services-mega-menu > li > ul > li > a:focus-visible,
body.vt-redesign .header-area .services-mega-menu > li > ul > li > a.current-menu-item {
  color: #fcb90e !important;
  background: transparent !important;
  border-radius: 0 !important;
}
