/*
 * Footer — markup in inc/footer.php (replaces Kadence's footer builder).
 * Brique band (08/10), Crème text. Same structure as the Mairie footer:
 * brand + social · contact · quick links · opening hours, then a legal bar.
 */

.ba-footer {
	background: var(--ba-brique);
	color: var(--ba-creme);
	font-size: 16px;
}
.ba-footer a {
	color: var(--ba-creme);
	text-decoration: none;
}
.ba-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.ba-footer :focus-visible {
	outline-color: var(--ba-creme);
}
.ba-footer :is(ul, p, h2, table) {
	margin: 0;
	padding: 0;
}
.ba-footer ul {
	list-style: none;
}

.ba-footer__main,
.ba-footer__legal-inner {
	max-width: 1290px;
	margin: 0 auto;
	padding-right: 30px;
	padding-left: 30px;
}
.ba-footer__main {
	padding-top: 64px;
	padding-bottom: 56px;
}
.ba-footer__grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr 1fr 1.1fr;
	gap: 48px;
}
.ba-footer__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* Brand */
.ba-footer__brand {
	font-family: var(--ba-font-heading);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.ba-footer__desc {
	max-width: 36ch;
	line-height: 1.55;
}
.ba-footer__social {
	display: flex;
	gap: 12px;
}
.ba-footer__social a {
	display: grid;
	place-items: center;
	width: var(--ba-tap-min);
	height: var(--ba-tap-min);
	border: 2px solid var(--ba-creme);
	border-radius: var(--ba-radius);
}
.ba-footer__social a:hover {
	background: var(--ba-creme);
	color: var(--ba-brique-dark);
	text-decoration: none;
}

/* Column titles: Crème, dashed Crème rule (the stitch motif) */
.ba-footer__title {
	padding-bottom: 12px;
	border-bottom: var(--ba-stitch-width) dashed var(--ba-creme);
	color: var(--ba-creme);
	font-family: var(--ba-font-body);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: var(--ba-tracking-label);
	line-height: 1.2;
	text-transform: uppercase;
}

/* Contact */
.ba-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ba-footer__contact li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	line-height: 1.45;
}
.ba-footer__contact svg {
	flex: none;
	margin-top: 3px;
}

/* Quick links */
.ba-footer__links {
	display: flex;
	flex-direction: column;
}
.ba-footer__links a {
	display: block;
	padding: 8px 0;
}

/* Hours */
.ba-footer__hours {
	width: 100%;
	border-collapse: collapse;
}
.ba-footer__hours :is(th, td) {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--ba-creme) 35%, transparent);
	background: none;
	color: var(--ba-creme);
	font-size: 16px;
	text-align: left;
	vertical-align: top;
}
.ba-footer__hours th {
	font-weight: 400;
}
.ba-footer__hours td {
	font-weight: 700;
	text-align: right;
}
.ba-footer__hours tr:last-child :is(th, td) {
	border-bottom: 0;
}
.ba-footer__hours .is-closed :is(th, td) {
	font-style: italic;
	font-weight: 400;
}

/* Agency credit */
.ba-footer__credit {
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Legal bar */
.ba-footer__legal {
	border-top: var(--ba-stitch-width) dashed color-mix(in srgb, var(--ba-creme) 60%, transparent);
}
.ba-footer__legal-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 15px;
}
.ba-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}
.ba-footer__legal-links a {
	display: block;
	padding: 6px 0;
}

@media (max-width: 1023px) {
	.ba-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}
}
@media (max-width: 719px) {
	.ba-footer__main,
	.ba-footer__legal-inner {
		padding-right: 16px;
		padding-left: 16px;
	}
	.ba-footer__main {
		padding-top: 48px;
		padding-bottom: 40px;
	}
	.ba-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
	.ba-footer__legal-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
