/* MC Wear — Sticky Scroll
 *
 * Desktop + tablet: left media column is sticky; right content column stacks
 * blocks that are each a viewport tall. As a block reaches the viewport centre,
 * JS swaps the active sticky image (cross-fade).
 *   Desktop image 673×888, gap 70, heading 56/72.
 *   Tablet  image 338×390, gap 16, heading 30/38.
 * Mobile (≤767): a separate Swiper slider — image on top, content below,
 * heading 28.
 *
 * Specificity bumped (.mcw-sticky.mcw-sticky ...) to beat Elementor Site
 * Settings (0,1,1) without using !important.
 */

.mcw-sticky.mcw-sticky {
	box-sizing: border-box;
	color: #000000;
	/* Break out of any Elementor container so the inner aligns to the same
	 * centred 1440 / 80-32-16 gutters as the header. */
	width: auto;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.mcw-sticky.mcw-sticky *,
.mcw-sticky.mcw-sticky *::before,
.mcw-sticky.mcw-sticky *::after {
	box-sizing: border-box;
}

/* ---------- Two-column container (desktop + tablet) ---------- */
.mcw-sticky.mcw-sticky .mcw-sticky__inner {
	display: grid;
	grid-template-columns: 1fr 577px;
	column-gap: 70px;
	align-items: start;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 80px;
}

/* ---------- Sticky media ---------- */
.mcw-sticky.mcw-sticky .mcw-sticky__media {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mcw-sticky.mcw-sticky .mcw-sticky__media-frame {
	position: relative;
	width: 100%;
	max-width: 673px;
	aspect-ratio: 673 / 888;
	background: #f2f2f2;
	overflow: hidden;
}

.mcw-sticky.mcw-sticky .mcw-sticky__media-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: bottom center;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.mcw-sticky.mcw-sticky .mcw-sticky__media-img.is-active {
	opacity: 1;
}

/* ---------- Content column ---------- */
.mcw-sticky.mcw-sticky .mcw-sticky__content {
	display: flex;
	flex-direction: column;
}

.mcw-sticky.mcw-sticky .mcw-sticky__block {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 100vh;
}

/* ---------- Block body (shared by content blocks + mobile slides) ---------- */
.mcw-sticky.mcw-sticky .mcw-sticky__block-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: 497px;
	text-align: center;
}

.mcw-sticky.mcw-sticky .mcw-sticky__mark {
	display: block;
	width: 88px;
	height: 36px;
	flex-shrink: 0;
}

.mcw-sticky.mcw-sticky .mcw-sticky__mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mcw-sticky.mcw-sticky .mcw-sticky__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

.mcw-sticky.mcw-sticky .mcw-sticky__heading {
	margin: 0;
	font-family: "Ivy Mode", "Times New Roman", serif;
	font-weight: 300;
	font-size: 56px;
	line-height: 72px;
	letter-spacing: 1px;
	color: #000000;
}

.mcw-sticky.mcw-sticky .mcw-sticky__desc {
	margin: 0;
	font-family: "Mona Sans Expanded", "Mona Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 1px;
	text-transform: capitalize;
	color: #3b3e40;
}

/* Button — matches the MCW Button "Calypso" hover: circle scale-in + plane
 * drop + text up/down. Base transparent/black, fills black on hover (text white). */
.mcw-sticky.mcw-sticky .mcw-sticky__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 24px;
	border: 1px solid #000000;
	background: transparent;
	color: #000000;
	font-family: "Mona Sans Expanded", "Mona Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	cursor: pointer;
	transition: color 0.2s ease 0.4s;
}

.mcw-sticky.mcw-sticky .mcw-sticky__btn::before,
.mcw-sticky.mcw-sticky .mcw-sticky__btn::after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: "";
	pointer-events: none;
	background: #000000;
	z-index: 1;
}

/* Circle that scales in from the bottom. */
.mcw-sticky.mcw-sticky .mcw-sticky__btn::before {
	width: 120%;
	height: 0;
	padding-bottom: 120%;
	top: -110%;
	left: -10%;
	border-radius: 50%;
	transform: translate3d(0, 68%, 0) scale3d(0, 0, 0);
}

.mcw-sticky.mcw-sticky .mcw-sticky__btn:hover::before,
.mcw-sticky.mcw-sticky .mcw-sticky__btn:focus-visible::before {
	transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
	transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
}

/* Plane that drops in behind the text to finish the fill. */
.mcw-sticky.mcw-sticky .mcw-sticky__btn::after {
	transform: translate3d(0, -100%, 0);
	transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
}

