/* Block styles: primus/hero-reveal
 *
 * Containing block MUST be positioned. Absolute reveal layers are scoped
 * under .wp-block-primus-hero-reveal so they never attach to the viewport.
 */
.wp-block-primus-hero-reveal.hero-section,
.wp-block-primus-hero-reveal {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp( 650px, 72vh, 810px );
	padding: clamp( 1.75rem, 2.5vw, 2.75rem ) var( --wp--preset--spacing--sm ) !important;
	overflow: hidden;
	background-color: var( --wp--preset--color--surface, #EEF2F6 ) !important;
	z-index: 0;
	contain: layout paint;
}

.wp-block-primus-hero-reveal > .hero-section__reveal,
.wp-block-primus-hero-reveal .hero-section__reveal {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
	--hero-reveal-min: 48;
	--hero-reveal: 48;
}

.wp-block-primus-hero-reveal .hero-section__reveal-base,
.wp-block-primus-hero-reveal .hero-section__reveal-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.wp-block-primus-hero-reveal .hero-section__reveal-base {
	z-index: 0;
}

.wp-block-primus-hero-reveal .hero-section__reveal-overlay {
	z-index: 1;
	clip-path: inset( 0 calc( ( 100 - var( --hero-reveal, 48 ) ) * 1% ) 0 0 );
}

.wp-block-primus-hero-reveal .hero-section__reveal-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	/* Slight right bias: left fog/copy zone + faces remain readable; no person edit */
	object-position: 58% 42%;
	-webkit-user-drag: none;
	user-select: none;
}

.wp-block-primus-hero-reveal .hero-section__reveal-fog {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba( 247, 249, 252, 0.995 ) 0%,
		rgba( 247, 249, 252, 0.985 ) 16%,
		rgba( 247, 249, 252, 0.94 ) 28%,
		rgba( 247, 249, 252, 0.82 ) 40%,
		rgba( 247, 249, 252, 0.58 ) 50%,
		rgba( 247, 249, 252, 0.28 ) 60%,
		rgba( 247, 249, 252, 0.08 ) 66%,
		rgba( 247, 249, 252, 0 ) 72%
	);
}

.wp-block-primus-hero-reveal .hero-section__reveal-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: min( calc( var( --hero-reveal, 48 ) * 1% ), calc( 100% - 22px ) );
	z-index: 3;
	width: 2px;
	transform: translateX( -50% );
	background: rgba( 255, 255, 255, 0.96 );
	box-shadow: 0 0 10px rgba( 22, 86, 166, 0.18 );
	pointer-events: none;
}

.wp-block-primus-hero-reveal .hero-section__reveal-handle {
	position: absolute;
	top: 58%;
	left: min( calc( var( --hero-reveal, 48 ) * 1% ), calc( 100% - 22px ) );
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	transform: translate( -50%, -50% );
	border-radius: 50%;
	color: var( --wp--preset--color--primus-blue );
	background: #ffffff;
	box-shadow: 0 2px 12px rgba( 22, 86, 166, 0.22 );
	pointer-events: none;
}

.wp-block-primus-hero-reveal .hero-section__reveal-handle-icon {
	display: block;
}

.wp-block-primus-hero-reveal .hero-section__reveal-control {
	position: absolute;
	top: 58%;
	left: calc( var( --hero-reveal-min, 48 ) * 1% );
	right: 0;
	z-index: 7;
	width: auto;
	height: 64px;
	transform: translateY( -50% );
	pointer-events: none;
}

.wp-block-primus-hero-reveal .hero-section__reveal-label {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	pointer-events: none;
}

.wp-block-primus-hero-reveal .hero-section__reveal-range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: auto;
	cursor: ew-resize;
	touch-action: pan-y;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
}

.wp-block-primus-hero-reveal .hero-section__reveal-range:focus {
	outline: none;
}

.wp-block-primus-hero-reveal .hero-section__reveal:focus-within .hero-section__reveal-handle {
	outline: 2px solid var( --wp--preset--color--primus-blue );
	outline-offset: 3px;
}

