/* Site-wide glitch fixes — load after page styles */

/* Smoother menu push */
.site-wrap {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.site-wrap.shifted {
  transform: translate3d(-320px, 0, 0) !important;
}

/* Finger hover — no scale/opacity clash with letter animation */
[data-animation="finger"]:hover {
  transform: none !important;
  opacity: 1 !important;
}

[data-animation="finger"].hero-start-btn-v3,
[data-animation="finger"].imagination-section__start-button,
[data-animation="finger"].view-service-btn,
[data-animation="finger"].sx-not-found__btn,
[data-animation="finger"].sx-btn-start,
[data-animation="finger"].menu-toggle,
[data-animation="finger"].header-links a {
  overflow: hidden;
  vertical-align: middle;
  line-height: 1.15;
}

/* Chrome stacking — header strip stays above drawer */
.top-ui {
  z-index: 1000 !important;
}

.top-ui-chrome {
  z-index: 10 !important;
}

.menu-sidebar {
  z-index: 5 !important;
}

/* Footer labels — never stuck invisible */
.sx-footer-brand-sub,
.sx-btn-hint {
  opacity: 1;
  visibility: visible;
}

.sx-footer[data-scroll-fade="off"] .sx-footer-brand-sub,
.sx-footer[data-scroll-fade="off"] .sx-btn-hint {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Mobile footer + chrome */
@media (max-width: 900px) {
  .sx-btn-hint {
    display: inline !important;
    font-size: 11px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .sx-btn-row {
    justify-content: flex-start !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 20px !important;
  }

  .sx-col3 ul {
    display: block !important;
  }

  .sx-footer,
  .sx-footer-container,
  .sx-footer-bottom {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .sx-footer {
    overflow-x: clip;
    box-sizing: border-box;
  }

  .sx-col3 {
    top: 0 !important;
    position: relative !important;
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  .site-wrap.shifted {
    transform: translate3d(min(-300px, -88vw), 0, 0) !important;
  }

  .menu-sidebar {
    width: min(300px, 88vw) !important;
  }
}

@media (min-width: 901px) {
  .sx-footer,
  .sx-footer-container,
  .sx-footer-top,
  .sx-footer-bottom {
    overflow: visible;
  }

  .sx-col3 {
    overflow: visible;
  }
}

/* Reduce mobile tap flash */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

.page,
.site-wrap {
  max-width: 100%;
}

/* Hero showcase tabs — ensure clicks reach tab rows */
.seamx-showcase__hero-steps,
.seamx-showcase__bottom-tabs {
  position: relative;
  z-index: 4;
}

.seamx-showcase__hero-step,
.seamx-showcase__bottom-tab {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.seamx-hero-underline,
.seamx-bottom-underline {
  pointer-events: none !important;
}
