/*
 * SECTION STYLE: CLIENTS & FRIENDS (the shared yellow logo wall).
 *
 * Measured from Figma "Palvelut" (369:352), clients instance 369:3445
 * at 1440 px:
 *
 *   band           #ffff05, 1440 x 788.72
 *   top inset      69.83, bottom inset 107.76
 *   content        left edge x 80.86 -> column 1006.78 wide
 *                  (right edge at x 1087.64)
 *   label          14 px Regular 400, 150 %, 0 tracking; the second
 *                  line sits on a 139.75 x 19.19 dark chip
 *   heading        "Good company to be in." 36 px Medium 500, 130 %,
 *                  -3 %, #151515, 38.74 px under the label
 *   body           18 px Regular 400, 150 %, 0 tracking, #151515,
 *                  819.32 x 54, 40.09 px under the heading
 *   filter bar     24 px Medium 500, 140 %, -3 %, #000000, underlined
 *                  links; 108.77 px under the body
 *   button         162.80 x 34.84, #151515, text 10.45 px Regular 400,
 *                  150 %, -4 %, #f9f9f9
 *   logos          row 1006.78 x 80.05, 145.65 px under the bar
 */

.aitio-front-section--good_company {
	background: var(--aitio-yellow);
}

.aitio-good {
	padding-top: 69.83px;
	padding-bottom: 107.76px;
	background: var(--aitio-yellow);
	color: var(--aitio-dark);
}

/* Figma content column: left-aligned, 1006.78 wide */
.aitio-good .aitio-container {
	max-width: calc(1006.78px + 2 * var(--aitio-gutter));
	margin-left: 0;
}

@media (min-width: 1441px) {
	.aitio-good .aitio-container {
		margin-left: calc((100% - var(--aitio-content)) / 2);
	}
}

.aitio-good__label {
	margin: 0;
	font-family: var(--aitio-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--aitio-dark);
}

.aitio-good__label-line {
	display: block;
}

/* the middle line is a dark chip with yellow words on the yellow wall */
.aitio-good__mark {
	display: inline-block;
	padding: 0 3.16px;
	background: var(--aitio-dark);
	color: var(--aitio-yellow);
	line-height: 1.37;
}

.aitio-good__heading {
	margin: 38.74px 0 0;
	font-family: var(--aitio-font);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: var(--aitio-dark);
}

.aitio-good__text {
	max-width: 819.32px;
	margin: 40.09px 0 0;
	font-family: var(--aitio-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--aitio-dark);
}

.aitio-good__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 108.77px;
}

.aitio-good__sentence {
	margin: 0;
	font-family: var(--aitio-font);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.03em;
	color: var(--aitio-black);
}

.aitio-good__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.aitio-good__link:hover,
.aitio-good__link:focus-visible {
	background: var(--aitio-dark);
	color: var(--aitio-yellow);
	text-decoration: none;
}

.aitio-good__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 34.84px;
	padding: 0 20.9px;
	border-radius: 999px;
	background: var(--aitio-dark);
	color: var(--aitio-white);
	font-family: var(--aitio-font);
	font-size: 10.45px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.aitio-good__button:hover,
.aitio-good__button:focus-visible {
	background: var(--aitio-black);
	color: var(--aitio-white);
}

/* one row of six logos, each centred in an equal cell */
.aitio-good__logos {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px;
	max-width: 1006.78px;
	margin: 145.65px auto 0;
	padding: 0;
	list-style: none;
}

.aitio-good__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}

.aitio-good__logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	transition: opacity 0.2s ease;
}

.aitio-good__logo a:hover {
	opacity: 0.72;
}

.aitio-good__logo-img {
	max-width: 80%;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
}

@media (max-width: 1023px) {

	.aitio-good {
		padding-top: 60px;
		padding-bottom: 88px;
	}

	.aitio-good__heading {
		font-size: 32px;
	}

	.aitio-good__text {
		font-size: 16px;
	}

	.aitio-good__bar {
		margin-top: 80px;
	}

	.aitio-good__logos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 90px;
	}
}

@media (max-width: 759px) {

	.aitio-good {
		padding-top: 34px;
		padding-bottom: 102.2px;
	}

	.aitio-good .aitio-container {
		display: flex;
		flex-direction: column;
		width: calc(100vw - 32px);
		max-width: 364.7px;
		margin-left: 16px;
		margin-right: auto;
		padding-left: 0;
		padding-right: 0;
	}

	.aitio-good__label {
		order: 1;
		font-size: 14px;
		line-height: 21px;
	}

	.aitio-good__heading {
		order: 2;
		margin-top: 28.5px;
		font-size: 28px;
		line-height: 1.3;
	}

	.aitio-good__text {
		order: 3;
		max-width: 364.7px;
		margin-top: 53.8px;
		font-size: 16px;
		line-height: 24px;
	}

	.aitio-good__bar {
		display: contents;
	}

	.aitio-good__sentence {
		order: 4;
		margin-top: 64.8px;
		font-size: 22px;
		line-height: 1.4;
	}

	.aitio-good__button {
		display: none;
	}

	.aitio-good__logos {
		order: 5;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 16px;
		width: 100%;
		margin: 73.5px 0 0;
	}

	.aitio-good__logo {
		min-height: 73.3px;
	}

	.aitio-good__logo-img {
		max-width: 90%;
		max-height: 73.3px;
	}
}
