/* =====================================================================
   HRI Split — photo half + text panel.   v1.2

   Figma frame 2359 × 1066 (file "3"). Desktop sizes = Figma px ÷ 2359
   (vw), capped at the Figma value, like the hero:
     panel padding-left   120px → 5.087vw
     H2                   36/40 → 1.526vw, line-height 1.1111
     paragraph            20/24 → 0.8478vw, line-height 1.2, 70% black
     gaps H2 / P / buttons 29px → 1.2293vw
     buttons              64px high (2.713vw), radius 10, text 20px,
                          widths 141 / 182 (7.05em / 9.1em), 10px apart
     text widths          740px → H2 20.556em, P 37em (same line breaks
                          at every size)
   Floors only touch windows narrower than ~1300px.

   v1.1: photo zoom (--hri-split-zoom, Hospitality 1.156, top-anchored),
   button widths from Figma px (--hri-split-b1-w / -b2-w ÷ 20 = em),
   lead space only when the section comes straight after the hero
   (v1.2: also when hero and split share one container — the live page).

   Entry (split.js writes transforms on .hri-split__mover only, never on
   the slots it measures):
     - lead space (transparent, --hri-split-lead) so the hero can dissolve
     - photo, H2, paragraph, buttons rise with the scroll, each a little
       later and trailing with a soft lag + slight stretch from the top
   ===================================================================== */

.hri-split {
	--hri-split-bg: #fff6ea;
	--hri-split-h: #000000;
	--hri-split-p: rgba(0, 0, 0, 0.7);
	--hri-split-b1: #4d452e;
	--hri-split-b1-ink: #ffffff;
	--hri-split-b2: #ffffff;
	--hri-split-b2-ink: #000000;
	--hri-split-x: 0%;
	--hri-split-y: 50%;
	--hri-split-zoom: 1;
	--hri-split-b1-w: 141;
	--hri-split-b2-w: 182;

	--hri-split-pad: 5.087vw;
	--hri-split-h-fs: clamp(22px, 1.526vw, 36px);
	--hri-split-p-fs: clamp(12px, 0.8478vw, 20px);
	--hri-split-gap: clamp(16px, 1.2293vw, 29px);
	--hri-split-btn-h: clamp(40px, 2.713vw, 64px);
	--hri-split-btn-fs: clamp(13px, 0.8478vw, 20px);
	--hri-split-btn-r: clamp(6px, 0.4239vw, 10px);
	--hri-split-btn-gap: clamp(8px, 0.4239vw, 10px);

	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	font-family: "HRI Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Lead space only for the split straight after the hero (lets it dissolve
   first) — same container, or first widget of the next container. */
.elementor-widget-hri-hero + .elementor-widget-hri-split .hri-split,
.e-con:has(> .elementor-widget-hri-hero:last-child) + .e-con > .elementor-widget-hri-split:first-child .hri-split,
.e-con:has(> .elementor-widget-hri-hero:last-child) + .e-con > .e-con-inner > .elementor-widget-hri-split:first-child .hri-split,
.e-con:has(> .e-con-inner > .elementor-widget-hri-hero:last-child) + .e-con > .elementor-widget-hri-split:first-child .hri-split,
.e-con:has(> .e-con-inner > .elementor-widget-hri-hero:last-child) + .e-con > .e-con-inner > .elementor-widget-hri-split:first-child .hri-split {
	padding-top: var(--hri-split-lead, 0px);
}

/* Photo on the right: centred left–right, anchored to the top. */
.hri-split--img-right {
	--hri-split-x: 50%;
	--hri-split-y: 0%;
}

/* No lead space in the editor. */
.elementor-editor-active .hri-split {
	padding-top: 0 !important;
}

.hri-split__stage {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: var(--hri-split-bg);
}

/* ---------------------------------------------------------------------
   Photo
   --------------------------------------------------------------------- */
.hri-split__media {
	position: relative;
	overflow: hidden;
	min-width: 0;
	background: var(--hri-split-bg);
}

.hri-split--img-right .hri-split__media {
	order: 2;
}

.hri-split__media > .hri-split__mover {
	position: absolute;
	inset: 0;
	transform-origin: 50% 0;
	will-change: transform;
}

.hri-split__img,
.hri-split .hri-split__media img {
	display: block;
	width: 100%;
	height: calc(100% * var(--hri-split-zoom)); /* zoom grows downwards: top-anchored */
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: var(--hri-split-x) var(--hri-split-y);
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* ---------------------------------------------------------------------
   Text panel
   --------------------------------------------------------------------- */
.hri-split__panel {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 0 var(--hri-split-pad);
	background: var(--hri-split-bg);
}

.hri-split__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--hri-split-gap);
	width: 100%;
}

