/**
 * Footer — Elementor Theme Builder + PHP fallback
 * Premium RTL · 5 equal columns · orange gradient
 */

.elementor-location-footer,
.american-mutual-footer {
	--amf-footer-bg-top: #d89216;
	--amf-footer-bg-bottom: #c97b00;
	--amf-footer-bar: #a85f00;
	--amf-footer-text: #ffffff;
	--amf-footer-hover: #ffe4a6;
	--amf-footer-border: rgba(255, 255, 255, 0.18);
	--amf-footer-max: 80rem;
	--amf-footer-pad-y: 4.375rem;
	--amf-footer-col-gap: 2.5rem;
	--amf-footer-heading-size: clamp(1.375rem, 2.5vw, 1.625rem);
	--amf-footer-link-size: clamp(1rem, 1.5vw, 1.125rem);
}

.elementor-location-footer > .elementor,
.american-mutual-footer {
	width: 100%;
	background: linear-gradient(180deg, var(--amf-footer-bg-top) 0%, var(--amf-footer-bg-bottom) 100%);
	color: var(--amf-footer-text);
}

.elementor-location-footer > .elementor > .e-con:first-child,
.elementor-location-footer .elementor-element.american-mutual-elementor-footer {
	background: linear-gradient(180deg, var(--amf-footer-bg-top) 0%, var(--amf-footer-bg-bottom) 100%) !important;
	color: var(--amf-footer-text);
}

.elementor-location-footer .e-con:not(.american-mutual-elementor-footer__bar) {
	background-color: transparent !important;
	background-image: none !important;
}

.american-mutual-footer__main,
.elementor-location-footer .american-mutual-elementor-footer__main-wrap {
	padding-block: var(--amf-footer-pad-y);
}

.american-mutual-footer__main .american-mutual-container,
.elementor-location-footer .american-mutual-elementor-footer__grid {
	max-width: var(--amf-footer-max);
	margin-inline: auto;
	padding-inline: 2rem;
}

.american-mutual-footer__grid,
.elementor-location-footer .american-mutual-elementor-footer__grid > .e-con-inner {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--amf-footer-col-gap);
}

.american-mutual-footer__col,
.elementor-location-footer .american-mutual-elementor-footer__col {
	flex: 1 1 calc(20% - var(--amf-footer-col-gap));
	min-width: 10.5rem;
}

.american-mutual-footer__heading,
.elementor-location-footer .american-mutual-elementor-footer__col .elementor-heading-title {
	margin: 0 0 1.25rem !important;
	font-size: var(--amf-footer-heading-size) !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: var(--amf-footer-text) !important;
}

.american-mutual-footer__text,
.elementor-location-footer .american-mutual-elementor-footer__col .elementor-widget-text-editor,
.elementor-location-footer .american-mutual-elementor-footer__col .elementor-widget-text-editor p {
	margin: 0 0 1.25rem;
	font-size: var(--amf-footer-link-size);
	line-height: 1.9;
	color: var(--amf-footer-text) !important;
}

.american-mutual-footer__logo {
	display: block;
	max-width: 11rem;
	height: auto;
	margin-block-end: 1rem;
	filter: brightness(0) invert(1);
}

.american-mutual-footer__links,
.american-mutual-footer__contact,
.american-mutual-footer__legal,
.american-mutual-footer__social,
.elementor-location-footer .elementor-icon-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.american-mutual-footer__links li,
.american-mutual-footer__contact li,
.elementor-location-footer .elementor-icon-list-item {
	margin: 0 0 0.625rem;
}

