/* Homepage hero only. Gutenberg remains the source of its wording and links. */
.home .juicepage-home-hero {
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
	padding: clamp(32px, 7vw, 72px) 24px clamp(40px, 7vw, 76px);
}

.home .juicepage-home-hero h1 {
	margin: 0 0 24px;
	font-size: clamp(34px, 9vw, 44px);
	line-height: 1.08;
}

.home .juicepage-home-hero > p {
	margin: 0 0 30px;
	font-size: clamp(17px, 4.5vw, 19px);
	line-height: 1.55;
}

.home .juicepage-home-hero .juicepage-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin: 0;
}

.home .juicepage-home-hero .juicepage-actions .wp-block-button,
.home .juicepage-home-hero .juicepage-actions .wp-block-button__link {
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 900px) {
	.home .juicepage-home-hero {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding-block: 72px 80px;
		text-align: center;
	}

	.home .juicepage-home-hero > h1,
	.home .juicepage-home-hero > p,
	.home .juicepage-home-hero > .juicepage-actions {
		box-sizing: border-box;
		width: 100%;
		max-width: 880px;
		margin-inline: auto;
		text-align: center;
	}

	.home .juicepage-home-hero h1 {
		font-size: clamp(64px, 5.2vw, 72px);
	}

	.home .juicepage-home-hero .juicepage-actions {
		flex-direction: row !important;
		flex-wrap: nowrap;
		justify-content: center !important;
		align-items: center !important;
		gap: 16px;
	}

	.home .juicepage-home-hero .juicepage-actions .wp-block-button {
		flex: 0 0 auto;
		width: auto !important;
		margin: 0 !important;
	}

	.home .juicepage-home-hero .juicepage-actions .wp-block-button__link {
		width: auto !important;
		min-width: 200px;
	}
}

/* Gutenberg currently renders the editable hero buttons as a direct, vertical,
   full-width Buttons block without the optional juicepage-actions class. */
@media (min-width: 900px) {
	body.home .juicepage-home-hero > .wp-block-buttons {
		display: flex !important;
		flex-flow: row nowrap !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 16px !important;
		width: auto !important;
		max-width: 880px;
		margin-inline: auto !important;
	}

	body.home .juicepage-home-hero > .wp-block-buttons > .wp-block-button {
		flex: 0 0 auto !important;
		width: auto !important;
		margin: 0 !important;
	}

	body.home .juicepage-home-hero > .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		width: auto !important;
		min-width: 200px;
	}
}