.wp-block-primus-hero-reveal .hero-section__reveal-range::-webkit-slider-runnable-track {
	height: 100%;
	background: transparent;
	border: 0;
}

.wp-block-primus-hero-reveal .hero-section__reveal-range::-moz-range-track {
	height: 100%;
	background: transparent;
	border: 0;
}

.wp-block-primus-hero-reveal .hero-section__reveal-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 64px;
	height: 64px;
	margin-top: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: ew-resize;
}

.wp-block-primus-hero-reveal .hero-section__reveal-range::-moz-range-thumb {
	width: 64px;
	height: 64px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: ew-resize;
}

.wp-block-primus-hero-reveal .hero-section__inner {
	position: relative;
	z-index: 6;
	max-width: 1400px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	align-items: center;
	flex-wrap: nowrap;
	gap: clamp( 1.25rem, 2.5vw, 2rem );
	pointer-events: none;
}

.wp-block-primus-hero-reveal .hero-section__inner a,
.wp-block-primus-hero-reveal .hero-section__inner button,
.wp-block-primus-hero-reveal .hero-section__inner .wp-block-button__link {
	pointer-events: auto;
}

.wp-block-primus-hero-reveal .hero-section__copy {
	flex: 0 1 44%;
	max-width: 44%;
	min-width: 0;
}

.hero-section__kicker {
	margin-bottom: 0.5rem;
}

