/*=========================
	XMAS CAMPAIGN BLOCK
	Dark-blue Christmas scene. Layout values captured from live (root font-size
	10px, 1rem = 10px). Heading + animated tree over a night-sky background SVG,
	festive baubles dropping on strings (xmas-campaign.js), then the donate
	button + description BELOW the tree. Snow + Santa removed per request.
=========================*/
.xmas-campaign {
	overflow: hidden;
	position: relative;
	padding: 0;
}

/* Night-sky panel. Visible dark-blue comes from the background SVG's radial
   gradient; this solid is a fallback while it paints. */
.xmas-campaign__panel {
	position: relative;
	padding-top: 50px;
	padding-bottom: 80px;
	text-align: center;
	background: #0a2440;
	overflow: hidden;
}
@media (min-width: 640px)  { .xmas-campaign__panel { padding-top: 70px; } }
@media (min-width: 1024px) { .xmas-campaign__panel { padding-top: 90px; } }

.xmas-campaign__container {
	position: relative;
	z-index: 2;
	max-width: 1248px;
	margin: 0 auto;
	padding: 0 24px;
}

.xmas-campaign__animation {
	position: relative;
	z-index: 2;
}

/* Heading */
.xmas-campaign__heading {
	color: #ffffff;
	margin: 0 auto 20px;
	max-width: 960px;
	font-size: 40px;
	line-height: 1.05em;
	font-weight: 700;
	opacity: 1;
}
@media (min-width: 640px)  { .xmas-campaign__heading { font-size: 48px; } }
@media (min-width: 1024px) { .xmas-campaign__heading { font-size: 56px; } }

/* Christmas tree */
.xmas-campaign__xmas-tree {
	position: relative;
	z-index: 2;
	margin: 10px auto 0;
	max-width: 500px;
}
.xmas-campaign__xmas-tree svg { display: block; width: 100%; height: auto; }

/* Content BELOW the tree/scene: donate button + description, on the section's
   own (white) background with dark text — matches live. */
.xmas-campaign__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding-top: 50px;
	padding-bottom: 50px;
}
@media (min-width: 1024px) {
	.xmas-campaign__content { padding-top: 80px; padding-bottom: 80px; }
}
.xmas-campaign__btn {
	margin-bottom: 24px;
}
.xmas-campaign__description {
	color: #282829;
	margin: 0 auto;
	max-width: 550px;
	font-size: 18px;
	line-height: 1.55em;
}

/* Background night-sky + snowdrifts SVG */
.xmas-campaign__background {
	bottom: 0;
	left: 0;
	min-height: 100%;
	min-width: 100%;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 0;
	display: block;
}
.xmas-campaign__background svg {
	inset: 0;
	height: 100%;
	position: absolute;
	width: 100%;
	object-fit: cover;
}

/* ---- Dropping baubles ("balls dropping") ----
   JS spawns .xmas-campaign__ball nodes into this layer; each is a coloured
   bauble hanging from a thin gold string that drops in from the top and
   swings gently, then fades. */
.xmas-campaign__balls {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}
.xmas-campaign__ball {
	position: absolute;
	transform: translateY(var(--start, -300px));
	transform-origin: top center;
	will-change: transform;
	animation: xmas-ball-drop var(--dur, 4s) cubic-bezier(.34, 1.2, .64, 1) forwards,
	           xmas-ball-swing 3.2s ease-in-out var(--dur, 4s) infinite;
}
.xmas-campaign__ball::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	width: 2px;
	height: 2000px;
	transform: translateX(-50%);
	background: linear-gradient(0deg, #f4ad00 0, #e49d1b 30%, #d68f32 80%, rgba(0,0,0,0));
}
.xmas-campaign__ball-bauble {
	display: block;
	width: var(--size, 34px);
	height: var(--size, 34px);
	border-radius: 50%;
	background: var(--ball, #cf3b3b);
	background-image: radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0, rgba(255,255,255,.15) 22%, rgba(255,255,255,0) 42%);
	box-shadow: inset 0 -6px 10px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.35);
	position: relative;
}
.xmas-campaign__ball-bauble::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translateX(-50%);
	width: 6px;
	height: 5px;
	border-radius: 2px 2px 0 0;
	background: #f4ad00;
}
@keyframes xmas-ball-drop {
	0%   { transform: translateY(var(--start, -300px)); }
	70%  { transform: translateY(0); }
	85%  { transform: translateY(-10px); }
	100% { transform: translateY(0); }
}
@keyframes xmas-ball-swing {
	0%, 100% { transform: translateY(0) rotate(-4deg); }
	50%      { transform: translateY(0) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
	.xmas-campaign__ball { animation: xmas-ball-drop .01s forwards; }
}
