/* ============================================================
 * io-kenos-child v1.2 — WDZ Footer (Phase 3 B4)
 * ------------------------------------------------------------
 * Playful, niche-aware footer. Base color flows from
 * --wdz-primary (party-rental: purple; tent: green; dumpster:
 * navy; plumber: teal). Party-rental niche layers a subtle star
 * pattern on top to echo the bouncy/celebratory homepage vibe.
 * Other niches inherit the same shapes without the star overlay.
 *
 * Top edge is a soft SVG wave so the footer doesn't feel like a
 * hard rectangle — matches the cartoon hero treatments common
 * on IO sites.
 * ============================================================ */

/* Suppress the Elementor Theme Builder footer when WDZ footer is
 * active. This stylesheet only loads when the Customizer toggle is
 * ON, so it can't disturb sites still using their Elementor footer. */
body .elementor-location-footer {
	display: none !important;
}

/* ============================================================
 * Wave separator above the footer — gives a soft, playful
 * transition from page content into the colored footer.
 * SVG is inlined as data URI so no extra request.
 * ============================================================ */

.wdz-footer {
	background: var(--wdz-primary, #6B46C1);
	color: #fff;
	font-family: var(--wdz-font-body);
	margin-top: var(--wdz-space-7, 56px);
	position: relative;
	padding-top: 56px;
}

.wdz-footer::before {
	content: '';
	position: absolute;
	top: -55px;
	left: 0;
	right: 0;
	height: 56px;
	background-color: var(--wdz-primary, #6B46C1);
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'><path d='M0,56 C240,8 480,40 720,24 C960,8 1200,40 1440,24 L1440,56 L0,56 Z' fill='black'/></svg>");
	        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'><path d='M0,56 C240,8 480,40 720,24 C960,8 1200,40 1440,24 L1440,56 L0,56 Z' fill='black'/></svg>");
	-webkit-mask-size: 100% 100%;
	        mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	        mask-repeat: no-repeat;
	pointer-events: none;
}

/* Party-rental niche only — soft white-star confetti pattern.
 * Subtle, ~6% opacity, so it reads as decoration not noise. */
body.wdz-niche-party-rental .wdz-footer {
	background-image:
		radial-gradient(circle at 12% 18%, rgba(255,255,255,0.10) 0 1.5px, transparent 2px),
		radial-gradient(circle at 78% 32%, rgba(255,255,255,0.08) 0 2px,   transparent 2.5px),
		radial-gradient(circle at 32% 64%, rgba(255,255,255,0.10) 0 1.5px, transparent 2px),
		radial-gradient(circle at 88% 78%, rgba(255,255,255,0.08) 0 2px,   transparent 2.5px),
		radial-gradient(circle at 52% 88%, rgba(255,255,255,0.10) 0 1.5px, transparent 2px);
	background-size: 320px 320px;
	background-position: 0 0, 80px 40px, 160px 120px, 40px 200px, 220px 80px;
}

.wdz-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease, transform 0.1s ease;
}

.wdz-footer a:hover,
.wdz-footer a:focus {
	color: var(--wdz-accent, #F59E0B);
	text-decoration: none;
}

.wdz-footer__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 16px 32px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
	gap: 44px;
	position: relative;
	z-index: 1;
}

@media (max-width: 960px) {
	.wdz-footer__inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px;
		padding: 12px 28px 32px;
	}
}

@media (max-width: 560px) {
	.wdz-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 8px 20px 24px;
	}
}

/* ============================================================
 * Headings — chunky, cheerful, with a dashed underline
 * ============================================================ */

.wdz-footer__heading {
	font-family: 'Fredoka One', 'Lilita One', var(--wdz-font-heading, inherit);
	font-size: 22px;
	font-weight: 400; /* Fredoka One is a heavy font by design — 400 is "bold enough" */
	letter-spacing: 0.01em;
	margin: 0 0 18px;
	padding-bottom: 10px;
	color: #fff;
	position: relative;
}

.wdz-footer__heading::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 3px;
	background: var(--wdz-accent, #F59E0B);
	border-radius: 2px;
}

