/* =============================================================
   footer.css — Global site footer
   All values reference CSS custom properties from style.css.
   ============================================================= */

/* ── Footer shell ── */

.site-footer {
	background-color: var(--color-primary);
	color: var(--color-white);
}

/* ── Main 3-column area ── */

.site-footer__main {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap-xxl);
	max-width: var(--container-nav);
	margin: 0 auto;
	padding: var(--footer-padding-top) 1.5rem;
}

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

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-brand__logo {
	display: block;
	text-decoration: none;
}

.footer-brand__logo img {
	width: 118px;
	height: auto;
	display: block;
}

.footer-brand__name {
	font-family: var(--font-primary);
	font-size: var(--text-body-sm);
	font-weight: var(--weight-regular);
	color: var(--color-white);
	line-height: var(--lh-body);
	text-decoration: none;
}

/* ── Contact column ── */

.footer-contact__heading,
.footer-social__heading {
	font-family: var(--font-primary);
	font-size: var(--text-h3-sm);
	font-weight: var(--weight-medium);
	color: var(--color-white);
	line-height: var(--lh-h3-sm);
	margin-bottom: var(--gap-sm);
}

.footer-contact__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.footer-contact__list li {
	font-family: var(--font-primary);
	font-size: var(--text-body-sm);
	font-weight: var(--weight-regular);
	color: var(--color-white);
	line-height: var(--lh-body);
}

.footer-contact__list a {
	color: var(--color-white);
	text-decoration: none;
	transition: opacity 0.2s;
}

.footer-contact__list a:hover {
	opacity: 0.75;
}

/* Spacing between address, phones, and email blocks */
.footer-contact__block + .footer-contact__block {
	margin-top: 0.5rem;
}

/* ── Social icons column ── */

.footer-social__links {
	display: flex;
	gap: var(--social-icon-gap);
}

.footer-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--social-icon-size);
	height: var(--social-icon-size);
	color: var(--color-white);
	transition: opacity 0.2s;
}

.footer-social__link:hover {
	opacity: 0.75;
}

.footer-social__link svg {
	width: var(--social-icon-size);
	height: var(--social-icon-size);
}

/* ── Bottom bar ── */

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--container-nav);
	margin: 0 auto;
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--color-footer-divider);
}

.footer-copyright {
	font-family: var(--font-primary);
	font-size: var(--text-small);
	font-weight: var(--weight-regular);
	color: var(--color-footer-muted);
	line-height: var(--lh-small);
}

.footer-copyright a {
	color: var(--color-footer-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-copyright a:hover {
	color: var(--color-white);
}

.footer-terms {
	font-family: var(--font-primary);
	font-size: var(--text-small);
	font-weight: var(--weight-regular);
	color: var(--color-footer-muted);
	line-height: var(--lh-small);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-terms:hover {
	color: var(--color-white);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
	.site-footer__main {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 768px) {
	.site-footer__main {
		grid-template-columns: 1fr;
		padding: var(--section-py) 1.5rem;
		gap: var(--gap-xl);
	}

	.footer-brand,
	.footer-contact,
	.footer-social {
		align-items: center;
		text-align: center;
	}

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

	.footer-contact__heading,
	.footer-social__heading {
		text-align: center;
	}

	.site-footer__bottom {
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
		padding: 1rem 1.5rem;
	}
}
