/* SK Hero widget: photo card, slideshow, rotating treatment wheel, notch. */

.sk-hero {
	--sk-hero-overlay: 0.55;
	--sk-hero-interval: 6s;
	--sk-hero-position: center center;
	--sk-hero-fade: 1.4s;

	/* Wheel geometry follows the screen width, like the reference: one unit = 1vw,
	   with a floor so pills stay readable and a cap for very wide screens. */
	--v-min: 9px;
	--v: min(max(1vw, var(--v-min)), 19px);
	--sk-wheel-r: calc(20 * var(--v));
	--sk-pill-h: calc(13.2 * var(--v));
	--sk-pill-w: calc(3.2 * var(--v));
	/* Centre of the wheel sits this far below the card's bottom edge. */
	--sk-wheel-drop: calc(4 * var(--v));

	/* Height the heading + subtitle need. */
	--sk-text-h: clamp(260px, 26.5vw, 520px);
	/* Height of the button row under the subtitle (top margin + button). */
	--sk-actions-h: calc(clamp(18px, 2vw, 32px) + clamp(44px, 2.8vw, 54px));
	--sk-fit-h: calc(100svh - var(--sk-header-h) - var(--sk-admin-bar) - 16px);
	/* Fit the screen, but never so short that the wheel (r + h/2 - drop = 22.6 units)
	   reaches the text or the buttons: keep at least 56px clear between them. */
	--sk-card-h: max(clamp(560px, var(--sk-fit-h), 880px), calc(var(--sk-text-h) + var(--sk-actions-h) + 22.6 * var(--v) + 56px));
	padding: 0 var(--sk-gutter);
}

/* Tablets and small laptops: keep the pills big enough to read. */
@media (max-width: 1099px) {
	.sk-hero {
		--v-min: 11.5px;
	}
}

/* Phones: pills must stay big enough to read and tap, and the heading wraps to more lines. */
@media (max-width: 699px) {
	.sk-hero {
		--sk-text-h: 340px;
		--v-min: 11.5px;
	}
}

.sk-hero__card {
	position: relative;
	isolation: isolate;
	height: var(--sk-card-h);
	overflow: hidden;
	border-radius: clamp(24px, 2.5vw, 48px);
	background: #14171a;
}

/* ---------- Background slides ---------- */

.sk-hero__media,
.sk-hero__slide {
	position: absolute;
	inset: 0;
}

.sk-hero__media {
	z-index: -1;
}

.sk-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(10, 12, 14, var(--sk-hero-overlay)) 0%,
		rgba(10, 12, 14, calc(var(--sk-hero-overlay) * 0.55)) 38%,
		rgba(10, 12, 14, 0) 72%
	);
	pointer-events: none;
}

.sk-hero__slide {
	z-index: 0;
	opacity: 0;
	/* The leaving slide stays fully opaque until the new one has faded in on top of it,
	   so two photos never show through each other mid-fade. */
	transition: opacity 0s linear var(--sk-hero-fade);
}

.sk-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	transition: opacity var(--sk-hero-fade) var(--sk-ease);
}

.sk-hero .sk-hero__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: var(--sk-hero-position);
	/* After a slide fades out, reset its zoom once it is invisible. */
	transition: transform 0s linear var(--sk-hero-fade);
}

.sk-hero--zoom.is-animating .sk-hero__slide.is-active .sk-hero__img {
	transform: scale(1.08);
	transition: transform calc(var(--sk-hero-interval) + var(--sk-hero-fade)) linear;
}

/* ---------- Text ---------- */

.sk-hero__content {
	position: relative;
	z-index: 2;
	max-width: 1000px;
	margin: 0 auto;
	padding: clamp(48px, 5.6vw, 108px) 20px 0;
	color: var(--sk-white);
	text-align: center;
}

.sk-hero__title {
	margin: 0;
	font-family: var(--sk-font-serif);
	font-size: clamp(40px, 4.7vw, 90px);
	font-weight: 400;
	line-height: 1.09;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

.sk-hero__subtitle {
	max-width: 40em;
	margin: clamp(14px, 1.6vw, 30px) auto 0;
	color: rgba(251, 251, 250, 0.92);
	font-family: var(--sk-font-sans);
	font-size: clamp(15px, 0.95vw, 18px);
	line-height: 1.35;
	text-wrap: balance;
}

/* ---------- Treatment wheel ---------- */

.sk-wheel {
	position: absolute;
	top: calc(100% + var(--sk-wheel-drop));
	left: 50%;
	z-index: 1;
	width: 0;
	height: 0;
}

.sk-wheel__ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: sk-wheel-spin var(--sk-wheel-spin, 90s) linear infinite;
}

.sk-wheel--ccw .sk-wheel__ring {
	animation-direction: reverse;
}

/* Hold still while someone points at or tabs into it, and while off-screen. */
.sk-wheel:hover .sk-wheel__ring,
.sk-wheel:focus-within .sk-wheel__ring,
.sk-hero.is-offscreen .sk-wheel__ring {
	animation-play-state: paused;
}

@keyframes sk-wheel-spin {
	to {
		transform: rotate(360deg);
	}
}

.sk-wheel__item {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--sk-pill-w);
	height: var(--sk-pill-h);
	margin: calc(var(--sk-pill-h) / -2) 0 0 calc(var(--sk-pill-w) / -2);
	transform: rotate(var(--sk-angle)) translateY(calc(var(--sk-wheel-r) * -1));
}

.sk-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 100%;
	height: 100%;
	padding: 5px 0 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: linear-gradient(to bottom, rgba(58, 30, 18, 0.2), rgba(255, 255, 255, 0.14));
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: #fff;
	text-decoration: none;
	transition: background-color 0.3s var(--sk-ease), border-color 0.3s var(--sk-ease);
}

