/* ==========================================================================
   OGCancerNI – Christmas 2026 festive layer
   Loaded from functions.php (bricks-child). To switch everything off after
   Christmas, remove the "ogc-festive" enqueue there, and in Bricks remove the
   Christmas card + tree elements from the homepage hero (the original photo
   slider is in the podium_backup_festive_20261123_v2 option).
   ========================================================================== */

:root {
	--festive-red: #d42a3c;
	--festive-red-deep: #a81828;
	--festive-green: #1f8a4c;
	--festive-green-deep: #166a3a;
	--festive-green-soft: #63d08e;
	--festive-snow: #ffffff;
}

/* --------------------------------------------------------------------------
   1. Header logo – Santa hat on the "O"
   -------------------------------------------------------------------------- */
#brx-header .header-logo {
	position: relative;
	display: inline-block;
	line-height: 0;
}

/* Offsets are % of the logo image (the O spans 23.6%–32.8% across and
   starts 30% down). */
#brx-header .header-logo::before {
	content: "";
	position: absolute;
	z-index: 2;
	left: 22.6%;
	top: 4.6%;
	width: 12%;
	aspect-ratio: 64 / 52;
	transform: rotate(-10deg);
	transform-origin: 47% 81%;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cpath d='M9 40C10 22 22 6 38 5c10-.6 17 6 20 18l-6 2c-2-6-5-9-9-9 1 9 5 16 10 22z' fill='%23d42a3c'/%3E%3Cpath d='M38 5c10-.6 17 6 20 18l-6 2c-2-6-5-9-9-9-2-4-4-7-5-11z' fill='%23a81828'/%3E%3Ccircle cx='55' cy='27' r='6.5' fill='%23fff'/%3E%3Ccircle cx='53' cy='25' r='2.2' fill='%23eef1f6'/%3E%3Crect x='3' y='35' width='54' height='14' rx='7' fill='%23fff'/%3E%3Cpath d='M9 41c4 1.6 8-1.6 12 0s8 1.6 12 0 8-1.6 12 0 6 1 8 0' fill='none' stroke='%23e3e8ef' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.18));
	animation: festive-hat-wiggle 6s ease-in-out infinite;
}

@keyframes festive-hat-wiggle {
	0%, 82%, 100% { transform: rotate(-10deg); }
	88% { transform: rotate(-16deg); }
	94% { transform: rotate(-5deg); }
}

/* --------------------------------------------------------------------------
   2. Header – string of twinkling lights hanging from the nav bar
   -------------------------------------------------------------------------- */
#brx-header .main-header {
	position: relative;
}

#brx-header .main-header::after {
	content: "";
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	top: calc(100% - 4px);
	height: 26px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26' viewBox='0 0 160 26'%3E%3Cstyle%3E.b%7Banimation:t 2.4s ease-in-out infinite%7D.b2%7Banimation-delay:-.6s;animation-duration:3.1s%7D.b3%7Banimation-delay:-1.4s;animation-duration:2.7s%7D.b4%7Banimation-delay:-2s;animation-duration:3.5s%7D@keyframes t%7B0%25,100%25%7Bopacity:1%7D50%25%7Bopacity:.35%7D%7D%3C/style%3E%3Cpath d='M0 4Q80 16 160 4' fill='none' stroke='%232f4f3a' stroke-width='1.4'/%3E%3Cg class='b'%3E%3Ccircle cx='20' cy='14' r='7' fill='%23fff1cf' opacity='.35'/%3E%3Cellipse cx='20' cy='14' rx='3.4' ry='5' fill='%23fff1cf'/%3E%3C/g%3E%3Crect x='18' y='6' width='4' height='4' rx='1' fill='%232f4f3a'/%3E%3Cg class='b b2'%3E%3Ccircle cx='60' cy='17' r='7' fill='%23ff5a6a' opacity='.35'/%3E%3Cellipse cx='60' cy='17' rx='3.4' ry='5' fill='%23ff5a6a'/%3E%3C/g%3E%3Crect x='58' y='9' width='4' height='4' rx='1' fill='%232f4f3a'/%3E%3Cg class='b b3'%3E%3Ccircle cx='100' cy='17' r='7' fill='%2363d08e' opacity='.35'/%3E%3Cellipse cx='100' cy='17' rx='3.4' ry='5' fill='%2363d08e'/%3E%3C/g%3E%3Crect x='98' y='9' width='4' height='4' rx='1' fill='%232f4f3a'/%3E%3Cg class='b b4'%3E%3Ccircle cx='140' cy='14' r='7' fill='%23c59bff' opacity='.35'/%3E%3Cellipse cx='140' cy='14' rx='3.4' ry='5' fill='%23c59bff'/%3E%3C/g%3E%3Crect x='138' y='6' width='4' height='4' rx='1' fill='%232f4f3a'/%3E%3C/svg%3E") 0 0 / 160px 26px repeat-x;
}

