/* Hide empty sections, containers, and columns in Elementor to remove unwanted gaps */
.elementor-section-empty,
.elementor-empty,
.elementor-widget-empty,
.elementor-element-empty,
.elementor-top-section:empty,
.elementor-section:empty,
.elementor-container:empty,
div[data-element_type="section"]:empty,
div[data-element_type="container"]:empty {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Target first section on any page to ensure it sits flush with the header */
.elementor-section-wrap > .elementor-section:first-child,
.elementor-section-wrap > .elementor-container:first-child,
.elementor-section-wrap > .elementor-element:first-child,
.elementor > .elementor-element:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reset spacing on custom global header wrapper */
.custom-global-header-wrapper,
header.site-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Page specific overrides for Contact Us (ID: 21977) */
body.page-id-21977 .site-content,
body.page-id-21977 #content,
body.page-id-21977 .elementor-21977 .elementor-inner,
body.page-id-21977 .elementor-21977 .elementor-section-wrap > .elementor-element:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
