﻿/* AgentFunnelWorks emergency mobile visibility fix - 2026-06-15_230352 */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

header,
.site-header,
.nav,
.navbar,
.topbar {
  position: relative;
  z-index: 100;
}

.hero,
.afw-hero,
.page-hero,
.remax-hero,
section[class*="hero"] {
  position: relative !important;
  isolation: isolate;
}

.hero-content,
.hero-copy,
.hero-inner,
.hero-text,
.hero-body,
.hero-actions,
.hero-stats,
.afw-hero-content,
.afw-hero__content,
.remax-hero-content,
.reveal,
.fade,
.fade-in,
[data-reveal] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

.hero-content,
.hero-copy,
.hero-inner,
.hero-text,
.hero-body,
.afw-hero-content,
.afw-hero__content,
.remax-hero-content {
  position: relative !important;
  z-index: 20 !important;
}

.hero-bg,
.hero-background,
.hero-media,
.hero-image,
.background-image,
section[class*="hero"]::before,
section[class*="hero"]::after {
  z-index: 0 !important;
}

@media (max-width: 768px) {
  .hero,
  .afw-hero,
  .page-hero,
  .remax-hero,
  section[class*="hero"] {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  .hero-content,
  .hero-copy,
  .hero-inner,
  .hero-text,
  .hero-body,
  .afw-hero-content,
  .afw-hero__content,
  .remax-hero-content {
    display: block !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-actions,
  .hero-stats {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .hero a,
  .hero button,
  .afw-hero a,
  .afw-hero button,
  section[class*="hero"] a,
  section[class*="hero"] button {
    pointer-events: auto !important;
  }
}
