/**
 * HVACB — Footer
 *
 * Every rule that styles parts/footer.html, including the mobile call bar,
 * which is markup inside footer.html (the core/html block at the end) and so
 * belongs with the footer rather than in the global stylesheet.
 *
 * Tokens come from theme.json / the :root block in functions.php.
 * Do not hard-code hex values.
 */

/* ---------- Footer ---------- */

.hvacb-footer a {
	text-decoration: none;
	color: var(--wp--preset--color--accent-8);
}

.hvacb-footer a:hover {
	text-decoration: underline;
	color: #FFFFFF;
}

.hvacb-footer-heading {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-8);
	margin: 0 0 12px;
}

.hvacb-footer-links p {
	margin: 0;
	padding: 5px 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

/* ---------- Mobile call bar ---------- */

.hvacb-callbar {
	display: none;
}

@media (max-width: 781px) {
	.hvacb-callbar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 200;
		background: #FFFFFF;
		border-top: 1px solid var(--wp--preset--color--accent-6);
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	}
	.hvacb-callbar a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		background: var(--wp--preset--color--accent-1);
		color: #FFFFFF;
		border-radius: 999px;
		font-weight: 700;
		font-size: 16px;
		letter-spacing: -0.01em;
		text-decoration: none;
	}

	/* Reserves room for the fixed bar so it never covers page content. */
	body {
		padding-bottom: 76px;
	}
}
