/* ==========================================================================
   MARKO Sitewide New Year 2027 Theme
   Engineering-luxury festive layer: GPU-only transforms/opacity, zero CLS,
   respects prefers-reduced-motion and user toggle (html.marko-ny-paused).
   ========================================================================== */

body.marko-ny-theme {
	background-color: #f6faff;
}

/* ---------- 1. Interactive Glowing Garland (drapes cleanly over #marko-trust-strip) ---------- */
.marko-ny-garland {
	position: relative;
	z-index: 45;
	width: 100%;
	height: 0;
	overflow: visible;
	pointer-events: none;
	user-select: none;
}

.marko-ny-garland__wire {
	position: absolute;
	top: -2px;
	left: 0;
	display: block;
	width: 100%;
	height: 30px;
	overflow: visible;
	pointer-events: none;
}

.marko-ny-garland__bulbs {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	padding: 0 10px;
	pointer-events: none;
}

.marko-ny-bulb {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 !important;
	padding: 0 6px 10px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	cursor: pointer;
	pointer-events: auto;
	transform-origin: 50% 0%;
	will-change: transform;
	transition: transform 0.25s ease;
}

.marko-ny-bulb__cord {
	display: block;
	width: 1.5px;
	height: var(--ny-drop, 12px);
	background: linear-gradient(180deg, rgba(16, 47, 73, 0.85), rgba(36, 83, 122, 0.65));
}

