/*
 * Tipologia page (page-typology.php). Sections from the Pizzarias pieces of the Figma
 * library: "Um queijo para cada criação" (774:44348) and "Soluções para o dia a dia"
 * (800:64139). Both are Gray 30 bands with white chips, 56px from the title to the
 * chips and 64px from the chips to the panel.
 */

/* The title of Soluções para o dia a dia is a 1216px box in 800:64137, not the 800 of the Home. */
.typology-solutions .section-heading {
	max-width: none;
}

/* The title box of the related products is 492 in 752:40108, centred, against the 800 of the Home. */
.products .section-heading__title {
	max-width: 492px;
	margin-inline: auto;
}

.typology-combinations,
.typology-solutions {
	padding-block: var(--section-padding-start);
	background-color: var(--color-surface-subtle);
}

.typology-combinations__header,
.typology-solutions__header {
	margin-block-end: var(--space-gap-section);
}

/* Combination: 495px photo, 598px content centred against it (772:43767). */
.typology-combinations .media-split__content {
	flex-basis: 49.18%;
}

.typology-combination {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-6);
}

.typology-combination__intro {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.typology-combination__title {
	margin: 0;
	color: var(--color-title-card);
	font-size: var(--font-h4);
}

.typology-combination__text {
	margin: 0;
	color: var(--color-text);
	font-size: var(--font-p2);
	line-height: 1.4;
}

/* Attributes in capitals, 8px Main Red dots between them (774:50062). */
.typology-combination__attributes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.typology-combination__attribute {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	color: var(--color-text);
	font-size: var(--font-p2);
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
}

.typology-combination__attribute + .typology-combination__attribute::before {
	content: '';
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--color-surface-detail);
}

.typology-combination__products {
	gap: var(--space-1);
	margin-block-start: 0;
}

/* Solution: 721px of text and the good practices, a 412px photo as tall as them (806:67900). */
.typology-solution .media-split__content {
	flex-basis: 59.29%;
}

.typology-solution .media-split__media {
	flex-basis: 33.88%;
}

.typology-solution__content {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.typology-solution__intro {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.typology-solution__title {
	margin: 0;
	color: var(--color-title-card);
	font-size: var(--font-h4);
}

.typology-solution__lead {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	color: var(--color-text);
	line-height: 1.4;
}

.typology-solution__subtitle {
	margin: 0;
	font-size: var(--font-p1);
	font-weight: 600;
}

.typology-solution__text {
	margin: 0;
	font-size: var(--font-p2);
}

/* "Boas práticas": white card, the numbers from a counter (ADR 0012), 806:67934. */
.typology-practices {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	padding: var(--space-5);
	border-radius: var(--radius-card);
	background-color: var(--color-surface);
}

.typology-practices__title {
	margin: 0;
	color: var(--color-title-card);
	font-size: var(--font-h5);
}

.typology-practices__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: practice;
}

.typology-practices__item {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	counter-increment: practice;
}

.typology-practices__item::before {
	content: counter(practice);
	flex: 0 0 50px;
	color: var(--color-light-gray);
	font-family: var(--font-heading);
	font-size: var(--font-display-number);
	font-weight: var(--weight-heading);
	/* The 72px numbers are trimmed to the cap height in a 58px box (806:67954). */
	line-height: 0.8;
	text-align: center;
}

.typology-practices__body {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
	padding-inline-start: var(--space-3);
	border-inline-start: 2px solid var(--color-indicator);
	font-size: var(--font-p2);
	line-height: 1.4;
}

.typology-practices__name {
	color: var(--color-text);
	font-weight: 600;
}

.typology-practices__text {
	color: var(--color-mid-gray);
}

/* The calculator CTA, 64px under the panel (806:67886). */
.typology-solutions__cta {
	display: flex;
	justify-content: center;
	margin-block-start: var(--space-7);
}

@media (max-width: 1023px) {
	.typology-combinations,
	.typology-solutions {
		padding-block: var(--space-7);
	}

	.typology-solutions__cta {
		margin-block-start: var(--space-6);
	}
}

@media (max-width: 767px) {
	.typology-practices {
		padding: var(--space-4);
	}

	.typology-practices__item {
		gap: var(--space-3);
	}

	.typology-practices__item::before {
		flex-basis: 32px;
	}
}
