/* ==========================================================================
   Site Footer — PropComm Classic
   ========================================================================== */

.site-footer {
	--footer-bg:     #DCE6D3;
	--footer-border: var(--color-green-20);
	--footer-text:   var(--color-primary-green);
	--footer-muted:  #084823a8;
	--footer-accent: var(--color-secondary-green);
	--footer-wm:      var(--color-primary-green);

	background-color: var(--footer-bg);
	color: var(--footer-text);
	font-family: var(--font-body, 'SeasonSans', system-ui, sans-serif);
	overflow: hidden;
}

.site-footer a {
	color: var(--footer-text);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--footer-accent);
	text-decoration: none;
	border-bottom-color: var(--footer-accent);
}

/* ── Top strip: logo left · phone/email right ───────────────────── */

.site-footer__top {
	padding: var(--sp-12) var(--sp-14) var(--sp-11);
	border-bottom: 1px solid var(--footer-border);
}

.site-footer__top-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sp-10);
}

.footer-brand-link {
	text-decoration: none;
	flex-shrink: 0;
}

.footer-logo {
	max-height: 102px;
	width: auto;
	display: block;
	filter: brightness(0) saturate(100%) invert(14%) sepia(40%) saturate(700%) hue-rotate(95deg) brightness(50%);
	opacity: 0.9;
}

.footer-site-name {
	font-family: var(--font-title, 'ConcretteXL', Georgia, serif);
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--footer-cream);
	display: block;
	white-space: nowrap;
}

.footer-top-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--sp-1);
}

.footer-top-contact__link {
	display: block;
	font-family: var(--font-body, 'SeasonSans', system-ui, sans-serif);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	color: var(--footer-cream);
	text-decoration: none;
	text-align: right;
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
	transition: border-color 0.2s ease;
}

.footer-top-contact__link:hover {
	border-bottom-color: var(--footer-accent);
}

/* ── Nav groups row ─────────────────────────────────────────────── */

.site-footer__nav-row {
	padding: var(--sp-13) var(--sp-14) var(--sp-14);
}

.site-footer__nav-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	display: flex;
	gap: 0 var(--sp-14);
	align-items: flex-start;
}

.footer-nav-group {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 120px;
}

.footer-nav-group__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	font-family: var(--font-secondary);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--footer-muted);
	margin-bottom: var(--sp-4);
	pointer-events: none;
	user-select: none;
}

.footer-nav-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
}

.footer-nav-group__link {
	font-family: var(--font-secondary);
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	color: var(--footer-text);
	text-decoration: none;
	display: block;
	padding: var(--sp-1) 0;
	width: fit-content;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav-group__link:hover {
	color: var(--footer-accent);
	border-bottom-color: var(--footer-accent);
}

/* Address inside social column */
.footer-nav-group__addr {
	font-size: 0.8125rem;
	font-family: var(--font-secondary);
	line-height: var(--lh-relaxed);
	color: var(--footer-muted);
	font-style: normal;
	margin: 0 0 var(--sp-4);
}

/* Social icons */
.footer-social {
	list-style: none;
	padding: 0;
	margin: var(--sp-1) 0 0;
	display: flex;
	gap: var(--sp-2);
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sp-9);
	height: var(--sp-9);
	border: 1px solid var(--footer-muted);
	border-radius: 50%;
	color: var(--footer-muted);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.footer-social a:hover {
	color: var(--color-primary-green);
	border-color: var(--footer-accent);
	background-color: var(--footer-accent);
}

/* Push social column to the far right */
.footer-nav-group--social {
	margin-left: auto;
}

/* ── Wordmark ───────────────────────────────────────────────────── */

.site-footer__wordmark {
	padding: 0 var(--sp-8);
	line-height: 0.82;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
	text-align: center;
	/* compensate letter-spacing trailing gap so text appears truly centred */
	text-indent: 0.28em;
}

.footer-wordmark {
	display: block;
	font-family: var(--font-title, 'ConcretteXL', Georgia, serif);
	font-size: clamp(40px, 11vw, 200px);
	font-weight: 400;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--footer-wm);
	white-space: nowrap;
	margin-bottom: -0.075em;
}

