/* Responsive navigation corrections.
 * Keeps the contact bar and primary header in normal document flow, then
 * switches to one accessible mobile navigation model at 1199px.
 */

html {
  scroll-behavior: smooth;
}

/* Keep one document scrollbar. Using hidden on one overflow axis makes the
 * other axis compute to auto, which turned both html and body into scrollers. */
html,
body {
  overflow-x: clip !important;
}

/* Never let the decorative loader block access to the page for over 3 seconds. */
body:not(.loaded) #preloader-wrapper {
  animation: trm-preloader-timeout 0.35s ease 2.65s forwards;
}

@keyframes trm-preloader-timeout {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

body.boxed {
  width: 100%;
  left: auto;
  margin: 0;
}

#home,
#about,
#director,
#domains,
#services,
#process,
#contact,
#insights {
  scroll-margin-top: 96px;
}

#header {
  position: relative;
  z-index: 1000;
}

#home {
  margin-top: 0 !important;
}

#mo_header.mo-header-v2,
.boxed #mo_header.mo-header-v2 {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 90px;
  z-index: 1000;
}

#mo_header .mo-header-menu {
  position: relative;
  border-bottom: 1px solid #e8ebf5;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(8, 8, 29, 0.06);
}

#mo_header .container-menu {
  display: flex;
  align-items: center;
}

#mo_header .mo-col-logo {
  flex: 0 0 180px;
  width: 180px;
  max-width: 180px;
}

#mo_header .mo-logo,
#mo_header .mo-logo a {
  display: flex;
  height: 100%;
  align-items: center;
}

#mo_header .mo-col-logo img {
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain;
}

#mo_header .mo-col-menu {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}

.trm-responsive-topbar {
  display: block;
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border-bottom: 1px solid #dde3f2;
  background: linear-gradient(90deg, #f7f8ff 0%, #eef2ff 100%);
  color: #181b35;
  z-index: 1001;
}

.trm-topbar-container {
  display: flex;
  width: 100%;
  max-width: 1320px;
  min-height: 52px;
  margin: 0 auto;
  padding: 0 28px;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 18px;
  text-align: left;
}

.trm-topbar-left {
  display: flex;
  align-items: center;
  width: auto;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 18px;
}

.trm-topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #252945 !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.trm-topbar-item svg {
  color: #ffb606;
  flex-shrink: 0;
}

.trm-topbar-item:hover {
  color: #4b4de7 !important;
}

.trm-topbar-right {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.trm-topbar-cta {
  width: auto;
  max-width: none;
  min-height: 40px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(188, 122, 0, 0.2);
  border-radius: 25px;
  color: #08081d !important;
  background: linear-gradient(135deg, #ffb606, #f39c12);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(243, 156, 18, 0.22);
}

#mo_header .menu_other_v2 {
  display: block !important;
  position: absolute;
  top: 0;
  right: 24px;
  width: 40px;
  height: 90px;
  margin: 0;
  z-index: 5;
}

#mo_header .menu_other_v2 .color-switcher {
  top: 25px;
  right: auto;
  float: none;
}

body.dark-mode-on #header .trm-responsive-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, #11152f 0%, #1b2147 100%);
}

body.dark-mode-on #header .trm-topbar-item {
  color: #fff !important;
}

body.dark-mode-on #mo_header .mo-header-menu {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: #08081d;
}

#mo_header .menu_other_v2 .call-us,
#open-consultation-modal {
  display: none !important;
}

.trm-primary-nav {
  width: 100%;
  height: 100%;
}

.trm-menu-cta {
  display: none;
}

.mo-header-icon {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

#menu-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mo-header-icon:focus-visible,
.mb-dropdown-icon:focus-visible,
.trm-topbar-item:focus-visible,
.trm-topbar-cta:focus-visible,
#mo_header .menu_other_v2 .color-switcher a:focus-visible,
.mo-menu-list a:focus-visible {
  outline: 3px solid #ffb606;
  outline-offset: 3px;
}

@media (min-width: 1200px) {
  .bg-header-icon {
    display: none !important;
  }

  .mo-header-v2 .mo-menu-list > ul > li.trm-menu-cta {
    display: none !important;
  }

  .mo-header-v2 .mo-menu-list {
    display: block !important;
  }

  .mo-header-v2 .trm-primary-nav > ul {
    padding-right: 66px;
  }

  body.mo-stick-active #mo_header.mo-header-v2.mo-header-stick .mo-header-menu {
    position: fixed;
    top: 0;
    left: 0 !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    height: 80px;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 32px rgba(8, 8, 29, 0.12);
  }

  body.mo-stick-active #mo_header.mo-header-v2.mo-header-stick .container-menu,
  body.mo-stick-active #mo_header.mo-header-v2.mo-header-stick .mo-col-logo {
    height: 80px;
  }

  body.mo-stick-active #mo_header.mo-header-v2.mo-header-stick .menu_other_v2 {
    height: 80px;
  }

  body.mo-stick-active #mo_header.mo-header-v2.mo-header-stick .menu_other_v2 .color-switcher {
    top: 20px;
  }

  body.dark-mode-on.mo-stick-active #mo_header.mo-header-v2.mo-header-stick .mo-header-menu {
    background: rgba(8, 8, 29, 0.97);
  }
}

