/**
 * Midwest Armor - Home v2 native page sections.
 * Hero slider (own CSS) -> categories -> featured (reuses category .mwc cards)
 * -> reviews (plugin .mwa-kr) -> mission. Tokens mirror the category pages
 * (Inter + JetBrains Mono, ink #141416, hairline borders).
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

.mw-home {
	--mwh-ink: #141416;
	--mwh-muted: rgba(20, 20, 22, 0.55);
	--mwh-border: rgba(20, 20, 22, 0.12);
	--mwh-strip: #f1f2f4;
	--mwh-sans: 'Inter', system-ui, -apple-system, sans-serif;
	--mwh-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	background: #fff;
	color: var(--mwh-ink);
	font-family: var(--mwh-sans);
	-webkit-font-smoothing: antialiased;
}
.mw-home * { box-sizing: border-box; }

/* Hero - full-bleed; the slider component owns its own height/layout. */
.mw-home__hero { width: 100%; }

/* Section shell - centered content column with generous breathing room. */
.mw-home__sec { max-width: 1632px; margin: 0 auto; padding: 84px 56px; }

.mw-home__head { margin-bottom: 38px; }
.mw-home__eyebrow {
	display: block; margin-bottom: 12px;
	font-family: var(--mwh-mono); font-size: 11px; font-weight: 600;
	letter-spacing: 2.2px; text-transform: uppercase; color: var(--mwh-muted);
}
.mw-home__eyebrow--center { text-align: center; }
.mw-home__title {
	margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 700;
	letter-spacing: -0.8px; line-height: 1.05;
}

/* ---------------- Categories (branded "featured front" tiles - name baked in) ---------------- */
.mw-cat-grid {
	display: grid; gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mw-cat-card {
	display: block; text-decoration: none; color: inherit;
}
.mw-cat-card__img {
	display: block; aspect-ratio: 4 / 5;
	/* contain (not cover) so the baked-in category-name strip never gets cropped */
	background-size: contain; background-repeat: no-repeat; background-position: center;
	background-color: #fff;
}

/* ---------------- Featured (reuses category .mwc-card grid) ---------------- */
.mw-home__featured-wrap { background: transparent !important; }
/* The category cards already carry their own styling; just ensure 4-up here and
   a sensible step-down on narrower widths. */
.mw-home__featured .mwc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tighten the gap from the categories above, and render the heading in the
   small mono "accordion" style (the Hand-picked eyebrow was removed). */
.mw-home__featured { padding-top: 14px; }
.mw-home__featured .mw-home__head { margin-bottom: 24px; }
.mw-home__featured .mw-home__title {
	font-family: var(--mwh-mono);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ---------------- Reviews (plugin renders .mwa-kr) ---------------- */
.mw-home__reviews { padding-top: 24px; padding-bottom: 24px; }
/* Reviews are self-evidently reviews — drop the plugin's "Field Reports"
   heading (and its bullet) on the home page. */
.mw-home__reviews .mwa-kr__heading { display: none; }

/* ---------------- Mission ---------------- */
.mw-home__mission { text-align: center; max-width: 1000px; padding-top: 64px; padding-bottom: 110px; }
.mw-home__mission-text {
	margin: 0 auto; max-width: 880px;
	font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.45;
	letter-spacing: -0.4px; color: var(--mwh-ink); text-wrap: balance;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
	.mw-home__sec { padding: 64px 32px; }
	.mw-home__featured .mwc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.mw-home__sec { padding: 48px 20px; }
	.mw-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.mw-home__featured .mwc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mw-home__mission { padding-bottom: 72px; }
}
