/*
 * Site footer. Figma: 11 — Footer / Desktop 1660 (2134:3).
 * Phones follow Home — Mobile 390 (2308:2772); 768-1279 is our interpretation.
 */

.site-footer {
	background: var(--bg);
}

.site-footer__inner {
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 68px var(--gutter) 42px;
}

.site-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	min-height: 382px; /* Location tab starts 450px from the footer top. */
}

.site-footer__intro {
	width: 350px;
}

/* Logo artwork is 237 x 67 inside the 245 x 73 slot of the design. */
.site-footer__logo {
	display: block;
	width: 245px;
	height: 73px;
	padding: 2px 6px 4px 2px;
}

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

.site-footer__blurb {
	max-width: 313px;
	margin: 24px 0 0;
	color: var(--muted);
	font-size: var(--fs-body-sm);
	line-height: 23px;
}

.site-footer__social {
	display: flex;
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line-cool);
	border-radius: var(--radius-pill);
	transition: border-color var(--ease-hover);
}

.site-footer__social a:hover {
	border-color: var(--plum);
}

.site-footer__column {
	width: 150px;
}

.site-footer__column:nth-of-type(2) {
	width: 210px;
}

.site-footer__title {
	margin: 0 0 16px;
	color: var(--ink-2);
	font-family: var(--font-body);
	font-size: var(--fs-small);
	font-weight: var(--fw-semibold);
	line-height: normal;
}

.site-footer__column ul {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__column a,
.site-footer__legal a,
.site-footer__cookies {
	color: var(--muted);
	font-size: var(--fs-small);
	text-decoration: underline transparent;
	transition: color var(--ease-hover), text-decoration-color var(--ease-hover);
}

.site-footer__column a {
	display: block;
	min-height: 22px;
	line-height: normal;
}

.site-footer__column a:hover,
.site-footer__legal a:hover,
.site-footer__cookies:hover {
	color: var(--ink);
	text-decoration-color: currentColor;
}

.site-footer__location {
	position: relative;
	display: inline-block;
	margin: 0 0 -1px;
	padding: 0 12px;
	border: 1px solid var(--line-cool);
	border-radius: 6px 6px 0 0;
	color: var(--body);
	font-size: var(--fs-tiny);
	font-weight: var(--fw-semibold);
	line-height: 30px;
}

.site-footer__bottom {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line-cool);
}

.site-footer__copy {
	margin: 0;
	line-height: normal;
	color: var(--muted);
	font-size: var(--fs-small-sm);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 17px;
	margin: 0;
	padding: 0;
	font-size: var(--fs-small);
	line-height: normal;
	list-style: none;
}

.site-footer__cookies {
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	cursor: pointer;
}

/* Responsive */

@media (max-width: 1279px) {
	.site-footer__top {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 40px 24px;
		min-height: 0;
		margin-bottom: 56px;
	}

	.site-footer__intro {
		grid-column: 1 / -1;
		width: auto;
	}

	.site-footer__column,
	.site-footer__column:nth-of-type(2) {
		width: auto;
	}
}

/* Phones: Figma Home — Mobile 390 (2308:2772), section 11. */
@media (max-width: 767px) {
	.site-footer__inner {
		padding: 40px var(--gutter) 24px;
	}

	.site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 16px;
		margin-bottom: 22px;
	}

	.site-footer__logo {
		display: flex;
		align-items: center;
		width: auto;
		height: 48px;
		padding: 0;
	}

	/* The Figma logo image has transparent padding; this matches its visible size. */
	.site-footer__logo img {
		width: 126px;
		margin-left: 12px;
	}

	.site-footer__blurb {
		max-width: none;
		margin-top: 22px;
		line-height: 1.55;
	}

	.site-footer__social {
		gap: 8px;
		margin-top: 22px;
	}

	.site-footer__social a {
		width: 36px;
		height: 36px;
		border-color: var(--border);
	}

	.site-footer__social img {
		width: 15px;
		height: 15px;
	}

	.site-footer__title {
		margin-bottom: 10px;
		color: var(--ink);
		font-size: var(--fs-body-sm);
	}

	.site-footer__column ul {
		gap: 10px;
	}

	.site-footer__column a {
		min-height: 0;
	}

	.site-footer__location {
		margin: 0;
		padding: 6px 10px;
		border-color: var(--border);
		border-radius: 6px;
		color: var(--muted);
		font-size: var(--fs-small-sm);
		font-weight: var(--fw-regular);
		line-height: normal;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
		margin-top: 22px;
		padding-top: 22px;
		border-top-color: var(--border);
	}

	.site-footer__copy {
		color: var(--muted-2);
	}

	.site-footer__legal {
		gap: 8px 14px;
	}

	.site-footer__legal a,
	.site-footer__cookies {
		font-size: var(--fs-small-sm);
	}
}
