/* ==================================================
   Seasonal skin: Christmas
   Warm ivory and white; Instrument Serif headlines with a gold-foil sweep and
   Instrument Sans for text; Christmas red pills, evergreen garland dividers, glowing
   C9 string lights, hanging ornaments, snow-capped cards and falling snow
   (skin-effects.js). Loaded after skin-layout.css while this skin is active.
   ================================================== */

html[data-skin="christmas"] {
	--body-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sk-radius: 18px;
	--sk-btn-radius: 9999px;
	--sk-card-border: 1px solid var(--sk-border);
	--sk-shadow: 0 10px 26px -14px rgba(28, 25, 23, .22);
	--sk-btn-shadow: 0 0 0 1px rgba(220, 38, 38, .25), 0 8px 24px -8px rgba(220, 38, 38, .55);
	--sk-btn-shadow-hover: 0 0 0 1px rgba(185, 28, 28, .4), 0 12px 30px -8px rgba(220, 38, 38, .7);
	--sk-band-h: 56px;
	--sk-band-size: auto 100%;
	--sk-pattern-size: 160px;
	--sk-heading-tracking: -.025em;
}

/* Ivory page with soft candle-warm glows and a fine paper grain (pattern.svg). */
html[data-skin="christmas"] body {
	background-image:
		radial-gradient(ellipse 55% 45% at 85% 0, rgba(220, 38, 38, .07), transparent 70%),
		radial-gradient(ellipse 45% 40% at 0 35%, rgba(166, 124, 46, .08), transparent 70%),
		var(--sk-pattern);
	background-size: auto, auto, var(--sk-pattern-size);
	font-family: var(--body-font);
}

/* ---------- Typography ---------- */

html[data-skin="christmas"] #wrapper h1,
html[data-skin="christmas"] #wrapper h2,
html[data-skin="christmas"] #wrapper h3,
html[data-skin="christmas"] #wrapper h4,
html[data-skin="christmas"] footer h3 {
	font-weight: 400;
	line-height: 1.08;
}

html[data-skin="christmas"] #wrapper h3,
html[data-skin="christmas"] #wrapper h4,
html[data-skin="christmas"] footer h3 {
	letter-spacing: -.01em;
}