/* --------------------------------------------------------------------------
   3. Homepage hero – gentle snowfall
   -------------------------------------------------------------------------- */
.festive-hero::before,
.festive-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* two layers of snow at different sizes/speeds for depth */
.festive-hero::before {
	background-image:
		radial-gradient(2px 2px at 20px 30px, rgb(255 255 255 / 0.9), transparent 60%),
		radial-gradient(1.5px 1.5px at 90px 120px, rgb(255 255 255 / 0.7), transparent 60%),
		radial-gradient(2.5px 2.5px at 160px 60px, rgb(255 255 255 / 0.8), transparent 60%),
		radial-gradient(1.5px 1.5px at 130px 170px, rgb(255 255 255 / 0.6), transparent 60%);
	background-size: 200px 200px;
	animation: festive-snow 18s linear infinite;
	opacity: 0.55;
}

.festive-hero::after {
	background-image:
		radial-gradient(3px 3px at 50px 80px, rgb(255 255 255 / 0.85), transparent 60%),
		radial-gradient(3.5px 3.5px at 240px 20px, rgb(255 255 255 / 0.75), transparent 60%),
		radial-gradient(2.5px 2.5px at 180px 230px, rgb(255 255 255 / 0.8), transparent 60%),
		radial-gradient(3px 3px at 290px 160px, rgb(255 255 255 / 0.7), transparent 60%);
	background-size: 320px 320px;
	animation: festive-snow-slow 26s linear infinite;
	opacity: 0.5;
}

@keyframes festive-snow {
	from { background-position: 0 0; }
	to { background-position: 20px 200px; }
}

@keyframes festive-snow-slow {
	from { background-position: 0 0; }
	to { background-position: -30px 320px; }
}

/* --------------------------------------------------------------------------
   4. Homepage hero – the Christmas Giving Tree in place of the photo
   The column sits inside the container (no 50vw bleed), so the purple
   background runs the full width of the hero behind the tree.
   -------------------------------------------------------------------------- */
.festive-hero .festive-hero__tree {
	width: auto;
	max-width: 100%;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 1.6rem;
	background: none;
}

/* undo the photo's full-bleed / capped-height mobile rules */
@media (max-width: 991px) {
	.festive-hero .festive-hero__tree {
		width: 100%;
		max-width: 100%;
		max-height: none;
		transform: none;
		padding-top: 2.4rem;
	}
}

.festive-hero__tree .brxe-shortcode {
	width: 100%;
}

.ogc-tree--hero {
	position: relative;
	width: 100%;
}

/* soft glow behind the tree */
.ogc-tree--hero::before {
	content: "";
	position: absolute;
	inset: 8% 10% 4%;
	z-index: 0;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(255 241 207 / 0.16), rgb(99 208 142 / 0.06) 55%, transparent);
	pointer-events: none;
}

.ogc-tree--hero .ogc-tree__scene {
	position: relative;
	z-index: 1;
	height: clamp(42rem, 72vh, 68rem);
	pointer-events: none;
}

.ogc-tree--hero .ogc-tree__scene canvas {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ogc-tree--hero .ogc-tree__loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgb(255 255 255 / 0.6);
	font-size: var(--text-s, 1.5rem);
}

.ogc-tree--hero .ogc-tree__loading[hidden],
.ogc-tree--hero .ogc-tree__labels,
.ogc-tree--hero .ogc-tree__tooltip {
	display: none;
}

/* the whole tree is one link; the label sits as a pill at the foot */
.ogc-tree--hero .ogc-tree__hero-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 1.2rem;
	border-radius: var(--radius-l, 1.5rem);
	text-decoration: none;
}

