/*
 * Get MEP Plans theme — footer.css
 * Title-block footer: 5 cells (Firm, Contact, Services, Specialties, Sheet code).
 * Mirrors the bottom-right titleblock anatomy of an actual permit drawing sheet.
 */

.mep-footer {
	background: var(--paper);
	border-top: 1px solid var(--rule-2);
	padding: 48px 0 24px;
	margin-top: 0;
}

.mep-tf-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr 0.8fr;
	gap: 0;
	border: 1px solid var(--ink);
}

.mep-tf-cell {
	padding: 18px 20px;
	border-right: 1px solid var(--ink);
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	line-height: 1.55;
}

.mep-tf-cell:last-child {
	border-right: 0;
}

.mep-tf-cell h6 {
	font-family: var(--f-mono);
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-mute);
	font-weight: 500;
	margin: 0 0 8px 0;
}

.mep-tf-firm h5 {
	font-family: var(--f-display);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: -0.012em;
	line-height: 1;
	margin: 0 0 6px 0;
	font-variation-settings: "opsz" 144;
	color: var(--ink);
}

.mep-tf-firm small {
	font-family: var(--f-mono);
	font-size: 9.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-mute);
}

.mep-tf-cell a {
	color: var(--ink);
	text-decoration: none;
	display: block;
	transition: color 0.2s ease;
}

.mep-tf-cell a:hover {
	color: var(--accent);
}

.mep-tf-cell .item {
	margin-bottom: 4px;
}

.mep-tf-cell b {
	color: var(--ink);
	font-weight: 600;
}

.mep-tf-sheet {
	background: var(--ink);
	color: var(--paper);
	text-align: center;
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.mep-tf-sheet .lbl {
	font-family: var(--f-mono);
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(243, 236, 216, 0.6);
	margin-bottom: 6px;
}

.mep-tf-sheet .num {
	font-family: var(--f-mono);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--paper);
	line-height: 1;
}

/* Footer bottom strip */
.mep-tf-bottom {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 24px;
	margin-top: 18px;
	padding-top: 16px;
	font-family: var(--f-mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-mute);
	border-top: 1px solid var(--rule);
}

.mep-tf-bottom > div:nth-child(1) {
	display: flex;
	gap: 16px;
}

.mep-tf-bottom > div:nth-child(2) {
	text-align: center;
}

.mep-tf-bottom > div:nth-child(3) {
	text-align: right;
	font-style: italic;
}

.mep-tf-bottom a {
	color: var(--ink-mute);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mep-tf-bottom a:hover {
	color: var(--accent);
}

@media (max-width: 980px) {
	.mep-tf-grid {
		grid-template-columns: 1fr;
	}

	.mep-tf-cell {
		border-right: 0;
		border-bottom: 1px solid var(--ink);
	}

	.mep-tf-cell:last-child {
		border-bottom: 0;
	}

	.mep-tf-sheet {
		flex-direction: row;
		justify-content: space-between;
		padding: 14px 20px;
	}

	.mep-tf-sheet .lbl {
		margin-bottom: 0;
	}

	.mep-tf-sheet .num {
		font-size: 28px;
	}

	.mep-tf-bottom {
		grid-template-columns: 1fr;
		gap: 12px;
		text-align: left;
		font-size: 9px;
	}

	.mep-tf-bottom > div:nth-child(2),
	.mep-tf-bottom > div:nth-child(3) {
		text-align: left;
	}
}
