/*
 * SECTION STYLE: THE FOOTER.
 *
 * The design (Figma home frame, 1440):
 *   10296-10394  the yellow strip with the coordinates
 *   10395        the white footer starts
 *   10533        "21-26"            10535  "NAVIGATE SERVICES:"
 *   10610        "© AITIO"          10670  the service list
 *   10725        "MENU:"            11190  "EMAIL:" / "PHONE:"
 *   10789        the menu links     11235  the email and the phone
 *   11049        "LANGUAGE:"        11278  "• ONLINE"
 *   11082        FI / EN            11358  "SOCIAL:"
 *   11076        the AITIO wordmark 11401  the privacy link
 *   11136-11506  the photo (bottom left, bleeding into the corner)
 */

/* ---- the yellow strip ------------------------------------------------ */

.aitio-footer__strip {
	position: relative;
	overflow: hidden;
	height: 99px;
	padding-top: 29px;
	background: var(--aitio-yellow);
	color: var(--aitio-dark);
}

/* One Figma group is 834.605 px wide. The first group starts with
 * the coordinates 42.895 px from the left edge and the agency line
 * 473.406 px from it. Two identical groups make the loop seamless:
 * the animation moves exactly one group (-50 %). */
.aitio-footer__strip-track {
	display: flex;
	align-items: flex-start;
	width: max-content;
	animation: aitio-footer-strip-scroll 46s linear infinite;
}

.aitio-footer__strip-group {
	position: relative;
	flex: 0 0 834.605px;
	width: 834.605px;
	height: 63px;
}

.aitio-footer__strip-coords,
.aitio-footer__strip-tag {
	position: absolute;
	top: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: 0;
	white-space: pre-line;
}

.aitio-footer__strip-coords {
	left: 42.895px;
}

.aitio-footer__strip-tag {
	left: 473.406px;
}

