/* JNSA Mart hero carousel */

/* The Elementor hero box becomes a plain frame for the slider. */
.jn-v2 .e-hero { position: relative; padding: 0 !important; background: none !important; overflow: hidden; }
.jn-v2 .e-hero > .elementor-widget-shortcode, .jn-v2 .e-hero .elementor-shortcode { width: 100%; }

.jn-hero {
	--jn-hero-pad-x: max(clamp(20px, 3.2vw, 64px), calc((100% - 1480px) / 2 + 10px));
	--jn-hero-bottom: clamp(150px, 9vw, 190px);
	position: relative;
	width: 100%;
	color: #012D68;
	isolation: isolate;
}

.jn-hero-track { display: grid; }

.jn-hero-slide {
	--tone: #C8331F;
	--accent: #D96A02;
	--btn: #012D68;
	--wash: 253, 246, 232;
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: flex-start;
	min-height: clamp(560px, 36vw + 110px, 820px);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility 0s linear .8s;
}
.jn-hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }

.jn-hero-slide--wellness { --tone: #1F5A33; --accent: #1F5A33; --btn: #1F5A33; --wash: 238, 244, 232; }
.jn-hero-slide--fashion  { --tone: #9B2C4A; --accent: #9B2C4A; --btn: #9B2C4A; --wash: 252, 238, 242; }

.jn-hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-size: cover;
	background-position: right center;
	background-repeat: no-repeat;
	transform: scale(1.04);
	transition: transform 7s ease-out;
}
.jn-hero-slide.is-active .jn-hero-bg { transform: scale(1); }
.jn-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		rgba(var(--wash), .92) 0%,
		rgba(var(--wash), .78) 30%,
		rgba(var(--wash), .32) 48%,
		rgba(var(--wash), 0) 64%);
}

.jn-hero-in {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: clamp(64px, 6.4vw, 120px) var(--jn-hero-pad-x) var(--jn-hero-bottom);
}

.jn-v2 .jn-hero-h {
	margin: 0;
	color: #012D68;
	font-size: clamp(52px, 4.2vw + 27px, 104px);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.01em;
}
.jn-hero-accent { color: var(--accent); }

.jn-v2 .jn-hero-tag {
	margin: 18px 0 0;
	color: #012D68;
	font-size: clamp(20px, 1.2vw + 13px, 36px);
	font-weight: 500;
	line-height: 1.2;
}

.jn-hero-ribbon-wrap { margin: 28px 0 0; }
.jn-hero-ribbon {
	display: inline-block;
	padding: 8px 34px;
	background: var(--tone);
	color: #fff;
	font-size: clamp(12.5px, .6vw + 9px, 19px);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .06em;
	text-transform: uppercase;
	clip-path: polygon(0 50%, 16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%);
}

