/*
 * Site Footer — theblogrelay/assets/css/footer.css
 * Source of truth: theblogrelay-homepage.html (Fiona)
 * Rebuilt: 2026-06-07
 *
 * CO-OWNED FILE
 * Changes to this file require review of: tbr-design-system.css
 * Contract: NORMALIZER-CONTRACT.md
 */

/* ── WordPress block layout neutraliser ─────────────────────────── */
/* wp:group blocks add wp-block-group and is-layout-* classes which can
   inject margins, max-widths, and gaps that conflict with footer layout.
   Reset them inside the footer context only. */

.footer .wp-block-group { max-width: none; }
.footer .is-layout-flow > * { margin-block-start: 0; max-width: none; }
.footer .is-layout-flow > * + * { margin-block-start: 0; }
.footer .wp-block-heading { margin: 0; }

/* ── Shell ──────────────────────────────────────────────────────── */

.footer {
	background: var(--warm-950);
	padding: 4rem 0 2rem;
	color: var(--warm-300);
}

.footer__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2.5rem;
}

/* ── Grid ───────────────────────────────────────────────────────── */

.footer__grid {
	display: grid;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

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

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

/* ── Brand column ───────────────────────────────────────────────── */

.footer__logo {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	color: #fff;
	margin-bottom: 0.5rem;
}

/* Image logo — rendered when a logo is uploaded via Customizer → Site Identity. */
.footer__logo-img {
	height: 32px;
	width: auto;
	display: block;
}

.footer__tagline {
	font-size: 0.875rem;
	color: var(--primary-400);
	margin-bottom: 1rem;
}

.footer__desc {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--warm-300);
	margin-bottom: 1.5rem;
}

/* ── Social icons ───────────────────────────────────────────────── */

.footer__socials {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.footer__social {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--warm-800);
	border-radius: 8px;
	color: var(--warm-300);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.footer__social:hover {
	background: var(--primary-700);
	color: #fff;
}

.footer__social svg {
	width: 18px;
	height: 18px;
}

/* ── Buy Me a Coffee button ─────────────────────────────────────── */

.btn--gold {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	background: #ffdd00;
	color: var(--warm-900);
	border: 1.5px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.btn--gold:hover {
	background: #f0ce00;
	color: var(--warm-900);
}

/* ── Nav columns ────────────────────────────────────────────────── */

/* Collapse the flex gap WordPress navigation block adds between items */
.footer__col .wp-block-navigation__container,
.footer__col .wp-block-navigation > ul {
	gap: 0 !important;
}

.footer__col-title,
.footer .footer__col-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--warm-300);
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer__link,
.footer__col .wp-block-navigation-item__content {
	display: block;
	font-size: 0.875rem;
	color: var(--warm-300);
	padding: 0.3rem 0;
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer__link:hover,
.footer__col .wp-block-navigation-item__content:hover {
	color: #fff;
}

/* ── Bottom bar ─────────────────────────────────────────────────── */

.footer__bottom {
	padding-top: 2rem;
	border-top: 1px solid var(--warm-800);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	text-align: center;
}

@media (min-width: 768px) {
	.footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.footer__copy {
	font-size: 0.875rem;
	color: var(--warm-400);
}

.footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

@media (min-width: 768px) {
	.footer__legal {
		justify-content: flex-end;
	}
}

.footer__legal-link {
	font-size: 0.875rem;
	color: var(--warm-400);
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer__legal-link:hover {
	color: var(--warm-300);
}

.footer__legal-dot {
	color: var(--warm-700);
}

/* ── Copyright line — below Buy Me a Coffee button ──────────────────── */

.footer__copyright {
	font-size: 0.875rem;
	color: var(--warm-300);
	margin-top: 1rem;
	line-height: 1.6;
}
