/* LEGACY: delete when the last Elementor page is converted (see spec). */
/* reviews page */
.reviews-flex-section :has(.review-col) {
	gap: 25px;
	flex-wrap: nowrap;
}

.reviews-flex-section .review-col > div.elementor-widget-wrap {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.reviews-flex-section .reviews-inner-section > .elementor-container {
	gap: 10px;
	flex-wrap: nowrap;
}

.reviews-flex-section .reviews-inner-section > .elementor-container > .elementor-column:has(img) {
 flex: 0 0 70px;
}

.margin-bottom-zero p {
	margin-bottom: 0;
}

/* Footer */
.footer-info-col .contact-info a {
	color: inherit;
}
.footer-links-column .footer-links ul {
	list-style: none;
	margin-left: 0;
}
.footer-links-column .footer-links ul a {
	color: inherit;
}
footer.ig-footer > div.elementor-container {
	justify-content: space-between;
}
.footer-contact-button a.elementor-button {
	width: 100%;
	max-width: 225px;
}
footer.ig-footer .elementor-icon.elementor-social-icon {
	height: auto;
	width: auto;
}

/* Media Queries */
.page-id-16707 .elementor-section.elementor-section-boxed > .elementor-container,
.page-id-17803 .elementor-section.elementor-section-boxed > .elementor-container,  /* thank you */
.page-id-17772 .elementor-section.elementor-section-boxed > .elementor-container,
.page-id-17889 .elementor-section.elementor-section-boxed > .elementor-container, /* unions and associations */
.page-id-18123 .elementor-section.elementor-section-boxed > .elementor-container, /* New Homepage */
.page-id-18162 .elementor-section.elementor-section-boxed > .elementor-container, /* New Homepage white starting container */
.page-id-18310 .elementor-section.elementor-section-boxed > .elementor-container, /* Municipalities */
.page-id-17733 .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: 1222px;
}
body .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: 1222px;
}

.header-request-button {
    visibility: hidden;
    opacity: 0;
    top: -10px;
    -webkit-transition: all .3s;
	transition: all .3s;
}

.hero-section-landing:not(.hero-section-landing-two) > div.elementor-container {
    padding: 30px 0;
}
.hero-section-landing.hero-section-landing-two > div.elementor-container {
    display: none;
}
.hero-section-landing .hero-max-width {
	max-width: 550px;
}
.page-template .eae-popup .mfp-container {
	text-align: initial;
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	padding: 0;
	box-sizing: border-box;
}
.hero-section-landing .hero-request-quote a {
	width: 100%;
	max-width: 384px;
	display: flex;
	justify-content: center;
}

.hero-section-landing-ontario > .elementor-container > .elementor-column:first-child .elementor-inner-section > .elementor-container {
    margin-right: 0
}
.hero-section-landing-ontario > .elementor-container > .elementor-column:last-child .elementor-inner-section > .elementor-container {
    margin-left: 0
}

.page-template .eae-popup .mfp-content {
	position: absolute;
	display: block;
	margin: 0;
	text-align: left;
	z-index: 1045;
	top: 20px;
	right: 20px;
	max-width: 583px;
	width: auto;
}

.page-template .eae-popup .mfp-inline-holder .mfp-content {
	width: auto;
	background-color: #fff;
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	/* max-height: 80vh; */
	overflow-y: auto;
}

.page-template .mfp-move-horizontal.mfp-ready .mfp-content {
	opacity: 1;
	transform: none;
}

.page-template .eae-popup .eae-close {
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
}

.bp-popup .eae-close.fas {
	background: #3879b6;
	padding: 18px;
	border-radius: 100px;
}

