/* Soundwaves full-width + performance safety layer v1.9.0
   CSS-only full-bleed layout avoids runtime geometry measurements and layout shifts.
   The tiny runtime only pauses offscreen animation/video work. */
html,
body {
  overflow-x: hidden !important;
}

/* Keep Elementor wrappers from constraining these custom widgets. */
.elementor-widget-uhe_ultra_healthcare,
.elementor-widget-ultrasound_services_accordion,
.elementor-widget-ultrasound_video_hero,
.elementor-widget-soundwaves_imaging_layout,
.elementor-widget-soundwaves_process_timeline,
.elementor-widget-soundwaves_founder_section,
.elementor-widget-uhe_ultra_healthcare > .elementor-widget-container,
.elementor-widget-ultrasound_services_accordion > .elementor-widget-container,
.elementor-widget-ultrasound_video_hero > .elementor-widget-container,
.elementor-widget-soundwaves_imaging_layout > .elementor-widget-container,
.elementor-widget-soundwaves_process_timeline > .elementor-widget-container,
.elementor-widget-soundwaves_founder_section > .elementor-widget-container {
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
}

.elementor-widget-uhe_ultra_healthcare > .elementor-widget-container,
.elementor-widget-ultrasound_services_accordion > .elementor-widget-container,
.elementor-widget-ultrasound_video_hero > .elementor-widget-container,
.elementor-widget-soundwaves_imaging_layout > .elementor-widget-container,
.elementor-widget-soundwaves_process_timeline > .elementor-widget-container,
.elementor-widget-soundwaves_founder_section > .elementor-widget-container {
  width: 100% !important;
}

/* Actual widget roots: full bleed without JavaScript measurement/reflow. */
.uhe-section,
.z-us-section,
.uvh-widget.ultrasound-video-hero,
.swi-widget,
.sw-process-section,
.sw-founder-section {
  display: block !important;
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}

.uhe-section *,
.z-us-section *,
.uvh-widget.ultrasound-video-hero *,
.swi-widget *,
.sw-process-section *,
.sw-founder-section * {
  box-sizing: border-box;
}


/* Avoid inner content being glued to edges while the section remains full bleed. */
.uhe-section .uhe-wrap,
.z-us-section .z-us-container,
.sw-process-section .sw-process-wrap,
.sw-founder-section .sw-founder-wrap {
  width: min(var(--swaew-inner-max, 1320px), calc(100% - 32px)) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Video hero should cover full browser width. */
.uvh-widget.ultrasound-video-hero .uh-shell {
  width: 100% !important;
}

/* Imaging layout has its own multiple sections. */
.swi-widget .swi-hero,
.swi-widget .swi-mission,
.swi-widget .swi-staffing,
.swi-widget .swi-cta {
  width: 100% !important;
}

/* Services accordion spacing and cut fixes. */
.z-us-section {
  min-height: auto !important;
  padding-left: clamp(14px, 2vw, 24px) !important;
  padding-right: clamp(14px, 2vw, 24px) !important;
}
.z-us-section .z-us-main-layout {
  padding-top: clamp(22px, 3vw, 46px) !important;
  gap: clamp(18px, 2.2vw, 30px) !important;
}
.z-us-section .z-us-content-col {
  padding-bottom: clamp(14px, 2vw, 28px) !important;
}
.z-us-section .z-us-accordion-col {
  padding-top: clamp(12px, 2vw, 24px) !important;
  min-width: 0 !important;
}
.z-us-section .z-us-cards-accordion {
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.z-us-section .z-us-card {
  min-width: 0 !important;
}
.z-us-section .z-us-benefits-bar {
  margin-top: clamp(16px, 2vw, 24px) !important;
  width: min(1240px, 100%) !important;
}
.z-us-section .z-us-progress-row {
  padding-top: 18px !important;
}

/* Elementor editor: reveal/animation elements must be visible while editing. */
body.elementor-editor-active .uhe-reveal,
body.elementor-editor-active .z-us-reveal,
body.elementor-editor-active .reveal,
body.elementor-editor-active .reveal-up,
body.elementor-editor-active .reveal-left,
body.elementor-editor-active .reveal-right,
body.elementor-editor-active .reveal-scale,
body.elementor-editor-active .sw-reveal-left,
body.elementor-editor-active .sw-reveal-right {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1320px) {
  .uhe-section .uhe-wrap,
  .z-us-section .z-us-container,
  .sw-process-section .sw-process-wrap,
  .sw-founder-section .sw-founder-wrap {
    width: calc(100% - 28px) !important;
  }
}

@media (max-width: 820px) {
  .z-us-section .z-us-benefits-bar {
    width: 100% !important;
  }
}


/* ===== v1.9 performance runtime ===== */
/* Keep decorative infinite animations asleep until the widget is near the viewport. */
body:not(.elementor-editor-active) :is(
  .uhe-section,
  .z-us-section,
  .uvh-widget.ultrasound-video-hero,
  .swi-widget,
  .sw-process-section,
  .sw-founder-section
):not(.swaew-in-view) * {
  animation-play-state: paused !important;
}

/* Reduce paint cost on lower-power / data-saver devices without changing layout. */
html.swaew-low-power body:not(.elementor-editor-active) :is(
  .uhe-section,
  .z-us-section,
  .sw-process-section,
  .sw-founder-section
) * {
  animation: none !important;
}

html.swaew-low-power body:not(.elementor-editor-active) :is(
  .uhe-section,
  .z-us-section,
  .sw-process-section,
  .sw-founder-section
) :is(.uhe-glass-card,.z-us-card,.sw-step-card,.sw-founder-quote,.sw-founder-floating-card) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 767px) {
  .uhe-section,
  .z-us-section,
  .uvh-widget.ultrasound-video-hero,
  .swi-widget,
  .sw-process-section,
  .sw-founder-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Mobile performance mode: preserve layout/colors, remove costly continuous GPU effects. */
@media (max-width: 767px) {
  body:not(.elementor-editor-active) :is(
    .uhe-section,
    .z-us-section,
    .uvh-widget.ultrasound-video-hero,
    .swi-widget,
    .sw-process-section,
    .sw-founder-section
  ) * {
    animation: none !important;
  }

  body:not(.elementor-editor-active) :is(
    .uhe-section,
    .z-us-section,
    .sw-process-section,
    .sw-founder-section
  ) * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
