/* =====================================================================
   Holiday banner (includes/seasonal.php): fir-green band, the shop's ornaments hanging on threads
   and swaying, light snow. Motion stops for people who ask their system for less motion.
   ===================================================================== */

.chs-xmas {
	--xmas-bg: #26301f;
	--xmas-ivory: #f8f5ef;
	--xmas-gold: #d8c39a;
	position: relative;
	overflow: hidden;
	min-height: 720px;
	background:
		radial-gradient(ellipse 60% 70% at 72% 40%, rgba(216, 195, 154, .16), transparent 70%),
		radial-gradient(ellipse 50% 60% at 10% 100%, rgba(92, 103, 72, .45), transparent 70%),
		var(--xmas-bg);
	color: var(--xmas-ivory);
	isolation: isolate;
}

/* ---------- snow: two layers of soft dots drifting down ---------- */
.chs-xmas-snow,
.chs-xmas-snow::after {
	position: absolute;
	inset: -200px 0 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, .8), transparent 60%),
		radial-gradient(1.5px 1.5px at 90px 120px, rgba(255, 255, 255, .7), transparent 60%),
		radial-gradient(2.5px 2.5px at 160px 60px, rgba(255, 255, 255, .55), transparent 60%),
		radial-gradient(1.5px 1.5px at 130px 180px, rgba(255, 255, 255, .75), transparent 60%),
		radial-gradient(2px 2px at 60px 170px, rgba(255, 255, 255, .5), transparent 60%);
	background-size: 200px 200px;
	animation: chs-snow 18s linear infinite;
	will-change: transform;
}

.chs-xmas-snow::after {
	content: "";
	inset: -300px 0 0;
	background-size: 300px 300px;
	opacity: .55;
	/* own keyframes: this layer's tile is 300px, moving it 200px made it jump at every loop */
	animation-name: chs-snow-far;
	animation-duration: 28s;
}

@keyframes chs-snow {
	from { transform: translateY(0); }
	to { transform: translateY(200px); }
}

@keyframes chs-snow-far {
	from { transform: translateY(0); }
	to { transform: translateY(300px); }
}

/* ---------- ornaments ---------- */
.chs-xmas-orns {
	position: absolute;
	top: 0;
	right: 2%;
	bottom: 0;
	left: 47%;
	z-index: 1;
}

html body a.chs-orn {
	position: absolute;
	top: 0;
	left: var(--x);
	display: flex;
	flex-direction: column;
	align-items: center;
	/* no sway since 26.11.2026 (owner: less motion; the snow keeps falling) */
	text-decoration: none !important;
	background: none !important;
}

.chs-orn-thread {
	display: block;
	width: 1px;
	height: calc(var(--t) + 26px);
	background: linear-gradient(rgba(216, 195, 154, .25), rgba(216, 195, 154, .8));
}

.chs-orn img {
	display: block;
	width: auto;
	height: var(--h);
	margin-top: -4px;
	translate: calc(var(--h) * var(--ax, 0)) 0; /* the photo's loop under the thread */
	filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35));
	transition: transform .35s ease;
	-webkit-user-drag: none;
}

.chs-orn:hover img,
.chs-orn:focus-visible img {
	transform: scale(1.06);
}

/* ---------- fir garland along the top ---------- */
.chs-xmas-garland {
	position: absolute;
	top: -8px;
	left: 0;
	right: 0;
	z-index: 3;
	height: 84px;
	background-repeat: repeat-x;
	background-size: 200px 84px;
	pointer-events: none;
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
}