.quote-request-heading {
	font-weight: 700;
	font-size: 28px;
    line-height: 38px;
	color: var(--e-global-color-fe24260);
	font-family: "Nunito Sans", sans-serif;
    margin-bottom: 16px;
}
.popup-para {
	font-size: 18px;
    line-height: 28px;
	font-family: "Nunito Sans", sans-serif;
    font-weight: 600;
    margin-bottom: 24px;
}
.testimonial-section .elementor-testimonial {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.testimonial-section .elementor-widget-testimonial-carousel .elementor-testimonial__footer {
    align-items: start;
}
.testimonial-section .elementor-testimonial__image {
    padding-top: 3.5px;
}
.testimonial-section .elementor-testimonial__cite {
    gap: 4px;
}
.testimonial-section .elementor-testimonial__cite:not(:has(.elementor-testimonial__title)) {
    margin-top: 21px;
}
.testimonial-section .swiper-slide {
	height: 100%;
}
.testimonial-section
	.elementor-widget-wrap.elementor-element-populated.e-swiper-container {
	flex-wrap: nowrap;
	padding: 0;
}
.testimonial-section .elementor-widget-testimonial-carousel .elementor-main-swiper {
	width: 100%;
}
@media (max-width: 766px) {
    .testimonial-section .elementor-widget-testimonial-carousel .elementor-testimonial__footer {
        height: auto !important;
    }
}
.trusted-by-section .carousel div.swiper-pagination.swiper-pagination-bullets {
	bottom: -8px;
}
/* ontario logos */
.trusted-by-section.carousel-ontario-logos > .elementor-container:before,
.trusted-by-section.carousel-ontario-logos > .elementor-container:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    width: 99999px;
    height: 100%;
    background: #3879B6;
    z-index: 5;
}
.trusted-by-section.carousel-ontario-logos > .elementor-container:before {
    right: 100%;
}
.trusted-by-section.carousel-ontario-logos > .elementor-container:after {
    left: 100%;
}
.trusted-by-section.carousel-ontario-logos .swiper,
.trusted-by-section.carousel-ontario-logos .swiper-slide {
    overflow: visible;
}
.trusted-by-section.carousel-ontario-logos .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.trusted-by-section.carousel-ontario-logos .swiper-slide-inner {
    position: relative;
    width: calc(100% - 24px);
    max-width: 240px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}
.trusted-by-section.carousel-ontario-logos .swiper-slide-inner .logo-popup,
.trusted-by-section.carousel-ontario-logos .swiper-slide-inner:before {
    content: "";
    display: block;
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
}
.trusted-by-section.carousel-ontario-logos .swiper-slide-inner:before {
    bottom: calc(100% - 10px);
    right: 0px;  /* (154px - 30px) / 2 = 62 (align triangle to middle of box) */
    width: 0;
    height: 0;
    border: solid transparent;
    border-top-color: #499ACD;
    border-width: 26px 15px 0;
}
.trusted-by-section.carousel-ontario-logos .swiper-slide-inner .logo-popup {
    bottom: calc(100% - 10px + 26px);
    right: -62px;
    width: 154px;
    height: 273px;
    background-color: #fff;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: 4px solid #499ACD;
    border-radius: 15.28px;
}
.trusted-by-section.carousel-ontario-logos .swiper-slide-inner:hover .logo-popup,
.trusted-by-section.carousel-ontario-logos .swiper-slide-inner:hover:before {
    visibility: visible;
    opacity: 1;
}
.trusted-by-section.carousel-ontario-logos img {
    width: auto;
    height: 80px;
    object-fit: contain;
    transition: all .3s;
}
.trusted-by-section.carousel-ontario-logos .swiper-slide-inner:hover img {
    transform: scale(1.08);
}
.trusted-by-section.carousel-ontario-logos .elementor-swiper-button {
    align-items: center;
    height: 100%;
    background: #3879B6;
}
/* ontario testimonials */
.testimonial-section .carousel-ontario.elementor-widget-testimonial-carousel.elementor-pagination-type-bullets .swiper {
    padding-bottom: 32px;
}
@media (max-width: 1024px) {
    .testimonial-section .carousel-ontario.elementor-widget-testimonial-carousel .swiper-slide {
        padding: 25.6px !important;
    }
    .testimonial-section .carousel-ontario.elementor-widget-testimonial-carousel .elementor-testimonial__image {
        padding-top: 2.6px;
    }
    .testimonial-section .carousel-ontario.elementor-widget-testimonial-carousel .elementor-testimonial__cite {
        gap: 3.2px;
    }
    .testimonial-section .carousel-ontario.elementor-widget-testimonial-carousel .elementor-testimonial__cite:not(:has(.elementor-testimonial__title)) {
        margin-top: 16.6px;
    }
}

.trusted-by-section .carousel-ontario div.swiper-pagination.swiper-pagination-bullets {
	bottom: -26px;
}

