/* Text columns (Figma: Home "Frame 11" inside "Frame 12"; stacked: Our Approach "Frame 403"). */

.text-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"heading text"
		"buttons text";
	grid-template-rows: auto 1fr;
	gap: 16px;
}

.text-cols__heading {
	grid-area: heading;
}

.text-cols__text {
	grid-area: text;
	color: var(--c-text-2);
}

.bg-dark .text-cols__text {
	color: inherit;
}

.text-cols__text > * + * {
	margin-top: var(--lh-body);
}

.text-cols__buttons {
	grid-area: buttons;
	align-self: start;
}

/* Stacked: heading across the top, then the paragraphs in two columns (one per column). The parts
   simply follow each other, so a missing heading or button leaves no gap. */
.text-cols--stacked {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: none;
	grid-template-rows: none;
	gap: 32px;
}

.text-cols--stacked > * {
	grid-area: auto;
}

.text-cols--stacked .text-cols__heading {
	max-width: 656px;
	text-wrap: pretty;
}

.text-cols--stacked .text-cols__text {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 16px;
}

.text-cols--stacked .text-cols__text > * + * {
	margin-top: 0;
}

@media (max-width: 767px) {
	.text-cols {
		grid-template-columns: 1fr;
		grid-template-areas:
			"heading"
			"text"
			"buttons";
		grid-template-rows: none;
		gap: 32px;
	}

	.text-cols--stacked {
		grid-template-areas: none;
	}

	.text-cols--stacked .text-cols__text {
		grid-template-columns: 1fr;
	}

	.text-cols__buttons .btn {
		flex: 1 1 100%;
	}
}
