/*
 * Site footer section — "Footer".
 *
 * Multi-column dark footer built entirely on the design tokens in
 * assets/css/design-tokens.css. 4 columns desktop / 2 tablet / 1 mobile.
 * All colours, type sizes, spacing, radii and shadows come from tokens, so the
 * band stays consistent with the rest of the theme and readable on the dark
 * surface roles. No hardcoded hex values.
 */

.amber-footer {
	position: relative;
	/* style.css ships a legacy light one-line footer strip with a 60px top
	   margin; this section owns the footer band, so that gap is removed and the
	   dark surface meets the section above it flush. */
	margin-block-start: 0;
	background-color: var(--color-bg-dark);
	color: var(--color-text-on-dark);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
	border-top: 3px solid var(--color-highlight-500);
}

.amber-footer__container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

/* --- Column grid ------------------------------------------------------- */

.amber-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-10) var(--space-8);
}

@media (min-width: 640px) {
	.amber-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.amber-footer__grid {
		/* Asymmetric: the brand column carries more weight than the three link columns. */
		grid-template-columns: 1.6fr 1fr 1.1fr 1fr;
		gap: var(--space-12);
	}
}

.amber-footer__col {
	min-width: 0;
}

/* --- Brand column ----------------------------------------------------- */

.amber-footer__brand {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 700;
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-tight);
	color: var(--color-text-on-dark);
}

.amber-footer__tagline {
	margin: var(--space-2) 0 0;
	font-size: var(--text-sm);
	text-transform: uppercase;
	letter-spacing: var(--letter-wide);
	color: var(--color-highlight-300);
}

.amber-footer__about {
	margin: var(--space-5) 0 0;
	max-width: 38ch;
	color: var(--color-text-muted-on-dark);
}

.amber-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin: var(--space-6) 0 0;
	padding: 0;
	list-style: none;
}

.amber-footer__social-item {
	margin: 0;
}

.amber-footer__social-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 var(--space-4);
	border: 1px solid var(--color-primary-700);
	border-radius: var(--radius-full);
	background-color: var(--color-surface-dark);
	color: var(--color-text-on-dark);
	font-size: var(--text-sm);
	text-decoration: none;
	transition:
		background-color var(--duration-normal) var(--ease-default),
		border-color var(--duration-normal) var(--ease-default),
		transform var(--duration-normal) var(--ease-default);
}

.amber-footer__social-link:hover,
.amber-footer__social-link:focus-visible {
	background-color: var(--color-primary-700);
	border-color: var(--color-accent-500);
	transform: translateY(-2px);
}

/* --- Column headings & links ------------------------------------------ */

.amber-footer__title {
	margin: 0 0 var(--space-4);
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--letter-wide);
	color: var(--color-text-on-dark);
}

.amber-footer__address {
	margin: 0 0 var(--space-4);
	font-style: normal;
	color: var(--color-text-muted-on-dark);
}

.amber-footer__nav {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.amber-footer__nav li {
	margin: 0;
}

.amber-footer__link,
.amber-footer__nav a {
	display: inline-block;
	color: var(--color-text-muted-on-dark);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition:
		color var(--duration-normal) var(--ease-default),
		border-color var(--duration-normal) var(--ease-default);
}

.amber-footer__link:hover,
.amber-footer__link:focus-visible,
.amber-footer__nav a:hover,
.amber-footer__nav a:focus-visible {
	color: var(--color-highlight-300);
	border-bottom-color: var(--color-highlight-500);
}

/* --- Opening hours ---------------------------------------------------- */

.amber-footer__badge {
	display: inline-flex;
	align-items: center;
	margin: 0 0 var(--space-4);
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-full);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--letter-wide);
}

.amber-footer__badge--open {
	background-color: var(--color-accent-100);
	color: var(--color-accent-800);
}

.amber-footer__badge--closed {
	background-color: var(--color-primary-700);
	color: var(--color-primary-100);
}

.amber-footer__hours {
	margin: 0;
}

.amber-footer__hours-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-2);
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--color-primary-800);
}

.amber-footer__hours-row:last-child {
	border-bottom: 0;
}

.amber-footer__hours-row.is-today .amber-footer__hours-day,
.amber-footer__hours-row.is-today .amber-footer__hours-time {
	color: var(--color-text-on-dark);
	font-weight: 500;
}

.amber-footer__hours-day {
	margin: 0;
	font-size: var(--text-sm);
	color: var(--color-text-muted-on-dark);
}

.amber-footer__hours-time {
	margin: 0;
	font-size: var(--text-sm);
	font-variant-numeric: tabular-nums;
	color: var(--color-text-muted-on-dark);
}

/* --- Bottom bar ------------------------------------------------------- */

.amber-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	margin-top: clamp(var(--space-10), 5vw, var(--space-16));
	padding-top: var(--space-6);
	border-top: 1px solid var(--color-primary-800);
}

.amber-footer__copyright {
	margin: 0;
	font-size: var(--text-sm);
	color: var(--color-text-muted-on-dark);
}

.amber-footer__top {
	font-size: var(--text-sm);
	color: var(--color-text-muted-on-dark);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition:
		color var(--duration-normal) var(--ease-default),
		border-color var(--duration-normal) var(--ease-default);
}

.amber-footer__top:hover,
.amber-footer__top:focus-visible {
	color: var(--color-highlight-300);
	border-bottom-color: var(--color-highlight-500);
}

/* --- Focus visibility ------------------------------------------------- */

.amber-footer a:focus-visible {
	outline: 2px solid var(--color-accent-500);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
	.amber-footer a {
		transition: none;
	}

	.amber-footer__social-link:hover,
	.amber-footer__social-link:focus-visible {
		transform: none;
	}
}
