/* Site footer — rebuilt from Elementor template 35. */

/* ---------- Consultation banner ---------- */

.aew-cta {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 475px;
	padding: 0 50px;
	background-color: var(--aew-color-primary);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.aew-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--aew-color-primary);
	opacity: .73;
}

.aew-cta__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	min-width: 0;
	padding: 60px 0;
}

.aew-cta__heading {
	margin-bottom: -5px;
	color: var(--aew-color-white);
	font-family: var(--aew-font-accent);
	font-size: var(--aew-type-h40-size);
	font-weight: 700;
	line-height: var(--aew-type-h40-line);
	text-align: center;
}

.aew-cta__text {
	width: 760px;
	/* Fix: Elementor's 760px + 100px side margins overflowed the page between 768px and ~1000px. */
	max-width: 100%;
	margin: 0 0 20px;
	color: var(--aew-color-white);
	text-align: center;
}

.aew-cta__buttons {
	display: flex;
	justify-content: center;
	gap: 50px;
	width: 100%;
}

.aew-cta__btn {
	font-size: var(--aew-type-sub-size);
	font-weight: 600;
	line-height: var(--aew-type-sub-line);
}

.aew-cta__btn--primary:hover,
.aew-cta__btn--primary:focus {
	background-color: var(--aew-color-white);
	border-color: var(--aew-color-white);
	color: var(--aew-color-accent-dark);
}

.aew-cta__btn--outline {
	background-color: transparent;
	border-color: var(--aew-color-white);
	color: var(--aew-color-white);
}

.aew-cta__btn--outline:hover,
.aew-cta__btn--outline:focus {
	background-color: var(--aew-color-white);
	border-color: var(--aew-color-white);
	color: var(--aew-color-black);
}

/* ---------- Copyright / social bar ---------- */

.aew-footer__bar {
	margin-top: -260px;
	padding: 300px 50px 40px;
	background-color: var(--aew-color-light);
}

.aew-footer__bar-inner {
	display: flex;
	max-width: 1240px;
	margin-inline: auto;
}

.aew-footer__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex-shrink: 0;
	width: 55.346%;
	font-size: var(--aew-type-small-size);
	line-height: var(--aew-type-small-line);
}

/* Elementor: paragraph margin .9rem, text widget margin-bottom -.9em. */
.aew-footer__copy p {
	margin-bottom: calc(.9rem - .9em);
}

.aew-footer__copy strong {
	font-weight: 400;
}

.aew-footer__social {
	display: flex;
	flex: 1;
	justify-content: flex-end;
	align-items: center;
	gap: 5px;
	--aew-icon-size: 15px;
}

.aew-social {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: calc(var(--aew-icon-size) * 2.2);
	height: calc(var(--aew-icon-size) * 2.2);
	border: 1px solid var(--aew-color-black);
	border-radius: 50%;
	background-color: transparent;
	color: var(--aew-color-black);
	transition: background-color .3s, color .3s;
}

.aew-social svg {
	width: var(--aew-icon-size);
	height: var(--aew-icon-size);
	fill: currentColor;
}

/* Fix: the original turned the icon white on a near-white bar, making it vanish on hover. */
.aew-social:hover,
.aew-social:focus {
	background-color: var(--aew-color-black);
	color: var(--aew-color-white);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.aew-cta {
		padding: 0 20px;
	}

	.aew-footer__bar {
		margin-top: 0;
		padding: 40px 20px;
	}

	.aew-footer__copy {
		width: 80%;
	}

	.aew-footer__social {
		width: 20%;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.aew-cta__heading {
		margin-bottom: -10px;
	}

	.aew-cta__text {
		width: 100%;
		margin: 0;
	}

	.aew-cta__buttons {
		flex-wrap: wrap;
		gap: 10px;
	}

	.aew-cta__btn {
		display: block;
		width: 100%;
	}

	.aew-footer__bar {
		padding: 20px;
	}

	.aew-footer__bar-inner {
		flex-wrap: wrap;
	}

	.aew-footer__copy {
		width: 100%;
		padding-bottom: 10px;
		text-align: center;
	}

	.aew-footer__social {
		width: 100%;
		justify-content: center;
		--aew-icon-size: 12px;
	}
}
