/* Fixed bottom tab bar — mobile only */
@media (max-width: 1199px) {
  body.itwh-has-mobile-tabbar {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.itwh-has-mobile-tabbar .progress-wrap {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
}

.itwh-mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10020;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 12, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.42);
}

.itwh-mobile-tabbar__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 2px;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  font-family: var(--font_inter, "Inter", sans-serif);
  text-align: center;
  border-radius: 14px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.itwh-mobile-tabbar__icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.itwh-mobile-tabbar__icon i {
  font-size: 16px;
  line-height: 1;
}

.itwh-mobile-tabbar__dash-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.itwh-mobile-tabbar__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.58);
}

.itwh-mobile-tabbar__item:hover,
.itwh-mobile-tabbar__item:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}

.itwh-mobile-tabbar__item:hover .itwh-mobile-tabbar__icon,
.itwh-mobile-tabbar__item:focus-visible .itwh-mobile-tabbar__icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.itwh-mobile-tabbar__item.is-active {
  color: #fff;
}

.itwh-mobile-tabbar__item.is-active .itwh-mobile-tabbar__icon {
  background: linear-gradient(145deg, rgba(109, 82, 244, 0.42), rgba(139, 92, 246, 0.22));
  border-color: rgba(167, 139, 250, 0.45);
  color: #e9d5ff;
  box-shadow:
    0 6px 18px rgba(109, 82, 244, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.itwh-mobile-tabbar__item.is-active .itwh-mobile-tabbar__label {
  color: #ddd6fe;
}

@media (min-width: 1200px) {
  .itwh-mobile-tabbar {
    display: none !important;
  }
}

/* Mobile footer — hide link columns (bottom tabs replace them), tighten spacing */
@media (max-width: 1199px) {
  .footer1.pt-120,
  .footer1.pt-lg-100 {
    padding-top: 28px !important;
    padding-bottom: 4px !important;
  }

  .footer1__top,
  .footer1__top.pb-100 {
    display: none !important;
  }

  .footer1__bottom {
    padding-top: 14px !important;
    padding-bottom: 10px !important;
    border-top: none;
  }

  .footer1__bottom .copyright {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .footer1__social {
    gap: 10px;
  }

  .footer1__social a {
    font-size: 12px;
  }

  .itwh-prefooter-cta.itwh-chapter--dark {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }

  .itwh-chapter--light.work-process {
    padding-bottom: 56px !important;
  }

  .itwh-chapter--light.work-process .work-process__wrapper {
    padding-bottom: 24px;
  }

  .itwh-chapter--dark.contact {
    padding-top: 72px !important;
    padding-bottom: 56px !important;
  }

  .itwh-chapter--dark.contact .contact__left-col {
    margin-bottom: 28px;
  }

  .itwh-chapter--dark.contact .contact__status-badge {
    margin-bottom: 28px;
  }

  .itwh-chapter--dark.contact .contact__info-wrap {
    gap: 20px;
  }

  .itwh-chapter--dark.contact .contact__form-group {
    margin-bottom: 22px !important;
  }
}