/* ============================================================
 * Shared list base
 * ============================================================ */

.wdz-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
	line-height: 1.55;
}

.wdz-footer__list a {
	display: inline-block;
	opacity: 0.94;
}

.wdz-footer__list a:hover,
.wdz-footer__list a:focus {
	opacity: 1;
	transform: translateX(2px);
}

/* ============================================================
 * Brand column
 * ============================================================ */

.wdz-footer__brand,
.wdz-footer__brand--logo {
	display: inline-block;
	margin-bottom: 16px;
}

.wdz-footer__brand--logo a {
	display: inline-block;
}

.wdz-footer__brand img,
.wdz-footer__brand .custom-logo {
	max-height: 110px;
	width: auto;
	height: auto;
	display: block;
}

.wdz-footer__brand-text {
	font-family: 'Fredoka One', 'Lilita One', var(--wdz-font-heading, inherit);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: 0;
	color: #fff;
}

.wdz-footer__tagline {
	font-size: 15px;
	opacity: 0.88;
	margin: 0 0 12px;
	line-height: 1.5;
	max-width: 320px;
}

.wdz-footer__address {
	font-size: 14px;
	margin: 0 0 22px;
	line-height: 1.55;
	opacity: 0.82;
	max-width: 320px;
}

/* Pill-shaped Book Now — sits like a candy button on the footer */
.wdz-footer__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wdz-accent, #F59E0B);
	color: #fff !important;
	padding: 14px 28px;
	border-radius: var(--wdz-radius-full, 9999px);
	font-family: 'Fredoka One', 'Lilita One', var(--wdz-font-heading, inherit);
	font-weight: 400;
	font-size: 16px;
	letter-spacing: 0.02em;
	transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.20);
}

.wdz-footer__cta:hover,
.wdz-footer__cta:focus {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 6px 0 rgba(0, 0, 0, 0.20);
	color: #fff !important;
	text-decoration: none;
}

.wdz-footer__cta:active {
	transform: translateY(0);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.20);
}

/* ============================================================
 * Service areas — 3-column dense list
 * ============================================================ */

.wdz-footer__list--cities {
	columns: 3;
	column-gap: 18px;
	display: block;
	font-size: 14px;
}

.wdz-footer__list--cities li {
	break-inside: avoid;
	margin-bottom: 8px;
}

@media (max-width: 960px) {
	.wdz-footer__list--cities { columns: 2; }
}
@media (max-width: 560px) {
	.wdz-footer__list--cities { columns: 2; }
}

/* ============================================================
 * Connect / social
 * ============================================================ */

.wdz-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
}

.wdz-footer__social a {
	opacity: 0.94;
}

/* ============================================================
 * Bottom strip — copyright, legal, credits
 * ============================================================ */

.wdz-footer__bottom {
	background: rgba(0, 0, 0, 0.22);
	border-top: 1px solid rgba(255, 255, 255, 0.10);
	position: relative;
	z-index: 1;
}

.wdz-footer__bottom-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 18px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	font-size: 13px;
	opacity: 0.90;
}

.wdz-footer__copyright,
.wdz-footer__credits {
	margin: 0;
}

.wdz-footer__legal {
	display: flex;
	gap: 18px;
}

.wdz-footer__legal a,
.wdz-footer__credits a {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(255, 255, 255, 0.30);
}

.wdz-footer__legal a:hover,
.wdz-footer__credits a:hover {
	text-decoration-color: var(--wdz-accent, #F59E0B);
}

@media (max-width: 720px) {
	.wdz-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		padding: 16px 20px;
	}
}

/* ============================================================
 * Hide WDZ footer in Elementor edit / preview mode.
 * ============================================================ */
body.elementor-editor-active .wdz-footer,
body.elementor-editor-preview .wdz-footer {
	display: none;
}

/* ============================================================
 * D1 — Focus indicators for keyboard navigation (Phase 4)
 * ============================================================ */
.wdz-footer a:focus-visible,
.wdz-footer__cta:focus-visible {
	outline: 2px solid var(--wdz-accent, #F59E0B);
	outline-offset: 3px;
	border-radius: 4px;
}