.ogc-tree--hero .ogc-tree__hero-link-text {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.9rem 1.8rem;
	border-radius: 999px;
	background: var(--festive-snow);
	color: var(--festive-green-deep);
	font-weight: 700;
	font-size: var(--text-s, 1.5rem);
	box-shadow: 0 0.8rem 2rem -0.8rem rgb(0 0 0 / 0.5);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ogc-tree--hero .ogc-tree__hero-link-text::after {
	content: "\2192";
}

.ogc-tree--hero .ogc-tree__hero-link:hover .ogc-tree__hero-link-text,
.ogc-tree--hero .ogc-tree__hero-link:focus-visible .ogc-tree__hero-link-text {
	background: var(--festive-red);
	color: var(--festive-snow);
	transform: translateY(-2px);
}

.ogc-tree--hero .ogc-tree__hero-link:focus-visible {
	outline: 3px solid var(--festive-snow);
	outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   5. Homepage hero – Christmas Giving Tree card
   -------------------------------------------------------------------------- */
.festive-card {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1.6rem;
	row-gap: 0.6rem;
	align-items: start;
	max-width: 52rem;
	padding: 1.8rem 2.2rem;
	border-radius: var(--radius-l, 1.5rem);
	background:
		radial-gradient(120% 140% at 0% 0%, rgb(31 138 76 / 0.22), transparent 55%),
		rgb(255 255 255 / 0.07);
	border: 1px solid rgb(255 255 255 / 0.28);
	box-shadow: 0 1.2rem 3rem -1.6rem rgb(0 0 0 / 0.55);
	backdrop-filter: blur(4px);
	color: var(--white, #fff);
	overflow: hidden;
}

/* candy-cane stripe along the top edge */
.festive-card::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: repeating-linear-gradient(-45deg, var(--festive-red) 0 10px, var(--festive-snow) 10px 20px);
	opacity: 0.9;
}

/* red bauble with a sprig of holly */
.festive-card::before {
	content: "";
	grid-row: 1 / span 4;
	width: 4.8rem;
	aspect-ratio: 40 / 52;
	margin-top: 0.2rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.35' r='.75'%3E%3Cstop offset='0' stop-color='%23ff7a86'/%3E%3Cstop offset='.55' stop-color='%23d42a3c'/%3E%3Cstop offset='1' stop-color='%238e1222'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M20 0v8' stroke='%23fff' stroke-width='1.5'/%3E%3Crect x='14' y='7' width='12' height='7' rx='2' fill='%23eef1f6'/%3E%3Ccircle cx='20' cy='32' r='18' fill='url(%23g)'/%3E%3Cpath d='M3.5 29c5 3 28 3 33 0' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M4 36c5 3 27 3 32 0' fill='none' stroke='%23fff' stroke-width='1' opacity='.7'/%3E%3Cellipse cx='13' cy='23' rx='4' ry='2.6' fill='%23fff' opacity='.55' transform='rotate(-35 13 23)'/%3E%3Cpath d='M20 12c-4-4-10-3-12 0 3 0 4 2 6 2s3 0 6-2z' fill='%231f8a4c'/%3E%3Cpath d='M20 12c4-4 10-3 12 0-3 0-4 2-6 2s-3 0-6-2z' fill='%23166a3a'/%3E%3Ccircle cx='20' cy='12' r='2.2' fill='%23d42a3c' stroke='%23fff' stroke-width='.6'/%3E%3C/svg%3E") center / contain no-repeat;
	transform-origin: 50% 0;
	animation: festive-swing 4.5s ease-in-out infinite;
	filter: drop-shadow(0 0 0.8rem rgb(212 42 60 / 0.45));
}

@keyframes festive-swing {
	0%, 100% { transform: rotate(-6deg); }
	50% { transform: rotate(6deg); }
}

.festive-card > * {
	grid-column: 2;
	margin: 0;
}

.festive-card__eyebrow {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 1rem;
	border-radius: 999px;
	background: var(--festive-green);
	font-size: var(--text-xs, 1.3rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--festive-snow);
}

.festive-card__title {
	font-size: var(--h4, 2.2rem);
	line-height: 1.2;
	color: var(--white, #fff);
}

.festive-card__text {
	font-size: var(--text-m, 1.7rem);
	line-height: 1.5;
	color: var(--white-trans-70, rgb(255 255 255 / 0.75));
}

.festive-card .festive-card__btn {
	justify-self: start;
	margin-top: 0.6rem;
	background: var(--festive-red);
	border-color: var(--festive-red);
	color: var(--festive-snow);
	font-weight: 700;
}

.festive-card .festive-card__btn::after {
	content: "\2192";
	margin-left: 0.8rem;
	display: inline-block;
	transition: transform 0.2s ease;
}

.festive-card .festive-card__btn:hover,
.festive-card .festive-card__btn:focus-visible {
	background: var(--festive-green);
	border-color: var(--festive-green);
	color: var(--festive-snow);
}

.festive-card .festive-card__btn:hover::after,
.festive-card .festive-card__btn:focus-visible::after {
	transform: translateX(0.3rem);
}

@media (max-width: 478px) {
	.festive-card {
		column-gap: 1.2rem;
		padding: 1.8rem;
	}
	.festive-card::before {
		grid-row: 1;
		width: 3.2rem;
		margin-top: 0;
	}
	.festive-card > .festive-card__eyebrow {
		align-self: center;
	}
	.festive-card > :not(.festive-card__eyebrow) {
		grid-column: 1 / -1;
	}
	.ogc-tree--hero .ogc-tree__scene {
		height: 36rem;
	}
}

/* --------------------------------------------------------------------------
   6. Respect reduced-motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	#brx-header .header-logo::before,
	.festive-hero::before,
	.festive-hero::after,
	.festive-card::before {
		animation: none;
	}
}