@media (max-width: 1199px) {
  #mo_header.mo-header-v2,
  .boxed #mo_header.mo-header-v2,
  #mo_header .mo-header-menu,
  #mo_header .container-menu,
  #mo_header .mo-col-logo {
    height: 70px;
  }

  .trm-responsive-topbar,
  .trm-topbar-container {
    min-height: 48px;
  }

  #mo_header .container-menu {
    position: relative !important;
    display: flex !important;
    align-items: center;
    padding: 0 16px !important;
  }

  #mo_header .mo-col-logo {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 150px;
    padding: 0 !important;
  }

  #mo_header .mo-logo,
  #mo_header .mo-logo a {
    display: flex;
    height: 100%;
    align-items: center;
  }

  #mo_header .mo-col-logo img {
    width: auto !important;
    max-width: 120px !important;
    height: 46px !important;
    object-fit: contain;
  }

  .trm-topbar-container {
    padding: 0 16px;
  }

  .trm-topbar-right {
    display: none;
  }

  .trm-topbar-cta {
    display: none;
  }

  #mo_header .menu_other_v2 {
    top: 0;
    right: 74px;
    width: 40px;
    height: 70px;
    padding: 0 !important;
  }

  #mo_header .menu_other_v2 .color-switcher {
    top: 15px;
    right: auto !important;
    margin: 0 !important;
  }

  .bg-header-icon {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 16px !important;
    float: none !important;
    width: 45px !important;
    height: 70px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    z-index: 8;
  }

  /* The theme stylesheet paints the entire wrapper purple. The actual
   * hamburger already owns its 45px circular background, so that inherited
   * layer created the tall pill visible on small screens. */
  .bg-header-icon::after {
    content: none !important;
    display: none !important;
  }

  #mo-header-icon.mo-header-icon {
    display: block !important;
    position: absolute;
    top: 50%;
    right: 0;
    width: 45px;
    height: 45px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: #4b4de7;
    box-shadow: 0 8px 18px rgba(75, 77, 231, 0.25);
    transform: translateY(-50%);
  }

  #mo-header-icon.mo-header-icon span,
  #mo-header-icon.mo-header-icon::before,
  #mo-header-icon.mo-header-icon::after {
    content: "";
    position: absolute;
    left: 12px;
    width: 21px;
    height: 2px;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    bottom: auto !important;
    transform-origin: center center !important;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }

  #mo-header-icon.mo-header-icon span {
    top: 21px;
  }

  #mo-header-icon.mo-header-icon::before {
    top: 15px;
  }

  #mo-header-icon.mo-header-icon::after {
    top: 27px;
  }

  #mo-header-icon.mo-header-icon.active span {
    opacity: 0;
  }

  #mo-header-icon.mo-header-icon.active::before,
  #mo-header-icon.mo-header-icon.active::after {
    top: 21px;
  }

  #mo-header-icon.mo-header-icon.active::before {
    transform: rotate(45deg);
  }

  #mo-header-icon.mo-header-icon.active::after {
    transform: rotate(-45deg);
  }

  .mo-header-v2 .mo-menu-list {
    display: none !important;
    min-width: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-x: hidden;
    overflow-y: auto;
    top: 70px;
    right: 0;
    animation: none;
  }

  .mo-header-v2 .mo-menu-list.trm-menu-open {
    display: block !important;
    animation: trmMenuIn 0.24s ease both;
  }

  .mo-header-v2 .mo-menu-list > ul {
    height: auto !important;
    min-height: 0;
    padding: 12px 0 18px;
  }

  .mo-header-v2 .mo-menu-list > ul > li {
    padding: 4px 24px;
  }

  .mo-header-v2 .mo-menu-list > ul > li.menu-item-has-children > ul {
    display: none !important;
    margin: 4px 0 4px 10px;
  }

  .mo-header-v2 .mo-menu-list > ul > li.menu-item-has-children > ul.trm-submenu-open {
    display: block !important;
    animation: trmSubmenuIn 0.2s ease both;
  }

  .mo-header-menu .mo-menu-list > ul > li.menu-item-has-children > ul > li,
  .mo-header-menu .mo-menu-list > ul > li.menu-item-has-children > ul > li > a {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mb-dropdown-icon {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mo-header-v2 .mo-menu-list > ul > li.trm-menu-cta {
    display: block !important;
    margin: 10px 24px 4px;
    padding: 0 !important;
  }

  .trm-menu-cta > a {
    display: block !important;
    border-radius: 24px;
    padding: 10px 18px !important;
    text-align: center;
    line-height: 24px !important;
    color: #08081d !important;
    background: linear-gradient(135deg, #ffb606, #f39c12);
  }

  body.mo-stick-active #mo_header.mo-header-v2.mo-header-stick .mo-header-menu {
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 28px rgba(8, 8, 29, 0.12);
  }
}

@media (max-width: 480px) {
  .trm-topbar-container {
    padding: 0 10px;
    gap: 8px;
  }

  .trm-topbar-left {
    width: auto;
    justify-content: center;
    gap: 8px;
  }

  .trm-topbar-item {
    font-size: 11px;
    gap: 5px;
  }

  .trm-topbar-item svg {
    width: 14px;
    height: 14px;
  }

}

@keyframes trmMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trmSubmenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mo-header-v2 .mo-menu-list.trm-menu-open,
  .mo-header-v2 .mo-menu-list > ul > li.menu-item-has-children > ul.trm-submenu-open {
    animation: none;
  }
}

