/*
 * Canadensys global footer (Theme Builder layout 49), as the v6.5 prototype:
 * the social icons and the light-theme logo (pixel plan chunk 02, 2026-11-13).
 * Loaded on every front-end page (functions.php).
 * Divi limitations: Social Media Follow draws each icon from its icon font
 * (its LinkedIn glyph is the bare "in", not the square logo) inside a box
 * twice the icon size, printed with !important, and has no spacing setting.
 * The icons are the prototype's SVGs, drawn as masks in the link's colour,
 * so Divi's colour and hover settings still apply.
 */
.et-l--footer ul.et_pb_social_media_follow {
	display: flex;
	align-items: center;
	column-gap: 26px;
	margin: 0;
	padding: 0;
}

.et-l--footer ul.et_pb_social_media_follow > li {
	margin: 0 !important;
}

.et-l--footer .et_pb_social_media_follow li.et_pb_social_icon a.icon {
	display: block;
	width: 20px !important;
	height: 20px !important;
	margin: 0;
	padding: 0;
}

.et-l--footer .et_pb_social_media_follow li.et_pb_social_icon a.icon::before {
	content: "" !important;
	width: 20px !important;
	height: 20px !important;
	font-size: 0 !important;
	line-height: 0 !important;
	background-color: currentColor;
	-webkit-mask: var(--cds-social-icon) no-repeat center / 20px 20px;
	mask: var(--cds-social-icon) no-repeat center / 20px 20px;
	transition: none !important; /* instant hover, as the prototype (Divi prints 300ms on the glyph) */
}

.et-l--footer .et-social-linkedin a.icon {
	--cds-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E");
}

.et-l--footer .et-social-instagram a.icon {
	--cds-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.16c3.2 0 3.58.01 4.85.07 1.17.05 1.8.25 2.23.41.56.22.96.48 1.38.9.42.42.68.82.9 1.38.16.42.36 1.06.41 2.23.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.05 1.17-.25 1.8-.41 2.23-.22.56-.48.96-.9 1.38-.42.42-.82.68-1.38.9-.42.16-1.06.36-2.23.41-1.27.06-1.65.07-4.85.07s-3.58-.01-4.85-.07c-1.17-.05-1.8-.25-2.23-.41a3.72 3.72 0 0 1-1.38-.9 3.72 3.72 0 0 1-.9-1.38c-.16-.42-.36-1.06-.41-2.23-.06-1.27-.07-1.65-.07-4.85s.01-3.58.07-4.85c.05-1.17.25-1.8.41-2.23.22-.56.48-.96.9-1.38.42-.42.82-.68 1.38-.9.42-.16 1.06-.36 2.23-.41 1.27-.06 1.65-.07 4.85-.07M12 0C8.74 0 8.33.01 7.05.07 5.78.13 4.9.33 4.14.63c-.79.31-1.46.72-2.13 1.38A5.88 5.88 0 0 0 .63 4.14C.33 4.9.13 5.78.07 7.05.01 8.33 0 8.74 0 12s.01 3.67.07 4.95c.06 1.27.26 2.15.56 2.91.31.79.72 1.46 1.38 2.13a5.88 5.88 0 0 0 2.13 1.38c.76.3 1.64.5 2.91.56C8.33 23.99 8.74 24 12 24s3.67-.01 4.95-.07c1.27-.06 2.15-.26 2.91-.56a5.88 5.88 0 0 0 2.13-1.38 5.88 5.88 0 0 0 1.38-2.13c.3-.76.5-1.64.56-2.91.06-1.28.07-1.69.07-4.95s-.01-3.67-.07-4.95c-.06-1.27-.26-2.15-.56-2.91a5.88 5.88 0 0 0-1.38-2.13A5.88 5.88 0 0 0 19.86.63C19.1.33 18.22.13 16.95.07 15.67.01 15.26 0 12 0zm0 5.84a6.16 6.16 0 1 0 0 12.32 6.16 6.16 0 0 0 0-12.32zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.41-11.85a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88z'/%3E%3C/svg%3E");
}

.et-l--footer .et-social-twitter a.icon {
	--cds-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.24 2.25h3.31l-7.23 8.26 8.5 11.24H16.17l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25H8.08l4.71 6.23 5.45-6.23zm-1.16 17.52h1.83L7.08 4.13H5.12l11.96 15.64z'/%3E%3C/svg%3E");
}

/*
 * Light theme: the footer logo switches to the client's colour logo (navy
 * wordmark #2F3E92, red leaf, lavender swooshes; images/logo-light-bg.svg),
 * in place of the prototype's brightness(0.25) filter, which also darkened
 * the leaf (Nate, 2026-11-14, client vector logo). The img keeps its alt text.
 */
html[data-theme="light"] .et-l--footer .et_pb_image img[src*="logo-dark-bg.svg"] {
	content: url("images/logo-light-bg.svg");
}

/* Forced colours (Windows high contrast): the masked icons would lose their colour, so draw them in the system link colour (WCAG 1.4.11). */
@media (forced-colors: active) {
	.et-l--footer .et_pb_social_media_follow li.et_pb_social_icon a.icon::before {
		forced-color-adjust: none;
		background-color: LinkText;
	}
}
