/* =====================================================================
   HRI Book Now — full-screen photo + "BOOK NOW."   v1.0

   Figma frame 2359 × 1066 (file "11"); sizes = Figma px ÷ 2359 (vw):
     photo      full width, anchored to the bottom (top cropped)
     heading    Cormorant Light 128 → 5.426vw, #FFFFFF, centred;
                baseline 211px above the bottom → 8.945vw
                (line-height 1 puts the baseline 0.8185em below the top
                of the line box, so the box bottom is 0.1815em lower)
   The bottom shade + links are the hero's fixed navigation.

   Motion (.hri-bk--fx, driven by book.js):
     .hri-bk__veil   fixed, cream + backdrop blur over the section above
                     while this one comes up
     .hri-bk__stage  sticky for 100svh + --hri-bk-pin; the photo and the
                     heading start hidden (set by JS, so without JS
                     everything is simply visible)
   ===================================================================== */

.hri-bk {
	--hri-bk-bg: #fff6ea;
	--hri-bk-ink: #ffffff;
	--hri-bk-fs: min(5.426vw, 128px);
	--hri-bk-base: min(8.945vw, 211px);

	position: relative;
	display: block;
	width: 100%;
	height: 100vh;
	height: 100svh;
	margin: 0;
	padding: 0;
	background: var(--hri-bk-bg);
	box-sizing: border-box;
}

.hri-bk *,
.hri-bk *::before,
.hri-bk *::after {
	box-sizing: border-box;
}

.hri-bk--fx {
	height: calc(100vh + var(--hri-bk-pin, 0) * 1vh);
	height: calc(100svh + var(--hri-bk-pin, 0) * 1svh);
	background: transparent;
}

/* ---------------------------------------------------------------------
   Veil over the section above
   --------------------------------------------------------------------- */
.hri-bk__veil {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: var(--hri-bk-bg);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* ---------------------------------------------------------------------
   Stage
   --------------------------------------------------------------------- */
.hri-bk__stage {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.hri-bk--fx .hri-bk__stage {
	position: sticky;
	top: 0;
}

.admin-bar .hri-bk--fx .hri-bk__stage {
	top: 32px;
	height: calc(100svh - 32px);
}

.hri-bk__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	transform-origin: 50% 100%;
}

.hri-bk__img,
.hri-bk .hri-bk__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: 50% 100%;
}

/* ---------------------------------------------------------------------
   Heading
   --------------------------------------------------------------------- */
.hri-bk__slot {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--hri-bk-base) - 0.1815em);
	z-index: 2;
	font-size: var(--hri-bk-fs);
	line-height: 1;
	text-align: center;
	/* the mask the heading rises out of (a little room for the full
	   letters and the closing-in letter spacing) */
	overflow: hidden;
	padding: 0.06em 0 0.12em;
	margin-bottom: -0.12em;
	pointer-events: none;
}

.hri-bk .hri-bk__title {
	display: block;
	margin: 0;
	padding: 0;
	font-family: "HRI Cormorant", "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
	font-size: 1em;
	font-weight: 300;
	font-style: normal;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	color: var(--hri-bk-ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.hri-bk__mover {
	display: inline-block;
	transform-origin: 50% 100%;
}

.hri-bk .hri-bk__link {
	color: inherit;
	text-decoration: none;
	pointer-events: auto;
}

.hri-bk .hri-bk__link:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 0.08em;
}

/* ---------------------------------------------------------------------
   Tablets and phones
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hri-bk {
		--hri-bk-fs: 9vw;
		--hri-bk-base: max(8.945vw, 128px);
	}

	.hri-bk__img,
	.hri-bk .hri-bk__media img {
		object-position: var(--hri-bk-fx, 50%) 100%;
	}
}

@media (max-width: 767px) {
	.hri-bk {
		--hri-bk-fs: 15vw;
		/* clear of the navigation's plus */
		--hri-bk-base: calc(112px + env(safe-area-inset-bottom, 0px));
	}
}

/* ---------------------------------------------------------------------
   Editor / reduced motion: everything in place, no pinning
   --------------------------------------------------------------------- */
.elementor-editor-active .hri-bk--fx {
	height: 100vh;
	height: 100svh;
	background: var(--hri-bk-bg);
}

.elementor-editor-active .hri-bk--fx .hri-bk__stage {
	position: relative;
}

.elementor-editor-active .hri-bk__veil {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.hri-bk--fx {
		height: 100vh;
		height: 100svh;
	}

	.hri-bk--fx .hri-bk__stage {
		position: relative;
	}

	.hri-bk__veil {
		display: none;
	}
}

/* ---------------------------------------------------------------------
   Full-bleed: undo Elementor container width / padding around the widget
   --------------------------------------------------------------------- */
.e-con:has(> .elementor-widget-hri-book),
.e-con:has(> .e-con-inner > .elementor-widget-hri-book) {
	--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-book) > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
}

.elementor-widget-hri-book,
.elementor-widget-hri-book > .elementor-widget-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}