.mf-site-to-top {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  z-index: 9990 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #111214 !important;
  border-radius: 0 !important;
  background: #f59b2d !important;
  color: #111214 !important;
  box-shadow: 0 12px 28px rgba(17, 18, 20, 0.18) !important;
  cursor: pointer !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mf-site-to-top__icon {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  display: block !important;
  color: #111214 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 27px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  transform: translateY(-1px) !important;
  white-space: normal !important;
}

.mf-site-to-top > span:not(.mf-site-to-top__icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mf-site-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mf-site-to-top:hover,
.mf-site-to-top:focus-visible {
  background: #ffad43 !important;
  border-color: #f59b2d !important;
  color: #111214 !important;
  box-shadow: 0 16px 34px rgba(245, 155, 45, 0.28) !important;
  transform: translateY(-3px) !important;
}

.mf-site-to-top:focus-visible {
  outline: 2px solid #111214;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .mf-site-to-top {
    right: 16px !important;
    bottom: 16px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .mf-site-to-top__icon {
    font-size: 25px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-site-to-top {
    transition: none !important;
  }
}

/* Global hero lightness pass */
.mf-notfound-hero::after,
.mf-blog-hero::after,
.mf-contact-hero::after,
.mf-energy-hero-bg::after,
.mf-eng-hero-bg::after,
.mf-about-hero-bg::after,
.mf-go-hero-bg::before,
.mf-rem-hero__bg::after,
.mf-di-hero::after,
.mf-proj-hero__overlay {
  opacity: 0.72 !important;
}

.mf-go-hero-bg img,
.mf-eng-hero-bg img,
.mf-about-hero-bg img,
.mf-energy-hero-bg img {
  filter: saturate(0.96) contrast(1.02) brightness(0.86) !important;
  opacity: 0.72 !important;
}
