/**
 * Site footer (inc/footer.php): one dark band. Logo, name and imprint line
 * on the left, the links in one row, the cream "Start a project" pill on the
 * right (the site's one button, as on dark bands); a thin line, then the
 * copyright. Content on Astra's container, so it lines up with the header.
 * Phones: stacked and centred.
 */

.sab-footer {
	--sab-footer-line: rgba(255, 255, 255, 0.15);
	background: var(--sab-dark);
	color: var(--sab-cream);
	font-size: 15px;
	line-height: 1.5;
}

.sab-footer__inner {
	display: block;
	padding-top: 48px;
	padding-bottom: 32px;
}

.sab-footer p {
	margin: 0;
}

.sab-footer a {
	color: #fff;
	text-decoration: none;
}

.sab-footer a:is(:hover, :focus-visible) {
	color: var(--sab-cream);
	text-decoration: underline;
}

.sab-footer__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sab-gap);
	padding-bottom: 32px;
	border-bottom: 1px solid var(--sab-footer-line);
}

/* Logo, then the name with the imprint line under it. */
.sab-footer__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sab-footer__logo {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
}

.sab-footer a.sab-footer__name {
	display: block;
	font-family: "Feed Store", Georgia, serif;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.sab-footer a.sab-footer__name:is(:hover, :focus-visible) {
	text-decoration: none;
	color: var(--sab-cream);
}

.sab-footer__imprint {
	margin-top: 2px !important;
	font-size: 13px;
}

.sab-footer__imprint a {
	color: var(--sab-cream);
	text-decoration: underline;
}

.sab-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The site's one button, cream on a dark band (styles/sections.css). */
.sab-footer a.sab-footer__cta {
	flex: none;
	display: inline-block;
	padding: var(--sab-button-padding);
	border: 1px solid var(--sab-cream);
	border-radius: var(--sab-button-radius);
	background: var(--sab-cream);
	color: var(--sab-dark);
	font-size: var(--sab-button-size);
	font-weight: var(--sab-button-weight);
	letter-spacing: var(--sab-button-tracking);
	line-height: var(--sab-button-line);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sab-footer a.sab-footer__cta:is(:hover, :focus-visible) {
	background: #fff;
	border-color: #fff;
	color: var(--sab-dark);
	text-decoration: none;
}

.sab-footer__base {
	padding-top: 20px;
	font-size: 13px;
	color: var(--sab-cream);
}

/* Tablets: the links take their own row under the logo and the button. */
@media (max-width: 1024px) {
	.sab-footer__main {
		flex-wrap: wrap;
	}

	.sab-footer__nav {
		order: 3;
		flex-basis: 100%;
	}

	.sab-footer__nav ul {
		justify-content: flex-start;
	}
}

/* Phones: stacked and centred. */
@media (max-width: 767px) {
	.sab-footer__inner {
		padding-top: 40px;
	}

	.sab-footer__main {
		flex-direction: column;
		gap: 24px;
		text-align: center;
	}

	.sab-footer__brand {
		flex-direction: column;
		gap: 10px;
	}

	.sab-footer__nav {
		order: 0;
	}

	/* Rows of three, a shorter last row centred under them. */
	.sab-footer__nav ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px 0;
	}

	.sab-footer__nav li {
		flex: 0 0 33.333%;
		text-align: center;
	}

	.sab-footer__base {
		text-align: center;
	}
}