/* Gold-foil light sweeping across the big headlines. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	html[data-skin="christmas"] #content h1,
	html[data-skin="christmas"] #content h2 {
		background-image: linear-gradient(100deg, #1c1917 0, #1c1917 42%, #a67c2e 46%, #f4e0a1 50%, #a67c2e 54%, #1c1917 58%, #1c1917 100%);
		background-size: 250% 100%;
		background-position: 100% 0;
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		animation: sk-xmas-foil 8s ease-in-out infinite;
	}

	html[data-skin="christmas"] #content h1 span,
	html[data-skin="christmas"] #content h2 span {
		-webkit-text-fill-color: var(--sk-accent);
	}
}

html[data-skin="christmas"] #content h1 span,
html[data-skin="christmas"] #content h2 span {
	color: var(--sk-accent);
	font-style: italic;
}

/* Small headings become uppercase red eyebrow labels. */
html[data-skin="christmas"] #content h5 {
	color: var(--sk-accent) !important;
	font-family: var(--body-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

html[data-skin="christmas"] .skin-greeting__text {
	font-weight: 400;
	font-style: italic;
	font-size: 23px;
	letter-spacing: -.01em;
}

/* ---------- Header and navigation ---------- */

/* The string lights replace the plain band under the header. */
html[data-skin="christmas"] body.event-has-garland header.header-v2::after {
	display: none;
}

html[data-skin="christmas"] header.header-v2.smaller,
html[data-skin="christmas"] header.header-v2.header-mobile {
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 var(--sk-border);
}

html[data-skin="christmas"] .navBar > ul > li > a {
	color: var(--sk-heading);
	font-weight: 500;
}

html[data-skin="christmas"] .navBar > ul > li > a:hover,
html[data-skin="christmas"] .navBar > ul > li.current-menu-item > a {
	color: var(--sk-accent) !important;
}

/* ---------- Garland dividers ---------- */

html[data-skin="christmas"] body.event-has-garland #content > section:first-of-type::after,
html[data-skin="christmas"] body.event-has-garland footer::before {
	filter: drop-shadow(0 6px 10px rgba(20, 83, 45, .18));
}

/* ---------- Buttons ---------- */

html[data-skin="christmas"] .btn-main,
html[data-skin="christmas"] a.btn-main,
html[data-skin="christmas"] .wpcf7-submit {
	border: 0;
	font-family: var(--body-font);
	font-weight: 600;
	letter-spacing: 0;
}

html[data-skin="christmas"] .btn-main:hover,
html[data-skin="christmas"] a.btn-main:hover,
html[data-skin="christmas"] .wpcf7-submit:hover {
	background: #b91c1c;
	transform: translateY(-1px);
}

/* ---------- Cards and panels ---------- */

/* White cards with a warm hairline and snow settled on the top edge. */
html[data-skin="christmas"] .blogBox,
html[data-skin="christmas"] .testimonybox,
html[data-skin="christmas"] .accordion-item {
	position: relative;
	background: var(--sk-surface);
}

html[data-skin="christmas"] .blogBox::after {
	content: "";
	position: absolute;
	/* Just inside the edge: the blog carousel clips anything above its cards. */
	left: 14px;
	right: 14px;
	top: -1px;
	height: 16px;
	background: var(--sk-art-snowcap) 0 0 / auto 100% repeat-x;
	pointer-events: none;
}

html[data-skin="christmas"] .blogBox:hover {
	border-color: rgba(220, 38, 38, .45);
	box-shadow: 0 0 0 1px rgba(220, 38, 38, .2), 0 22px 44px -20px rgba(220, 38, 38, .35);
}

/* Testimonials: deep evergreen panels. */
html[data-skin="christmas"] .testimonybox {
	border-color: transparent;
	background: #14532d;
}

/* Partner-logo tiles: deep evergreen so the white logos stay visible. */
html[data-skin="christmas"] .de-skill-item {
	border: 1px solid rgba(255, 255, 255, .1);
	background: #14532d;
}

/* Category badges (blog cards): small red pills. */
html[data-skin="christmas"] .badge.bg-warning {
	padding: 5px 11px;
	border-radius: 9999px;
	background: var(--sk-accent) !important;
	color: #fff !important;
	font-family: var(--body-font);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .11em;
	text-transform: uppercase;
}

/* Alternate sections: parchment white with a garland along the top edge. */
html[data-skin="christmas"] #section-testimony,
html[data-skin="christmas"] .whiteBlug,
html[data-skin="christmas"] .footer-blog {
	background-color: var(--sk-bg-alt) !important; /* the testimony section sets an inline background */
	background-image: var(--sk-band), radial-gradient(ellipse 60% 50% at 50% 0, rgba(220, 38, 38, .06), transparent 70%), var(--sk-pattern);
	/* !important: the theme's JS adds an inline "background-size: cover" to sections. */
	background-position: 0 0, 0 0, 0 0 !important;
	background-repeat: repeat-x, no-repeat, repeat !important;
	background-size: auto 48px, auto, 160px !important;
}

/* Inputs */
html[data-skin="christmas"] #content .form-control {
	border-bottom-color: #a8a29e !important;
}

/* ---------- Footer ---------- */

html[data-skin="christmas"] footer {
	background-color: #1c1917;
	background-image: radial-gradient(ellipse 50% 60% at 50% 0, rgba(220, 38, 38, .18), transparent 70%), radial-gradient(ellipse 40% 50% at 100% 100%, rgba(166, 124, 46, .18), transparent 70%);
	color: #e7e5e4;
}

html[data-skin="christmas"] footer p,
html[data-skin="christmas"] footer li,
html[data-skin="christmas"] footer a {
	color: #e7e5e4;
}