.who-section .who-section-box-inner-section .elementor-container:has(> .flex-col) {
	justify-content: space-between;
	gap: 20px;
	flex-wrap: nowrap;
}

.who-section .who-section-box-inner-section .flex-col .elementor-widget-wrap {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
}
.who-section
	.who-section-box-inner-section
	.flex-col
	.elementor-widget-wrap
	> :first-child {
	margin-bottom: auto;
}
.who-section
	.who-section-box-inner-section
	.flex-col
	.elementor-widget-container:has(> img) {
	display: flex;
	justify-content: start;
}

.who-section .enhanced-desktop-image-column > div.elementor-widget-wrap {
	display: flex;
	justify-content: end !important;
	align-content: end;
}
.enhanced-desktop-image-column .enhanced-desktop-image {
	padding-right: 40px;
}

.who-section .enhanced-desktop-image-column-2 > div.elementor-widget-wrap {
	display: flex;
	justify-content: end !important;
	align-content: end;
}
.enhanced-desktop-image-column-2 div.enhanced-desktop-image-2 {
	width: auto;
	margin: 0;
}
.enhanced-desktop-image-column-2 div.enhanced-desktop-image-2 img {
	margin-right: -20px;
}

.elementor-widget-wrap > .elementor-element .max-w-ft {
	max-width: 442px;
}

.minicipal-h-max-width h2 {
	max-width: 650px;
}
.minicipal-h-max-width > .elementor-widget-container {
	display: flex;
	justify-content: center;
}

.help-section-image-desktop img {
	width: 400px !important;
}