/* ---------- falling snowflakes ---------- */
.chs-xmas-flakes {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.chs-flake {
	position: absolute;
	top: -40px;
	left: var(--fx);
	width: var(--fs);
	height: var(--fs);
	opacity: 0;
	animation: chs-fall var(--fd) linear var(--fl) infinite;
	will-change: transform, opacity;
}

/* fade in at the top and out at the bottom: no flake popping in or vanishing mid-air at the loop */
@keyframes chs-fall {
	0% { transform: translate(0, 0) rotate(0); opacity: 0; }
	8% { opacity: .75; }
	50% { transform: translate(24px, 360px) rotate(180deg); }
	88% { opacity: .75; }
	100% { transform: translate(-10px, 720px) rotate(360deg); opacity: 0; }
}

/* ---------- snow drift, firs and snowmen along the bottom ---------- */
.chs-xmas-scene {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 250px;
	pointer-events: none;
}

html body img.chs-scene-item {
	position: absolute;
	bottom: 34px;
	left: var(--sx);
	width: auto;
	height: var(--sh);
	transform: translateX(-50%);
}

.chs-scene--far {
	bottom: 52px;
	opacity: .85;
}

.chs-drift {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 96px;
}

/* ---------- text ---------- */
.chs-xmas-text {
	position: relative;
	z-index: 2;
	width: min(520px, 44%);
	margin-left: max(6vw, calc((100vw - 1300px) / 2));
	padding: 140px 0 200px;
}

html body .chs-xmas-kicker {
	margin: 0 0 18px;
	color: var(--xmas-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
}

html body .chs-xmas-title {
	margin: 0 0 20px;
	color: var(--xmas-ivory) !important;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: clamp(42px, 5vw, 68px) !important;
	font-weight: 500 !important;
	line-height: 1.02 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

html body .chs-xmas-lead {
	margin: 0 0 18px;
	color: rgba(248, 245, 239, .86);
	font-size: 16px;
	line-height: 1.65;
}

html body .chs-xmas-deadline {
	display: inline-block;
	margin: 0 0 30px;
	padding: 7px 14px;
	border: 1px solid rgba(216, 195, 154, .45);
	border-radius: 999px;
	color: var(--xmas-gold);
	font-size: 13px;
	line-height: 1.4;
}

.chs-xmas-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
}

html body a.chs-xmas-btn {
	display: inline-block;
	padding: 15px 30px;
	border-radius: 8px;
	background: var(--xmas-ivory) !important;
	color: #26301f !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background .2s ease, transform .2s ease;
}

html body a.chs-xmas-btn:hover {
	background: #fff !important;
	transform: translateY(-1px);
}

html body a.chs-xmas-link {
	color: var(--xmas-ivory) !important;
	font-size: 15px;
	text-decoration: underline !important;
	text-underline-offset: 5px;
	text-decoration-color: rgba(216, 195, 154, .6) !important;
}

/* ---------- phones and narrow screens: ornaments in a row above the text ---------- */
@media (max-width: 900px) {
	.chs-xmas {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.chs-xmas-orns {
		position: relative;
		inset: auto;
		order: 1;
		height: 210px;
		margin: 0 4%;
	}

	.chs-xmas-text {
		order: 2;
	}

	html body .chs-xmas-scene {
		position: relative;
		order: 3;
		height: 215px;
		margin-top: -6px;
	}

	html body img.chs-scene-item {
		bottom: 26px;
		height: calc(var(--sh) * .66) !important;
	}

	.chs-scene-item:nth-child(1) { left: 14%; }
	.chs-scene-item:nth-child(2) { left: 38%; }
	.chs-scene-item:nth-child(3) { display: none; }
	.chs-scene-item:nth-child(4) { left: 63%; }
	.chs-scene-item:nth-child(5) { left: 87%; }

	.chs-drift {
		height: 64px;
	}

	.chs-xmas-garland {
		height: 64px;
		background-size: 152px 64px;
	}

	.chs-orn img {
		height: calc(var(--h) * .52);
		translate: calc(var(--h) * .52 * var(--ax, 0)) 0;
	}

	.chs-orn-thread {
		height: calc(var(--t) * .38 + 22px);
	}

	.chs-xmas-text {
		width: auto;
		margin: 0;
		padding: 6px 22px 10px;
		text-align: center;
	}

	.chs-xmas-actions {
		justify-content: center;
	}

	html body .chs-xmas-lead {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.chs-orn--7 {
		display: none !important;
	}

	html body a.chs-orn {
		left: calc(var(--x) * .96);
	}
}

@media (prefers-reduced-motion: reduce) {
	.chs-xmas-snow,
	.chs-xmas-snow::after,
	.chs-flake,
	html body a.chs-orn {
		animation: none;
	}

	.chs-flake {
		display: none;
	}
}
