/*
 * Footer component. Source: wordpress/aronex mvp/Footer.dc.html.
 * Mobile first: one column with dividers. Desktop from 1024px: four columns.
 * Colors and sizes come only from assets/css/tokens.css.
 */

.aronex-footer {
	/* On a short page the footer sits at the bottom of the window, nothing is shown below it. */
	margin-top: auto;
	background: var(--color-footer-bg);
	color: var(--color-text-on-dark-muted);
	font-size: var(--text-sm);
}

.aronex-footer__inner {
	display: flex;
	flex-direction: column;
	padding: 0 var(--gutter-mobile) var(--space-6);
}

.aronex-footer__brand {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-7) 0 var(--space-6);
	border-bottom: 1px solid var(--color-footer-border);
}

.aronex-footer__logo {
	font-size: var(--text-lg);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-on-dark);
}

.aronex-footer__tagline {
	margin: 0;
	line-height: var(--leading-caption);
}

/* Plain text line in a link list (opening hours, address): same colour as the links, not clickable. */
.aronex-footer__text {
	color: var(--color-text-on-dark-muted);
	line-height: var(--leading-caption);
}

.aronex-footer__group {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-6) 0;
	border-bottom: 1px solid var(--color-footer-border);
}

.aronex-footer__title {
	margin: 0;
	font-size: var(--text-base);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-on-dark);
}

.aronex-footer__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aronex-footer__link {
	color: var(--color-text-on-dark-muted);
	text-decoration: none;
}

.aronex-footer__link:hover,
.aronex-footer__link:focus-visible {
	color: var(--color-text-on-dark);
}

.aronex-footer__link--ltr {
	direction: ltr;
	unicode-bidi: isolate;
	align-self: flex-start;
}

.aronex-footer__copy {
	margin: var(--space-6) 0 0;
	font-size: var(--text-xs);
	color: var(--color-text-on-dark-muted);
}

/* Desktop */
@media (min-width: 1024px) {
	.aronex-footer__inner {
		display: grid;
		grid-template-columns: 2fr 1fr 1fr 1fr;
		gap: var(--space-7);
		max-width: var(--container-max);
		margin: 0 auto;
		padding: var(--space-8) var(--gutter-desktop) var(--space-6);
	}

	.aronex-footer__brand,
	.aronex-footer__group {
		padding: 0;
		border: 0;
	}

	.aronex-footer__copy {
		grid-column: 1 / -1;
		margin: 0;
		padding-top: var(--space-5);
		border-top: 1px solid var(--color-footer-border);
	}
}
