/**
 * Vimisa Elementor footer.
 */

:root {
	--vms-footer-max: 1240px;
	--vms-footer-bg: #fbfcfe;
	--vms-footer-ink: #0f172a;
	--vms-footer-text: #526076;
	--vms-footer-muted: #7b8798;
	--vms-footer-border: #e2e8f0;
	--vms-footer-primary: #2563eb;
}

.vms-footer,
.vms-footer * {
	box-sizing: border-box;
}

.vms-footer {
	width: 100%;
	max-width: 100%;
	padding: 42px 0 24px;
	border-top: 1px solid var(--vms-footer-border);
	background: var(--vms-footer-bg);
}

.vms-footer .elementor-element,
.vms-footer .e-con,
.vms-footer .elementor-widget {
	min-width: 0;
}

.vms-footer__inner {
	width: min(
		calc(100% - 40px),
		var(--vms-footer-max)
	);
	max-width: 100%;
	margin-inline: auto;
}

.vms-footer__main {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 42px;
	width: 100%;
	padding-bottom: 28px;
}

.vms-footer-brand {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	min-width: 0;
}

.vms-footer-brand__identity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vms-footer-brand .vms-brand__image {
	width: auto;
	height: 38px;
	max-width: 150px;
	object-fit: contain;
}

.vms-footer-brand__name .elementor-heading-title {
	margin: 0;
	color: var(--vms-footer-ink);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.2;
}

.vms-footer-brand__tagline,
.vms-footer-brand__tagline p {
	margin: 0;
	color: var(--vms-footer-muted);
	font-size: 0.78rem;
	line-height: 1.7;
}

.vms-footer-nav-wrap {
	flex: 0 1 auto;
}

.vms-footer-nav,
.vms-footer-menu {
	width: 100%;
}

.vms-footer-menu {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vms-footer-menu li {
	margin: 0;
	padding: 0;
}

.vms-footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--vms-footer-text);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: color 180ms ease;
}

.vms-footer-menu a:hover,
.vms-footer-menu a:focus-visible,
.vms-footer-menu .current-menu-item > a {
	color: var(--vms-footer-primary);
}

.vms-footer-menu a:focus-visible {
	border-radius: 5px;
	outline: 3px solid rgba(37, 99, 235, 0.18);
	outline-offset: 4px;
}

.vms-footer-contact-wrap {
	flex: 0 0 auto;
}

.vms-footer-contact .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 4px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--vms-footer-primary);
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transition:
		color 180ms ease,
		transform 180ms ease;
}

.vms-footer-contact .elementor-button:hover {
	background: transparent;
	color: #1e40af;
	transform: translateY(-1px);
}

.vms-footer-contact .elementor-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.2);
	outline-offset: 3px;
}

.vms-footer__bottom {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding-top: 18px;
	border-top: 1px solid var(--vms-footer-border);
}

.vms-footer-copyright,
.vms-footer-copyright p,
.vms-footer-privacy,
.vms-footer-privacy p {
	margin: 0;
	color: var(--vms-footer-muted);
	font-size: 0.72rem;
	line-height: 1.7;
}

.vms-footer-privacy a {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease;
}

.vms-footer-privacy a:hover,
.vms-footer-privacy a:focus-visible {
	color: var(--vms-footer-primary);
}

/* Tablet and mobile */
@media (max-width: 1024px) {
	.vms-footer {
		padding-top: 38px;
	}

	.vms-footer__main {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
	}

	.vms-footer-brand,
	.vms-footer-nav-wrap,
	.vms-footer-contact-wrap {
		width: 100%;
	}

	.vms-footer-menu {
		justify-content: flex-start;
		gap: 14px 20px;
	}

	.vms-footer-contact .elementor-button {
		justify-content: flex-start;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.vms-footer {
		padding:
			34px
			0
			calc(24px + env(safe-area-inset-bottom));
	}

	.vms-footer__inner {
		width: min(
			calc(100% - 32px),
			var(--vms-footer-max)
		);
	}

	.vms-footer__main {
		padding-bottom: 22px;
	}

	.vms-footer-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px 12px;
	}

	.vms-footer-menu a {
		width: 100%;
		min-height: 42px;
		white-space: normal;
	}

	.vms-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.vms-footer-brand .vms-brand__image {
		height: 34px;
		max-width: 130px;
	}
}

/* Very small screens */
@media (max-width: 340px) {
	.vms-footer__inner {
		width: min(
			calc(100% - 24px),
			var(--vms-footer-max)
		);
	}

	.vms-footer-menu {
		grid-template-columns: 1fr;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.vms-footer *,
	.vms-footer *::before,
	.vms-footer *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}