/* =====================================================================
   MW FOOTER — frosted blue over the last section
   The Quick Links section pauses; a frosted tide of blue rises from the
   bottom of the screen over it (blur + the Figma gradient, #101010 at the
   top of the frame → #0061FF 630px down), and the footer's contents come
   out of the blur just behind its edge.
   Motion: assets/js/footer.js. Sizes are Figma px of the 2359 × 1066
   frame × --mw-u.
   ===================================================================== */

/* --- Edit values here ------------------------------------------------ */
.mw-ft {
	--mw-u:     calc(100vw / 2359);   /* 1 Figma px */
	--ft-dark:  #101010;
	--ft-blue:  #0061FF;
	--ft-ink:   #FFFFFF;
	--ft-head:  #E4E4E4;              /* logo */
	--ft-blur:  calc(18 * var(--mw-u));
	--ft-ease:  cubic-bezier(.19, 1, .22, 1);
	--ft-length: 115svh;              /* pinned length — footer.js sets this */
}

/* --- Section --------------------------------------------------------- */
.mw-ft {
	position: relative;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	background: linear-gradient(to bottom, var(--ft-dark) 0, var(--ft-blue) calc(630 * var(--mw-u)));
	color: var(--ft-ink);
	overflow-x: clip;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	pointer-events: auto;
}

.elementor-widget-mw-footer,
.elementor-widget-mw-footer > .elementor-widget-container {
	pointer-events: none;            /* the section pulls itself up over the one before */
}

body:has(.mw-ft) {
	overflow-x: clip;
}

.e-con:has(> .elementor-widget-mw-footer),
.e-con:has(> .e-con-inner > .elementor-widget-mw-footer) {
	position: relative;
	z-index: 11;
}
.e-con:has(> .elementor-widget-mw-footer),
.e-con:has(> .e-con-inner > .elementor-widget-mw-footer),
.e-con:has(> .e-con-inner > .elementor-widget-mw-footer) > .e-con-inner {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--gap: 0px;
	padding: 0 !important;
	gap: 0 !important;
}

.mw-ft *,
.mw-ft *::before,
.mw-ft *::after {
	box-sizing: border-box;
}

/* --- The frosted tide (footer.js) -------------------------------------- */
.mw-ft__glass {
	display: none;
}

.mw-ft--js {
	margin-top: -100svh;
	background: transparent;
	pointer-events: none;
}

.mw-ft--js.is-in {
	pointer-events: auto;
}

