/**
 * Sadaat Traders — Blocksy footer and reusable footer pattern.
 *
 * Uses the free Blocksy footer builder (Footer Widget Area) and the
 * "Sadaat Footer" block pattern. No parent theme template is replaced.
 */

#footer.ct-footer {
	background-color: var(--st-green-900);
	color: var(--st-cream-100);
	font-family: var(--st-font-body);
}

#footer [data-row="middle"] {
	background-color: transparent;
}

#footer [data-row="bottom"] {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background-color: var(--st-green-950);
}

#footer [data-column^="widget-area"] {
	width: 100%;
}

#footer [data-column^="widget-area"] .ct-widget {
	width: 100%;
	margin: 0;
}

#footer [data-row="bottom"] [data-column="copyright"] {
	width: 100%;
}

#footer .ct-footer-copyright {
	color: rgba(244, 243, 238, 0.72);
	font-family: var(--st-font-body);
	font-size: var(--st-fs-xs);
	line-height: 1.6;
	text-align: center;
}

#footer .ct-footer-copyright a {
	color: var(--st-white);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Footer pattern shell
   -------------------------------------------------------------------------- */

.st-footer {
	color: var(--st-cream-100);
}

.st-footer__grid {
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: 0;
}

.st-footer p {
	margin: 0 0 var(--st-space-3);
	color: rgba(244, 243, 238, 0.82);
	font-family: var(--st-font-body);
	font-size: var(--st-fs-sm);
	line-height: var(--st-lh-body);
}

.st-footer p:last-child {
	margin-bottom: 0;
}

.st-footer .wp-block-site-logo {
	margin-bottom: var(--st-space-4);
	line-height: 0;
}

.st-footer .wp-block-site-logo img {
	box-sizing: border-box;
	width: 170px;
	max-width: 100%;
	height: auto;
	padding: 10px 14px;
	border-radius: var(--st-radius-md);
	background-color: var(--st-white);
	object-fit: contain;
}

.st-footer__tagline {
	margin: 0 0 var(--st-space-3) !important;
	color: var(--st-green-100) !important;
	font-size: var(--st-fs-2xs) !important;
	font-weight: var(--st-fw-bold);
	letter-spacing: var(--st-letter-eyebrow);
	line-height: 1.5 !important;
	text-transform: uppercase;
}

.st-footer__title {
	margin: 0 0 var(--st-space-4);
	color: var(--st-white);
	font-family: var(--st-font-body);
	font-size: var(--st-fs-xs);
	font-weight: var(--st-fw-bold);
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.st-footer__rule {
	margin: var(--st-space-8) 0 var(--st-space-5);
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	background: none;
	opacity: 1;
}

.st-footer__note {
	color: rgba(244, 243, 238, 0.65) !important;
	font-size: var(--st-fs-xs) !important;
}

.st-footer a {
	color: var(--st-cream-100);
	text-decoration: none;
	transition: color var(--st-transition);
}

.st-footer a:hover {
	color: var(--st-white);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Footer navigation, categories and contact details
   -------------------------------------------------------------------------- */

.st-footer__categories .wc-block-product-categories-list,
.st-footer__pages ul {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-footer__categories .wc-block-product-categories-list .wc-block-product-categories-list {
	display: grid;
	gap: 0.45rem;
	margin-top: 0.45rem;
	padding-left: var(--st-space-3);
}

.st-footer__categories .wc-block-product-categories-list-item {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.st-footer__categories .wc-block-product-categories-list-item > a {
	display: inline;
	padding: 0;
	color: var(--st-cream-100);
	font-size: var(--st-fs-sm);
	line-height: 1.55;
}

.st-footer__categories .wc-block-product-categories-list-item__image,
.st-footer__categories .wc-block-product-categories-list-item-count {
	display: none;
}

.st-footer__pages li {
	margin: 0;
	padding: 0;
	font-size: var(--st-fs-sm);
	line-height: 1.55;
}

.st-footer__pages .children,
.st-footer__pages .sub-menu,
.st-footer__pages ul ul {
	margin-top: 0.45rem;
	padding-left: var(--st-space-3);
}

.st-footer__contact p {
	margin-bottom: var(--st-space-3);
}

.st-footer__contact a {
	position: relative;
	display: inline-flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding-left: 24px;
	font-size: var(--st-fs-sm);
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.st-footer__contact a::before {
	content: "";
	position: absolute;
	top: 0.28em;
	left: 0;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--st-footer-icon) center / contain no-repeat;
	mask: var(--st-footer-icon) center / contain no-repeat;
}

.st-footer__contact a[href^="tel:"] {
	--st-footer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8 10a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");
}

.st-footer__contact a[href^="mailto:"] {
	--st-footer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' 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");
}

.st-footer__contact a[href*="wa.me"] {
	--st-footer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.5 14.4c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.1-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.2-1.3-.5-2.5-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.5-.6c.2-.2.2-.3.3-.5.1-.2.1-.4 0-.5l-.9-2.1c-.2-.5-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.1 1.1-1.1 2.7s1.2 3.2 1.4 3.4c.2.2 2.4 3.7 5.8 5 .8.3 1.2.4 1.6.4.7 0 2.3-.9 2.6-1.8.3-.9.3-1.7.2-1.8-.1-.2-.2-.3-.5-.5Z'/%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2c-1.5 0-2.9-.4-4.1-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Z'/%3E%3C/svg%3E");
}

.st-footer__contact .st-footer__contact-note {
	margin-top: var(--st-space-4);
	color: rgba(244, 243, 238, 0.72);
	font-size: var(--st-fs-xs);
}

/* --------------------------------------------------------------------------
   Footer responsiveness
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
	#footer [data-row="middle"] > .ct-container {
		padding-block: var(--st-space-8);
	}

	.st-footer__grid {
		display: flex;
		flex-direction: column;
		gap: var(--st-space-7);
	}

	.st-footer .wp-block-site-logo img {
		width: 150px;
	}

	.st-footer__title {
		margin-bottom: var(--st-space-3);
	}

	#footer .ct-footer-copyright {
		text-align: center;
	}
}