a.sk-pill:hover,
a.sk-pill:focus-visible {
	border-color: var(--sk-accent);
	background: var(--sk-accent);
}

a.sk-pill:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sk-pill__thumb {
	flex: none;
	width: calc(var(--sk-pill-w) - 14px);
	height: calc(var(--sk-pill-w) - 14px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
}

.sk-hero .sk-pill__thumb img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.sk-pill__label {
	display: block;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--sk-font-sans);
	font-size: max(12px, calc(0.98 * var(--v)));
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
	writing-mode: vertical-rl;
	text-shadow: 0 1px 2px rgba(10, 12, 14, 0.55), 0 0 10px rgba(10, 12, 14, 0.25);
}

/* ---------- Notch with "Explore" link ---------- */

.sk-hero__notch {
	position: absolute;
	bottom: -1px;
	left: 50%;
	z-index: 3;
	width: clamp(290px, calc(26 * var(--v)), 500px);
	aspect-ratio: 364 / 99;
	transform: translateX(-50%);
}

.sk-hero__notch-shape {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: var(--sk-cream);
}

.sk-hero__explore {
	position: absolute;
	right: 18%;
	/* Percent of the notch height (padding % would be of its width). */
	bottom: 17%;
	left: 18%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #23272a;
	font-family: var(--sk-font-sans);
	font-size: max(13.5px, calc(1.05 * var(--v)));
	font-weight: 500;
	letter-spacing: 0.005em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.sk-hero__explore svg {
	flex: none;
	width: max(18px, calc(1.35 * var(--v)));
	height: max(18px, calc(1.35 * var(--v)));
	color: var(--sk-accent);
	transition: transform 0.5s var(--sk-ease);
}

.sk-hero__explore:hover svg {
	transform: rotate(45deg);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.sk-wheel__ring {
		animation: none;
	}

	.sk-hero__slide,
	.sk-hero__img {
		transition: none;
	}

	.sk-hero--zoom.is-animating .sk-hero__slide.is-active .sk-hero__img {
		transform: none;
	}
}

/* ---------- Entrance (hero.js adds .is-entered; never hides anything without JS or with reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.sk-hero__media {
		transition: scale 2.4s var(--sk-ease);
	}

	.sk-hero__subtitle,
	.sk-hero__actions,
	.sk-wheel,
	.sk-hero__notch {
		transition: opacity 1s var(--sk-ease), translate 1.1s var(--sk-ease);
	}

	.sk-hero__subtitle {
		transition-delay: 0.55s;
	}

	.sk-hero__actions {
		transition-delay: 0.7s;
	}

	.sk-wheel {
		transition-delay: 0.9s;
	}

	.sk-hero__notch {
		transition-delay: 1.1s;
	}

	.js body:not(.elementor-editor-active) .sk-hero:not(.is-entered) .sk-hero__media {
		scale: 1.14;
	}

	.js body:not(.elementor-editor-active) .sk-hero:not(.is-entered) .sk-hero__title {
		opacity: 0;
	}

	.js body:not(.elementor-editor-active) .sk-hero:not(.is-entered) .sk-hero__subtitle,
	.js body:not(.elementor-editor-active) .sk-hero:not(.is-entered) .sk-hero__actions,
	.js body:not(.elementor-editor-active) .sk-hero:not(.is-entered) .sk-hero__notch {
		opacity: 0;
		translate: 0 24px;
	}

	.js body:not(.elementor-editor-active) .sk-hero:not(.is-entered) .sk-wheel {
		opacity: 0;
		translate: 0 70px;
	}
}

/* ---------- Full-width hero (add the class sk-hero-full to the hero widget's CSS classes) ---------- */

.sk-hero-full .sk-hero {
	padding: 0;
}

.sk-hero-full .sk-hero__card {
	border-radius: 0;
}

/* ---------- Brighter hero photos (add sk-hero-vivid to the hero widget's CSS classes; lower the widget's Overlay too) ---------- */

body .sk-hero-vivid .sk-hero__img {
	filter: saturate(0.88) contrast(1.04) brightness(0.97);
}

/* Vivid variant: keep the band behind the heading, subtitle and buttons darker so white text stays readable on bright photos. */
body .sk-hero-vivid .sk-hero__media::after {
	background: linear-gradient(
		to bottom,
		rgba(10, 12, 14, var(--sk-hero-overlay)) 0%,
		rgba(10, 12, 14, calc(var(--sk-hero-overlay) * 0.9)) 50%,
		rgba(10, 12, 14, calc(var(--sk-hero-overlay) * 0.35)) 66%,
		rgba(10, 12, 14, 0) 82%
	);
}

body .sk-hero-vivid .sk-hero__title,
body .sk-hero-vivid .sk-hero__subtitle {
	text-shadow: 0 2px 22px rgba(10, 12, 14, 0.45);
}

/* ---------- Full-width hero sits under the header (the header floats over it) ---------- */

.sk-hero-full .sk-hero {
	--sk-fit-h: 100svh;
	--sk-card-h: max(clamp(560px, var(--sk-fit-h), 1100px), calc(var(--sk-text-h) + var(--sk-actions-h) + 22.6 * var(--v) + 56px));
	--sk-text-h: calc(clamp(260px, 26.5vw, 520px) + var(--sk-header-h) + var(--sk-admin-bar));
}

.sk-hero-full .sk-hero__content {
	padding-top: calc(var(--sk-header-h) + var(--sk-admin-bar) + clamp(48px, 5.6vw, 108px));
}

@media (max-width: 699px) {
	.sk-hero-full .sk-hero {
		--sk-text-h: calc(340px + var(--sk-header-h) + var(--sk-admin-bar));
	}
}