.hri-split__slot {
	position: relative;
	width: 100%;
}

.hri-split__content .hri-split__mover {
	transform-origin: 50% 0;
	will-change: transform, opacity;
}

.hri-split .hri-split__title {
	max-width: 20.556em;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: var(--hri-split-h-fs);
	font-weight: 300;
	font-style: normal;
	line-height: 1.1111;
	letter-spacing: 0;
	text-transform: none;
	color: var(--hri-split-h);
}

.hri-split .hri-split__text {
	max-width: 37em;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: var(--hri-split-p-fs);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--hri-split-p);
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.hri-split__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hri-split-btn-gap);
}

.hri-split .hri-split__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--hri-split-btn-h);
	padding: 0 1.2em;
	border: 0;
	border-radius: var(--hri-split-btn-r);
	font-family: inherit;
	font-size: var(--hri-split-btn-fs);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.4s ease, color 0.4s ease, filter 0.4s ease;
}

.hri-split .hri-split__btn--dark {
	min-width: calc(var(--hri-split-b1-w) / 20 * 1em);
	background: var(--hri-split-b1);
	color: var(--hri-split-b1-ink);
}

.hri-split .hri-split__btn--light {
	min-width: calc(var(--hri-split-b2-w) / 20 * 1em);
	background: var(--hri-split-b2);
	color: var(--hri-split-b2-ink);
}

@media (hover: hover) and (pointer: fine) {
	.hri-split .hri-split__btn--dark:hover {
		background: color-mix(in srgb, var(--hri-split-b1) 86%, #000);
		color: var(--hri-split-b1-ink);
	}

	.hri-split .hri-split__btn--light:hover {
		background: color-mix(in srgb, var(--hri-split-b2) 92%, var(--hri-split-b1));
		color: var(--hri-split-b2-ink);
	}
}

.hri-split .hri-split__btn:focus {
	outline: none;
}

.hri-split .hri-split__btn:focus-visible {
	outline: 1px solid var(--hri-split-b1);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------
   Tablets and phones: photo on top, text below
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hri-split {
		--hri-split-x: 30%;
		--hri-split-h-fs: 30px;
		--hri-split-p-fs: 17px;
		--hri-split-gap: 24px;
		--hri-split-btn-h: 52px;
		--hri-split-btn-fs: 16px;
		--hri-split-btn-r: 8px;
		--hri-split-btn-gap: 10px;
	}

	.hri-split__stage {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 0;
	}

	.hri-split--img-right {
		--hri-split-x: 50%;
	}

	.hri-split--img-right .hri-split__media {
		order: 0;
	}

	.hri-split__media {
		height: 58vh;
		height: 58svh;
		min-height: 340px;
	}

	.hri-split__panel {
		padding: 64px 48px 140px;
	}

	.hri-split .hri-split__title {
		text-wrap: balance;
	}

	.hri-split .hri-split__text {
		line-height: 1.45;
		text-wrap: pretty;
	}
}

@media (max-width: 767px) {
	.hri-split {
		--hri-split-h-fs: 26px;
		--hri-split-p-fs: 15px;
		--hri-split-gap: 22px;
		--hri-split-btn-h: 48px;
		--hri-split-btn-fs: 15px;
	}

	.hri-split__media {
		height: 54vh;
		height: 54svh;
		min-height: 300px;
	}

	.hri-split__panel {
		padding: 40px 24px 128px; /* room for the fixed plus */
	}

	.hri-split .hri-split__title {
		line-height: 1.15;
	}

	.hri-split .hri-split__text {
		line-height: 1.5;
	}

	/* Two equal buttons across the row. */
	.hri-split__actions {
		flex-wrap: nowrap;
		width: 100%;
		max-width: 420px;
	}

	.hri-split .hri-split__btn {
		flex: 1 1 0;
		min-width: 0;
		padding: 0 12px;
	}
}

/* Reduced motion / editor: everything in place. */
@media (prefers-reduced-motion: reduce) {
	.hri-split .hri-split__mover {
		transform: none !important;
		opacity: 1 !important;
	}
}

.elementor-editor-active .hri-split .hri-split__mover {
	transform: none !important;
	opacity: 1 !important;
}

/* Full-bleed, whatever the Elementor container settings are. */
.e-con:has(> .elementor-widget-hri-split),
.e-con:has(> .e-con-inner > .elementor-widget-hri-split) {
	--content-width: 100% !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	border: 0 !important;
}

.e-con:has(> .e-con-inner > .elementor-widget-hri-split) > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
}

.elementor-widget-hri-split,
.elementor-widget-hri-split > .elementor-widget-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}