/*
 * Footer layout: branding, link columns (mobile accordion), social,
 * copyright bar. Structural/functional styling, not the final visual pass.
 */

.site-footer {
	background-color: var(--color-black);
	color: var(--color-white);
	padding-block: var(--space-section);
}

.footer-inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xl);
}

.footer-branding {
	text-align: center;
}

.footer-logo {
	max-height: 56px;
	width: auto;
	margin-inline: auto;
}

.footer-logo-text {
	color: var(--color-white);
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--space-lg);
	text-align: left;
}

.footer-column__toggle {
	color: var(--color-white);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: var(--text-sm);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: default;
}

.footer-column__list {
	margin-top: var(--space-sm);
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
}

.footer-column__list a {
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--text-sm);
}

.footer-column__list a:hover,
.footer-column__list a:focus-visible {
	color: var(--color-white);
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: var(--space-md);
}

.footer-social a {
	color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: var(--space-lg);
	font-size: var(--text-xs);
	color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
	margin-bottom: var(--space-2xs);
}

/*
 * Legal operator identification. Deliberately the quietest line in the
 * footer — it has to be present, but Framed & Famous stays the brand the
 * customer sees.
 */
.footer-operator {
	color: rgba(255, 255, 255, 0.45);
}

/* Permanent control to reopen the cookie choice, on every page. */
.footer-cookie-preferences {
	padding: var(--space-3xs) var(--space-2xs);
	border-radius: var(--radius-sm);
	color: rgba(255, 255, 255, 0.6);
	font-family: inherit;
	font-size: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.footer-cookie-preferences:hover {
	color: var(--color-white);
}

.footer-cookie-preferences:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
	color: var(--color-white);
}

/* ---------- Mobile accordion ---------- */
@media (max-width: 959px) {
	.footer-column__toggle {
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.footer-column__list {
		overflow: hidden;
		max-height: 600px;
		transition: max-height 0.3s ease, margin-top 0.3s ease;
	}

	.footer-column__toggle[aria-expanded='false'] + .footer-column__list {
		max-height: 0;
		margin-top: 0;
	}
}
