/* codebycp Hydration Reveal
   Scroll-scrubbed fan-out product section. */

/* ---------- Pin (sticky scrub) ---------- */
.cbp-hr-track {
	position: relative;
	width: 100%;
}

.cbp-hr-sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.cbp-hr-sticky > .cbp-hr {
	width: 100%;
	min-height: 100vh;
}

.cbp-hr {
	position: relative;
	overflow: hidden;
	background-color: #d9edf7;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbp-hr__inner {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	z-index: 2;
}

/* ---------- Head ---------- */
.cbp-hr__head {
	text-align: center;
	margin-bottom: 40px;
}

.cbp-hr__heading {
	margin: 0;
	font-size: 44px;
	line-height: 1.1;
	font-weight: 700;
	color: #1c2440;
}

.cbp-hr__subheading {
	margin: 14px auto 0;
	max-width: 620px;
	font-size: 17px;
	line-height: 1.6;
	color: #3a4763;
}

/* ---------- Body: 3 columns ---------- */
.cbp-hr__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.cbp-hr__col {
	display: flex;
	flex-direction: column;
	gap: 48px;
	flex: 0 0 300px;
	max-width: 300px;
}

.cbp-hr__col--right {
	text-align: right;
}

.cbp-hr__feature {
	will-change: transform, opacity;
}

.cbp-hr__feat-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	color: #1c2440;
}

.cbp-hr__feat-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #41506d;
}

/* ---------- Stage & fan ---------- */
.cbp-hr__stage {
	position: relative;
	flex: 1 1 520px;
	align-self: stretch;
	min-height: 480px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/* decorative ring behind the products */
.cbp-hr__stage[data-ring="1"]::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 78%;
	aspect-ratio: 1 / 1;
	transform: translate(-50%, -50%);
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

.cbp-hr__sachet {
	position: absolute;
	left: 50%;
	bottom: 0;
	height: 430px;
	transform-origin: bottom center;
	transform: translateX(-50%);
	will-change: transform, opacity;
}

.cbp-hr__sachet img {
	height: 100%;
	width: auto;
	display: block;
}

/* Side images START stacked behind the centre (visible, like a deck) and
   tilt/fan out on scroll — so they must be visible from the first paint. */
.cbp-hr[data-anim="1"] .cbp-hr__sachet:not(.cbp-hr__sachet--center) {
	opacity: 1;
}

.cbp-hr[data-anim="1"] .cbp-hr__feature {
	opacity: 0;
}

/* When animation is disabled, everything is shown in final state via CSS */
.cbp-hr[data-anim="0"] .cbp-hr__sachet:not(.cbp-hr__sachet--center) {
	opacity: 1;
}

/* ---------- Badge ---------- */
.cbp-hr__badge {
	text-align: center;
	margin-top: 36px;
}

.cbp-hr__badge img {
	height: 46px;
	width: auto;
	display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cbp-hr__heading { font-size: 36px; }
	.cbp-hr__col { flex-basis: 240px; max-width: 240px; gap: 32px; }
	.cbp-hr__stage { min-height: 380px; }
}

@media (max-width: 767px) {
	/* Disable pinning on mobile — section flows normally, products in the middle */
	.cbp-hr-track {
		height: auto !important;
	}
	.cbp-hr-sticky {
		position: static;
		height: auto;
	}
	.cbp-hr-sticky > .cbp-hr {
		min-height: 0;
	}

	.cbp-hr__body {
		flex-direction: column;
		gap: 32px;
	}
	.cbp-hr__stage {
		order: -1;
		width: 100%;
		flex-basis: auto;
		min-height: 300px;
	}
	.cbp-hr__col {
		flex-basis: auto;
		max-width: 100%;
		width: 100%;
		text-align: center;
	}
	.cbp-hr__col--right { text-align: center; }
	.cbp-hr__heading { font-size: 30px; }
	/* On mobile we let the fan settle open even before scroll for readability */
}
