/*
 * Knooz Store - Site footer (compact)
 * Developer: Nasr Soft PY Eng Ahmed Nasr
 * Enqueued site-wide via mu-plugins/knooz-footer-assets.php
 * Extends the homepage design tokens (dark field + lime accent).
 */

.knz-footer,
.wd-copyrights {
	--knz-primary: #83b735;
	--knz-primary-dark: #6d9429;
	--knz-dark: #10231a;
	--knz-line: rgba(255, 255, 255, 0.09);
	--knz-muted: rgba(255, 255, 255, 0.6);
}

/* ============ full-bleed ============ */
/* WoodMart wraps the footer block in .container, which boxes the dark band in
   and leaves the page background showing at both sides. The theme prints
   footer-base.css in the footer (after wp_head), so !important is required to
   win over it. */
.wd-footer .main-footer.container,
.wd-copyrights .container {
	max-width: none !important;
	width: 100% !important;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
}

/* ============ shell ============ */
.knz-footer {
	position: relative;
	width: 100%;
	background: var(--knz-dark);
	background-image: radial-gradient(900px 300px at 88% -20%, rgba(131, 183, 53, 0.13), transparent 62%),
		linear-gradient(180deg, #0d1e16 0%, #10231a 100%);
	color: #fff;
	overflow: hidden;
}

.knz-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 56px 56px;
	pointer-events: none;
}

.knz-footer__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
	gap: 0 clamp(24px, 3vw, 44px);
	align-items: start;
	width: 100%;
	max-width: 1920px;
	margin-inline: auto;
	padding: 30px clamp(16px, 4vw, 48px) 26px;
}

/* vertical rules keep the columns visually aligned */
.knz-footer__col,
.knz-footer__brand {
	padding-inline-start: clamp(18px, 2vw, 30px);
	border-inline-start: 1px solid var(--knz-line);
}

.knz-footer__brand {
	padding-inline-start: 0;
	border-inline-start: 0;
}

/* ============ brand ============ */
.knz-footer__logo {
	display: block;
	margin-bottom: 9px;
}

.knz-footer__logo img {
	display: block;
	max-height: 34px;
	width: auto;
}

.knz-footer__name {
	margin: 0 0 13px;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.knz-footer__name span {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--knz-muted);
}

/* ============ socials ============ */
.knz-footer__social {
	display: flex;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.knz-footer__social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	border: 1px solid var(--knz-line);
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.8);
	transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.knz-footer__social a:hover {
	transform: translateY(-2px);
	background: var(--knz-primary);
	border-color: var(--knz-primary);
	color: #10231a;
	box-shadow: 0 9px 20px -9px rgba(131, 183, 53, 0.85);
}

.knz-footer__social svg {
	width: 16px;
	height: 16px;
}

/* ============ column headings ============ */
.knz-footer__title {
	margin: 0 0 13px;
	font-size: 13.5px;
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.2px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.knz-footer__title::before {
	content: "";
	width: 3px;
	height: 14px;
	border-radius: 2px;
	background: var(--knz-primary);
	flex: none;
}

/* ============ link lists (inline, one per line) ============ */
.knz-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.knz-footer__links li + li {
	margin-top: 8px;
}

.knz-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.72);
	transition: color 0.18s, gap 0.18s;
}

.knz-footer__links a::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.26);
	flex: none;
	transition: background 0.18s, transform 0.18s;
}

.knz-footer__links a:hover {
	color: #fff;
	gap: 10px;
}

.knz-footer__links a:hover::before {
	background: var(--knz-primary);
	transform: scale(1.5);
}

.knz-footer__count {
	font-size: 11.5px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.38);
	background: rgba(255, 255, 255, 0.07);
	border-radius: 5px;
	padding: 1px 6px;
	line-height: 1.6;
}

/* ============ contact ============ */
.knz-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.knz-footer__contact li + li {
	margin-top: 7px;
}

.knz-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	transition: color 0.18s;
}

.knz-footer__contact svg {
	width: 15px;
	height: 15px;
	flex: none;
	color: var(--knz-primary);
}

.knz-footer__contact a:hover {
	color: var(--knz-primary);
}

.knz-footer__contact bdi {
	direction: ltr;
}

/* ============ credit bar (inside our own footer block) ============ */
.knz-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 22px;
	width: 100%;
	max-width: 1920px;
	margin-inline: auto;
	padding: 13px clamp(16px, 4vw, 48px);
	border-top: 1px solid var(--knz-line);
	background: rgba(0, 0, 0, 0.24);
	font-size: 13px;
}

.knz-cr {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
}

.knz-credit {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
}

.knz-credit b {
	color: var(--knz-primary);
	font-weight: 800;
}

.knz-pay {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* payment marks: white chips holding the real brand logo.
   Sizing: one base height plus per-brand tweaks, so all six read at the
   same visual weight next to the 13px credit-bar text. */
.knz-pay li {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 7px;
	min-width: 44px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 5px;
	background: #fff;
	line-height: 0;
	white-space: nowrap;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.knz-pay li:hover {
	border-color: rgba(131, 183, 53, 0.75);
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.knz-pay li img {
	display: block;
	height: 14px;
	width: auto;
	max-width: 50px;
	object-fit: contain;
}

/* Mastercard is two circles, so it reads better a touch larger */
.knz-pay--mc img {
	height: 15px;
	max-width: 40px;
}

/* Mada's mark is a wide wordmark */
.knz-pay--mada img {
	height: 11px;
	max-width: 42px;
}

/* Tamara's Arabic lockup is very wide */
.knz-pay--tamara img {
	height: 13px;
	max-width: 54px;
}

/* Tabby ships a green PNG with its own padding, so trim the chip padding */
.knz-pay--tabby img {
	height: 15px;
	max-width: 46px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
	.knz-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 26px 0;
	}

	.knz-footer__brand {
		grid-column: 1 / -1;
		padding-inline-end: 0;
		padding-bottom: 22px;
		border-bottom: 1px solid var(--knz-line);
	}

	/* drop the rules once the columns wrap */
	.knz-footer__col {
		border-inline-start: 0;
		padding-inline-start: 0;
	}
}

@media (max-width: 767px) {
	.knz-footer__inner {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 26px clamp(16px, 4vw, 48px) 22px;
	}

	.knz-footer__social a {
		width: 36px;
		height: 36px;
	}

	.knz-footer__bar {
		justify-content: center;
		text-align: center;
		padding: 14px clamp(16px, 4vw, 48px);
	}
}
