/*
 * Site footer: a toned-down version of the www.poparide.com footer. Logo and social icons on the left,
 * three link columns, the legal line and the land acknowledgement underneath.
 * Colors are design system tokens (poparide-client globals.css): navy-500 #183154, navy-400 #466682,
 * neutral-300 #edeff2, orange-600 #d23f00. Markup: footer.php. Replaces the legacy #footer rules in main.css.
 */

.site-footer {
	--ds-primary: #183154;
	--ds-text: #466682;
	--ds-border: #edeff2;
	--ds-action: #d23f00;

	background: #fff;
	border-top: 1px solid var(--ds-border);
	font-family: "proxima-soft", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ds-text);
}

.site-footer__inner {
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	padding: 48px 15px 40px;
}

/* Same widths and 15px gutters as the theme's .container (and the header), so everything lines up. */
@media (min-width: 768px) {
	.site-footer__inner {
		max-width: 750px;
	}
}

@media (min-width: 992px) {
	.site-footer__inner {
		max-width: 970px;
	}
}

@media (min-width: 1200px) {
	.site-footer__inner {
		max-width: 1170px;
	}
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	/* The base theme gives links a dotted bottom border. */
	border: 0;
	color: var(--ds-text);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--ds-primary);
	text-decoration: underline;
}

/* ─── Top: brand + link columns ─────────────────────────────────────────── */

.site-footer__top {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 32px;
}

.site-footer__logo {
	display: inline-block;
	line-height: 0;
}

.site-footer__logo:hover {
	opacity: 0.9;
}

.site-footer__logo img {
	display: block;
	width: auto;
	height: 30px;
}

.site-footer__social {
	display: flex;
	gap: 16px;
	margin-top: 20px !important;
}

.site-footer__social a {
	display: block;
	line-height: 0;
}

.site-footer__social a:hover {
	opacity: 0.8;
	text-decoration: none;
}

.site-footer__social img {
	display: block;
	width: 24px;
	height: 24px;
}

.site-footer__column li + li {
	margin-top: 14px;
}

/* ─── Legal line ────────────────────────────────────────────────────────── */

.site-footer__legal {
	margin-top: 36px !important;
	padding-top: 24px;
	border-top: 1px solid var(--ds-border);
	font-size: 14px;
}

.site-footer__sep {
	margin: 0 8px;
	color: #8ea6b7;
}

/* ─── Land acknowledgement ──────────────────────────────────────────────── */

.site-footer__acknowledgement {
	max-width: 760px;
	margin-top: 24px;
	/* Canada illustration from the main site footer, above the text. */
	padding-top: 115px;
	background: url("../images/illustration-canada.svg") no-repeat left -8px top;
	background-size: 300px 100px;
	font-size: 14px;
	line-height: 1.6;
}

.site-footer__acknowledgement-title {
	margin-bottom: 4px;
	font-weight: 600;
	color: var(--ds-primary);
}

.site-footer__more {
	color: var(--ds-primary) !important;
	text-decoration: underline !important;
}

.site-footer__more:hover {
	color: var(--ds-action) !important;
}

/* ─── Phones: brand on its own row, links in two columns ────────────────── */

@media (max-width: 767px) {
	.site-footer__inner {
		padding-top: 36px;
		padding-bottom: 32px;
	}

	.site-footer__top {
		grid-template-columns: 1fr 1fr;
		gap: 28px 24px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}
