/* ==========================================================================
   MangiGreens footer — replaces the inherited "style5" theme footer.

   Design tokens
   -------------
   Color   #16241C soil     — footer background (deep green-black, not flat #000)
           #1E3226 leaf     — newsletter card surface, one step up from soil
           #3F8F52 green    — site's established brand accent (buttons, "Greens" wordmark)
           #7FC492 green-lt — hover tint for links on dark ground
           #C97B4A clay     — terracotta accent: pots, warmth, the vine's berries
           #F4EFE4 cream    — primary text on dark ground (soft, not stark white)
           #9FB6A2 sage     — secondary/link text on dark ground
   Type    Fraunces (display, italic) — wordmark + tagline only, nowhere else
           Montserrat        — column headings, tracked-out caps (already used in nav)
           Source Sans Pro   — body copy, links (site default)
   Signature: a hand-drawn vine seam across the top edge, standing in for a
   hard rule — the one place this page spends its personality.
   ========================================================================== */

.mg-footer {
	background: #16241c;
	color: #cdd9cf;
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	font-family: "Source Sans Pro", sans-serif;
}

.mg-footer-divider {
	line-height: 0;
	background: #fff;
}

.mg-footer-divider svg {
	display: block;
	width: 100%;
	height: 44px;
}

.mg-footer-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 40px;
}

.mg-footer-top {
	padding: 56px 0 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 48px;
}

.mg-footer-word {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 34px;
	letter-spacing: 0.2px;
	color: #f4efe4;
	margin: 0 0 6px;
}

.mg-footer-word span {
	color: #7fc492;
	font-style: italic;
}

.mg-footer-tagline {
	font-family: "Fraunces", Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 17px;
	color: #9fb6a2;
	margin: 0;
}

.mg-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
	gap: 40px;
	padding-bottom: 52px;
}

.mg-footer-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #f4efe4;
	margin: 0 0 22px;
}

.mg-footer-heading .mg-leaf {
	flex: none;
	width: 13px;
	height: 13px;
	color: #c97b4a;
}

.mg-footer-col + .mg-footer-heading,
.mg-footer-col .mg-footer-heading + .mg-footer-heading {
	margin-top: 28px;
}

.mg-footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mg-footer-nav li {
	margin: 0 0 12px;
}

.mg-footer-nav a {
	position: relative;
	display: inline-block;
	color: #9fb6a2;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.mg-footer-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 0;
	height: 1px;
	background: #c97b4a;
	transition: width 0.25s ease;
}

.mg-footer-nav a:hover,
.mg-footer-nav a:focus-visible {
	color: #f4efe4;
}

.mg-footer-nav a:hover::after,
.mg-footer-nav a:focus-visible::after {
	width: 100%;
}

.mg-footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mg-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 14px;
	color: #9fb6a2;
	line-height: 1.5;
}

.mg-footer-contact li a {
	color: #9fb6a2;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mg-footer-contact li a:hover,
.mg-footer-contact li a:focus-visible {
	color: #f4efe4;
}

.mg-footer-contact svg {
	flex: none;
	width: 15px;
	height: 15px;
	margin-top: 2px;
	color: #c97b4a;
}

.mg-footer-newsletter {
	background: #1e3226;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	padding: 26px 24px;
	align-self: start;
}

.mg-footer-newsletter p {
	font-size: 13px;
	color: #9fb6a2;
	margin: 0 0 16px;
	line-height: 1.5;
}

.mg-footer-newsletter-form {
	display: flex;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 25px;
	overflow: hidden;
	margin: 0 0 24px;
}

.mg-footer-newsletter-form input {
	flex: 1;
	min-width: 0;
	background: none;
	border: none;
	outline: none;
	color: #f4efe4;
	font-size: 13px;
	padding: 11px 16px;
}

.mg-footer-newsletter-form input::placeholder {
	color: #6f8577;
}

.mg-footer-newsletter-form button {
	flex: none;
	width: 40px;
	border: none;
	background: #c97b4a;
	color: #16241c;
	cursor: pointer;
	transition: background 0.2s ease;
}

.mg-footer-newsletter-form button:hover {
	background: #3f8f52;
	color: #f4efe4;
}

.mg-footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 10px;
}

.mg-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #9fb6a2;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mg-footer-social a:hover,
.mg-footer-social a:focus-visible {
	color: #f4efe4;
	border-color: #3f8f52;
	background: #3f8f52;
	transform: translateY(-2px);
}

.mg-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mg-footer-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 22px 0;
}

.mg-footer-bottom-row p {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.4px;
	color: #7d9083;
}

.mg-footer-bottom-row p a {
	color: #cdd9cf;
	font-weight: 700;
	text-decoration: none;
}

.mg-footer-bottom-row p a:hover {
	color: #3f8f52;
}

.mg-footer-payments {
	filter: grayscale(1) brightness(2.1) contrast(0.9);
	opacity: 0.75;
	max-height: 22px;
	width: auto;
}

@media (max-width: 991px) {
	.mg-footer-grid {
		grid-template-columns: 1fr 1fr;
		row-gap: 40px;
	}
}

@media (max-width: 600px) {
	.mg-footer-inner {
		padding: 0 24px;
	}

	.mg-footer-grid {
		grid-template-columns: 1fr;
	}

	.mg-footer-word {
		font-size: 28px;
	}

	.mg-footer-bottom-row {
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mg-footer-nav a,
	.mg-footer-nav a::after,
	.mg-footer-social a {
		transition: none;
	}
}
