/* Simple Custom Hero Block v1.0.5 */

/* ---------------------------------------------------------
   GeneratePress first-Hero reset
   Removes only top spacing; normal pages are untouched.
--------------------------------------------------------- */
body.schb-preset-generatepress.has-schb-hero-first #page,
body.schb-preset-generatepress.has-schb-hero-first .site-content,
body.schb-preset-generatepress.has-schb-hero-first .content-area,
body.schb-preset-generatepress.has-schb-hero-first .site-main,
body.schb-preset-generatepress.has-schb-hero-first article,
body.schb-preset-generatepress.has-schb-hero-first .inside-article,
body.schb-preset-generatepress.has-schb-hero-first .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.schb-preset-generatepress.has-schb-hero-first.separate-containers .site-main {
	margin-top: 0 !important;
}

body.schb-preset-generatepress.has-schb-hero-first.separate-containers .inside-article {
	padding-top: 0 !important;
}

body.has-schb-hero-first .entry-content > .schb-hero:first-child {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

/* ---------------------------------------------------------
   Hero shell
--------------------------------------------------------- */
.schb-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	width: 100vw;
	max-width: none !important;
	margin-top: 0 !important;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
	margin-block-start: 0 !important;
	background: #111;
	color: #fff;
	--schb-side-d: max(var(--schb-inset-d), calc((100vw - 1440px) / 2 + var(--schb-inset-d)));
}

.schb-hero--viewport {
	height: 100vh;
	height: 100svh;
	min-height: 100vh;
	min-height: 100svh;
}

.schb-hero--fixed {
	height: var(--schb-height-d);
}

.schb-hero__slides,
.schb-hero__slide,
.schb-hero__media,
.schb-hero__picture,
.schb-hero__picture img,
.schb-hero__placeholder,
.schb-hero__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.schb-hero__slide {
	opacity: 0;
	visibility: hidden;
	transition:
		opacity var(--schb-fade) ease,
		visibility var(--schb-fade) ease;
}

.schb-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.schb-hero__picture {
	display: block;
}

.schb-hero__image {
	display: block;
	max-width: none;
	object-fit: cover;
	transform: scale(1.01);
	will-change: auto;
}

.schb-hero__slide.is-active .schb-hero__image {
	will-change: transform;
	animation: schbHeroZoom var(--schb-interval) ease-out forwards;
}

@keyframes schbHeroZoom {
	from { transform: scale(1.01); }
	to   { transform: scale(var(--schb-zoom-d)); }
}

.schb-hero__placeholder {
	background: linear-gradient(120deg, #111 0%, #303030 50%, #171717 100%);
}

.schb-hero__shade {
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(
			90deg,
			rgba(0,0,0,var(--schb-overlay)) 0%,
			rgba(0,0,0,.20) 67%,
			rgba(0,0,0,.05) 100%
		),
		linear-gradient(
			0deg,
			rgba(0,0,0,.44) 0%,
			transparent 56%
		);
}

/* ---------------------------------------------------------
   Content flow
--------------------------------------------------------- */
.schb-hero__content {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding:
		120px
		var(--schb-side-d)
		var(--schb-bottom-d);
	pointer-events: none;
}

.schb-hero__copy {
	width: min(900px, 72vw);
	margin-bottom: clamp(38px, 6vh, 72px);
}

.schb-hero--text-center .schb-hero__copy {
	align-self: center;
	text-align: center;
}

.schb-hero--text-right .schb-hero__copy {
	align-self: flex-end;
	text-align: right;
}

.schb-hero__kicker {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .84;
}

.schb-hero__title {
	margin: 0;
	max-width: 13em;
	font-size: clamp(38px, 5.2vw, 78px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: .01em;
	text-wrap: balance;
}

.schb-hero--text-center .schb-hero__title {
	margin-inline: auto;
}

.schb-hero--text-right .schb-hero__title {
	margin-left: auto;
}

.schb-hero__bottom {
	display: grid;
	width: 100%;
	align-items: end;
	gap: 18px 32px;
}

.schb-hero--cta-right .schb-hero__bottom {
	grid-template-columns: minmax(0, 1fr) auto;
}

.schb-hero--cta-left .schb-hero__bottom,
.schb-hero--cta-center .schb-hero__bottom {
	grid-template-columns: minmax(0, 1fr);
}

.schb-hero__h1 {
	margin: 0;
	max-width: 760px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: .03em;
	opacity: .92;
}

.schb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	pointer-events: auto;
}

.schb-hero--cta-right .schb-hero__actions {
	justify-self: end;
	justify-content: flex-end;
}

.schb-hero--cta-left .schb-hero__actions {
	justify-self: start;
	justify-content: flex-start;
}

.schb-hero--cta-center .schb-hero__actions {
	justify-self: center;
	justify-content: center;
}

.schb-hero__button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border: 1px solid rgba(255,255,255,.70);
	border-radius: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.schb-hero__button--primary {
	background: #fff;
	color: #111;
}

.schb-hero__button--secondary {
	background: transparent;
	color: #fff;
}

.schb-hero__button--primary:hover,
.schb-hero__button--primary:focus-visible {
	background: #eee;
	color: #111;
}

.schb-hero__button--secondary:hover,
.schb-hero__button--secondary:focus-visible {
	background: rgba(255,255,255,.12);
	color: #fff;
}

/* ---------------------------------------------------------
   Navigation
--------------------------------------------------------- */
.schb-hero__nav {
	position: absolute;
	z-index: 4;
	right: var(--schb-side-d);
	bottom: calc(var(--schb-bottom-d) + 82px);
	display: flex;
	gap: 8px;
}

.schb-hero__prev,
.schb-hero__next {
	display: grid;
	width: 46px;
	height: 46px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255,255,255,.55);
	border-radius: 50%;
	background: rgba(0,0,0,.16);
	color: #fff;
	cursor: pointer;
}