.mw-ft--js .mw-ft__glass {
	--m: -35%;                         /* how far up the frost has risen */
	display: block;
	position: sticky;
	top: 0;
	height: 100svh;
	margin-bottom: -100svh;
	background: linear-gradient(to bottom, rgba(0, 97, 255, 0) max(calc(100% - 1066 * var(--mw-u)), 0%), var(--ft-blue) calc(100% - 436 * var(--mw-u)));
	-webkit-backdrop-filter: blur(max(10px, var(--ft-blur)));
	backdrop-filter: blur(max(10px, var(--ft-blur)));
	-webkit-mask-image: linear-gradient(to top, #000 var(--m), rgba(0, 0, 0, 0) calc(var(--m) + 35%));
	mask-image: linear-gradient(to top, #000 var(--m), rgba(0, 0, 0, 0) calc(var(--m) + 35%));
	pointer-events: none;
}

.mw-ft--js.is-in .mw-ft__glass {
	pointer-events: auto;              /* the section behind can't be clicked through the frost */
}

.mw-ft--js.is-full .mw-ft__glass {
	-webkit-mask-image: none;
	mask-image: none;
}

.mw-ft__stage {
	position: relative;
	z-index: 1;
}

.mw-ft--pin {
	height: calc(100svh + var(--ft-length));
	--mw-u: min(calc(100vw / 2359), calc(100svh / 1066));
}

.mw-ft--pin .mw-ft__stage {
	position: sticky;
	top: 0;
	height: 100svh;
}

.mw-ft--pin .mw-ft__inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

/* --- Layout: the 2359 × 1066 Figma frame ------------------------------ */
.mw-ft__inner {
	position: relative;
	height: calc(1066 * var(--mw-u));
	font-size: calc(20 * var(--mw-u));
	line-height: calc(24 * var(--mw-u));
}

/* left: logo, address, contact, branches */
.mw-ft__brand {
	position: absolute;
	left: calc(234 * var(--mw-u));
	top: 0;
	width: calc(520 * var(--mw-u));
	height: 100%;
}

.mw-ft .mw-ft__logo {
	position: absolute;
	left: 0;
	top: calc(489 * var(--mw-u));
	display: block;
	width: calc(133 * var(--mw-u));
	color: var(--ft-head);
	filter: drop-shadow(0 calc(6 * var(--mw-u)) calc(12 * var(--mw-u)) rgba(0, 20, 80, .35));
	transition: transform .6s var(--ft-ease);
}

.mw-ft__mark,
.mw-ft__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.mw-ft .mw-ft__block {
	position: absolute;
	left: 0;
	top: calc(608 * var(--mw-u));
	margin: 0;
	font-style: normal;
	font-size: inherit;
	line-height: inherit;
	color: var(--ft-ink);
}

.mw-ft .mw-ft__block--branches {
	top: calc(830 * var(--mw-u));
}

.mw-ft .mw-ft__contact,
.mw-ft .mw-ft__contact:hover,
.mw-ft .mw-ft__contact:focus {
	position: absolute;
	left: 0;
	top: calc(707 * var(--mw-u));
	display: inline-flex;
	align-items: center;
	gap: calc(16 * var(--mw-u));
	font-size: inherit;
	line-height: inherit;
	text-decoration: none;
	color: var(--ft-ink);
}

.mw-ft .mw-ft__contact + .mw-ft__contact {
	top: calc(752 * var(--mw-u));
}

.mw-ft__contact svg {
	flex: none;
	width: calc(20 * var(--mw-u));
	height: calc(20 * var(--mw-u));
	min-width: 14px;
	min-height: 14px;
}

/* the three link columns */
.mw-ft__cols {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
}

.mw-ft__col {
	position: absolute;
	top: calc(133 * var(--mw-u));
	left: calc(900 * var(--mw-u));
	width: calc(420 * var(--mw-u));
}

.mw-ft__col:nth-child(2) { left: calc(1364 * var(--mw-u)); }
.mw-ft__col:nth-child(3) { left: calc(1852 * var(--mw-u)); width: calc(400 * var(--mw-u)); }

.mw-ft .mw-ft__h {
	margin: 0 0 calc(72 * var(--mw-u));
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: calc(20 * var(--mw-u));
	line-height: calc(24 * var(--mw-u));
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--ft-ink);
}

.mw-ft .mw-ft__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mw-ft .mw-ft__list + .mw-ft__list {
	margin-top: calc(206 * var(--mw-u));   /* the lower group starts where the design has it (with six links above) */
}

.mw-ft .mw-ft__list li {
	margin: 0 0 calc(18 * var(--mw-u));
	padding: 0;
	line-height: calc(24 * var(--mw-u));
}

.mw-ft .mw-ft__a,
.mw-ft .mw-ft__a:hover,
.mw-ft .mw-ft__a:focus {
	position: relative;
	display: inline-block;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: calc(20 * var(--mw-u));
	line-height: calc(24 * var(--mw-u));
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	color: var(--ft-ink);
	cursor: pointer;
	transition: opacity .35s ease;
}

/* hover: a hairline draws in under the link, its neighbours step back */
.mw-ft__a > span,
.mw-ft__contact > span {
	position: relative;
	display: inline-block;
	transition: transform .5s var(--ft-ease);
}

.mw-ft__a > span::after,
.mw-ft__contact > span::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform .5s var(--ft-ease);
}

