/* Responsive Hero Block — frontend styles */

.rhb-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}

/* Media */
.rhb-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
}

.rhb-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Overlay */
.rhb-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #000;
	pointer-events: none;
}

/* Content */
.rhb-hero__content {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	max-width: var(--rhb-container-max, 1140px);
	margin: 0 auto;
	padding: 4rem 1.5rem;
	color: #fff;
}

.rhb-align-left .rhb-hero__content { text-align: left; }
.rhb-align-center .rhb-hero__content { text-align: center; }
.rhb-align-right .rhb-hero__content { text-align: right; }

.rhb-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
	color: inherit;
}

.rhb-hero__description {
	margin: 0 auto 1.5rem;
	max-width: 640px;
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.6;
	color: inherit;
}

.rhb-align-left .rhb-hero__description { margin-left: 0; }
.rhb-align-right .rhb-hero__description { margin-right: 0; }



.rhb-hero__button-wrap {
	display: flex;
	width: 100%;
	box-sizing: border-box;
}

.rhb-button-align-left { justify-content: flex-start; }
.rhb-button-align-center { justify-content: center; }
.rhb-button-align-right { justify-content: flex-end; }

.rhb-button-x-custom {
	justify-content: flex-start;
}

.rhb-button-x-custom .rhb-hero__button {
	position: relative;
	left: var(--rhb-button-x, 50%);
	transform: translateX(var(--rhb-button-x-shift, -50%));
}

.rhb-button-y-custom {
	position: absolute;
	top: var(--rhb-button-y, 50%);
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	max-width: var(--rhb-container-max, 1140px);
	margin: 0 auto;
}

.rhb-hero__button {
	display: inline-block;
	padding: 0.85rem 2rem;
	background: #fff;
	color: #111;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rhb-hero__button:hover,
.rhb-hero__button:focus {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	color: #111;
}

.rhb-button-x-custom .rhb-hero__button:hover,
.rhb-button-x-custom .rhb-hero__button:focus {
	transform: translateX(var(--rhb-button-x-shift, -50%)) translateY(-2px);
}

@media (max-width: 781px) {
	.rhb-hero__content {
		padding: 3rem 1.25rem;
	}
}

/* ---- "Full image" sizing: image and content share one grid cell, so the
   hero is always max(image height, content height) — the image is never
   cropped (unless content needs extra room) and content can never overflow. ---- */

.rhb-fit-full {
	display: grid;
}

.rhb-fit-full .rhb-hero__media,
.rhb-fit-full .rhb-hero__overlay,
.rhb-fit-full .rhb-hero__content {
	grid-area: 1 / 1;
}

.rhb-fit-full .rhb-hero__media {
	position: relative;
	inset: auto;
	z-index: 0;
}

.rhb-fit-full .rhb-hero__media img {
	height: 100%;
	object-fit: cover;
}

.rhb-fit-full .rhb-hero__overlay {
	position: relative;
	inset: auto;
	z-index: 1;
}

.rhb-fit-full .rhb-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rhb-fit-full.rhb-align-left .rhb-hero__content { align-items: flex-start; }
.rhb-fit-full.rhb-align-center .rhb-hero__content { align-items: center; }
.rhb-fit-full.rhb-align-right .rhb-hero__content { align-items: flex-end; }