.hero-section__title {
	max-width: 13.5em;
	font-size: clamp( 1.75rem, 2.1vw, 2.2rem ) !important;
	line-height: 1.16;
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.hero-section__lead {
	max-width: 36em;
	font-size: clamp( 0.98rem, 1.05vw, 1.0625rem ) !important;
	line-height: 1.48;
	margin-top: 0;
	margin-bottom: 0;
	color: var( --wp--preset--color--ink );
}

.hero-section__action-module {
	width: 100%;
	max-width: 100%;
	margin-top: clamp( 1.25rem, 1.8vw, 1.625rem );
}

.hero-section__actions {
	display: grid !important;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 18px;
	width: 100%;
	margin: 0 !important;
}

.hero-section__actions .wp-block-button {
	width: 100%;
	margin: 0;
}

.hero-section__actions .wp-block-button .wp-element-button {
	width: 100%;
	min-height: 48px;
	max-height: 52px;
	padding: 12px 1.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-section__cta-primary .wp-element-button:hover {
	background-color: var( --wp--preset--color--primus-gold-hover ) !important;
	box-shadow: 0 2px 8px rgba( 22, 86, 166, 0.12 );
}

.hero-section__cta-primary .wp-element-button:active {
	background-color: #a57e1b !important;
}

.hero-section__cta-secondary .wp-element-button {
	background-color: #ffffff;
	color: var( --wp--preset--color--primus-blue ) !important;
	border: 2px solid var( --wp--preset--color--primus-blue ) !important;
}

.hero-section__cta-secondary .wp-element-button:hover {
	background-color: var( --wp--preset--color--primus-blue ) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 10px rgba( 22, 86, 166, 0.18 );
}

.hero-section__cta-secondary .wp-element-button:active {
	background-color: #124a8f !important;
	border-color: #124a8f !important;
}

.hero-section__cta-primary .wp-element-button:focus-visible,
.hero-section__cta-secondary .wp-element-button:focus-visible {
	outline: 2px solid var( --wp--preset--color--primus-gold );
	outline-offset: 3px;
}

.hero-section__trust-chips {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 18px;
	width: 100%;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.hero-trust-chip {
	box-sizing: border-box;
	width: 100%;
	min-height: 32px;
	max-height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 5px 14px;
	font-family: var( --wp--preset--font-family--montserrat );
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	white-space: nowrap;
	color: var( --wp--preset--color--primus-blue );
	background-color: rgba( 255, 255, 255, 0.92 );
	border: 1px solid rgba( 22, 86, 166, 0.12 );
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba( 22, 86, 166, 0.08 );
	pointer-events: none;
	user-select: none;
}

.hero-trust-chip__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	color: #c9a227;
	line-height: 0;
}

.hero-trust-chip__icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

@media (prefers-reduced-motion: reduce) {
	.hero-section__actions .wp-element-button {
		transition: none;
	}

	.wp-block-primus-hero-reveal .hero-section__reveal-overlay,
	.wp-block-primus-hero-reveal .hero-section__reveal-divider,
	.wp-block-primus-hero-reveal .hero-section__reveal-handle {
		transition: none !important;
	}
}

@media ( min-width: 1100px ) {
	.wp-block-primus-hero-reveal .hero-section__copy {
		flex: 0 1 44%;
		max-width: 44%;
	}
}

@media ( max-width: 1099px ) and ( min-width: 768px ) {
	.wp-block-primus-hero-reveal .hero-section__copy {
		flex: 0 1 48%;
		max-width: 48%;
	}

	.wp-block-primus-hero-reveal .hero-section__reveal-fog {
		background: linear-gradient(
			90deg,
			rgba( 247, 249, 252, 0.995 ) 0%,
			rgba( 247, 249, 252, 0.98 ) 18%,
			rgba( 247, 249, 252, 0.93 ) 30%,
			rgba( 247, 249, 252, 0.8 ) 42%,
			rgba( 247, 249, 252, 0.55 ) 52%,
			rgba( 247, 249, 252, 0.24 ) 62%,
			rgba( 247, 249, 252, 0.06 ) 68%,
			rgba( 247, 249, 252, 0 ) 74%
		);
	}

	.hero-section__trust-chips {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.hero-section__trust-chips .hero-trust-chip:nth-child( 3 ) {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 767px ) {
	.wp-block-primus-hero-reveal {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		min-height: 0;
		padding-top: clamp( 1.25rem, 4vw, 1.75rem ) !important;
		padding-bottom: clamp( 1rem, 3vw, 1.5rem ) !important;
	}

	.wp-block-primus-hero-reveal .hero-section__reveal {
		position: relative;
		order: 2;
		flex: 0 0 auto;
		width: 100%;
		height: clamp( 260px, 58vw, 360px );
		margin-top: clamp( 1rem, 3vw, 1.5rem );
		border-radius: 10px;
		overflow: hidden;
		background-color: var( --wp--preset--color--surface, #EEF2F6 );
	}

	.wp-block-primus-hero-reveal .hero-section__inner {
		order: 1;
		flex-wrap: wrap;
	}

	.wp-block-primus-hero-reveal .hero-section__copy {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.wp-block-primus-hero-reveal .hero-section__title {
		max-width: none;
	}

	.wp-block-primus-hero-reveal .hero-section__lead {
		max-width: none;
	}

	.wp-block-primus-hero-reveal .hero-section__reveal-fog {
		display: none;
	}

	.wp-block-primus-hero-reveal .hero-section__reveal-control {
		left: 0;
		right: 0;
		top: 50%;
	}

	.wp-block-primus-hero-reveal .hero-section__reveal-img {
		object-position: 52% 38%;
	}

	.hero-section__actions {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hero-section__actions .wp-block-button .wp-element-button {
		min-height: 48px;
		max-height: none;
		padding: 12px 1.25rem;
	}

	.hero-section__trust-chips {
		grid-template-columns: 1fr;
		gap: 8px;
		margin-top: 12px;
	}

	.hero-trust-chip {
		font-size: 0.6875rem;
		padding: 5px 12px;
		max-height: none;
		min-height: 30px;
	}
}

@media ( min-width: 1180px ) {
	.hero-trust-chip {
		font-size: 0.8125rem;
		padding: 5px 16px;
	}
}
@media ( max-width: 320px ) {
	.wp-block-primus-hero-reveal .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.wp-block-primus-hero-reveal .wp-block-button {
		width: 100%;
	}
}
