/**
 * JT Editorial Hero - full-screen campaign slider.
 *
 * Every colour is a custom property on .jt-eh (set from the Style tab); a
 * slide with the "dark text" scheme re-points them to the *-dark values.
 */
.elementor-widget-jt_editorial_hero {
	width: 100%;
}

.jt-eh {
	--jt-eh-fx-ms: 1100ms;
	--jt-eh-kb-scale: 1.1;
	--jt-eh-arrow: 46px;
	--jt-eh-side-l: 64px;
	--jt-eh-side-r: 64px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	width: 100%;
	min-height: 600px;
	background-color: #1c1917;
	color: #fff;
}

/* --jt-eh-top: what sits above the hero. widget.js measures it; until then
   a theme can give its header height as --mj-header-bottom (Joom does), so
   the first paint already has the final height. */
.jt-eh-h-screen .jt-eh {
	height: calc(100vh - var(--jt-eh-top, var(--mj-header-bottom, 0px)));
	height: calc(100svh - var(--jt-eh-top, var(--mj-header-bottom, 0px)));
}

.jt-eh__slides {
	position: absolute;
	inset: 0;
}

/* --- Slides ----------------------------------------------------------- */
.jt-eh__slide {
	--jt-eh-c-eyebrow: var(--jt-eh-eyebrow, rgba(255, 255, 255, 0.9));
	--jt-eh-c-title: var(--jt-eh-title, #fff);
	--jt-eh-c-accent: var(--jt-eh-accent, #ead7bb);
	--jt-eh-c-desc: var(--jt-eh-desc, rgba(255, 255, 255, 0.86));
	--jt-eh-c-btn-bg: var(--jt-eh-btn-bg, #fff);
	--jt-eh-c-btn-fg: var(--jt-eh-btn-fg, #1c1917);
	--jt-eh-c-btn-border: var(--jt-eh-btn-border, var(--jt-eh-c-btn-bg));
	--jt-eh-c-btn2: var(--jt-eh-btn2, #fff);
	--jt-eh-c-shade: var(--jt-eh-shade-color, #0c0a09);
	position: absolute;
	inset: 0;
	z-index: 0;
	color: var(--jt-eh-c-title);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--jt-eh-fx-ms) ease, visibility 0s linear var(--jt-eh-fx-ms);
}

.jt-eh__slide--dark {
	--jt-eh-c-eyebrow: var(--jt-eh-eyebrow-dark, #44403c);
	--jt-eh-c-title: var(--jt-eh-title-dark, #1c1917);
	--jt-eh-c-accent: var(--jt-eh-accent-dark, #9a6b3f);
	--jt-eh-c-desc: var(--jt-eh-desc-dark, #44403c);
	--jt-eh-c-btn-bg: var(--jt-eh-btn-bg-dark, #1c1917);
	--jt-eh-c-btn-fg: var(--jt-eh-btn-fg-dark, #fff);
	--jt-eh-c-btn-border: var(--jt-eh-btn-border-dark, var(--jt-eh-c-btn-bg));
	--jt-eh-c-btn2: var(--jt-eh-btn2-dark, #1c1917);
	--jt-eh-c-shade: var(--jt-eh-shade-dark, #f5f0e8);
}

.jt-eh__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity var(--jt-eh-fx-ms) ease;
}

/* Curtain: the new slide is wiped in from the right over the old one. */
.jt-eh-fx-curtain .jt-eh__slide {
	opacity: 1;
	clip-path: inset(0 0 0 100%);
	transition: clip-path var(--jt-eh-fx-ms) cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear var(--jt-eh-fx-ms);
}

.jt-eh-fx-curtain .jt-eh__slide.is-active {
	clip-path: inset(0 0 0 0);
	transition: clip-path var(--jt-eh-fx-ms) cubic-bezier(0.77, 0, 0.18, 1);
}

/* Slide: horizontal push. */
.jt-eh-fx-slide .jt-eh__slide {
	opacity: 1;
	transform: translateX(100%);
	transition: transform var(--jt-eh-fx-ms) cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear var(--jt-eh-fx-ms);
}

.jt-eh-fx-slide .jt-eh__slide.is-leaving {
	transform: translateX(-30%);
}

.jt-eh-fx-slide .jt-eh__slide.is-active {
	transform: none;
	transition: transform var(--jt-eh-fx-ms) cubic-bezier(0.77, 0, 0.18, 1);
}

/* --- Media ---------------------------------------------------------------- */
.jt-eh__media,
.jt-eh__media picture {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.jt-eh .jt-eh__img,
.jt-eh .jt-eh__video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

.jt-eh-kb-yes .jt-eh__media {
	transform: scale(var(--jt-eh-kb-scale));
	transition: transform 0s linear var(--jt-eh-fx-ms);
}

.jt-eh-kb-yes .jt-eh__slide.is-active .jt-eh__media {
	transform: scale(1);
	transition: transform calc(var(--jt-eh-speed, 6500ms) + var(--jt-eh-fx-ms)) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Overlay ----------------------------------------------------------- */
.jt-eh__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.55;
	background: linear-gradient(35deg, var(--jt-eh-c-shade) 0%, transparent 62%);
}

.jt-eh-shade-left .jt-eh__shade {
	background: linear-gradient(90deg, var(--jt-eh-c-shade) 0%, transparent 72%);
}

.jt-eh-shade-bottom .jt-eh__shade {
	background: linear-gradient(0deg, var(--jt-eh-c-shade) 0%, transparent 70%);
}

.jt-eh-shade-flat .jt-eh__shade {
	background: var(--jt-eh-c-shade);
}

.jt-eh__cover {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* --- Content ------------------------------------------------------------- */
.jt-eh__wrap {
	--jt-eh-align: left;
	--jt-eh-justify: flex-start;
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 110px 64px 150px;
	pointer-events: none;
}

.jt-eh__content {
	display: flex;
	flex-direction: column;
	align-items: var(--jt-eh-justify);
	max-width: 760px;
	text-align: var(--jt-eh-align);
	pointer-events: auto;
}

.jt-eh .jt-eh__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	color: var(--jt-eh-c-eyebrow);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.32em;
	line-height: 1.4;
	text-transform: uppercase;
}

.jt-eh-line-yes .jt-eh__eyebrow::before {
	content: "";
	width: 36px;
	height: 1px;
	background: currentColor;
}

.jt-eh .jt-eh__title {
	margin: 0 0 24px;
	padding: 0;
	color: var(--jt-eh-c-title);
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: clamp(48px, 7.2vw, 104px);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: none;
}

.jt-eh .jt-eh__title em {
	color: var(--jt-eh-c-accent);
	font-style: italic;
	font-weight: inherit;
}

.jt-eh .jt-eh__desc {
	max-width: 460px;
	margin: 0 0 36px;
	color: var(--jt-eh-c-desc);
	font-size: 17px;
	line-height: 1.6;
}

.jt-eh__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--jt-eh-justify);
	gap: 28px;
}

.jt-eh .jt-eh__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.jt-eh .jt-eh__btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.35s ease;
}

.jt-eh .jt-eh__btn--primary {
	padding: 19px 30px;
	border: 1px solid var(--jt-eh-c-btn-border);
	border-radius: 0;
	background-color: var(--jt-eh-c-btn-bg);
	color: var(--jt-eh-c-btn-fg);
}

.jt-eh .jt-eh__btn--primary:hover,
.jt-eh .jt-eh__btn--primary:focus-visible {
	border-color: var(--jt-eh-btn-border-h, var(--jt-eh-btn-bg-h, var(--jt-eh-c-accent)));
	background-color: var(--jt-eh-btn-bg-h, var(--jt-eh-c-accent));
	color: var(--jt-eh-btn-fg-h, #1c1917);
}

.jt-eh .jt-eh__btn--primary:hover svg {
	transform: translateX(4px);
}

.jt-eh .jt-eh__btn--secondary {
	padding: 8px 0;
	color: var(--jt-eh-c-btn2);
}

.jt-eh .jt-eh__btn--secondary::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: currentColor;
	transform-origin: right;
	transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}

.jt-eh .jt-eh__btn--secondary:hover::after {
	transform: scaleX(0);
}

.jt-eh .jt-eh__btn--secondary:hover {
	color: var(--jt-eh-btn2-h, var(--jt-eh-c-btn2));
}

.jt-eh-b2-outline .jt-eh .jt-eh__btn--secondary {
	padding: 18px 30px;
	border: 1px solid currentColor;
}

.jt-eh-b2-outline .jt-eh .jt-eh__btn--secondary::after {
	display: none;
}

.jt-eh .jt-eh__btn:focus-visible,
.jt-eh button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Text animation: hidden on inactive slides, animates in when activated. */
.jt-eh-ca-rise .jt-eh__content > *,
.jt-eh-ca-fade .jt-eh__content > * {
	transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.jt-eh-ca-rise .jt-eh__slide:not(.is-active) .jt-eh__content > * {
	opacity: 0;
	transform: translateY(28px);
	transition-duration: 0.3s;
	transition-delay: 0s;
}

.jt-eh-ca-fade .jt-eh__slide:not(.is-active) .jt-eh__content > * {
	opacity: 0;
	transition-duration: 0.3s;
	transition-delay: 0s;
}

.jt-eh__slide.is-active .jt-eh__content > :nth-child(1) { transition-delay: 0.35s; }
.jt-eh__slide.is-active .jt-eh__content > :nth-child(2) { transition-delay: 0.5s; }
.jt-eh__slide.is-active .jt-eh__content > :nth-child(3) { transition-delay: 0.65s; }
.jt-eh__slide.is-active .jt-eh__content > :nth-child(4) { transition-delay: 0.8s; }

/* --- Navigation bar --------------------------------------------------------- */
.jt-eh__ui {
	--jt-eh-c-ui: var(--jt-eh-ui, #fff);
	position: absolute;
	right: var(--jt-eh-side-r);
	bottom: 40px;
	left: var(--jt-eh-side-l);
	z-index: 3;
	display: flex;
	align-items: flex-end;
	gap: 32px;
	color: var(--jt-eh-c-ui);
	transition: color 0.6s ease;
}

.jt-eh--ui-dark .jt-eh__ui,
.jt-eh--ui-dark .jt-eh__scroll {
	--jt-eh-c-ui: var(--jt-eh-ui-dark, #1c1917);
}

.jt-eh__count {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 2px;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 18px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	white-space: nowrap;
}

.jt-eh__sep {
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.jt-eh__total {
	opacity: 0.6;
}

.jt-eh__tabs,
.jt-eh__tabs-spacer {
	display: flex;
	flex: 1 1 auto;
	gap: 20px;
	min-width: 0;
	max-width: 760px;
}

.jt-eh-nav-center .jt-eh__tabs {
	margin: 0 auto;
}

.jt-eh-nav-right .jt-eh__tabs {
	margin-left: auto;
}

.jt-eh .jt-eh__tab {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 10px 0 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.3s ease;
}

.jt-eh .jt-eh__tab:hover,
.jt-eh .jt-eh__tab.is-active {
	background: none;
	color: inherit;
	opacity: 1;
}

.jt-eh__tab-label {
	display: block;
	overflow: hidden;
	margin-bottom: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jt-eh__bar {
	position: relative;
	display: block;
	overflow: hidden;
	height: 2px;
	background-color: color-mix(in srgb, currentColor 28%, transparent);
}

.jt-eh__bar i {
	position: absolute;
	inset: 0;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
}

.jt-eh__tab.is-active .jt-eh__bar i {
	transform: scaleX(1);
}

.jt-eh.is-playing .jt-eh__tab.is-active .jt-eh__bar i {
	animation: jt-eh-fill var(--jt-eh-speed, 6500ms) linear both;
}

@keyframes jt-eh-fill {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.jt-eh__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
	margin-left: auto;
}

.jt-eh .jt-eh__arrow,
.jt-eh .jt-eh__pause {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--jt-eh-arrow);
	height: var(--jt-eh-arrow);
	margin: 0;
	padding: 0;
	border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--jt-eh-c-ui);
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.jt-eh .jt-eh__arrow:hover,
.jt-eh .jt-eh__pause:hover {
	border-color: currentColor;
	background-color: var(--jt-eh-c-ui);
	color: #1c1917;
}

.jt-eh--ui-dark .jt-eh__arrow:hover,
.jt-eh--ui-dark .jt-eh__pause:hover {
	color: #fff;
}

.jt-eh__arrow svg,
.jt-eh__pause svg {
	width: 40%;
	height: 40%;
}

.jt-eh__i-play,
.jt-eh__pause[aria-pressed="true"] .jt-eh__i-pause {
	display: none;
}

.jt-eh__pause[aria-pressed="true"] .jt-eh__i-play {
	display: block;
}

/* --- Scroll cue ------------------------------------------------------------ */
.jt-eh .jt-eh__scroll {
	--jt-eh-c-ui: var(--jt-eh-ui, #fff);
	position: absolute;
	right: calc(var(--jt-eh-side-r) / 2 - 10px);
	bottom: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--jt-eh-c-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	transform: translateY(50%);
	cursor: pointer;
}

.jt-eh .jt-eh__scroll:hover {
	background: none;
	color: var(--jt-eh-c-ui);
}

.jt-eh__scroll span {
	writing-mode: vertical-rl;
}

.jt-eh__scroll i {
	position: relative;
	overflow: hidden;
	width: 1px;
	height: 56px;
	background: color-mix(in srgb, currentColor 30%, transparent);
}

.jt-eh__scroll i::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 40%;
	background: currentColor;
	animation: jt-eh-scroll 2.2s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes jt-eh-scroll {
	from { transform: translateY(-100%); }
	to { transform: translateY(260%); }
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.jt-eh .jt-eh__scroll {
		display: none;
	}
}

@media (max-width: 767px) {
	.jt-eh {
		min-height: 460px;
	}

	/* Phones: the text sits in the flow, so the hero grows with it instead
	   of pushing the eyebrow up under the header on short screens. About
	   80% of the screen otherwise, so the next section peeks in. */
	.jt-eh-h-screen .jt-eh {
		height: auto;
	}

	/* Slides share one grid cell: the hero is as tall as the tallest one. */
	.jt-eh__slides {
		position: relative;
		display: grid;
		min-height: inherit;
	}

	.jt-eh__slide {
		position: relative;
		inset: auto;
		grid-area: 1 / 1;
	}

	.jt-eh__wrap {
		position: relative;
		inset: auto;
		padding: 72px 20px 112px;
	}

	.jt-eh-h-screen .jt-eh__wrap {
		min-height: calc(80vh - var(--jt-eh-top, var(--mj-header-bottom, 0px)));
		min-height: calc(80svh - var(--jt-eh-top, var(--mj-header-bottom, 0px)));
	}

	.jt-eh__ui {
		bottom: 26px;
		gap: 18px;
	}

	.jt-eh__tabs {
		gap: 8px;
	}

	.jt-eh .jt-eh__arrow {
		display: none;
	}

	.jt-eh {
		--jt-eh-arrow: 38px;
	}

	.jt-eh .jt-eh__desc {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jt-eh .jt-eh__media,
	.jt-eh .jt-eh__slide,
	.jt-eh .jt-eh__content > * {
		transition: none !important;
		transform: none !important;
	}
}
