/**
 * FOOTER-SITEWIDE-REPLACE-1A — apt-footer.css
 *
 * Styles for template-parts/apt-footer.php, the sitewide replacement for
 * the legacy Elementor Theme Builder footer. Fully self-contained (no
 * dependency on homepage-v2.css / apt-home-preview-1a.css custom
 * properties or container classes) since this footer renders on routes
 * that never enqueue those files, e.g. /faq/, /blog/, 404. Colour tokens
 * below are copied 1:1 from apt-home-preview-1a.css's --apt-home-* values
 * so the look matches the current V2 UI exactly.
 *
 * Scoped entirely under .apt-footer — never touches global theme styles.
 */

.apt-footer {
	--apt-footer-bg: #F7F8F7;
	--apt-footer-text: #1A1A1A;
	--apt-footer-text-muted: #6B7280;
	--apt-footer-primary: #1FA34A;
	--apt-footer-primary-hover: #168238;
	--apt-footer-border: #E5E7EB;

	background: var( --apt-footer-bg );
	border-top: 1px solid var( --apt-footer-border );
	box-shadow: 0 -1px 2px rgba( 0, 0, 0, 0.03 );
	padding: 1.85rem 1.5rem;
	font-family: inherit;
	color: var( --apt-footer-text );
}

.apt-footer__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	row-gap: 1rem;
	column-gap: 1.75rem;
}

.apt-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var( --apt-footer-text );
	font-weight: 700;
	font-size: 1.02rem;
	letter-spacing: -0.01em;
}

.apt-footer__brand img {
	width: 32px;
	height: 25px;
	display: block;
}

.apt-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.35rem;
}

.apt-footer__nav a,
.apt-footer__contact a {
	color: var( --apt-footer-text-muted );
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.15s ease;
}

.apt-footer__nav a:hover,
.apt-footer__nav a:focus-visible,
.apt-footer__contact a:hover,
.apt-footer__contact a:focus-visible {
	color: var( --apt-footer-primary-hover );
}

.apt-footer a:focus-visible {
	outline: 2px solid var( --apt-footer-primary );
	outline-offset: 2px;
	border-radius: 4px;
}

.apt-footer__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.1rem;
}

.apt-footer__copyright {
	width: 100%;
	margin: 0.4rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var( --apt-footer-border );
	font-size: 0.8rem;
	color: var( --apt-footer-text-muted );
	text-align: center;
}

@media ( max-width: 640px ) {
	.apt-footer {
		padding: 1.5rem 1.25rem;
	}

	.apt-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 1.1rem;
	}

	.apt-footer__nav,
	.apt-footer__contact {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.55rem;
	}
}
