/**
 * ChoreAce global footer — H2.9 sweeping Ace + curved boundary. Scoped to .site-footer-custom.
 */

.site-footer-custom {
	position: relative;
	overflow: visible;
	--ca-footer-navy: #051135;
	--ca-footer-curve-depth: 100px;
	--ca-footer-sweep-overlap: 72px;
	--ca-ace-width: 250px;
	--ca-ace-lift: 46px;
}

.site-footer-custom .footer-custom-inner,
.site-footer-custom .footer-custom-inner > .container,
.site-footer-custom .footer-custom-inner .row,
.site-footer-custom .footer-custom-inner .col-12 {
	overflow: visible;
}

/* —— H2.9 transition: Ace + SVG dip —— */
.choreace-footer-sweep {
	position: relative;
	z-index: 4;
	margin: 0;
	padding: 0;
	pointer-events: none;
	height: calc(var(--ca-footer-curve-depth) + var(--ca-ace-lift));
	margin-bottom: calc(-1 * var(--ca-footer-sweep-overlap));
}

.choreace-footer-sweep__stage {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 100%;
}

.choreace-footer-sweep__curve {
	display: block;
	width: 100%;
	height: var(--ca-footer-curve-depth);
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.choreace-footer-sweep__fill {
	fill: var(--ca-footer-navy);
}

.choreace-footer-sweep__edge {
	fill: none;
	stroke: rgba(255, 255, 255, 0.92);
	stroke-width: 2.5;
	vector-effect: non-scaling-stroke;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.choreace-footer-sweep__ace {
	position: absolute;
	left: 50%;
	bottom: calc(var(--ca-footer-curve-depth) - 52px);
	transform: translateX(-50%);
	width: var(--ca-ace-width);
	height: auto;
	z-index: 5;
	display: block;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	max-width: none;
}

/* Hide legacy H2.3b Chore-3 anchor (templates 1791 / 70). */
.site-footer-custom .logo-footer,
.site-footer-custom .elementor-element-3e0cd4cc,
.site-footer-custom .elementor-element-96c3370 {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Collapse empty logo-only top section; remove legacy bg-footer-top.png shape. */
.site-footer-custom .elementor-1791 > .elementor-section.elementor-top-section:first-child,
.site-footer-custom .elementor-70 > .elementor-section.elementor-top-section:first-child {
	display: none !important;
}

.site-footer-custom .elementor-element-2a8b12e7:not(.elementor-motion-effects-element-type-background),
.site-footer-custom .elementor-element-2a8b12e7 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.site-footer-custom .elementor-element-1ae08c7:not(.elementor-motion-effects-element-type-background),
.site-footer-custom .elementor-element-1ae08c7 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-image: none !important;
	background-color: transparent !important;
}

.site-footer-custom .elementor-1791 > .elementor-section.elementor-top-section:nth-child(2),
.site-footer-custom .elementor-70 > .elementor-section.elementor-top-section:nth-child(2) {
	padding-top: clamp(20px, 3vw, 36px) !important;
	background-color: var(--ca-footer-navy) !important;
}

.site-footer-custom .footer-custom-inner {
	position: relative;
	z-index: 2;
	margin-top: 0;
}

.site-footer-custom .ct_icon a[href="#"],
.site-footer-custom .ct_icon a[href=""],
.site-footer-custom .ct_icon a:not([href]) {
	display: none !important;
	pointer-events: none !important;
}

@media (max-width: 1024px) and (min-width: 768px) {
	.site-footer-custom {
		--ca-footer-curve-depth: 82px;
		--ca-footer-sweep-overlap: 62px;
		--ca-ace-width: 210px;
		--ca-ace-lift: 38px;
	}

	.choreace-footer-sweep__ace {
		bottom: calc(var(--ca-footer-curve-depth) - 46px);
	}
}

@media (max-width: 767px) {
	.site-footer-custom {
		--ca-footer-curve-depth: 55px;
		--ca-footer-sweep-overlap: 44px;
		--ca-ace-width: 145px;
		--ca-ace-lift: 28px;
	}

	.choreace-footer-sweep__ace {
		bottom: calc(var(--ca-footer-curve-depth) - 34px);
	}

	.choreace-footer-sweep__edge {
		stroke-width: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.choreace-footer-sweep__ace {
		transition: none;
	}
}