.thank-you-section {
	height: calc(100vh - 192px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.homepage-blog-posts .elementor-widget-theme-post-featured-image img {
	border-radius: 20px;
}

.mobile-accordion .elementor-accordion .elementor-accordion-item {
    border-radius: 10px;
    margin-bottom: 15px;
}
.mobile-accordion .elementor-accordion .elementor-tab-title {
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    gap: 16px;
}
.mobile-accordion .elementor-accordion .elementor-tab-content {
    border-top: none;
}
.mobile-accordion .elementor-accordion .elementor-tab-content > * {
    margin-bottom: 15px;
}
.mobile-accordion .elementor-accordion .elementor-tab-content > :last-child {
    margin-bottom: 0;
}
.mobile-accordion .elementor-accordion .elementor-tab-content > p:has(img) {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
}
.mobile-accordion .elementor-accordion .elementor-tab-content > p:has(img) > br {
    display: none;
}
.mobile-accordion .elementor-accordion .elementor-tab-content img {
    width: auto;
    height: 50px;
}
.mobile-accordion
    .elementor-accordion
    .elementor-accordion-item
    + .elementor-accordion-item {
    border-top: 2px solid var(--e-global-color-primary);
}
@media (min-width: 1025px) {
    .mobile-accordion .elementor-accordion .elementor-tab-title {
        gap: 24px;
    }
}

.website-app-table article.eae-ct-wrapper {
    max-width: 100%;
}
.website-app-table .eae-ct-wrapper ul {
    padding-bottom: 0;
}
.website-app-table li.eae-ct-heading {
    border-bottom: 3px solid transparent;
}
.website-app-table li.eae-ct-heading.active {
    border-color: var(--e-global-color-fe24260);
}
.website-app-table table {
    border-collapse: separate;
}
.website-app-table td {
    vertical-align: top;
}
.website-app-table tbody tr td:first-child {
    text-align: left;
    padding: 16px 0;
}
.website-app-table tr:nth-last-child(-n + 2) td {
    border: none !important;
}
.website-app-table td.eae-ct-txt:has(.fas) {
    font-size: 11px !important;
}
.website-app-table td.eae-ct-txt .fa-circle:has(+ .fa-check) {
    color: #00C30F;
}
.website-app-table td.eae-ct-txt .fa-circle:has(+ .fa-times) {
    color: #EB0000;
}
@media (max-width: 767px) {
    .website-app-table article.eae-ct-wrapper {
        padding-top: 65px;
    }
    .website-app-table .eae-ct-wrapper ul {
        position: absolute;
        top: 0;
        z-index: 10;
        width: 100%;
    }
    .website-app-table .eae-ct-wrapper ul.sticky {
        position: fixed;
        top: 65px;
        width: calc(100% - 2 * 39px);
    }
    .website-app-table .eae-ct-wrapper ul.bottom {
        top: unset;
        bottom: 0;
    }
    .website-app-table .eae-ct-wrapper ul.bottom + table {
        visibility: hidden;
    }
}
@media (min-width: 768px) {
    .website-app-table table {
        display: flex;
    }
    .website-app-table table tbody {
        width: 100%;
        padding-top: 65px;
    }
    .website-app-table .eae-ct-heading,
    .website-app-table td,
    .website-app-table td+td {
        width: 25%;
        height: auto;
    }
    .website-app-table tbody tr td:first-child {
        width: 50%;
    }
    .website-app-table td.eae-ct-txt:has(.fas) {
        font-size: 14px !important;
    }
    .website-app-table .eae-ct-header {
        position: absolute;
        top: 0;
        z-index: 10;
        width: 100%;
        display: flex;
    }
    .website-app-table .eae-ct-header.sticky {
        position: fixed;
        top: 85px;
        width: calc(100% - 2 * 49px);
    }
    .website-app-table .eae-ct-header.bottom {
        top: unset;
        bottom: 0;
    }
    .website-app-table .eae-ct-header.bottom ~ tr {
        visibility: hidden;
    }
}
@media (min-width: 1025px) {
    .website-app-table table tbody {
        padding-top: 103px;
    }
    .website-app-table tbody tr td:first-child {
        padding: 32px 0;
    }
    .website-app-table td.eae-ct-txt:has(.fas) {
        font-size: 17px !important;
    }
    .website-app-table .eae-ct-header.sticky {
        top: 90px;
        width: calc(100% - 2 * 65px);
        max-width: 1152px;
    }
}

.request-quote-trigger a {
    cursor: pointer;
}

/* Case Study Anchor */
.case-study-anchor .elementor-column {
    position: absolute;
    top: -65px;
}
.case-study-anchor.can .elementor-column {
    top: -87px;
}
@media (min-width: 768px) {
    .case-study-anchor .elementor-column,
    .case-study-anchor.can .elementor-column {
        top: -85px;
    }
}
@media (min-width: 1025px) {
    .case-study-anchor .elementor-column,
    .case-study-anchor.can .elementor-column {
        top: -90px;
    }
}

/* Case Study Popup */
.case-study-trigger a {
    cursor: pointer;
}
.case-study-popup {
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    position: fixed !important;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgb(0 0 0 / 75%);
    z-index: 9999;
}
.case-study-popup.active {
    opacity: 1;
    visibility: visible;
}
.case-study-popup > .elementor-container,
.case-study-popup > .elementor-container > .elementor-column,
.case-study-popup .elementor-inner-section {
    height: 100%;
}
.case-study-popup > .elementor-container {
    width: calc(100% - 40px);
    max-width: 360px !important;
    max-height: min(90vh, 1061px);
    background: #fff;
    border-radius: 20px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.case-study-popup .elementor-inner-section {
    padding: 16px 16px 0;
    overflow: auto;
    overscroll-behavior: none;
}
.case-study-popup-close {
    width: 32px !important;
    position: absolute !important;
    top: 16px;
    right: 16px;
    z-index: 1;
    cursor: pointer;
}
.case-study-popup-close .elementor-icon-wrapper {
    height: 32px;
}
@media (min-width: 768px) {
    .case-study-popup > .elementor-container {
        width: calc(100% - 60px);
        max-width: 1222px !important;
    }
    .case-study-popup .elementor-inner-section > .elementor-container > .elementor-column:first-child {
        position: sticky;
        top: 0;
        height: 100%;
    }
}
@media (min-width: 1025px) {
    .case-study-popup .elementor-inner-section {
        padding: 32px 64px 15px 32px;
    }
    .case-study-popup img {
        max-height: calc(90vh - 64px);
        object-fit: contain;
        object-position: left;
    }
}

@media (width: 1024px) {
    .testimonial-section:has(.carousel-ontario) {
        margin-bottom: 0px !important;
    }
    .testimonial-section.testimonial-section-us {
        margin-bottom: -8px !important;
    }
}

/* Tablet Portrait and below (1024px and down) */
/* For Elementor's "Tablet" (Tablet Portrait): */
@media screen and (max-width: 1024px) {
    .quote-request-heading {
		font-size: 22px;
        line-height: 32px;
	}
    .popup-para {
		font-size: 16px;
		line-height: 24px;
	}
    .hero-section-landing > div.elementor-container {
		height: calc(100vh - 86px - 200px);
		max-height: 1200px;
	}
    .hero-section-landing.hero-section-landing-home > div.elementor-container {
		height: calc(100vh - 119px - 200px);
	}
    .hero-section-landing.hero-section-landing-two  > div.elementor-container {
        height: 200px;
        display: flex;
        flex-direction: column;
    }
    .hero-section-landing.hero-section-landing-two.hero-section-landing-two-ontario  > div.elementor-container {
        height: 444px;
    }
	.hero-section-landing.elementor-section.elementor-section-items-middle
		> .elementor-container {
		align-items: end;
	}
	.hero-section-landing .column-1 .hero-request-quote {
		display: flex;
		justify-content: center;
	}

	.hero-section-landing .elementor-inner-section div.column-1 {
		width: 100%;
	}
	.hero-section-landing .elementor-inner-section div.column-1 .elementor-widget-wrap {
		border-radius: 0%;
	}
	.hero-section-landing div.column-1 .request-quote-btn .elementor-button-wrapper {
		display: flex;
		justify-content: center;
	}
	.hero-section-landing .hero-max-width {
		max-width: 100%;
	}
	#column-1.column-1 .elementor-widget-wrap {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0) -250%, #ffffff 100%);
	}
	.help-section .help-image-column > div.elementor-widget-wrap {
		align-content: end;
	}

	.reviews-flex-section :has(.review-col) {
		flex-wrap: nowrap !important;
		flex-direction: row;
	}
}

@media (max-width: 1023px) {
    .hero-section-landing.hero-section-landing-home > div.elementor-container {
		height: calc(100vh - 221px - 200px);
	}
}

/* Mobile Portrait and below (767px and down) */
@media (max-width: 767px) {
	.hero-section-landing .elementor-container .column-1 > div.elementor-widget-wrap {
		padding: 24px 20px 36px;
	}
	.hero-section-landing > div.elementor-container {
		height: calc(100vh - 66px - 200px);
	}
    .hero-section-landing.hero-section-landing-home > div.elementor-container {
		height: calc(100vh - 82px - 200px);
	}
    .hero-section-landing.hero-section-landing-can > div.elementor-container {
		height: calc(100vh - 88px - 200px);
	}
	#column-1.column-1 .elementor-widget-wrap {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0) -250%, #ffffff 100%);
	}
	.hero-section-landing .request-quote-btn a {
		width: 100%;
	}

	.who-section .who-section-box-inner-section .elementor-container:has(> .flex-col) {
		flex-direction: column;
	}

	/* modal */
	.page-template .eae-popup .mfp-content {
		top: 0;
		right: 0;
		left: 0;
		bottom: 0;
	}
	.bp-popup .eae-close.fas {
		padding: 15px;
	}
	.eae-close.fas.fa-times::before {
		font-size: 22px;
	}

	.mobile-col-height > div {
		min-height: 364px;
	}

	.mobile-footer {
		background-color: #3879b6 !important;
	}

	.enhanced-desktop-image-column .enhanced-desktop-image,
	.enhanced-desktop-image-column-2 .enhanced-desktop-image {
		padding-right: 0px;
	}
	.enhanced-desktop-image-column .enhanced-desktop-image img,
	.enhanced-desktop-image-column-2 .enhanced-mobile-image img {
		max-width: 235px;
	}
	.who-section
		.enhanced-desktop-image-column-2
		.enhanced-mobile-image
		.elementor-widget-container {
		display: flex;
		justify-content: end !important;
		align-items: end;
	}

	.mfp-container:has(#hubspot-form-container) {
		margin-top: 60px;
	}

	.thank-you-section {
		height: calc(100vh - 166px);
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.reviews-flex-section :has(.review-col) {
		flex-wrap: wrap;
		flex-direction: column;
	}
}

@media screen and (max-width: 508px) {
    .hero-section-landing.hero-section-landing-two.hero-section-landing-two-form  > div.elementor-container {
        height: 470px;
    }
}
@media screen and (max-width: 524px) {
    .hero-section-landing.hero-section-landing-two-ontario.hero-section-landing-two-form  > div.elementor-container {
        height: 707px;
    }
}
