:root {
  --dojoscale-mobile-header-height: 92px;
}

.dojoscale-mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--dojoscale-mobile-header-height);
  min-height: var(--dojoscale-mobile-header-height);
  padding: 0 20px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.dojoscale-mobile-header__center {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  transform: translateX(-5%);
  pointer-events: none;
}

.dojoscale-mobile-header__side {
  grid-row: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 0;
}

.dojoscale-mobile-header__side--left {
  grid-column: 1;
  justify-self: start;
}

.dojoscale-mobile-header__side--right {
  grid-column: 3;
  justify-self: end;
}

.dojoscale-mobile-header__brand {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transform: none !important;
  pointer-events: auto;
}

.dojoscale-mobile-header__brand span {
  display: inline-block;
  letter-spacing: 0.14em;
}

.dojoscale-mobile-header__brand:hover,
.dojoscale-mobile-header__brand:focus {
  color: #111827;
}

.dojoscale-mobile-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.dojoscale-mobile-header__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.dojoscale-mobile-header__toggle:hover,
.dojoscale-mobile-header__toggle:focus-visible {
  background: #2d5a47;
}

.dojoscale-mobile-header__toggle:hover span,
.dojoscale-mobile-header__toggle:focus-visible span {
  background: #ffffff;
}

.dojoscale-mobile-header__toggle.is-open {
  background: #2d5a47;
}

.dojoscale-mobile-header__toggle.is-open span {
  background: #ffffff;
}

.dojoscale-mobile-header__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dojoscale-mobile-header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.dojoscale-mobile-header__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.dojoscale-mobile-header__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: #2d5a47;
  color: #ffffff !important;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.dojoscale-mobile-header__contact:visited,
.dojoscale-mobile-header__contact:hover,
.dojoscale-mobile-header__contact:active,
.dojoscale-mobile-header__contact:focus {
  color: #ffffff !important;
  background: #234839;
}

.dojoscale-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

.dojoscale-mobile-menu.is-open {
  pointer-events: auto;
}

.dojoscale-mobile-menu__backdrop {
  position: absolute;
  top: var(--dojoscale-mobile-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.dojoscale-mobile-menu.is-open .dojoscale-mobile-menu__backdrop {
  opacity: 1;
}

.dojoscale-mobile-menu__panel {
  position: absolute;
  top: var(--dojoscale-mobile-header-height);
  right: 0;
  width: min(88vw, 340px);
  height: calc(100% - var(--dojoscale-mobile-header-height));
  display: flex;
  flex-direction: column;
  padding: 18px 20px 24px;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.dojoscale-mobile-menu.is-open .dojoscale-mobile-menu__panel {
  transform: translateX(0);
}

.dojoscale-mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dojoscale-mobile-menu__title {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.dojoscale-mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
}

.dojoscale-mobile-menu__close span {
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

.dojoscale-mobile-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.dojoscale-mobile-menu__links li {
  border-bottom: 1px solid #f3f4f6;
}

.dojoscale-mobile-menu__links a {
  display: block;
  padding: 16px 4px;
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
}

.dojoscale-mobile-menu__links a:hover,
.dojoscale-mobile-menu__links a:focus {
  color: #2d5a47;
}

@media (max-width: 1024px) {
  #home-mobile,
  #whyus-mobile,
  #thesystem-mobile,
  #results-mobile,
  #faq-mobile,
  #faq {
    scroll-margin-top: calc(var(--dojoscale-mobile-header-height, 92px) + 12px);
  }

  .elementor-menu-anchor {
    display: block;
    height: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .dojoscale-mobile-header {
    display: grid;
  }

  header.elementor-location-header {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
  }

  header.elementor-location-header > :not(.dojoscale-mobile-header):not(.dojoscale-mobile-menu) {
    display: none !important;
  }

  header.elementor-location-header > .dojoscale-mobile-menu {
    display: block !important;
  }

  body.home {
    padding-top: var(--dojoscale-mobile-header-height);
  }

  main#content {
    margin-top: 0 !important;
  }

  .elementor-9 > .elementor-element-75acbb7 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (min-width: 1025px) {
  .dojoscale-mobile-menu {
    display: none;
  }
}
