/* =========================================================================
   APC UPS Shop Kenya — footer
   -------------------------------------------------------------------------
   Four columns printed by apc_footer():
     contact / NAP · company · information · social (social hidden if empty)
   Sits on the theme's dark .site-footer; the copyright bar below is the
   theme's own (shoptimizer_footer_copyright).
   ========================================================================= */

:root {
	--apc-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	--apc-icon-phone-f: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
	--apc-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
	--apc-icon-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M22 12a10 10 0 1 0-11.56 9.88v-6.99H7.9V12h2.54V9.8c0-2.5 1.49-3.89 3.77-3.89 1.09 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.89h-2.34v6.99A10 10 0 0 0 22 12z'/%3E%3C/svg%3E");
	--apc-icon-tiktok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M16.5 3a5.6 5.6 0 0 0 4.5 4.9v3a8.6 8.6 0 0 1-4.5-1.3v6.2a6.3 6.3 0 1 1-6.3-6.3c.3 0 .6 0 .9.05v3.1a3.3 3.3 0 1 0 2.3 3.15V3h3.1z'/%3E%3C/svg%3E");
}

body .apc-footer {
	background: var(--apc-ink);
	color: rgba(255, 255, 255, .72);
	padding: 54px 0 44px;
}

body .apc-footer__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr auto;
	gap: 40px;
	align-items: start;
}

/* The social column is optional; when absent the remaining three share the
   row without a dangling empty track. */
body .apc-footer__inner:not(:has(.apc-footer__col--social)) {
	grid-template-columns: 1.6fr 1fr 1fr;
}

body .apc-footer__title {
	margin: 0 0 18px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .01em;
}

/* -------------------------------------------------------------------------
   Contact / NAP
   ---------------------------------------------------------------------- */

body .apc-footer__nap {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-style: normal;
}

body .apc-footer__line {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	color: rgba(255, 255, 255, .78);
	font-size: 14.5px;
	line-height: 1.5;
	text-decoration: none;
}

body a.apc-footer__line:hover {
	color: #fff;
}

body .apc-footer__line::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	background: var(--apc-red);
}

body .apc-footer__line--addr::before {
	-webkit-mask: var(--apc-icon-pin) center / contain no-repeat;
	mask: var(--apc-icon-pin) center / contain no-repeat;
}

body .apc-footer__line--phone::before {
	-webkit-mask: var(--apc-icon-phone-f) center / contain no-repeat;
	mask: var(--apc-icon-phone-f) center / contain no-repeat;
}

body .apc-footer__line--mail::before {
	-webkit-mask: var(--apc-icon-mail) center / contain no-repeat;
	mask: var(--apc-icon-mail) center / contain no-repeat;
}

/* -------------------------------------------------------------------------
   Link columns
   ---------------------------------------------------------------------- */

body .apc-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

body .apc-footer__links li {
	margin: 0 0 11px;
	list-style: none;
}

body .apc-footer__links a {
	color: rgba(255, 255, 255, .78);
	font-size: 14.5px;
	text-decoration: none;
	transition: color .15s ease, padding-left .15s ease;
}

body .apc-footer__links a:hover {
	color: #fff;
	padding-left: 4px;
}

/* -------------------------------------------------------------------------
   Social
   ---------------------------------------------------------------------- */

body .apc-footer__social {
	display: flex;
	gap: 12px;
}

body .apc-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	transition: background-color .16s ease;
}

body .apc-social:hover {
	background: var(--apc-red);
}

body .apc-social__icon {
	width: 20px;
	height: 20px;
	background: #fff;
}

body .apc-social--facebook .apc-social__icon {
	-webkit-mask: var(--apc-icon-facebook) center / contain no-repeat;
	mask: var(--apc-icon-facebook) center / contain no-repeat;
}

body .apc-social--tiktok .apc-social__icon {
	-webkit-mask: var(--apc-icon-tiktok) center / contain no-repeat;
	mask: var(--apc-icon-tiktok) center / contain no-repeat;
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 991px) {
	body .apc-footer {
		padding: 40px 0 32px;
	}

	body .apc-footer__inner,
	body .apc-footer__inner:not(:has(.apc-footer__col--social)) {
		grid-template-columns: 1fr 1fr;
		gap: 32px 24px;
	}

	body .apc-footer__col--contact {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	body .apc-footer__inner,
	body .apc-footer__inner:not(:has(.apc-footer__col--social)) {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}