html[data-skin="christmas"] footer h3 {
	color: #fff !important;
}

html[data-skin="christmas"] footer a:hover,
html[data-skin="christmas"] footer i {
	color: #fca5a5;
}

/* ---------- C9 string lights (moved into the header by event-theme.js) ---------- */

.skin-lights {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 48px;
	pointer-events: none;
}

.skin-lights[hidden] {
	display: none;
}

.skin-lights i {
	position: absolute;
	inset: 0;
	background: var(--sk-art-lights-a) 0 0 / auto 100% repeat-x;
	animation: sk-xmas-twinkle 1.8s ease-in-out infinite alternate;
}

.skin-lights i + i {
	background-image: var(--sk-art-lights-b);
	animation-delay: -.9s;
}

header.smaller .skin-lights,
header.header-mobile .skin-lights {
	height: 34px;
}

/* ---------- Hanging ornaments ---------- */

.skin-ornaments {
	position: absolute;
	top: 100%;
	right: 22%;
	display: flex;
	gap: 26px;
	pointer-events: none;
	transition: opacity .3s;
}

.skin-ornaments[hidden] {
	display: none;
}

.skin-ornaments i {
	position: relative;
	display: block;
	width: 34px;
	height: 37px;
	margin-top: 72px;
	background: var(--sk-art-ornament-red) center / contain no-repeat;
	transform-origin: 50% -72px;
	animation: sk-xmas-swing 4s ease-in-out infinite alternate;
}

.skin-ornaments i::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	width: 1px;
	height: 72px;
	background: rgba(31, 58, 42, .55);
}

.skin-ornaments i:nth-child(2) {
	margin-top: 104px;
	background-image: var(--sk-art-ornament-gold);
	transform-origin: 50% -104px;
	animation-delay: -1.5s;
}

.skin-ornaments i:nth-child(2)::before {
	height: 104px;
}

.skin-ornaments i:nth-child(3) {
	margin-top: 52px;
	background-image: var(--sk-art-ornament-green);
	transform-origin: 50% -52px;
	animation-delay: -2.6s;
}

.skin-ornaments i:nth-child(3)::before {
	height: 52px;
}

header.smaller .skin-ornaments,
header.header-mobile .skin-ornaments {
	opacity: 0;
}

/* ---------- Santa's sleigh (event-christmas.js) ---------- */

/* Pinned to the viewport above the page and header (ornaments included); below the greeting
   banner. Purely decorative and click-through. */
.skin-sleigh {
	position: fixed;
	inset: 0;
	z-index: 1002;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

html.event-motion-paused .skin-sleigh {
	display: none;
}

/* ---------- Keyframes ---------- */

@keyframes sk-xmas-foil {
	0%, 15%  { background-position: 100% 0; }
	55%, 100% { background-position: 0 0; }
}

@keyframes sk-xmas-twinkle {
	from { opacity: .35; }
	to   { opacity: 1; }
}

@keyframes sk-xmas-swing {
	from { transform: rotate(-5deg); }
	to   { transform: rotate(5deg); }
}

html.event-motion-paused .skin-lights i,
html.event-motion-paused .skin-ornaments i,
html.event-motion-paused[data-skin="christmas"] #content h1,
html.event-motion-paused[data-skin="christmas"] #content h2 {
	animation-play-state: paused;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	.skin-ornaments {
		display: none;
	}

	html[data-skin="christmas"] {
		--sk-band-h: 40px;
	}

	/* Room for the garland under the first banner's button, and for the lights hanging
	   from the fixed mobile header above the first headline. */
	html[data-skin="christmas"] body.event-has-garland #content > section:first-of-type {
		margin-top: 30px;
		padding-bottom: 44px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.skin-sleigh {
		display: none;
	}

	.skin-lights i,
	.skin-ornaments i,
	html[data-skin="christmas"] #content h1,
	html[data-skin="christmas"] #content h2 {
		animation: none;
		opacity: 1;
	}
}