.marko-ny-bulb__cap {
	display: block;
	width: 7px;
	height: 5px;
	border-radius: 2px 2px 1px 1px;
	background: linear-gradient(90deg, #1b364d, #486b88, #1b364d);
}

.marko-ny-bulb__glass {
	position: relative;
	display: block;
	width: 12px;
	height: 17px;
	border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
	background: var(--ny-bulb-bg, #ffcf5a);
	box-shadow: 0 0 10px 2px var(--ny-bulb-glow, rgba(255, 207, 90, 0.78)), 0 0 22px 4px var(--ny-bulb-aura, rgba(255, 207, 90, 0.34));
	animation: marko-ny-twinkle var(--ny-dur, 3s) ease-in-out var(--ny-delay, 0s) infinite;
	will-change: opacity, transform;
}

/* Tiny specular glass reflection inside each bulb */
.marko-ny-bulb__glass::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 3px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	transform: rotate(12deg);
}

.marko-ny-bulb--gold {
	--ny-bulb-bg: radial-gradient(circle at 38% 34%, #fff9df 0%, #ffd56b 48%, #e59a1a 100%);
	--ny-bulb-glow: rgba(255, 208, 86, 0.82);
	--ny-bulb-aura: rgba(245, 166, 35, 0.36);
}

.marko-ny-bulb--ice {
	--ny-bulb-bg: radial-gradient(circle at 38% 34%, #f2fdff 0%, #7de4ff 50%, #2a9fd6 100%);
	--ny-bulb-glow: rgba(114, 224, 255, 0.82);
	--ny-bulb-aura: rgba(56, 178, 232, 0.36);
}

.marko-ny-bulb--amber {
	--ny-bulb-bg: radial-gradient(circle at 38% 34%, #fff3d6 0%, #ffad47 50%, #d96b0f 100%);
	--ny-bulb-glow: rgba(255, 164, 62, 0.8);
	--ny-bulb-aura: rgba(235, 128, 28, 0.34);
}

.marko-ny-bulb--pearl {
	--ny-bulb-bg: radial-gradient(circle at 38% 34%, #ffffff 0%, #fff3d4 58%, #e5d2a4 100%);
	--ny-bulb-glow: rgba(255, 245, 214, 0.85);
	--ny-bulb-aura: rgba(255, 234, 180, 0.34);
}

.marko-ny-bulb--crimson {
	--ny-bulb-bg: radial-gradient(circle at 38% 34%, #ffd9de 0%, #ff5c6c 52%, #c92439 100%);
	--ny-bulb-glow: rgba(255, 92, 108, 0.78);
	--ny-bulb-aura: rgba(224, 48, 72, 0.32);
}

.marko-ny-bulb.is-swing {
	animation: marko-ny-swing 1.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.marko-ny-bulb.is-swing .marko-ny-bulb__glass,
.marko-ny-bulb:hover .marko-ny-bulb__glass {
	opacity: 1 !important;
	transform: scale(1.18);
}

@keyframes marko-ny-twinkle {
	0%, 100% { opacity: 0.98; transform: scale(1); }
	50% { opacity: 0.64; transform: scale(0.94); }
}

@keyframes marko-ny-swing {
	0%   { transform: rotate(0deg); }
	16%  { transform: rotate(17deg); }
	36%  { transform: rotate(-13deg); }
	56%  { transform: rotate(8deg); }
	76%  { transform: rotate(-4deg); }
	100% { transform: rotate(0deg); }
}

/* Give #marko-trust-strip enough top breathing room for the garland bulbs */
body.marko-ny-theme #marko-trust-strip {
	position: relative;
	padding-top: 44px !important;
	background-image:
		radial-gradient(680px 200px at 50% 0%, rgba(125, 228, 255, 0.12), transparent 70%),
		radial-gradient(520px 180px at 82% 10%, rgba(245, 166, 35, 0.14), transparent 65%);
}

/* ---------- 2. Pixel-Locked Santa Hat on MARKO Roof Logo ---------- */
/* SVG viewBox 1364x284: blue chevron roof runs from (102,41) [7.5%,14.4%] up to peak (392,14) at -5.3deg */
body.marko-ny-theme header.elementor-location-header .elementor-widget-image a:has(img.wp-image-39007),
body.marko-ny-theme header.elementor-location-header .elementor-widget-theme-site-logo a:has(img.wp-image-39007) {
	position: relative !important;
	display: inline-block !important;
	overflow: visible !important;
}

body.marko-ny-theme header.elementor-location-header .elementor-widget-image img.wp-image-39007 {
	filter: drop-shadow(0 2px 6px rgba(16, 47, 73, 0.08));
}

body.marko-ny-theme header.elementor-location-header .elementor-widget-image a:has(img.wp-image-39007)::after,
body.marko-ny-theme header.elementor-location-header .elementor-widget-theme-site-logo a:has(img.wp-image-39007)::after {
	content: "";
	position: absolute;
	top: -12%;
	left: 4.5%;
	width: 13.5%;
	aspect-ratio: 120 / 74;
	z-index: 4;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
	transform: rotate(-6deg);
	filter: drop-shadow(0 2px 3px rgba(9, 29, 47, 0.28));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 74'%3E%3Cdefs%3E%3ClinearGradient id='lg' x1='1' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23f03748'/%3E%3Cstop offset='100%25' stop-color='%23a61425'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M104 56 C98 18 64 4 22 20 C36 24 40 37 32 56 Z' fill='url(%23lg)' stroke='%237d0e1b' stroke-width='2.2'/%3E%3Cpath d='M90 34 C76 18 55 14 34 19 C53 19 68 25 81 38 Z' fill='%23ff8591' opacity='.42'/%3E%3Crect x='26' y='49' width='84' height='18' rx='9' fill='%23ffffff' stroke='%23cfe0ee' stroke-width='2'/%3E%3Ccircle cx='17' cy='23' r='11' fill='%23fffaf0' stroke='%23f5a623' stroke-width='2.2'/%3E%3C/svg%3E");
}

/* ---------- 3. Festive Santa Hat on the MARKO Robot Assistant! ---------- */
body.marko-ny-theme .mrb__flip::after {
	content: "";
	position: absolute;
	top: -15%;
	left: 17%;
	width: 70%;
	height: 36%;
	z-index: 6;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
	transform: rotate(7deg);
	filter: drop-shadow(0 3px 5px rgba(9, 29, 47, 0.35));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 74'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%23f03748'/%3E%3Cstop offset='100%25' stop-color='%23a61425'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 56 C22 18 56 4 98 20 C84 24 80 37 88 56 Z' fill='url(%23g)' stroke='%237d0e1b' stroke-width='2.2'/%3E%3Cpath d='M30 34 C44 18 65 14 86 19 C67 19 52 25 39 38 Z' fill='%23ff8591' opacity='.42'/%3E%3Crect x='10' y='49' width='84' height='18' rx='9' fill='%23ffffff' stroke='%23cfe0ee' stroke-width='2'/%3E%3Ccircle cx='103' cy='23' r='11' fill='%23fffaf0' stroke='%23f5a623' stroke-width='2.2'/%3E%3C/svg%3E");
}

/* ---------- 4. Frost & Warm Gold Accents Across Site Cards & Footer ---------- */
body.marko-ny-theme .marko-va-hero {
	position: relative;
	overflow: hidden;
	border-color: #b7d3e8 !important;
	box-shadow: 0 14px 34px rgba(16, 47, 73, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Delicate frosted snowflake corner filigree on homepage hero */
body.marko-ny-theme .marko-va-hero::after {
	content: "";
	position: absolute;
	top: -18px;
	right: -18px;
	width: 140px;
	height: 140px;
	pointer-events: none;
	opacity: 0.22;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg stroke='%23165582' stroke-width='2.2' stroke-linecap='round' fill='none'%3E%3Cpath d='M60 10v100M16.7 35l86.6 50M103.3 35L16.7 85'/%3E%3Cpath d='M50 22l10 10 10-10M50 98l10-10 10 10M24 46l12-2 4-12M96 74l-12 2-4 12M96 46l-12-2-4-12M24 74l12 2 4 12'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

/* Enhanced golden frost shimmer on our Winter Storage promo card & ribbon */
body.marko-ny-theme .marko-ws-ribbon {
	border-color: rgba(245, 166, 35, 0.55) !important;
	box-shadow: 0 10px 24px rgba(10, 32, 51, 0.18), 0 0 0 1px rgba(125, 228, 255, 0.16) inset !important;
}

body.marko-ny-theme .marko-ws-card {
	box-shadow: 0 22px 50px rgba(9, 29, 47, 0.24), 0 0 0 1px rgba(255, 211, 125, 0.22) inset !important;
}

body.marko-ny-theme .marko-ws-tier--featured {
	position: relative;
	overflow: hidden;
}

body.marko-ny-theme .marko-ws-tier--featured::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 25%, rgba(255, 224, 150, 0.18) 50%, transparent 75%);
	transform: translateX(-110%);
	animation: marko-ny-sheen 6.5s ease-in-out infinite;
}

@keyframes marko-ny-sheen {
	0%, 62%  { transform: translateX(-110%); }
	82%, 100% { transform: translateX(115%); }
}

/* Frosted icy rim along the top of site footer */
body.marko-ny-theme footer.marko-site-footer {
	position: relative;
	border-top: 2px solid rgba(125, 228, 255, 0.38) !important;
	box-shadow: inset 0 18px 28px -18px rgba(125, 228, 255, 0.24);
}

/* ---------- 5. Full-Viewport 60fps Canvas Layer ---------- */
.marko-ny-canvas {
	position: fixed;
	inset: 0;
	z-index: 68;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* ---------- 6. Compact Bottom-Left Floating Glass Dock ---------- */
.marko-ny-dock {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 75;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 8px;
	border: 1px solid rgba(189, 224, 250, 0.34);
	border-radius: 999px;
	background: rgba(11, 34, 54, 0.84);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 26px rgba(9, 29, 47, 0.24);
	color: #eef6fc;
	font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 12.5px;
	line-height: 1;
}

.marko-ny-dock__btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 32px;
	padding: 6px 11px !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.08) !important;
	color: #eef6fc !important;
	font: 650 12.5px/1 system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.marko-ny-dock__btn:hover {
	background: rgba(255, 255, 255, 0.18) !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
}

.marko-ny-dock__btn[aria-pressed="true"] {
	border-color: rgba(125, 228, 255, 0.55) !important;
	background: rgba(125, 228, 255, 0.16) !important;
	color: #c8f3ff !important;
}

.marko-ny-dock__btn--burst {
	border-color: rgba(245, 166, 35, 0.58) !important;
	background: rgba(245, 166, 35, 0.16) !important;
	color: #ffd685 !important;
}

.marko-ny-dock__btn--burst:hover {
	background: #f5a623 !important;
	border-color: #f5a623 !important;
	color: #0b2236 !important;
}

.marko-ny-dock__btn:focus-visible {
	outline: 2px solid #f5a623 !important;
	outline-offset: 2px;
}

.marko-ny-dock__count {
	padding: 0 6px 0 4px;
	color: #bdd9ee;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

/* ---------- 7. Paused / Reduced-Motion States ---------- */
html.marko-ny-paused .marko-ny-canvas {
	display: none;
}

html.marko-ny-paused .marko-ny-bulb__glass,
html.marko-ny-paused .marko-ws-tier--featured::after {
	animation: none !important;
	opacity: 0.88;
}

@media (max-width: 768px) {
	.marko-ny-bulb--desk {
		display: none;
	}
	.marko-ny-bulb__cord {
		height: calc(var(--ny-drop, 12px) * 0.65);
	}
	body.marko-ny-theme #marko-trust-strip {
		padding-top: 42px !important;
	}
	.marko-ny-dock {
		bottom: 12px;
		left: 10px;
		padding: 4px 6px;
		gap: 4px;
	}
	.marko-ny-dock__btn {
		min-height: 30px;
		padding: 5px 9px !important;
		font-size: 11.5px !important;
	}
	.marko-ny-dock__count {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.marko-ny-canvas {
		display: none !important;
	}
	.marko-ny-bulb__glass,
	.marko-ny-bulb.is-swing,
	.marko-ws-tier--featured::after {
		animation: none !important;
	}
}
