/* Section head: eyebrow, heading and intro (Figma 149:2052, 344:7021; phones 162:1970, 372:18660).
   Desktop: eyebrow and heading on the left, the intro on the right, bottoms aligned.
   Tablets: stacked. Phones: stacked and centred. The intro's size is the paragraph's own font
   size setting (Large, 24px, by default), so a long intro can be set smaller per section. */

.fyo-section-head {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
}

.fyo-section-head__title {
	flex: 1 1 0;
	min-width: 0;
}

.fyo-section-head .fyo-section-head__eyebrow {
	margin: 0 0 var(--wp--preset--spacing--50);
	font-size: 1rem;
}

.fyo-section-head .fyo-section-head__heading {
	margin: 0;
	font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.5rem); /* 56px desktop, 40px phones */
	line-height: 1.1;
	letter-spacing: var(--wp--custom--letter-spacing--tight);
	text-wrap: balance;
}

.fyo-section-head .fyo-section-head__intro {
	flex: 0 1 562px;
	margin: 0;
	line-height: 1.4;
	text-wrap: pretty;
}

@media (max-width: 1099px) {
	.fyo-section-head.fyo-section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.fyo-section-head .fyo-section-head__intro {
		flex-basis: auto;
	}
}

@media (max-width: 782px) {
	.fyo-section-head.fyo-section-head {
		align-items: center;
		gap: var(--wp--preset--spacing--30);
		text-align: center;
	}

	.fyo-section-head__title {
		flex-basis: auto;
	}

	.fyo-section-head .fyo-section-head__eyebrow {
		margin-bottom: var(--wp--preset--spacing--40);
	}
}

/* Stacked: eyebrow, heading and intro in one centred column on every width (Figma 87:3515:
   768px wide, 24px under the eyebrow, 12px between heading and intro). */
.fyo-section-head.fyo-section-head--stacked {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	max-width: 48rem;
	text-align: center;
}

.fyo-section-head--stacked .fyo-section-head__title,
.fyo-section-head--stacked .fyo-section-head__intro {
	flex: none;
	width: 100%;
}