.american-mutual-footer__links a,
.american-mutual-footer__contact a,
.elementor-location-footer .elementor-icon-list-text {
	font-size: var(--amf-footer-link-size);
	line-height: 1.9;
	color: var(--amf-footer-text) !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.american-mutual-footer__links a:hover,
.american-mutual-footer__links a:focus-visible,
.american-mutual-footer__contact a:hover,
.american-mutual-footer__contact a:focus-visible,
.elementor-location-footer a.elementor-icon-list-item-link:hover .elementor-icon-list-text,
.elementor-location-footer a.elementor-icon-list-item-link:focus-visible .elementor-icon-list-text {
	color: var(--amf-footer-hover) !important;
}

.american-mutual-footer__contact-label {
	display: block;
	font-size: 0.875rem;
	opacity: 0.88;
	margin-block-end: 0.125rem;
}

.american-mutual-footer__contact-value {
	font-weight: 600;
}

.american-mutual-footer__contact-value--ltr {
	direction: ltr;
	text-align: start;
	display: inline-block;
}

.elementor-location-footer .elementor-icon-list-icon {
	display: none !important;
	width: 0 !important;
	margin: 0 !important;
}

.elementor-location-footer .elementor-icon-list-text {
	padding-inline-start: 0 !important;
}

.american-mutual-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-block-start: 0.5rem;
}

.american-mutual-footer__social-link,
.elementor-location-footer .elementor-social-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.375rem !important;
	height: 2.375rem !important;
	border: 1px solid var(--amf-footer-text) !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--amf-footer-text) !important;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.american-mutual-footer__social-link:hover,
.american-mutual-footer__social-link:focus-visible,
.elementor-location-footer .elementor-social-icon:hover,
.elementor-location-footer .elementor-social-icon:focus-visible {
	background: #ffffff !important;
	border-color: #ffffff !important;
	color: var(--amf-footer-bg-top) !important;
}

.american-mutual-footer__social-link:hover svg,
.elementor-location-footer .elementor-social-icon:hover svg {
	color: var(--amf-footer-bg-top) !important;
	fill: var(--amf-footer-bg-top) !important;
}

.american-mutual-footer__bar,
.elementor-location-footer .american-mutual-elementor-footer__bar {
	background: var(--amf-footer-bar) !important;
	border-block-start: 1px solid var(--amf-footer-border);
}

.american-mutual-footer__bar-inner,
.elementor-location-footer .american-mutual-elementor-footer__bar > .e-con-inner {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.375rem;
	max-width: var(--amf-footer-max);
	margin-inline: auto;
	padding: 1rem 2rem !important;
}

.american-mutual-footer__copyright,
.elementor-location-footer .american-mutual-elementor-footer__bar .elementor-widget-text-editor p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--amf-footer-text);
	opacity: 0.92;
}

.american-mutual-footer__bar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

.american-mutual-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.american-mutual-footer__legal a {
	font-size: 0.9375rem;
	color: var(--amf-footer-text);
	opacity: 0.92;
}

.american-mutual-footer__legal a:hover,
.american-mutual-footer__legal a:focus-visible {
	color: var(--amf-footer-hover);
	opacity: 1;
}

.american-mutual-footer__badge,
.elementor-location-footer .american-mutual-elementor-footer__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.4375rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--amf-footer-text);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--amf-footer-border);
	border-radius: 999px;
}

.elementor-location-footer .elementor-widget-image img {
	filter: brightness(0) invert(1);
	max-width: 11rem;
}

@media (max-width: 1024px) {
	.american-mutual-footer__col,
	.elementor-location-footer .american-mutual-elementor-footer__col {
		flex: 1 1 calc(33.333% - var(--amf-footer-col-gap));
	}
}

@media (max-width: 767px) {
	.american-mutual-footer__main,
	.elementor-location-footer .american-mutual-elementor-footer__main-wrap {
		padding-block: 2rem;
	}

	.american-mutual-footer__main .american-mutual-container,
	.elementor-location-footer .american-mutual-elementor-footer__grid {
		padding-inline: 1rem;
	}

	.american-mutual-footer__grid,
	.elementor-location-footer .american-mutual-elementor-footer__grid > .e-con-inner {
		gap: 2rem;
	}

	.american-mutual-footer__col,
	.elementor-location-footer .american-mutual-elementor-footer__col {
		flex: 1 1 100%;
		min-width: 100%;
	}

	.american-mutual-footer__bar-inner,
	.elementor-location-footer .american-mutual-elementor-footer__bar > .e-con-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		min-height: auto;
		padding-block: 1.25rem !important;
	}

	.american-mutual-footer__bar-actions {
		justify-content: center;
	}
}
