/* Homepage. This file loads on every page, so every rule is scoped to .mp-home. */

/* Hero */
.mp-home .mp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; padding: 64px 0 48px; }
.mp-home .mp-hero__copy { min-width: 0; }
.mp-home .mp-hero h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 4.2vw, 3.25rem); letter-spacing: -.01em; text-wrap: balance; }
.mp-home .mp-hero__lead { margin: 0; }
.mp-home .mp-hero__art { aspect-ratio: 3 / 2; border-radius: var(--mp-radius); background: var(--mp-peach); }
.mp-home .mp-hero__art::before { display: none; }

.mp-home .mp-btn--primary { background: var(--mp-primary-dark); box-shadow: none; }
.mp-home .mp-btn--primary:hover { background: #8a3905; transform: none; }

.mp-home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 36px 0 0; padding: 20px 0 0; border-top: 1px solid var(--mp-border); color: var(--mp-muted); font-size: .85rem; line-height: 1.35; list-style: none; }
.mp-home-facts strong { display: block; margin-bottom: 2px; color: var(--mp-ink); font-size: .95rem; font-weight: 800; }
.mp-home-facts a { color: var(--mp-primary-dark); }

/* Category shortcuts */
.mp-home-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mp-home-cat { display: block; padding: 20px; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: var(--mp-card); color: var(--mp-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mp-home-cat:hover { border-color: var(--mp-orange); box-shadow: var(--mp-shadow); }
.mp-home-cat__name { display: block; margin-bottom: 4px; font: 600 1.15rem/1.25 var(--mp-display); }
.mp-home-cat__text { display: block; color: var(--mp-muted); font-size: .88rem; line-height: 1.4; }

/* Product groups */
.mp-home .mp-section__head { margin-bottom: 16px; }
.mp-home .mp-section__head > p { margin: 0 0 4px; color: var(--mp-muted); }
.mp-home .mp-group { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--mp-border); scroll-margin-top: 16px; }
.mp-home .mp-group h3 { margin-bottom: 20px; }
.mp-home .mp-group__count { margin-left: 4px; white-space: nowrap; }

/* A six-column grid, so that a shorter last row fills the width instead of leaving a gap. */
.mp-home .mp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mp-home .mp-card { grid-column: span 2; }
.mp-home .mp-grid--rest-2 .mp-card:nth-last-child(-n+2),
.mp-home .mp-grid--rest-1 .mp-card:nth-last-child(-n+4) { grid-column: span 3; }
.mp-home .mp-grid--rest-1 .mp-card:only-child { grid-column: 1 / -1; }

.mp-home .mp-card:hover { transform: none; }
.mp-home .mp-card__image { aspect-ratio: auto; background-image: none; }
.mp-home .mp-card__image img { height: auto; aspect-ratio: 16 / 10; }
.mp-home .mp-card__format { color: var(--mp-primary-dark); }
.mp-home .mp-card__text { font-size: .94rem; line-height: 1.5; }
.mp-home .woocommerce a.button { background: var(--mp-primary-dark); }
.mp-home .woocommerce a.button:hover { background: #8a3905; }

/* How it works */
.mp-home .mp-section--tint { padding: 56px 0; }
.mp-home .mp-section--tint .mp-section__head { margin-bottom: 28px; }
.mp-home .mp-step__num { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 14px; border-radius: 50%; background: var(--mp-card); color: var(--mp-primary-dark); font: 600 1.05rem/1 var(--mp-display); }
.mp-home .mp-step h3 { font-size: 1.25rem; }

/* FAQ */
.mp-home-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.mp-home-faq__list { min-width: 0; border-top: 1px solid var(--mp-border); }
.mp-home-faq__item { border-bottom: 1px solid var(--mp-border); }
.mp-home-faq__item summary { position: relative; padding: 16px 36px 16px 0; font-weight: 800; line-height: 1.35; list-style: none; cursor: pointer; }
.mp-home-faq__item summary::-webkit-details-marker { display: none; }
.mp-home-faq__item summary::after { content: "+"; position: absolute; top: 12px; right: 4px; color: var(--mp-primary-dark); font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
.mp-home-faq__item[open] summary::after { content: "\2212"; }
.mp-home-faq__item summary:hover { color: var(--mp-primary-dark); }
.mp-home-faq__item summary:focus-visible { outline: 2px solid var(--mp-primary-dark); outline-offset: 2px; }
.mp-home-faq__item p { max-width: 42rem; margin: 0; padding: 0 36px 18px 0; color: var(--mp-muted); }
.mp-home-faq__item a, .mp-home-seller a { color: var(--mp-primary-dark); }
.mp-home-seller { margin: 20px 0 0; color: var(--mp-muted); font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
	.mp-home-cat { transition: none; }
}

@media (max-width: 900px) {
	.mp-home .mp-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 32px; }
	.mp-home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mp-home .mp-card,
	.mp-home .mp-grid--rest-2 .mp-card:nth-last-child(-n+2),
	.mp-home .mp-grid--rest-1 .mp-card:nth-last-child(-n+4) { grid-column: span 3; }
	.mp-home .mp-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
	.mp-home .mp-card:last-child:nth-child(odd) .mp-card__image { flex: 0 0 50%; }
	.mp-home-faq { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 620px) {
	.mp-home .mp-section { padding: 48px 0; }
	.mp-home .mp-grid { grid-template-columns: minmax(0, 1fr); }
	.mp-home .mp-card,
	.mp-home .mp-grid--rest-2 .mp-card:nth-last-child(-n+2),
	.mp-home .mp-grid--rest-1 .mp-card:nth-last-child(-n+4),
	.mp-home .mp-card:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; align-items: stretch; }
	.mp-home .mp-card:last-child:nth-child(odd) .mp-card__image { flex: none; }
	.mp-home .mp-cta .mp-btn { flex: 1 1 100%; text-align: center; }
	.mp-home-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.mp-home-cats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.mp-home-cat { padding: 14px 16px; }
}
