/* Mother's Country Store: home page styles (child theme assets/home.css).
   Enqueued only on the front page. Tokens come from assets/tokens.css.
   Values follow DESIGN-BRIEF.md sections 4 (type), 5 (spacing), 6 (components), 8a (home). */

/* Layout primitives. Shoptimizer's header opens a .col-full wrapper (max-width 1170px, side
   padding) around the page content; on the front page it is neutralised so sections run full bleed. */
body.home .site-content > .shoptimizer-archive > .col-full,
body.home .site-content > .col-full,
body.home .content-area { max-width: none; width: 100%; padding: 0; margin: 0; float: none; }
body.home .site-content { overflow-x: clip; }
.mcs-section { width: 100%; padding: 96px 0; }
.mcs-section--compact { padding: 48px 0; }
.mcs-section--hero { padding: 112px 0; }
.mcs-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mcs-bg-flour { background: #F7F3E8; }
.mcs-bg-pantry { background: #FFFCF5; }
.mcs-bg-ledger { background: #EFE8D9; }
.mcs-bg-navy { background: #1D3A4D; color: #FFFCF5; }
.mcs-bg-navy h2, .mcs-bg-navy h3, .mcs-bg-navy p, .mcs-home .mcs-bg-navy .mcs-h2, .mcs-home .mcs-bg-navy .mcs-h3, .mcs-home .mcs-bg-navy p { color: #FFFCF5; }

/* Type */
.mcs-home .mcs-eyebrow { font: 700 12px/1.3 "Source Sans 3", "Segoe UI", Arial, sans-serif; letter-spacing: 0.10em; text-transform: uppercase; color: #7A5200; margin: 0 0 16px; }
.mcs-home .mcs-h1 { font: 600 64px/1.05 "Bitter", Georgia, serif; letter-spacing: -0.03em; color: #1D3A4D; max-width: 14ch; margin: 0 0 16px; text-wrap: balance; }
.mcs-home .mcs-h2 { font: 600 44px/1.12 "Bitter", Georgia, serif; letter-spacing: -0.02em; color: #1D3A4D; max-width: 20ch; margin: 0 0 16px; text-wrap: balance; }
.mcs-home .mcs-h3 { font: 600 30px/1.2 "Bitter", Georgia, serif; letter-spacing: -0.01em; color: #1D3A4D; margin: 0 0 12px; }
.mcs-home .mcs-h4 { font: 600 22px/1.28 "Bitter", Georgia, serif; color: #1D3A4D; margin: 0 0 8px; }
.mcs-home .mcs-lead { font-size: 20px; line-height: 1.5; max-width: 55ch; margin: 0 0 32px; color: #1D3A4D; }
.mcs-home .mcs-intro { font-size: 20px; line-height: 1.5; max-width: 55ch; margin: 0; color: #4F5E67; }
.mcs-home .mcs-section p:not([class]) { font-size: 17px; line-height: 1.62; max-width: 68ch; margin: 0 0 16px; }
.mcs-home .mcs-section p.mcs-section__foot { max-width: none; }
.mcs-home .mcs-small { font-size: 14px; line-height: 1.5; letter-spacing: 0.01em; color: #4F5E67; }
.mcs-section__head { margin-bottom: 32px; }
.mcs-section__foot { margin: 32px 0 0; text-align: center; }
.mcs-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons and links (brief 6.1) */
.mcs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; border-radius: 4px; font: 700 16px/1 "Source Sans 3", "Segoe UI", Arial, sans-serif; letter-spacing: 0.01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.mcs-btn--primary { background: #1D3A4D; color: #FFFCF5; border-color: #1D3A4D; }
.mcs-btn--primary:hover { background: #122B3A; color: #FFFCF5; }
.mcs-btn--secondary { background: #DFA71D; color: #1D3A4D; border-color: #DFA71D; }
.mcs-btn--secondary:hover { background: #E8B329; color: #1D3A4D; }
.mcs-btn--ghost { background: transparent; color: #1D3A4D; border-color: #1D3A4D; }
.mcs-btn--ghost:hover { background: #EFE8D9; color: #1D3A4D; }
.mcs-btn:focus-visible { outline: 3px solid #7A5200; outline-offset: 3px; }
.mcs-bg-navy .mcs-btn:focus-visible { outline-color: #FFFCF5; }
.mcs-textlink { display: inline-block; padding: 10px 0; color: #1D3A4D; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mcs-textlink:hover { text-decoration-thickness: 2px; color: #1D3A4D; }
.mcs-textlink:focus-visible { outline: 2px solid #7A5200; outline-offset: 2px; }

/* Hero (8a): 44/56, 64px gap */
.mcs-hero { display: grid; grid-template-columns: 44fr 56fr; gap: 64px; align-items: center; min-height: 480px; }
.mcs-hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.mcs-ratio-4x3, .mcs-ratio-3x2 { position: relative; overflow: hidden; border-radius: 8px; background: #FFFFFF; }
.mcs-ratio-4x3 { aspect-ratio: 4 / 3; }
.mcs-ratio-3x2 { aspect-ratio: 3 / 2; }
.mcs-ratio-4x3 img, .mcs-ratio-3x2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.mcs-ratio-4x3 img.mcs-photo, .mcs-ratio-3x2 img.mcs-photo { object-fit: cover; padding: 0; }
.mcs-ph { position: absolute; inset: 0; background: #EFE8D9; display: flex; align-items: center; justify-content: center; font: 700 12px/1.3 "Source Sans 3", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #818F96; border: 1px dashed #D8D1C3; border-radius: 8px; }
.mcs-ph--dark { background: #122B3A; border-color: #4F5E67; color: #818F96; }

/* Trust strip */
.mcs-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mcs-trust li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 2px solid #DFA71D; }
.mcs-trust strong { font: 700 16px/1.3 "Source Sans 3", sans-serif; color: #1D3A4D; }
.mcs-trust span { font-size: 15px; line-height: 1.45; color: #4F5E67; }

/* Shop by stage */
.mcs-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mcs-stage { display: flex; flex-direction: column; gap: 8px; padding: 32px 24px; background: #F7F3E8; border: 1px solid #D8D1C3; border-radius: 8px; text-decoration: none; color: #1D3A4D; min-height: 260px; transition: border-color .15s; }
.mcs-stage:hover { border-color: #818F96; }
.mcs-stage:focus-visible { outline: 3px solid #7A5200; outline-offset: 2px; }
.mcs-stage__icon { width: 24px; height: 24px; color: #7A5200; margin-bottom: 8px; }
.mcs-stage__icon svg { width: 24px; height: 24px; }
.mcs-stage__title { font: 600 18px/1.25 "Bitter", Georgia, serif; }
.mcs-stage__text { font-size: 15px; line-height: 1.5; color: #4F5E67; flex: 1; }

/* Grids */
.mcs-grid { display: grid; gap: 24px; }
.mcs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mcs-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Product card (brief 6.2) */
.mcs-card { display: flex; flex-direction: column; background: #FFFCF5; border: 1px solid #D8D1C3; border-radius: 8px; overflow: hidden; transition: border-color .15s; }
.mcs-card:hover { border-color: #818F96; }
.mcs-card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: #FFFCF5; overflow: hidden; }
.mcs-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .2s; }
.mcs-card:hover .mcs-card__media img { transform: scale(1.02); }
.mcs-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px; gap: 6px; }
.mcs-card__title { font: 600 18px/1.25 "Bitter", Georgia, serif; margin: 0; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcs-card__title a { color: #1D3A4D; text-decoration: none; }
.mcs-card__descriptor { font-size: 14px; line-height: 1.45; color: #4F5E67; margin: 0; }
.mcs-card__price { font: 700 18px/1.15 "Source Sans 3", sans-serif; color: #1D3A4D; margin: 4px 0 12px; }
.mcs-card__price ins { color: #7A5200; text-decoration: none; }
.mcs-card__price del { color: #818F96; font-weight: 400; margin-right: 6px; }
.mcs-card__cta { margin-top: auto; width: 100%; min-height: 44px; }
.mcs-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 9px; border-radius: 4px; font: 700 12px/1 "Source Sans 3", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.mcs-badge--sale { background: #7A5200; color: #FFFCF5; }
.mcs-badge--free { background: #DFA71D; color: #1D3A4D; }

/* Split sections (archive, story) */
.mcs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mcs-split--media-first { grid-template-columns: 52fr 48fr; }
.mcs-rule-gold { width: 64px; height: 2px; border: 0; background: #DFA71D; margin: 24px 0; }
.mcs-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; margin: 0 0 32px; padding: 0; }
.mcs-facts div { display: flex; flex-direction: column; gap: 2px; }
.mcs-facts dt { font: 700 22px/1.15 "Source Sans 3", sans-serif; font-variant-numeric: tabular-nums; color: #DFA71D; }
.mcs-facts dd { margin: 0; font-size: 14px; line-height: 1.4; letter-spacing: 0.01em; color: #FFFCF5; opacity: .9; }
.mcs-facts--light { margin-top: 24px; }
.mcs-facts--light dt { color: #7A5200; }
.mcs-facts--light dd { color: #4F5E67; opacity: 1; }

/* Steps */
.mcs-steps { list-style: none; margin: 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.mcs-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 47px; height: 2px; background: #D8D1C3; }
.mcs-steps li { position: relative; padding-top: 48px; }
.mcs-steps__n { position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 999px; background: #DFA71D; color: #1D3A4D; display: inline-flex; align-items: center; justify-content: center; font: 700 14px/1 "Source Sans 3", sans-serif; }
.mcs-steps li p { font-size: 16px; color: #4F5E67; }

/* Reviews */
.mcs-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mcs-review { margin: 0; padding: 32px; background: #FFFCF5; border: 1px solid #D8D1C3; border-radius: 8px; }
.mcs-review--featured { grid-row: span 2; }
.mcs-review p { font-size: 18px; line-height: 1.55; }
.mcs-review--featured p { font-size: 22px; font-family: "Bitter", Georgia, serif; font-weight: 400; }
.mcs-review footer { font-size: 14px; color: #4F5E67; }

/* Outcome and learn cards */
.mcs-outcome, .mcs-learn { display: flex; flex-direction: column; gap: 8px; padding: 32px; background: #FFFCF5; border: 1px solid #D8D1C3; border-radius: 8px; }
.mcs-learn { padding: 0; gap: 0; }
.mcs-learn .mcs-ratio-3x2 { border-radius: 8px 8px 0 0; }
.mcs-learn__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px 24px 24px; }
.mcs-outcome p, .mcs-learn p { margin: 0; }
.mcs-outcome .mcs-textlink, .mcs-learn .mcs-textlink { margin-top: auto; align-self: flex-start; }
.mcs-learn .mcs-textlink { margin-top: 8px; }

/* Newsletter */
.mcs-news { text-align: center; }
.mcs-home .mcs-news .mcs-h2 { margin: 0 auto 12px; }
.mcs-home .mcs-news p:not([class]) { margin: 0 auto 24px; }
.mcs-news__form { display: flex; gap: 12px; justify-content: center; max-width: 560px; margin: 0 auto; flex-wrap: wrap; }
.mcs-news__form input[type="email"] { flex: 1 1 300px; min-height: 48px; padding: 12px 16px; border: 1px solid #818F96; border-radius: 4px; font: 400 16px/1.4 "Source Sans 3", sans-serif; color: #1D3A4D; background: #FFFCF5; }
.mcs-news__form input:focus-visible { outline: 3px solid #FFFCF5; outline-offset: 2px; }
.mcs-news__msg { flex-basis: 100%; font-size: 14px; margin: 0; min-height: 1em; }

/* Tablet */
@media (max-width: 1024px) {
	.mcs-section { padding: 72px 0; }
	.mcs-section--hero { padding: 80px 0; }
	.mcs-section--compact { padding: 40px 0; }
	.mcs-grid--4, .mcs-stages { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.mcs-hero, .mcs-split, .mcs-split--media-first { gap: 40px; }
	.mcs-home .mcs-h1 { font-size: 52px; }
	.mcs-home .mcs-h2 { font-size: 38px; }
}

/* Phone (390 test width) */
@media (max-width: 767px) {
	.mcs-section { padding: 56px 0; }
	.mcs-section--hero { padding: 24px 0 64px; }
	.mcs-section--compact { padding: 32px 0; }
	.mcs-container { padding: 0 20px; }
	.mcs-home .mcs-h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; max-width: 12ch; }
	.mcs-home .mcs-h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; max-width: 16ch; }
	.mcs-home .mcs-h3 { font-size: 24px; line-height: 1.22; }
	.mcs-home .mcs-h4 { font-size: 20px; }
	.mcs-home .mcs-lead, .mcs-home .mcs-intro { font-size: 18px; }
	.mcs-home .mcs-section p:not([class]) { font-size: 16px; line-height: 1.6; }
	.mcs-hero { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
	.mcs-hero__media { order: -1; }
	.mcs-hero__actions { flex-direction: column; align-items: stretch; gap: 8px; }
	.mcs-hero .mcs-btn { width: 100%; min-height: 52px; padding: 16px 20px; }
	.mcs-hero .mcs-textlink { text-align: center; }
	.mcs-trust { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
	.mcs-trust span { font-size: 14px; }
	.mcs-stages { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.mcs-stage { padding: 20px 16px; min-height: 0; }
	.mcs-grid { gap: 12px; }
	.mcs-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.mcs-grid--3 { grid-template-columns: 1fr; }
	.mcs-card__body { padding: 12px; }
	.mcs-card__title { font-size: 17px; }
	.mcs-card__price { font-size: 17px; }
	.mcs-card__cta { min-height: 48px; padding: 12px 8px; }
	.mcs-badge { top: 8px; left: 8px; padding: 5px 8px; font-size: 11px; }
	.mcs-split, .mcs-split--media-first { grid-template-columns: 1fr; gap: 24px; }
	.mcs-split__media { order: -1; }
	.mcs-ratio-3x2 { aspect-ratio: 4 / 3; }
	.mcs-facts { grid-template-columns: 1fr; gap: 12px; }
	.mcs-steps { grid-template-columns: 1fr; gap: 24px; padding: 0 0 0 24px; border-left: 2px solid #D8D1C3; }
	.mcs-steps::before { display: none; }
	.mcs-steps li { padding-top: 0; padding-left: 44px; }
	.mcs-proof { grid-template-columns: 1fr; }
	.mcs-review--featured { grid-row: auto; }
	.mcs-outcome, .mcs-review { padding: 24px 20px; }
	.mcs-learn__body { padding: 16px 20px 20px; }
	.mcs-news__form { flex-direction: column; }
	.mcs-news__form .mcs-btn { width: 100%; min-height: 52px; }
	.mcs-section__foot .mcs-btn { width: 100%; }
	.mcs-btn { min-height: 52px; }
}
