/*
 * Shared visual section foundation for TradeKit library blocks.
 */

.tk-section-block {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.tk-section-block__background {
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.tk-section-block__background-image {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 100%;
	width: 100%;
}

.tk-section-block__background-overlay {
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.tk-section-block__texture {
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 3;
}

.tk-section-block__container {
	position: relative;
	z-index: 4;
}

.tk-section-intro {
	display: grid;
	gap: var(--wp--preset--spacing--sm);
	margin-bottom: clamp(22px, 2.6vw, 36px);
	max-inline-size: 72ch;
}

.tk-section-intro__eyebrow {
	color: var(--tk-section-accent, var(--wp--preset--color--accent));
	font-family: var(--wp--preset--font-family--utility);
	font-size: var(--wp--preset--font-size--utility);
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0;
	text-transform: uppercase;
}

.tk-section-intro__headline {
	color: var(--tk-section-heading, var(--wp--preset--color--dark));
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--h2);
	line-height: 1.1;
	margin: 0;
	text-wrap: balance;
}

.tk-section-intro__copy {
	color: var(--tk-section-body, var(--wp--preset--color--neutral-600));
	font-size: var(--wp--preset--font-size--body-large);
	line-height: 1.55;
}

.tk-section-intro__copy p {
	margin: 0;
}

.tk-section-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--xs);
	margin-top: clamp(16px, 2vw, 28px);
}

.tk-section-intro__actions :where(.wp-element-button, .wp-block-button__link) {
	text-decoration: none;
}

.tk-services--intro-center .tk-section-intro {
	justify-items: center;
	margin-inline: auto;
	text-align: center;
}

.tk-services--intro-center .tk-section-intro__eyebrow {
	display: inline-block;
	margin-inline: auto;
}

.tk-services--intro-center .tk-section-intro__copy {
	margin-inline: auto;
}

.tk-services--intro-center .tk-section-intro__actions {
	justify-content: center;
}

@media (max-width: 599px) {

	.tk-section-intro {
		gap: var(--wp--preset--spacing--xs);
		margin-bottom: clamp(18px, 6vw, 28px);
	}

	.tk-section-intro__headline {
		font-size: clamp(1.875rem, 7.8vw, 2.3rem);
	}

	.tk-section-intro__copy {
		font-size: var(--wp--preset--font-size--body);
	}
}
