/* ============================================================
   Kasirye Labs — Custom Footer
   ============================================================ */

/* ── African print stripe ────────────────────────────────────── */
/*
   SVG tile: 56×28px.
   Left 28px : diagonal stripes ↘ (top-left → bottom-right).
   Right 28px: diagonal stripes ↙ (top-right → bottom-left).
   When tiled horizontally they form interlocking Λ (chevron) shapes.
*/
.kl-footer-zebra {
	height: 32px;
	background-color: #000;
	background-repeat: repeat-x;
	background-size: auto 100%;
	/* background-image injected via wp_add_inline_style() */
}

/* ── Newsletter bar ──────────────────────────────────────────── */
.kl-footer-newsletter-wrap {
	background: #111;
}

.kl-footer-newsletter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	max-width: 1260px;
	margin: 0 auto;
	padding: 22px 30px;
	font-family: 'Jost', sans-serif;
}

/* Brand + icon */
.kl-fn-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	flex: 1;
	min-width: 220px;
}
.kl-fn-icon {
	color: #ffbe00;
	flex-shrink: 0;
	display: flex;
}
.kl-fn-icon svg { width: 26px; height: 26px; }

/* "Subscribe to our newsletter" */
.kl-fn-brand strong {
	display: block;
	font-family: 'Jost', sans-serif;
	font-size: 17px;
	font-weight: 500;
	color: #fff;
	letter-spacing: 0.1px;
	line-height: 1.3;
	margin-bottom: 4px;
}

/* "Join our community…" */
.kl-fn-brand span {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: #aaa;
	line-height: 1.4;
}

/* Newsletter form */
.kl-fn-form {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0;
	flex: 0 0 360px;
	width: 360px;
}
.kl-fn-form input[type="email"] {
	flex: 1 1 0;
	min-width: 0;
	height: 44px;
	padding: 0 18px;
	border: none;
	border-radius: 22px 0 0 22px;
	background: #2a2a2a;
	color: #fff;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	font-weight: 400;
	outline: none;
}
.kl-fn-form input[type="email"]::placeholder {
	color: #777;
	font-family: 'Jost', sans-serif;
	font-weight: 400;
}
.kl-fn-form button {
	flex-shrink: 0;
	height: 44px;
	padding: 0 24px;
	background: #ffbe00;
	color: #111;
	border: none;
	border-radius: 0 22px 22px 0;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}
.kl-fn-form button:hover { background: #e6ab00; }

/* Social icons */
.kl-fn-social {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.kl-fn-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #bbb;
	transition: color 0.2s;
}
.kl-fn-social-link:hover { color: #fff; }
.kl-fn-social-link svg { width: 17px; height: 17px; }

/* ── Main footer ─────────────────────────────────────────────── */
.kl-footer-main {
	background: #1a1a1a;
	font-family: 'Jost', sans-serif;
	padding: 48px 24px 40px;
}

.kl-footer-center {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

/* ── Social icons ────────────────────────────────────────────── */
.kl-footer-socials {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-bottom: 28px;
}

.kl-footer-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.55);
	transition: color 0.2s;
	text-decoration: none;
}
.kl-footer-social-icon:hover { color: #fff; }
.kl-footer-social-icon svg { width: 20px; height: 20px; display: block; }

/* ── Divider ─────────────────────────────────────────────────── */
.kl-footer-rule {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.1);
	margin: 0 0 24px;
}

/* ── Legal nav ───────────────────────────────────────────────── */
.kl-footer-legal-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.kl-footer-legal-nav a {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	transition: color 0.2s;
}
.kl-footer-legal-nav a:hover { color: #fff; }

/* ── Legal copyright block ───────────────────────────────────── */
.kl-footer-legal-text {
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 400;
	color: rgba(255,255,255,0.3);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	line-height: 1.8;
	margin: 0;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}

/* ── Bottom bar ──────────────────────────────────────────────── */
.kl-footer-bottom {
	background: #111;
	border-top: 1px solid rgba(255,255,255,0.06);
}

.kl-footer-bottom-inner {
	max-width: 1260px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.kl-footer-made {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: rgba(255,255,255,0.4);
}
.kl-footer-made strong {
	font-weight: 600;
	color: rgba(255,255,255,0.55);
}
.kl-heart { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.kl-footer-copy {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: rgba(255,255,255,0.4);
	margin: 0;
}

/* Payment icons */
.kl-footer-payments {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.kl-pay-icon {
	height: 24px;
	width: auto;
	display: block;
}

/* ── WhatsApp float ──────────────────────────────────────────── */
.kl-whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 70px;
	z-index: 9999;
	width: 52px;
	height: 52px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
	transition: background 0.2s, transform 0.2s;
}
.kl-whatsapp-float:hover { background: #128C7E; transform: scale(1.08); }
.kl-whatsapp-float svg { width: 28px; height: 28px; }

/* ── Accordion toggle icon ───────────────────────────────────── */
.kl-footer-accordion-icon {
	display: none;
	width: 18px;
	height: 18px;
	position: relative;
	flex-shrink: 0;
}
.kl-footer-accordion-icon::before,
.kl-footer-accordion-icon::after {
	content: '';
	position: absolute;
	background: #1a2035;
	border-radius: 2px;
	transition: transform 0.25s;
}
.kl-footer-accordion-icon::before { width: 12px; height: 2px; top: 8px; left: 3px; }
.kl-footer-accordion-icon::after  { width: 2px; height: 12px; top: 3px; left: 8px; }
.kl-footer-col.kl-open .kl-footer-accordion-icon::after { transform: scaleY(0); }

/* ── Accessibility ───────────────────────────────────────────── */
.kl-sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
	/* Newsletter stacks */
	.kl-footer-newsletter {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 20px 16px;
	}
	.kl-fn-form { flex: 1 1 100%; width: 100%; }

	/* Main footer */
	.kl-footer-main { padding: 36px 16px 28px; }
	.kl-footer-socials { gap: 20px; }
	.kl-footer-legal-nav { gap: 16px; }

	/* Bottom bar stacks */
	.kl-footer-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 14px 16px;
	}
}