.schb-hero__prev:hover,
.schb-hero__next:hover,
.schb-hero__prev:focus-visible,
.schb-hero__next:focus-visible {
	background: rgba(0,0,0,.42);
	border-color: #fff;
}

.schb-hero__dots {
	display: none;
}

/* ---------------------------------------------------------
   Header integration base
--------------------------------------------------------- */
body.schb-header-overlay {
	--schb-adminbar-offset: 0px;
}

body.admin-bar.schb-header-overlay {
	--schb-adminbar-offset: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.schb-header-overlay {
		--schb-adminbar-offset: 46px;
	}
}

/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */
@media (max-width: 767px) {
	.schb-hero {
		--schb-side-m: var(--schb-inset-m);
	}

	.schb-hero--viewport {
		height: 100vh;
		height: 100svh;
		min-height: 100vh;
		min-height: 100svh;
		max-height: none;
	}

	.schb-hero--fixed {
		height: var(--schb-height-m);
	}

	.schb-hero__slide.is-active .schb-hero__image {
		animation-name: schbHeroZoomMobile;
	}

	@keyframes schbHeroZoomMobile {
		from { transform: scale(1.01); }
		to   { transform: scale(var(--schb-zoom-m)); }
	}

	.schb-hero__content {
		padding:
			96px
			var(--schb-side-m)
			var(--schb-bottom-m);
	}

	.schb-hero__copy {
		width: 100%;
		margin-bottom: 32px;
	}

	.schb-hero--text-center .schb-hero__copy,
	.schb-hero--text-right .schb-hero__copy {
		align-self: stretch;
		text-align: left;
	}

	.schb-hero__title,
	.schb-hero--text-center .schb-hero__title,
	.schb-hero--text-right .schb-hero__title {
		margin: 0;
		max-width: 12em;
		font-size: clamp(34px, 11vw, 54px);
	}

	.schb-hero__bottom,
	.schb-hero--cta-right .schb-hero__bottom,
	.schb-hero--cta-left .schb-hero__bottom,
	.schb-hero--cta-center .schb-hero__bottom {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.schb-hero__h1 {
		max-width: 34em;
		font-size: 12px;
		line-height: 1.65;
	}

	.schb-hero__actions {
		gap: 12px;
	}

	.schb-hero--cta-right .schb-hero__actions {
		justify-self: end;
	}

	.schb-hero--cta-left .schb-hero__actions {
		justify-self: start;
	}

	.schb-hero--cta-center .schb-hero__actions {
		justify-self: center;
	}

	.schb-hero__button {
		min-height: 46px;
		padding: 12px 18px;
		font-size: 12px;
	}

	.schb-hero__nav {
		left: 0;
		right: 0;
		width: 100%;
		bottom: 24px;
		transform: none;
		align-items: center;
		justify-content: center;
	}

	.schb-hero__prev,
	.schb-hero__next {
		display: none;
	}

	.schb-hero__dots {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 9px;
	}

	.schb-hero__dot {
		display: block;
		width: 7px;
		height: 7px;
		padding: 0;
		border: 1px solid rgba(255,255,255,.9);
		border-radius: 50%;
		background: transparent;
		box-shadow: 0 1px 5px rgba(0,0,0,.25);
		cursor: pointer;
		transition: background-color .2s ease, transform .2s ease;
	}

	.schb-hero__dot.is-active {
		background: #fff;
		transform: scale(1.15);
	}

	.schb-hero__dot:focus-visible {
		outline: 2px solid #fff;
		outline-offset: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.schb-hero__slide,
	.schb-hero__image,
	.schb-hero__button,
	.schb-hero__prev,
	.schb-hero__next {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------------------------------------------------------
   v1.0.1: remove gap between Hero and the next section
--------------------------------------------------------- */
body.has-schb-hero-first .schb-hero{
	margin-bottom:0!important;
	margin-block-end:0!important;
}

body.has-schb-hero-first .entry-content > .schb-hero:first-child + *{
	margin-top:0!important;
	margin-block-start:0!important;
}

/* ---------------------------------------------------------
   v1.0.2
   Viewport mode = exactly one viewport.
   Fixed mode = explicit px height.
--------------------------------------------------------- */

/* ---------------------------------------------------------
   v1.0.3
   Image loading performance:
   - only active slide gets will-change: transform
   - non-active slides avoid unnecessary GPU promotion
--------------------------------------------------------- */

/* ---------------------------------------------------------
   v1.0.4
   Mobile slider navigation:
   - desktop keeps arrow controls
   - mobile replaces arrows with compact bottom-center dots
--------------------------------------------------------- */


/* ---------------------------------------------------------
   v1.0.5
   Mobile horizontal overflow fix:
   - avoid translateX-based centering for dot navigation
   - clip accidental horizontal overflow only on Hero pages
--------------------------------------------------------- */
body.has-schb-hero {
	overflow-x: hidden;
}

@supports (overflow: clip) {
	body.has-schb-hero {
		overflow-x: clip;
	}
}
