/* Products section — Figma 317:1603
   Frame: flex column, padding 72×61.5, bg #FFE5B3 + reveal / image motion */

.section--products {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: 72px 0;
	background: #ffe5b3;
}

.section--products .wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: stretch;
	gap: 40px;
	width: 100%;
	max-width: calc(var(--maxw) + var(--pad-x) * 2);
	padding-left: var(--pad-x);
	padding-right: var(--pad-x);
	box-sizing: border-box;
}

.section--products .section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: stretch;
	gap: 32px;
	width: 100%;
	margin-bottom: 0;
}

.section--products .heading--center {
	font-weight: 500;
	font-size: 56px;
	line-height: 1.05;
	letter-spacing: -1px;
	color: #1c3323;
}

/* Figma opacity fades — 0.3s cubic-bezier(0.5, 0, 0.5, 1) */
.section--products [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.3s cubic-bezier(0.5, 0, 0.5, 1),
		transform 0.3s cubic-bezier(0.5, 0, 0.5, 1);
	will-change: opacity, transform;
}

.section--products [data-reveal].is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

.products-stack {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-self: stretch;
	gap: 40px;
	width: 100%;
}

.product-card {
	position: sticky;
	top: 16px;
	display: grid;
	/* Figma 317:1603 — media left, copy right */
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	gap: 24px;
	width: 100%;
	padding: 24px;
	overflow: hidden;
	background: #fff2d9;
	border-radius: 20px;
}

.product-card:nth-child(1) {
	z-index: 1;
}

.product-card:nth-child(2) {
	z-index: 2;
}

.product-card:nth-child(3) {
	z-index: 3;
}

.product-card__media {
	position: relative;
	height: 446px;
	overflow: hidden;
	border-radius: 12px;
}

/* Figma 317 image zoom (ease-out grow / settle) */
.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.45);
	transform-origin: center center;
	transition: transform 0.45s ease-out;
	will-change: transform;
}

/* Cocoa pods — keep pods centered in frame */
.product-card--cocoa .product-card__media img {
	object-position: center 40%;
}

.product-card__media.is-visible img {
	transform: scale(1);
}

.product-card:hover .product-card__media.is-visible img {
	transform: scale(1.08);
}

.product-card__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	gap: 24px;
}

.product-card__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.product-card__title {
	font-weight: 600;
	font-size: 48px;
	line-height: 1.15;
	letter-spacing: -1.92px;
	color: #051f1c;
}

.product-card__text {
	font-weight: 500;
	font-size: 20px;
	line-height: 1.5;
	color: #444;
}

.product-card .chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.product-card .chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--green);
	color: var(--white);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.2px;
	white-space: nowrap;
}

.product-card .chip__dot {
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
}

@media (max-width: 1180px) {
	.product-card__media {
		height: 380px;
	}

	.product-card__title {
		font-size: 38px;
	}

	.product-card__text {
		font-size: 16px;
	}

	.product-card .chip {
		height: 36px;
		font-size: 12px;
	}
}

@media (max-width: 980px) {
	.product-card {
		position: relative;
		top: auto;
	}
}

@media (max-width: 768px) {
	.section--products {
		padding: 48px 0;
	}

	.section--products .wrap {
		gap: 32px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.section--products .section-head {
		gap: 20px;
	}

	.section--products .eyebrow__num {
		width: 40px;
		height: 40px;
		font-size: 13px;
	}

	.section--products .eyebrow__label {
		margin-left: -16px;
		padding: 9px 18px 9px 28px;
		font-size: 13px;
		letter-spacing: -.4px;
	}

	.section--products .heading--center {
		font-size: 32px;
		line-height: 1.12;
		letter-spacing: -1px;
	}

	.products-stack {
		gap: 20px;
	}

	.product-card {
		position: relative;
		top: auto;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		min-height: 0;
		padding: 20px;
		border-radius: 20px;
	}

	.product-card__media {
		width: 100%;
		height: clamp(280px, 85vw, 360px);
		min-height: 0;
		border-radius: 12px;
	}

	.product-card__content {
		gap: 24px;
	}

	.product-card__copy {
		gap: 16px;
	}

	.product-card__title {
		font-size: 32px;
		line-height: 1.15;
		letter-spacing: -1.28px;
	}

	.product-card__text {
		font-size: 16px;
		font-weight: 400;
		line-height: 1.5;
	}

	.product-card .chip-row {
		gap: 8px;
		max-height: none;
		overflow: visible;
	}

	.product-card .chip {
		gap: 4px;
		height: 36px;
		padding: 0 10px;
		border-radius: 8px;
		font-size: 12px;
		letter-spacing: -.12px;
		white-space: nowrap;
	}

	.product-card .chip__dot {
		width: 6px;
		height: 6px;
	}

	.product-card:hover .product-card__media.is-visible img {
		transform: scale(1.04);
	}
}

@media (max-width: 340px) {
	.product-card__media {
		height: 260px;
	}

	.product-card .chip {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.section--products [data-reveal],
	.product-card__media img {
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}
