.mg-home-v2 {
	--mg-green-dark: #054f29;
	--mg-green: #048900;
	--mg-green-bright: #23a455;
	--mg-text: #54595f;
	--mg-muted: #7a7a7a;
	--mg-soft: #f4f8f3;
	--mg-soft-2: #edf5eb;
	--mg-border: #dce7d9;
	--mg-white: #fff;
	color: var(--mg-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.55;
}

.mg-home-v2 *,
.mg-home-v2 *::before,
.mg-home-v2 *::after { box-sizing: border-box; }

.mg-home-v2 a { color: inherit; text-decoration: none; }
.mg-home-v2 h1,
.mg-home-v2 h2,
.mg-home-v2 h3,
.mg-home-v2 p { margin-top: 0; }

.mg-home-shell {
	width: min(1080px, calc(100% - 40px));
	margin: 0 auto;
}

.mg-home-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #f8fbf7 0%, #edf6ea 100%);
	border-bottom: 1px solid var(--mg-border);
}

.mg-home-hero::after {
	content: "";
	position: absolute;
	width: 380px;
	height: 380px;
	right: -170px;
	top: -190px;
	border-radius: 50%;
	background: rgba(97, 206, 112, .12);
	pointer-events: none;
}

.mg-home-hero__inner {
	position: relative;
	z-index: 1;
	padding: 76px 0 70px;
	text-align: center;
}

.mg-home-kicker {
	margin-bottom: 10px;
	color: var(--mg-green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .11em;
	line-height: 1.3;
	text-transform: uppercase;
}

.mg-home-hero h1 {
	max-width: 790px;
	margin: 0 auto 18px;
	padding: 0;
	color: var(--mg-green-dark);
	font-size: clamp(36px, 5vw, 54px);
	font-weight: 900;
	letter-spacing: -.025em;
	line-height: 1.08;
}

.mg-home-hero__intro {
	max-width: 720px;
	margin: 0 auto 30px;
	color: #62686b;
	font-size: 18px;
	line-height: 1.6;
}

.mg-home-search {
	display: flex;
	max-width: 660px;
	margin: 0 auto;
	padding: 6px;
	background: var(--mg-white);
	border: 1px solid #ccd9c9;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(5, 79, 41, .08);
}

.mg-home-search input {
	min-width: 0;
	width: 100%;
	padding: 13px 16px;
	background: transparent;
	border: 0;
	color: var(--mg-text);
	font: inherit;
	font-size: 17px;
}

.mg-home-search input:focus { outline: 2px solid transparent; }
.mg-home-search:focus-within { border-color: var(--mg-green); box-shadow: 0 0 0 3px rgba(4, 137, 0, .11), 0 12px 32px rgba(5, 79, 41, .08); }

.mg-home-search button {
	min-width: 112px;
	padding: 12px 22px;
	border: 0;
	border-radius: 7px;
	background: linear-gradient(90deg, var(--mg-green-dark), var(--mg-green));
	color: var(--mg-white);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}

.mg-home-search button:hover { background: var(--mg-green-dark); }

.mg-home-hero__browse {
	display: inline-flex;
	gap: 7px;
	margin-top: 20px;
	color: var(--mg-green-dark) !important;
	font-size: 14px;
	font-weight: 700;
}

.mg-home-section { padding: 70px 0; }
.mg-home-band--soft { background: var(--mg-soft); }

.mg-home-section__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 30px;
}

.mg-home-section__heading h2,
.mg-home-closing h2 {
	margin-bottom: 10px;
	padding: 0;
	color: var(--mg-green-dark);
	font-size: clamp(27px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.18;
}

.mg-home-section__intro {
	max-width: 680px;
	margin-bottom: 0;
	color: var(--mg-muted);
	font-size: 16px;
}

.mg-home-text-link {
	flex: 0 0 auto;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--mg-green);
	color: var(--mg-green) !important;
	font-size: 14px;
	font-weight: 700;
}

.mg-home-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.mg-home-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 58px;
	padding: 14px 17px;
	background: var(--mg-soft);
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--mg-green-dark) !important;
	font-size: 14px;
	font-weight: 700;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.mg-home-category span:first-child { min-width: 0; }
.mg-home-category span:last-child { flex: 0 0 auto; }

.mg-home-category:hover {
	background: var(--mg-white);
	border-color: #bcd2b7;
	transform: translateY(-2px);
}