@media (hover: hover) {
	.mw-ft__a:hover > span::after,
	.mw-ft__contact:hover > span::after {
		transform: scaleX(1);
		transform-origin: 0 50%;
	}
	.mw-ft__a:hover > span {
		transform: translate3d(calc(6 * var(--mw-u)), 0, 0);
	}
	.mw-ft__col:has(.mw-ft__a:hover) .mw-ft__a:not(:hover) {
		opacity: .55;
	}
	.mw-ft .mw-ft__logo:hover {
		transform: translate3d(0, calc(-4 * var(--mw-u)), 0);
	}
}

.mw-ft .mw-ft__a:focus-visible,
.mw-ft .mw-ft__contact:focus-visible,
.mw-ft .mw-ft__logo:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 4px;
}

.mw-ft .mw-ft__copy {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(1001 * var(--mw-u));
	margin: 0;
	text-align: center;
	font-size: inherit;
	line-height: inherit;
	color: var(--ft-ink);
}

.mw-ft .mw-ft__copy strong {
	font-weight: 600;
}

.mw-ft .mw-ft__copy a {
	color: inherit;
	text-decoration: none;
}

/* --- Tablets & phones -------------------------------------------------- */
@media (max-width: 1024px) {
	.mw-ft {
		--pad: 24px;
		background: linear-gradient(to bottom, var(--ft-dark) 0, var(--ft-blue) 340px);
	}

	.mw-ft--js {
		background: transparent;
	}

	.mw-ft--js .mw-ft__glass {
		background: linear-gradient(to bottom, rgba(0, 97, 255, .25) 0, var(--ft-blue) 55%);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}

	.mw-ft__inner {
		height: auto;
		padding: 72px var(--pad) 36px;
		font-size: 15px;
		line-height: 1.5;
	}

	.mw-ft--js .mw-ft__inner {
		padding-top: 175svh;           /* the frost covers the screen first, then the footer scrolls up over it */
	}

	.mw-ft__brand,
	.mw-ft .mw-ft__logo,
	.mw-ft .mw-ft__block,
	.mw-ft .mw-ft__contact,
	.mw-ft .mw-ft__contact:hover,
	.mw-ft .mw-ft__contact:focus,
	.mw-ft__cols,
	.mw-ft__col,
	.mw-ft .mw-ft__copy {
		position: static;
		width: auto;
	}

	.mw-ft__col:nth-child(2),
	.mw-ft__col:nth-child(3) {
		left: auto;
		width: auto;
	}

	.mw-ft__brand {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.mw-ft .mw-ft__logo {
		width: 84px;
		margin-bottom: 14px;
	}

	.mw-ft .mw-ft__contact,
	.mw-ft .mw-ft__contact:hover,
	.mw-ft .mw-ft__contact:focus {
		gap: 12px;
	}

	.mw-ft__cols {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 44px 20px;
		margin-top: 52px;
		padding-top: 40px;
		border-top: 1px solid rgba(255, 255, 255, .22);
	}

	.mw-ft .mw-ft__h {
		margin-bottom: 18px;
		font-size: 13px;
		line-height: 1.3;
		letter-spacing: .04em;
	}

	.mw-ft .mw-ft__list + .mw-ft__list {
		margin-top: 22px;
	}

	.mw-ft .mw-ft__list li {
		margin-bottom: 10px;
		line-height: 1.35;
	}

	.mw-ft .mw-ft__a,
	.mw-ft .mw-ft__a:hover,
	.mw-ft .mw-ft__a:focus {
		font-size: 15px;
		line-height: 1.35;
	}

	.mw-ft .mw-ft__copy {
		margin-top: 52px;
		padding-top: 24px;
		border-top: 1px solid rgba(255, 255, 255, .22);
		font-size: 12.5px;
		line-height: 1.5;
	}
}

@media (max-width: 1024px) and (min-width: 600px) {
	.mw-ft {
		--pad: 48px;
	}
	.mw-ft__cols {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mw-ft *,
	.mw-ft *::before,
	.mw-ft *::after {
		transition: none !important;
	}
}