.mcw-sticky.mcw-sticky .mcw-sticky__btn:hover::after,
.mcw-sticky.mcw-sticky .mcw-sticky__btn:focus-visible::after {
	transform: translate3d(0, 0, 0);
	transition-duration: 0.05s;
	transition-delay: 0.4s;
	transition-timing-function: linear;
}

.mcw-sticky.mcw-sticky .mcw-sticky__btn > span {
	display: block;
	position: relative;
	z-index: 10;
}

.mcw-sticky.mcw-sticky .mcw-sticky__btn:hover > span,
.mcw-sticky.mcw-sticky .mcw-sticky__btn:focus-visible > span {
	animation: mcw-sticky-btn-up 0.3s forwards, mcw-sticky-btn-down 0.3s forwards 0.3s;
}

.mcw-sticky.mcw-sticky .mcw-sticky__btn:hover,
.mcw-sticky.mcw-sticky .mcw-sticky__btn:focus-visible {
	color: #ffffff;
	outline: none;
	transition: color 0.2s ease 0.3s;
}

@keyframes mcw-sticky-btn-up {
	to {
		transform: translate3d(0, -105%, 0) scale3d(1, 2, 1);
		opacity: 0;
	}
}

@keyframes mcw-sticky-btn-down {
	from {
		transform: translate3d(0, 100%, 0) scale3d(1, 2, 1);
		opacity: 0;
	}
	to {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcw-sticky.mcw-sticky .mcw-sticky__btn,
	.mcw-sticky.mcw-sticky .mcw-sticky__btn::before,
	.mcw-sticky.mcw-sticky .mcw-sticky__btn::after,
	.mcw-sticky.mcw-sticky .mcw-sticky__btn > span {
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
	}
}

/* ---------- Mobile slider (hidden on desktop + tablet) ---------- */
.mcw-sticky.mcw-sticky .mcw-sticky__slider {
	display: none;
}

.mcw-sticky.mcw-sticky .mcw-sticky__slide {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
}

.mcw-sticky.mcw-sticky .mcw-sticky__slide-media {
	width: 100%;
	height: 330px;
	background: #f2f2f2;
	overflow: hidden;
}

.mcw-sticky.mcw-sticky .mcw-sticky__slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* ---------- Container gutters: match the header (80 / 32 / 16) ---------- */
/* ---------- Laptops (1025–1600) ----------
 * The media frame takes its height from its width via aspect-ratio (673 wide
 * → 888 tall), which ignores how tall the viewport actually is. Inside the
 * 100vh sticky box those 888px are centred, so on any laptop shorter than
 * 888px the excess spills equally above and below — and the top half lands on
 * the section above (the category hero).
 *
 * Capping the width by what the viewport height can take keeps the 673:888
 * portrait proportion and lets aspect-ratio derive a height that fits. The
 * min() leaves the frame untouched whenever there is room for the full 673px
 * (≥888px tall viewports), so taller screens render exactly as before.
 * Scoped above 1024 so the tablet block below keeps its own 338:390 frame. */
@media screen and (min-width: 1025px) and (max-width: 1600px) {
	.mcw-sticky.mcw-sticky .mcw-sticky__media-frame {
		width: min(100%, 673px, calc(100vh * 673 / 888));
	}
}

@media screen and (max-width: 1499px) {
	.mcw-sticky.mcw-sticky .mcw-sticky__inner {
		padding: 0 32px;
	}
}

/* ---------- Tablet (768–1024): smaller two-column ---------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.mcw-sticky.mcw-sticky .mcw-sticky__inner {
		grid-template-columns: 1fr 326px;
		column-gap: 16px;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__media-frame {
		max-width: none;
		aspect-ratio: 338 / 390;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__block-inner {
		max-width: 326px;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__heading {
		font-size: 30px;
		line-height: 38px;
		letter-spacing: 0;
	}
}

/* ---------- Mobile (≤767): swap to the Swiper slider ---------- */
@media screen and (max-width: 767px) {
	.mcw-sticky.mcw-sticky .mcw-sticky__inner {
		display: none;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__slider {
		display: block;
		width: 100%;
		padding: 120px 16px;
		overflow: hidden;
	}

	/* Pre-init fallback so slides don't squash before Swiper boots. */
	.mcw-sticky.mcw-sticky .mcw-sticky__slider .swiper-wrapper {
		gap: 16px;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__slider .swiper-slide {
		flex: 0 0 88%;
		width: 88%;
		height: auto;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__slider.swiper-initialized .swiper-wrapper {
		gap: 0;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__slider.swiper-initialized .swiper-slide {
		flex: 0 0 auto;
		width: auto;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__block-inner {
		max-width: none;
	}

	.mcw-sticky.mcw-sticky .mcw-sticky__heading {
		font-size: 28px;
		line-height: 36px;
		letter-spacing: 0;
	}
}
