/* Home hero: title block on the right at every width (see inc/home-hero.php). */

.pcm-home-hero h1 .pcm-home-hero__sub {
	display: block;
	margin-top: 0.45em;
	font-size: 0.36em;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
}

/* Soft shade behind the text so white type reads on the light photo (position per breakpoint below). */
.pcm-home-hero {
	position: relative;
}

.pcm-home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 70% 75% at 100% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 100%);
}

.pcm-home-hero > .wp-block-spectra-container {
	z-index: 1;
}

/* The sample banner has no advantages list. */
.pcm-home-hero h5,
.pcm-home-hero .wp-block-spectra-list {
	display: none !important;
}

.pcm-home-hero > .wp-block-spectra-container {
	width: 100% !important;
	max-width: none !important;
	padding-right: 20px !important;
	align-items: flex-end !important;
	text-align: right !important;
}

.pcm-home-hero h1 {
	padding: 0 !important;
	margin: 0 !important;
	font-weight: 400 !important;
	line-height: 1.02 !important;
	text-align: right !important;
}

.pcm-home-hero .wp-block-spectra-buttons {
	align-self: flex-end !important;
	justify-content: flex-end !important;
	margin-top: 1.6em !important;
}

/* Button: white outline + white caps text + arrow; filled white with black text on hover. */
.pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link {
	display: inline-flex !important;
	align-items: center;
	gap: 22px;
	padding: 20px 32px 20px 36px !important;
	background: transparent !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: inset 0 0 0 1px #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

.pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link .spectra-button__link {
	color: inherit !important;
}

.pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 12px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M0 6h16.5M11.5 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M0 6h16.5M11.5 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s;
}

.pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link:hover,
.pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link:focus-visible {
	background: #fff !important;
	color: #111 !important;
}

/* Spectra paints the inner span with its own hover colour (white) — keep it following the link. */
body .pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link:hover .spectra-button__link,
body .pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link:focus-visible .spectra-button__link {
	color: #111 !important;
}

.pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* Phone: text block in the top right corner, the photo keeps the banner height. */
@media (max-width: 767px) {
	.pcm-home-hero {
		min-height: 130vw !important;
		padding-top: 16px !important;
		padding-bottom: 28px !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
	}

	.pcm-home-hero::after {
		background: radial-gradient(ellipse 95% 60% at 100% 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0) 100%);
	}

	/* Button outline 10% smaller than on desktop (183×53 → ~165×48), font size unchanged. */
	.pcm-home-hero .wp-block-spectra-buttons a.wp-block-button__link {
		padding: 17.5px 24px 17.5px 26px !important;
	}

	.pcm-home-hero > .wp-block-spectra-container {
		margin-top: 0 !important;
		top: 0 !important; /* Spectra shifts it down 30px */
		justify-content: flex-start !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.pcm-home-hero > .wp-block-spectra-container {
		padding-right: 40px !important;
	}
}

@media (min-width: 1025px) {
	.pcm-home-hero > .wp-block-spectra-container {
		padding-right: 6vw !important;
	}

	.pcm-home-hero h1 {
		font-size: clamp(64px, 6.2vw, 124px) !important;
	}

	.pcm-home-hero .wp-block-spectra-buttons {
		margin-top: 2.2em !important;
	}
}