.jn-hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.jn-v2 .jn-hero-btn, .jn-v2 .jn-hero-btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: translate .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.jn-v2 .jn-hero-btn {
	padding: 21px 44px;
	background: var(--btn);
	color: #fff;
	box-shadow: 0 10px 24px rgba(1, 45, 104, .18);
}
.jn-v2 .jn-hero-btn2 {
	padding: 19.5px 36px;
	border: 1.5px solid #012D68;
	background: rgba(255, 255, 255, .85);
	color: #012D68;
}
.jn-v2 .jn-hero-btn:hover, .jn-v2 .jn-hero-btn2:hover { translate: 0 -2px; box-shadow: 0 12px 26px rgba(1, 45, 104, .2); }
.jn-v2 .jn-hero-btn:hover { color: #fff; }
.jn-v2 .jn-hero-btn2:hover { background: #fff; color: #012D68; }

/* Content rises in each time its slide becomes active */
@media (prefers-reduced-motion: no-preference) {
	.jn-hero-slide .jn-hero-in > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
	.jn-hero-slide.is-active .jn-hero-in > * { opacity: 1; transform: none; }
	.jn-hero-slide.is-active .jn-hero-in > *:nth-child(1) { transition-delay: .15s; }
	.jn-hero-slide.is-active .jn-hero-in > *:nth-child(2) { transition-delay: .27s; }
	.jn-hero-slide.is-active .jn-hero-in > *:nth-child(3) { transition-delay: .39s; }
	.jn-hero-slide.is-active .jn-hero-in > *:nth-child(4) { transition-delay: .51s; }
}
@media (prefers-reduced-motion: reduce) {
	.jn-hero-slide, .jn-hero-bg { transition: none; }
	.jn-hero-bg { transform: none; }
}

/* Controls: arrows + dots, bottom right, clear of the benefits card */
.jn-hero-dots {
	position: absolute;
	z-index: 3;
	left: var(--jn-hero-pad-x);
	bottom: calc(var(--jn-hero-bottom) - 36px);
	display: flex;
	gap: 10px;
}
.jn-v2 .jn-hero-dot {
	width: 10px;
	height: 10px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(1, 45, 104, .25);
	cursor: pointer;
	transition: width .3s ease, background-color .3s ease;
}
.jn-v2 .jn-hero-dot.is-active { width: 34px; background: #F97A00; }

.jn-v2 .jn-hero-arrow {
	position: absolute;
	z-index: 3;
	bottom: calc(var(--jn-hero-bottom) - 56px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(1, 45, 104, .12);
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #012D68;
	box-shadow: 0 6px 18px rgba(1, 45, 104, .10);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, translate .2s ease;
}
.jn-v2 .jn-hero-arrow:hover { background: #012D68; color: #fff; }
.jn-hero-arrow--prev { right: calc(var(--jn-hero-pad-x) + 64px); }
.jn-hero-arrow--next { right: var(--jn-hero-pad-x); }
.jn-hero-arrow svg { width: 20px; height: 20px; }

.jn-hero .jn-hero-btn:focus-visible, .jn-hero .jn-hero-btn2:focus-visible,
.jn-hero .jn-hero-arrow:focus-visible, .jn-hero .jn-hero-dot:focus-visible { outline: 3px solid #F97A00; outline-offset: 3px; }

/* Phones: centred text over a top-down wash, swipe instead of arrows */
@media (max-width: 767px) {
	.jn-hero { --jn-hero-bottom: 150px; }
	.jn-hero-slide { min-height: 610px; }
	.jn-hero-bg { background-position: 70% bottom; }
	.jn-hero-bg::after {
		background: linear-gradient(180deg,
			rgba(var(--wash), .96) 0%,
			rgba(var(--wash), .9) 50%,
			rgba(var(--wash), .35) 78%,
			rgba(var(--wash), .1) 100%);
	}
	.jn-hero-in { align-items: center; padding: 44px 18px var(--jn-hero-bottom); text-align: center; }
	.jn-v2 .jn-hero-h { font-size: clamp(44px, 13vw, 60px); }
	.jn-v2 .jn-hero-tag { margin-top: 12px; font-size: 21px; }
	.jn-hero-ribbon-wrap { margin-top: 18px; }
	.jn-hero-ribbon { padding: 7px 24px; font-size: 12px; }
	.jn-hero-ctas { flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
	.jn-v2 .jn-hero-btn { padding: 16px 30px; font-size: 16px; }
	.jn-v2 .jn-hero-btn2 { padding: 14.5px 24px; font-size: 16px; }
	.jn-hero-arrow { display: none !important; }
	.jn-hero-dots { left: 50%; bottom: 168px; transform: translateX(-50%); }
}

/* JNSA hero phone layout: whole banner fits the screen, photo shows through a light wash */
@media (max-width: 767px) {
	.jn-hero { --jn-hero-h: calc(100vh - 136px); }
	@supports (height: 100svh) { .jn-hero { --jn-hero-h: calc(100svh - 136px); } }
	.jn-v2 .e-hero { min-height: 0 !important; }
	.jn-hero-slide {
		flex-direction: column;
		align-items: stretch;
		height: clamp(540px, var(--jn-hero-h), 760px);
		min-height: 0;
		padding-bottom: 0;
		background: rgb(var(--wash));
	}
	.jn-hero-in { order: 1; position: relative; z-index: 1; padding: 24px 18px 0; }
	.jn-v2 .jn-hero-h { font-size: clamp(38px, 11.5vw, 52px); }
	.jn-v2 .jn-hero-tag { margin-top: 8px; font-size: 18px; }
	.jn-hero-ribbon-wrap { margin-top: 14px; }
	.jn-hero-ctas { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
	.jn-v2 .jn-hero-btn { padding: 13px 20px; font-size: 15px; }
	.jn-v2 .jn-hero-btn2 { padding: 11.5px 16px; font-size: 15px; background: rgba(255, 255, 255, .7); }
	.jn-hero-bg {
		position: absolute;
		inset: auto 0 0 0;
		z-index: 0;
		width: 100%;
		height: 72%;
		min-height: 0;
		background-size: cover;
		background-position: 88% 35%;
	}
	.jn-hero-slide--wellness .jn-hero-bg { background-position: 80% 70%; }
	.jn-hero-slide--fashion .jn-hero-bg { background-position: 80% 60%; }
	.jn-hero-bg::after {
		background: linear-gradient(180deg,
			rgb(var(--wash)) 0%,
			rgba(var(--wash), .55) 14%,
			rgba(var(--wash), .18) 32%,
			rgba(var(--wash), 0) 46%);
	}
	.jn-hero-dots {
		left: 50%;
		bottom: 16px;
		transform: translateX(-50%);
		padding: 7px 10px;
		border-radius: 999px;
		background: rgba(255, 255, 255, .85);
		box-shadow: 0 4px 12px rgba(1, 45, 104, .12);
	}
	.jn-v2 .e-ben { margin-top: 16px !important; }
}
/* end JNSA hero phone layout */