/**
 * RecipesJV — Footer Layout
 */

.site-footer {
	background-color: var(--color-text);
	color: rgba(255, 255, 255, 0.8);
	padding-block: var(--space-12) var(--space-6);
	margin-top: auto;
}

/* ── 3-column grid ── */

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-8);
	padding-bottom: var(--space-8);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

/* ── Brand column ── */

.footer-brand .custom-logo-link img,
.footer-brand .custom-logo {
	height: 44px;
	width: auto;
	filter: brightness(0) invert(1); /* white logo on dark bg */
	margin-bottom: var(--space-4);
}

.footer-logo-text {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 700;
	color: var(--color-white);
	text-decoration: none;
	display: inline-block;
	margin-bottom: var(--space-4);
}

.footer-tagline {
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.7;
	margin-bottom: var(--space-6);
	max-width: 280px;
}

/* ── Social icons ── */

.footer-social {
	display: flex;
	gap: var(--space-3);
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: background-color var(--transition), color var(--transition);
}

.social-link:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
}

/* ── Footer columns ── */

.footer-col__title {
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--color-white);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: var(--space-4);
}

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

.footer-links a {
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color var(--transition);
}

.footer-links a:hover {
	color: var(--color-white);
}

/* ── Footer bottom bar ── */

.footer-bottom {
	padding-top: var(--space-6);
	text-align: center;
}

.footer-copyright {
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
}