@keyframes aitio-footer-strip-scroll {

	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {

	.aitio-footer__strip-track {
		animation: none;
	}
}

/* ---- the white footer ------------------------------------------------ */

.aitio-footer {
	position: relative;
	overflow: hidden;
	background: var(--aitio-page);
	color: var(--aitio-ink);
}

.aitio-footer__main {
	position: relative;
	display: grid;
	grid-template-columns: 61.2% 39%;
	padding: 120px 35px 122px 110px;
}

/* ---- the left column ------------------------------------------------- */

.aitio-footer__years {
	margin: 0 0 12px;
	color: var(--aitio-ink);
	font-family: var(--aitio-font-display);
	font-size: 72px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.aitio-footer__copyright {
	margin: 0 0 98px;
	color: var(--aitio-dark);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0;
}

/* The small yellow marks: MENU:, NAVIGATE SERVICES:, EMAIL: ... */
.aitio-footer__mark {
	display: inline-block;
	margin: 0 0 33px;
	padding: 5px 7px;
	background: var(--aitio-yellow);
	color: var(--aitio-dark);
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.aitio-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 44px;
}

.aitio-footer__menu-link {
	color: var(--aitio-dark);
	font-size: 21px;
	font-weight: 400;
	line-height: 26px;
	letter-spacing: 0;
	text-decoration: none;
}

.aitio-footer__menu-link:hover {
	text-decoration: underline;
}

/* The language block and the wordmark sit on the same line. */
.aitio-footer__block--language {
	margin-top: 231px;
}

.aitio-footer__block--language .aitio-footer__mark {
	margin-bottom: 10px;
}

/* The Figma switcher: FI, the yellow capsule arrow, EN. The gaps
 * are 13 px and 8 px, so the whole block is 76.28 px wide like the
 * Figma group. */
.aitio-footer__lang {
	display: flex;
	align-items: center;
	gap: 0;
}

.aitio-footer__lang-link {
	color: var(--aitio-dark);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-decoration: none;
}

.aitio-footer__lang-arrow {
	display: inline-flex;
	align-items: center;
	margin: 0 8px 0 13px;
}

.aitio-footer__lang-arrow svg {
	display: block;
	width: 20.04px;
	height: 10.02px;
}

/* Base-theme fallback when a site has not added the arrow SVG. */
.aitio-footer__lang-sep {
	width: 1px;
	height: 12px;
	margin: 0 12px;
	background: rgba(21, 21, 21, 0.35);
}

/* The AITIO wordmark (design position: x 579, y 11076). */
.aitio-footer__logo {
	position: absolute;
	left: 499px;
	top: 673px;
}

.aitio-footer__logo img {
	display: block;
	width: 131px;
	height: auto;
}

/* ---- the right column ------------------------------------------------ */

.aitio-footer__right .aitio-footer__mark {
	margin-bottom: 21px;
}

.aitio-footer__services {
	max-width: 146px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aitio-footer__services li {
	margin: 0 0 37px;
	font-size: 19px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: 0;
}

.aitio-footer__services a {
	color: var(--aitio-ink);
	text-decoration: none;
}

.aitio-footer__services a:hover {
	text-decoration: underline;
}

.aitio-footer__contact {
	display: grid;
	grid-template-columns: 203px 1fr;
	gap: 0 56px;
	margin-top: 40px;
}

.aitio-footer__contact-cell .aitio-footer__mark {
	margin-bottom: 19px;
}

.aitio-footer__contact-link {
	display: block;
	color: var(--aitio-ink);
	font-size: 20px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0;
	text-decoration: none;
}

.aitio-footer__contact-link:hover {
	text-decoration: underline;
}

.aitio-footer__online {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 25px;
	color: #8a8a8a;
	font-size: 13px;
	line-height: 16px;
}

.aitio-footer__social-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-top: 57px;
}

.aitio-footer__social .aitio-footer__mark {
	margin-bottom: 13px;
}

.aitio-footer__social-list {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aitio-footer__social-link {
	display: inline-flex;
	color: var(--aitio-ink);
}

/* The Figma icons are 24 x 24 frames. */
.aitio-footer__social-link .aitio-icon {
	display: block;
	width: 24px;
	height: 24px;
}

.aitio-footer__social-link:hover {
	color: var(--aitio-yellow);
}

.aitio-footer__privacy {
	color: var(--aitio-dark);
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0;
	text-decoration: none;
}

.aitio-footer__privacy:hover {
	text-decoration: underline;
}

/* ---- the photo at the bottom left ------------------------------------- */

.aitio-footer__photo {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 710px;
	/* The space is reserved, so the page never jumps while the
	 * picture or the video is still loading. */
	aspect-ratio: 710 / 370;
}

.aitio-footer__photo img,
.aitio-footer__photo video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- smaller screens --------------------------------------------------- */

@media (max-width: 1199px) {

	.aitio-footer__main {
		grid-template-columns: 1fr;
		gap: 56px;
		padding: 80px 32px 72px;
	}

	.aitio-footer__block--language {
		margin-top: 56px;
	}

	.aitio-footer__logo {
		position: static;
		margin-top: 28px;
	}

	.aitio-footer__copyright {
		margin-bottom: 56px;
	}

	.aitio-footer__contact {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
		margin-top: 48px;
	}

	.aitio-footer__social-row {
		margin-top: 40px;
	}

	.aitio-footer__photo {
		position: static;
		width: 100%;
	}

	.aitio-footer__years {
		font-size: 56px;
	}
}

@media (max-width: 640px) {

	.aitio-footer__strip {
		height: auto;
		padding: 18px 0;
	}

	.aitio-footer__main {
		padding: 56px 20px 56px;
	}

	.aitio-footer__years {
		font-size: 44px;
	}

	.aitio-footer__menu {
		gap: 0 28px;
	}

	.aitio-footer__menu-link {
		font-size: 19px;
	}

	.aitio-footer__contact {
		grid-template-columns: 1fr;
	}

	.aitio-footer__social-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}
}
