/**
 * Homestead site footer.
 */

.homestead-footer {
	--homestead-footer-soft-gray: var(--homestead-soft-gray, #b9b8b3);
	--homestead-footer-stone: var(--homestead-stone, #8e9188);
	--homestead-footer-text: var(--wp--preset--color--heading, #1a1a1a);
	--homestead-footer-text-muted: var(--wp--preset--color--body, #3d3d3d);
	--homestead-footer-legal-text: #000000;
	--homestead-footer-legal-link-hover: var(--homestead-cream, #f5f1e8);
	--homestead-content-width: 1440px;

	margin-block-start: 0;
	padding-block: 0;
	border-top: 0;
	color: var(--homestead-footer-text);
	font-size: inherit;
	background-color: var(--homestead-footer-soft-gray);
}

.homestead-footer__main {
	background-color: var(--homestead-footer-soft-gray);
}

.homestead-footer__content {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--homestead-content-width);
	margin-inline: auto;
	padding-block: 80px 60px;
	padding-inline: clamp(1rem, 2.5vw, 2rem);
	text-align: center;
}

.homestead-footer__logo {
	display: block;
	width: 400px;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	margin-block-end: 1.25rem;
}

.homestead-footer__contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
	padding: 0;
	color: var(--homestead-footer-text-muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.45;
	text-align: center;
}

.homestead-footer__contact-line {
	color: inherit;
}

a.homestead-footer__contact-line {
	color: #000000;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

a.homestead-footer__contact-line:hover,
a.homestead-footer__contact-line:focus-visible {
	color: var(--homestead-link-hover);
	text-decoration: underline;
}

a.homestead-footer__contact-line:focus-visible {
	outline: 2px solid var(--homestead-link-hover);
	outline-offset: 3px;
}

.homestead-footer__bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	width: 100%;
	text-align: left;
}

.homestead-footer__nav {
	flex: 1 1 auto;
	min-width: 0;
}

.homestead-footer__menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(0.85rem, 1.8vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.homestead-footer__menu a {
	color: var(--homestead-footer-text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.homestead-footer__menu a:hover,
.homestead-footer__menu a:focus-visible {
	color: var(--homestead-stone-dark);
	text-decoration: none;
}

.homestead-footer__menu a:focus-visible {
	outline: 2px solid var(--homestead-stone-dark);
	outline-offset: 3px;
}

.homestead-footer__actions {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 0.85rem;
	min-width: 0;
	--homestead-footer-badge-height: 2.8125rem; /* Matches ChahtaPreneur intrinsic height (45px). */
}

.homestead-footer__actions-row {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem 1.25rem;
	min-width: 0;
}

.homestead-footer__chahtapreneur {
	display: block;
	width: auto;
	max-width: min(280px, 42vw);
	height: var(--homestead-footer-badge-height);
	flex: 0 0 auto;
	object-fit: contain;
	object-position: center;
}

.homestead-footer__social {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	height: var(--homestead-footer-badge-height);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: translateY(0.1875rem);
}

.homestead-footer__social > li {
	display: flex;
	align-items: center;
	height: 100%;
}

.homestead-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: var(--homestead-stone-dark);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.homestead-footer__social-link:hover,
.homestead-footer__social-link:focus-visible {
	background-color: transparent;
	color: #000000;
	text-decoration: none;
}

.homestead-footer__social-link:focus-visible {
	outline: 2px solid var(--homestead-stone-dark);
	outline-offset: 3px;
}

.homestead-footer__social-icon {
	display: block;
	flex: 0 0 auto;
	width: var(--homestead-footer-badge-height);
	height: var(--homestead-footer-badge-height);
	overflow: visible;
}

.homestead-footer__goats-sticker {
	display: none;
	margin: 0;
	max-width: min(9.5rem, 42vw);
	line-height: 0;
}

.homestead-footer__goats-sticker img {
	display: block;
	width: 100%;
	height: auto;
	transform: rotate(-12deg);
	transform-origin: center center;
}

.homestead-footer__legal {
	background-color: var(--homestead-footer-stone);
	color: var(--homestead-footer-legal-text);
}

.homestead-footer__legal-inner {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1.5rem;
	width: 100%;
	max-width: var(--homestead-content-width);
	margin-inline: auto;
	padding-block: 0.85rem;
	padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.homestead-footer__copyright,
.homestead-footer__privacy,
.homestead-footer__credit {
	margin: 0;
	color: var(--homestead-footer-legal-text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.4;
}

.homestead-footer__copyright {
	flex: 1 1 12rem;
	text-align: left;
}

.homestead-footer__privacy {
	flex: 0 1 auto;
	text-align: center;
}

.homestead-footer__credit {
	display: flex;
	flex: 1 1 12rem;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.homestead-footer__credit-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--homestead-footer-legal-text);
	text-decoration: none;
}

.homestead-footer__credit-link:hover,
.homestead-footer__credit-link:focus-visible {
	color: var(--homestead-footer-legal-link-hover);
	text-decoration: none;
}

.homestead-footer__credit-link:focus-visible {
	outline: 2px solid #000000;
	outline-offset: 3px;
}

.homestead-footer__credit-logo {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	flex: 0 0 auto;
}

.homestead-footer__credit-name {
	white-space: nowrap;
}

.homestead-footer__privacy-link {
	color: var(--homestead-footer-legal-text);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.homestead-footer__privacy-link:hover,
.homestead-footer__privacy-link:focus-visible {
	color: var(--homestead-footer-legal-link-hover);
	text-decoration: underline;
}

.homestead-footer__privacy-link:focus-visible {
	outline: 2px solid #000000;
	outline-offset: 3px;
}

@media (max-width: 1100px) {
	.homestead-footer__bar {
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
	}

	.homestead-footer__nav {
		flex: 1 1 100%;
	}

	.homestead-footer__menu {
		flex-wrap: wrap;
		justify-content: center;
	}

	.homestead-footer__actions {
		align-items: center;
	}

	.homestead-footer__actions-row {
		justify-content: center;
	}
}

@media (max-width: 700px) {
	.homestead-footer__menu {
		gap: 0.85rem 1.25rem;
	}

	.homestead-footer__menu a {
		font-size: 1rem;
	}

	.homestead-footer__chahtapreneur {
		width: min(240px, 70vw);
		max-width: 100%;
	}

	.homestead-footer__actions {
		--homestead-footer-badge-height: calc(min(240px, 70vw) * 45 / 280);
	}

	.homestead-footer__legal-inner {
		flex-direction: column;
		align-items: flex-start;
		padding-block: 1rem;
	}

	.homestead-footer__copyright,
	.homestead-footer__privacy,
	.homestead-footer__credit {
		flex: 0 0 auto;
		justify-content: flex-start;
		text-align: left;
	}

	.homestead-footer__credit {
		order: -1;
	}
}

@media (max-width: 600px) {
	.homestead-footer__actions {
		width: 100%;
		padding-inline: 0.5rem;
		box-sizing: border-box;
	}

	.homestead-footer__actions-row {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.85rem;
		width: 100%;
	}

	.homestead-footer__chahtapreneur {
		width: min(240px, 100%);
		max-width: 100%;
	}

	.homestead-footer__goats-sticker {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.homestead-footer__social-link {
		transition: none;
	}

	.homestead-footer__goats-sticker img {
		transform: none;
	}
}
