/**
 * Lumiere Stack Cards — large category cards that stay in view and pile up as the page scrolls.
 *
 * Design: html/assets/css/style.css, 55. Stack cards. Colours and fonts follow the Design System (--inoforest-*) with
 * the design's values as fallbacks.
 *
 * Contents: 1. Stack and card · 2. Tones · 3. Body · 4. Button · 5. Photo · 6. Small screens · 7. Hint, reduced motion.
 */

/* ==========================================================================
   1. Stack and card: each card stops a step lower than the one before (--lumiere-stack-i)
   ========================================================================== */
.lumiere-stack {
	--lumiere-stack-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	display: grid;
	gap: var(--lumiere-stack-gap, 40px);
}
.lumiere-stack__card {
	--lumiere-stack-heading: var(--inoforest-color-heading, #2e2626);
	--lumiere-stack-num: var(--inoforest-color-accent, #83663f);
	position: sticky;
	inset-block-start: calc(var(--lumiere-stack-top, 120px) + var(--lumiere-stack-i, 0) * var(--lumiere-stack-offset, 26px));
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 480px;
	overflow: hidden;
	background: var(--inoforest-color-surface, #f9f3ee);
	border-radius: 28px;
	box-shadow: 0 -10px 40px color-mix(in srgb, var(--inoforest-color-heading, #2e2626) 8%, transparent);
	transform-origin: 50% 0;
	transition: scale 0.5s var(--lumiere-stack-ease), filter 0.5s var(--lumiere-stack-ease);
}
.lumiere-stack[data-sticky="false"] .lumiere-stack__card { position: relative; inset-block-start: auto; }
.lumiere-stack[data-scale="true"] .lumiere-stack__card.is-covered { scale: 0.95; filter: brightness(0.96); }

/* ==========================================================================
   2. Tones: soft, blush, sand, dark, in turn
   ========================================================================== */
.lumiere-stack__card[data-tone="1"] { background: var(--inoforest-custom-primary-light, #f8eceb); }
.lumiere-stack__card[data-tone="2"] { background: var(--inoforest-custom-accent-light, #f6efe4); }
.lumiere-stack__card[data-tone="3"] {
	--lumiere-stack-heading: #fff;
	--lumiere-stack-num: var(--inoforest-custom-accent-light, #f6efe4);
	color: color-mix(in srgb, #fff 76%, transparent);
	background: var(--inoforest-custom-dark, #2b2422);
}

/* ==========================================================================
   3. Body
   ========================================================================== */
.lumiere-stack__body { display: flex; flex-direction: column; padding: 56px; }
.lumiere-stack__num { font-family: var(--inoforest-font-heading-family, "Fraunces", Georgia, serif); font-size: 1.1rem; line-height: 1.75; color: var(--lumiere-stack-num); }
.lumiere-stack .lumiere-stack__title {
	margin: 14px 0;
	font-family: var(--inoforest-font-heading-family, "Fraunces", Georgia, serif);
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: var(--inoforest-font-heading-weight, 500);
	line-height: 1.14;
	letter-spacing: -0.015em;
	color: var(--lumiere-stack-heading);
}
.lumiere-stack .lumiere-stack__text { margin: 0 0 1.2em; line-height: 1.75; }
.lumiere-stack .lumiere-stack__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.lumiere-stack__tags li { margin: 0; padding: 6px 14px; font-size: 0.85rem; font-weight: 600; line-height: 1.75; color: var(--lumiere-stack-heading); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 999px; }
.lumiere-stack__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-block-start: auto; padding-block-start: 30px; }
.lumiere-stack__price { font-size: 0.9rem; line-height: 1.75; }
.lumiere-stack__price strong { font-family: var(--inoforest-font-heading-family, "Fraunces", Georgia, serif); font-size: 1.8rem; font-weight: var(--inoforest-font-heading-weight, 500); color: var(--lumiere-stack-heading); }

/* ==========================================================================
   4. Button (style.css 04: .btn; on the dark card .btn--light)
   ========================================================================== */
.lumiere-stack .lumiere-stack__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 14px 30px;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: var(--inoforest-color-primary, #9c5466);
	border: 1px solid var(--inoforest-color-primary, #9c5466);
	border-radius: 999px;
	transition: background-color 0.35s var(--lumiere-stack-ease), border-color 0.35s var(--lumiere-stack-ease), color 0.35s var(--lumiere-stack-ease);
}
.lumiere-stack .lumiere-stack__button:hover,
.lumiere-stack .lumiere-stack__button:focus-visible { color: #fff; background: var(--inoforest-custom-primary-dark, #84404f); border-color: var(--inoforest-custom-primary-dark, #84404f); }
.lumiere-stack__card[data-tone="3"] .lumiere-stack__button { color: var(--inoforest-color-heading, #2e2626); background: #fff; border-color: #fff; }
.lumiere-stack__card[data-tone="3"] .lumiere-stack__button:hover,
.lumiere-stack__card[data-tone="3"] .lumiere-stack__button:focus-visible { color: var(--inoforest-color-heading, #2e2626); background: var(--inoforest-custom-primary-light, #f8eceb); border-color: var(--inoforest-custom-primary-light, #f8eceb); }
.lumiere-stack__button i { font-size: 1.1em; transition: transform 0.35s var(--lumiere-stack-ease); }
.lumiere-stack__button svg { width: 1.1em; height: 1.1em; fill: currentColor; transition: transform 0.35s var(--lumiere-stack-ease); }
.lumiere-stack__button:hover :is(i, svg) { transform: translateX(3px); }
[dir="rtl"] .lumiere-stack__button :is(i, svg) { scale: -1 1; }

/* ==========================================================================
   5. Photo
   ========================================================================== */
.lumiere-stack__media { position: relative; overflow: hidden; }
.lumiere-stack .lumiere-stack__image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transition: scale 1.4s var(--lumiere-stack-ease); }
.lumiere-stack__card:hover .lumiere-stack__image { scale: 1.05; }

/* ==========================================================================
   6. Small screens (the design's 991 / 767 px): a plain list on phones
   ========================================================================== */
@media (max-width: 991px) {
	.lumiere-stack__body { padding: 40px; }
}
@media (max-width: 767px) {
	.lumiere-stack .lumiere-stack__card { position: relative; inset-block-start: auto; grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.lumiere-stack__media { order: -1; aspect-ratio: 4 / 3; }
	.lumiere-stack__body { padding: 28px 24px; }
}

/* ==========================================================================
   7. Editor hint, reduced motion
   ========================================================================== */
.lumiere-stack__hint { margin: 0; padding: 10px 14px; font-size: 13px; color: #1d2327; background: #fff8e5; border-inline-start: 4px solid #dba617; }
@media (prefers-reduced-motion: reduce) {
	.lumiere-stack__card,
	.lumiere-stack .lumiere-stack__image,
	.lumiere-stack .lumiere-stack__button { transition: none; }
}