/* ── Legal bar ──────────────────────────────────────────────────── */

.site-footer__legal {
	padding: var(--sp-10) var(--sp-14) var(--sp-5);
}

.site-footer__legal-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-4);
}

.footer-copyright {
	font-size: 0.6875rem;
	font-family: var(--font-secondary);
	font-weight: 400;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--footer-muted);
}

.footer-legal-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--sp-6);
}

.footer-legal-list a {
	font-size: 0.6875rem;
	font-family: var(--font-secondary);
	font-weight: 400;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--footer-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-legal-list a:hover {
	color: var(--footer-accent);
}

/* ── Tablet: ≤ 1024px ───────────────────────────────────────────── */

@media (max-width: 1024px) {
	.site-footer__top     { padding: var(--sp-10) var(--sp-9) var(--sp-9); }
	.site-footer__nav-row { padding: var(--sp-11) var(--sp-9) var(--sp-12); }
	.site-footer__legal   { padding: var(--sp-8) var(--sp-9) var(--sp-4); }
	.site-footer__wordmark { padding: 0 var(--sp-6); }

	.site-footer__nav-inner {
		flex-wrap: wrap;
		gap: var(--sp-10) var(--sp-12);
	}

	.footer-nav-group--social {
		margin-left: 0;
	}
}

/* ── Narrow tablet: ≤ 768px ─────────────────────────────────────── */

@media (max-width: 768px) {
	.site-footer__top     { padding: var(--sp-9) var(--sp-7) var(--sp-8); }
	.site-footer__nav-row { padding: var(--sp-10) var(--sp-7) var(--sp-11); }
	.site-footer__legal   { padding: var(--sp-7) var(--sp-7) var(--sp-4); }
	.site-footer__wordmark { padding: 0 var(--sp-4); }

	/* Stack logo above contact, centered */
	.site-footer__top-inner {
		flex-direction: column;
		align-items: center;
		gap: var(--sp-5);
	}

	.footer-top-contact {
		align-items: center;
	}

	.footer-top-contact__link {
		text-align: center;
	}

	/* Nav groups: two columns */
	.site-footer__nav-inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-9) var(--sp-8);
	}

	/* Center all nav groups, links and text */
	.footer-nav-group,
	.footer-nav-group__list {
		align-items: center;
		text-align: center;
	}

	.footer-nav-group__addr {
		text-align: center;
	}

	.footer-social {
		justify-content: center;
	}

	/* Center the legal bar */
	.site-footer__legal-inner {
		flex-direction: column;
		align-items: center;
		gap: var(--sp-2);
		text-align: center;
	}

	.footer-legal-list {
		justify-content: center;
		flex-wrap: wrap;
	}
}

/* ── Mobile: ≤ 480px ────────────────────────────────────────────── */

@media (max-width: 480px) {
	.site-footer__top     { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
	.site-footer__nav-row { padding: var(--sp-9) var(--sp-5) var(--sp-10); }
	.site-footer__legal   { padding: var(--sp-6) var(--sp-5) var(--sp-4); }
	.site-footer__wordmark { padding: 0 var(--sp-5); }

	/* Center logo + contact on mobile */
	.site-footer__top-inner {
		align-items: center;
	}

	.footer-top-contact {
		align-items: center;
	}

	.footer-top-contact__link {
		text-align: center;
	}

	/* Single column nav groups */
	.site-footer__nav-inner {
		grid-template-columns: 1fr;
		gap: var(--sp-7) 0;
	}

	.footer-wordmark {
		font-size: clamp(36px, 13vw, 90px);
	}

	.site-footer__legal-inner {
		flex-direction: column;
		align-items: center;
		gap: var(--sp-2);
	}
}

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.footer-top-contact__link,
	.footer-nav-group__link,
	.footer-social a,
	.footer-legal-list a { transition: none; }
}