/* Theme readability and contrast corrections. */
:root {
  --trm-readable-muted: #566981;
  --trm-dark-muted: #c1c8d4;
  --trm-dark-accent: #a8adff;
}

body:not(.dark-mode-on) {
  color: var(--trm-readable-muted);
}

body:not(.dark-mode-on) #mo_header .mo-menu-list > ul > li > a {
  color: #46576e;
}

body:not(.dark-mode-on) .main-content
  :is(p, address, .content, .title-desc, .elementor-widget-text-editor):not(.dark-mode-on *):not(section[data-section-bgcolor="dark"] *) {
  color: var(--trm-readable-muted);
}

.mo-text-circle {
  color: #fff !important;
}

body:not(.dark-mode-on) .mo-element-mo-marquee .mo-marquee-container.tpl2 .marquee-title {
  color: var(--trm-readable-muted) !important;
  opacity: 1;
}

body:not(.dark-mode-on) .trm-info-card :is(h6, p) {
  color: #fff !important;
}

body:not(.dark-mode-on) .main-content
  :is(#contact, section.elementor-element-2f709f6, section[data-section-bgcolor="dark"])
  :is(p, address, .title-desc) {
  color: var(--trm-dark-muted) !important;
}

body:not(.dark-mode-on) .main-content
  :is(#contact, section.elementor-element-2f709f6, section[data-section-bgcolor="dark"])
  .sub-title {
  color: var(--trm-dark-accent) !important;
}

body:not(.dark-mode-on) #impact .counter-number.style4
  :is(.counter, .symbol, h6) {
  color: #1f1f1f !important;
}

body.dark-mode-on {
  color: var(--trm-dark-muted);
}

body.dark-mode-on .main-content
  :is(p, address, .content, .title-desc, .elementor-widget-text-editor) {
  color: var(--trm-dark-muted) !important;
}

body.dark-mode-on :is(.sub-title, .mo-accordion .acc_head h6, .accordion .acc_head h6) {
  color: var(--trm-dark-accent) !important;
}

body.dark-mode-on .mo-testimonial h4 {
  color: #f5f7ff !important;
}

body.dark-mode-on .marquee-title,
body.dark-mode-on .mo-element-mo-marquee .mo-marquee-container.tpl2 .marquee-title {
  color: rgba(255, 255, 255, 0.55) !important;
}

body.dark-mode-on .main-content a[href^="tel:"],
body:not(.dark-mode-on) .main-content .dark-mode-on a[href^="tel:"] {
  color: #fff !important;
}

.footer,
.footer :is(p, address, .elementor-widget-text-editor) {
  color: #aeb7c5;
}

.footer a {
  color: #c7ced9;
}

.footer a:hover,
.footer a:focus {
  color: #fff;
}

.main-content #contact :is(input, textarea)::placeholder {
  color: #aeb7c5;
  opacity: 1;
}

body.dark-mode-on #consultation-modal .nori-login-form-content,
body.dark-mode-on #consultation-modal .nori-login-form-content :is(h1, h2, h3, h4, h5, h6) {
  color: #08081d !important;
}

#consultation-modal #consultation-modal-intro {
  color: var(--trm-readable-muted) !important;
}

#consultation-modal select:invalid,
#consultation-modal select option[disabled] {
  color: var(--trm-readable-muted);
}

@media (min-width: 769px) {
  #consultation-modal .main-login-content {
    height: 90vh;
    max-height: 720px;
    overflow: hidden;
  }

  #consultation-modal .main-login-content > .row {
    height: calc(100% - 60px);
  }

  #consultation-modal .nori-login-form-content {
    max-height: 100% !important;
  }
}

.trm-skip-link:focus {
  color: #08081d !important;
  background: #fff !important;
}

@media (max-width: 767px) {
  #success-stories .elementor-widget-container {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #success-stories .mo-event-style-3 .inner {
    width: 100% !important;
  }
}