.mg-home-category span:last-child { color: var(--mg-green); }

.mg-home-grid { display: grid; gap: 22px; }
.mg-home-grid--seasonal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mg-home-grid--featured,
.mg-home-grid--daily { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mg-home-card {
	min-width: 0;
	margin: 0;
	background: var(--mg-white);
	border: 1px solid var(--mg-border);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mg-home-card:hover {
	border-color: #b9d2b5;
	box-shadow: 0 14px 34px rgba(5, 79, 41, .09);
	transform: translateY(-3px);
}

.mg-home-card__link { display: block; height: 100%; }
.mg-home-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: #e9eee7; }
.mg-home-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mg-home-card:hover .mg-home-card__image img { transform: scale(1.025); }
.mg-home-card__body { padding: 17px 17px 19px; }

.mg-home-card__category {
	display: block;
	margin-bottom: 7px;
	color: var(--mg-green);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .075em;
	line-height: 1.3;
	text-transform: uppercase;
}

.mg-home-card h3 {
	margin: 0;
	padding: 0;
	color: var(--mg-text);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.005em;
	line-height: 1.35;
}

.mg-home-card:hover h3 { color: var(--mg-green-dark); }

.mg-home-regions { background: linear-gradient(135deg, #f0f6ef, #f8faf7); border-top: 1px solid var(--mg-border); border-bottom: 1px solid var(--mg-border); }
.mg-home-region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.mg-home-region {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 132px;
	padding: 22px;
	background: var(--mg-white);
	border-left: 4px solid var(--mg-green);
	box-shadow: 0 8px 24px rgba(5, 79, 41, .055);
}

.mg-home-region span:first-child { color: var(--mg-green-dark); font-size: 19px; font-weight: 700; }
.mg-home-region span:last-child { color: var(--mg-green); font-size: 13px; font-weight: 700; }
.mg-home-region:hover { border-left-color: var(--mg-green-bright); }

.mg-home-closing {
	background: linear-gradient(90deg, var(--mg-green-dark), var(--mg-green));
	color: var(--mg-white);
}

.mg-home-closing__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
	padding-top: 52px;
	padding-bottom: 52px;
}

.mg-home-closing .mg-home-kicker { color: #b8e5b2; }
.mg-home-closing h2 { color: var(--mg-white); }
.mg-home-closing p:not(.mg-home-kicker) { margin-bottom: 0; color: #e6f2e4; }
.mg-home-closing__actions { display: flex; flex: 0 0 auto; gap: 12px; }

.mg-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 700;
}

.mg-home-button--light { background: var(--mg-white); color: var(--mg-green-dark) !important; }
.mg-home-button--ghost { border-color: rgba(255, 255, 255, .55); color: var(--mg-white) !important; }
.mg-home-button--ghost:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 900px) {
	.mg-home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mg-home-grid--featured,
	.mg-home-grid--daily { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mg-home-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mg-home-closing__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
	.mg-home-shell { width: min(100% - 30px, 1080px); }
	.mg-home-hero__inner { padding: 52px 0 48px; }
	.mg-home-hero__intro { font-size: 16px; }
	.mg-home-search { align-items: stretch; flex-direction: column; padding: 7px; }
	.mg-home-search input { padding: 12px; text-align: center; }
	.mg-home-search button { width: 100%; }
	.mg-home-section { padding: 52px 0; }
	.mg-home-section__heading { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
	.mg-home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
	.mg-home-category { min-height: 54px; padding: 12px; font-size: 13px; }
	.mg-home-grid--seasonal,
	.mg-home-grid--featured,
	.mg-home-grid--daily { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mg-home-card__body { padding: 13px 12px 15px; }
	.mg-home-card__category { font-size: 9px; letter-spacing: .045em; }
	.mg-home-card h3 { font-size: 14px; }
	.mg-home-region-grid { grid-template-columns: 1fr; }
	.mg-home-region { min-height: 104px; }
	.mg-home-closing__inner { padding-top: 44px; padding-bottom: 44px; }
	.mg-home-closing__actions { width: 100%; flex-direction: column; }
	.mg-home-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.mg-home-v2 *,
	.mg-home-v2 *::before,
	.mg-home-v2 *::after { scroll-behavior: auto !important; transition: none !important; }
}
