/*
 * Moorman's Wildlife Management & Pest Control: page layout.
 * Pairs with mw-design.css (tokens, colours, type, components). Load it after mw-design.css.
 * Mobile first: the base rules are for 320px and up; columns open at 48rem (768px) and 68.75rem (1100px).
 * Markup it lays out (page bodies are plain HTML, no page builder):
 *   <section class="mw-sec [tone] [mw-narrow] [mw-split ...]"><div class="mw-sec__in [mw-cols mw-cols--N]">...</div></section>
 * No inline styles anywhere. No word is ever broken mid-word: hyphens are off and overflow-wrap is only
 * switched on for e-mail addresses and bare web addresses.
 */

/* ---------- Section container ---------- */
.mw-sec__in {
	max-width: var(--mw-max);
	margin-left: auto;
	margin-right: auto;
	padding: 0 var(--mw-gut);
	box-sizing: border-box;
	min-width: 0;
}
.mw-sec__in > * { min-width: 0; }
.mw-narrow > .mw-sec__in { max-width: 46rem; }
.mw-sec img { max-width: 100%; height: auto; }

/* Vertical rhythm inside a band: one gap between neighbours, set here and nowhere else */
.mw-sec > .mw-sec__in > * + *,
.mw-sec .mw-col > * + * { margin-top: 1rem; }
.mw-sec > .mw-sec__in > :is(h1, h2, h3, h4, h5, h6) + *,
.mw-sec .mw-col > :is(h1, h2, h3, h4, h5, h6) + * { margin-top: 0; }
.mw-sec > .mw-sec__in > .mw-eyebrow + *,
.mw-sec .mw-col > .mw-eyebrow + *,
.mw-sec > .mw-sec__in > .mw-crumbs + *,
.mw-sec .mw-col > .mw-crumbs + * { margin-top: 0; }
.mw-sec > .mw-sec__in > .mw-actions,
.mw-sec .mw-col > .mw-actions,
.mw-sec > .mw-sec__in > .mw-cta,
.mw-sec .mw-col > .mw-cta { margin-top: 1.5rem; }
.mw-sec > .mw-sec__in > .mw-subhead,
.mw-sec .mw-col > .mw-subhead { margin-top: 1.75rem; }
.mw-sec > .mw-sec__in.mw-cols > .mw-col { margin-top: 0; }

/* ---------- Columns ---------- */
.mw-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.75rem;
	align-items: start;
}
.mw-col { min-width: 0; }
.mw-split > .mw-sec__in { align-items: center; }
.mw-split--top > .mw-sec__in { align-items: start; }

/* A card is a column with a frame: project cards, fact boxes */
.mw-card {
	box-sizing: border-box;
	background: var(--mw-white);
	border: 1px solid var(--mw-line);
	border-radius: var(--mw-r);
	padding: 1.1rem;
}
.mw-card--fill { background: var(--mw-card); border-color: var(--mw-card); }
.mw-card .mw-fig img { border-radius: 4px; }
.mw-sec .mw-card h2,
.mw-sec .mw-card h3,
.mw-card__t { font-family: var(--mw-serif); font-size: 1.1875rem; line-height: 1.3; margin: 0 0 .5rem; }
.mw-card__t a { color: var(--mw-ink); }
.mw-card__d { margin: 0; font-size: 1rem; line-height: 1.55; }
.mw-card .mw-prose p,
.mw-card .mw-prose li { font-size: 1rem; line-height: 1.55; }

/* ---------- Figures and images ---------- */
.mw-fig { margin: 0; }
.mw-fig img { display: block; width: 100%; height: auto; border-radius: var(--mw-r); background: var(--mw-card); }
.mw-fig figcaption { font-size: .875rem; line-height: 1.45; color: var(--mw-label); margin: .5rem 0 0; text-align: left; }
.mw-sec--dark .mw-fig figcaption { color: #DEDEDE; }
.mw-fig + .mw-fig { margin-top: 1rem; }

/* ---------- Text helpers ---------- */
.mw-center { text-align: center; }
.mw-sec .mw-prose.mw-center { text-align: center; }
.mw-sec .mw-prose.mw-center ul,
.mw-sec .mw-prose.mw-center ol { text-align: left; display: inline-block; }
.mw-sec .mw-muted,
.mw-sec .mw-muted p,
.mw-sec .mw-muted li { color: var(--mw-label); }
.mw-sec--dark .mw-muted,
.mw-sec--dark .mw-muted p,
.mw-sec--dark .mw-muted li { color: #DEDEDE; }

/* E-mail addresses and bare web addresses are the only things allowed to wrap anywhere */
.mw-sec a[href^="mailto:"],
.mw-foot a[href^="mailto:"],
.mw-url { overflow-wrap: anywhere; }

/* ---------- Buttons placed on their own ---------- */
.mw-cta { margin: 0; }
.mw-cta.mw-center { text-align: center; }
.mw-sec .mw-cta .mw-btn { max-width: 100%; }
.mw-map { margin: 0; }

/* ---------- Contact band and form card ---------- */
.mw-sec .mw-formcard {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}
.mw-formcard > h2,
.mw-formcard > h3 { margin-bottom: .75rem; }
.mw-hero--home .mw-formcard { margin-top: .5rem; }

/* ---------- Site chrome the theme prints around the body (kept here so one file owns widths) ---------- */
.mw-hdr__in {
	max-width: 80rem;
	margin: 0 auto;
	padding: .5rem var(--mw-gut);
	box-sizing: border-box;
}

/* ---------- 480px and up ---------- */
@media (min-width: 30rem) {
	.mw-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 768px and up ---------- */
@media (min-width: 48rem) {
	.mw-cols { gap: 2.5rem; }
	.mw-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mw-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
	.mw-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
	.mw-split > .mw-cols--2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
	.mw-split--even > .mw-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mw-card { padding: 1.25rem; }
}

/* ---------- Print ---------- */
@media print {
	.mw-cols { display: block; }
	.mw-col + .mw-col { margin-top: 1rem; }
}

/* Links inside the trust strip take the strip's own text colour */
.mw-trust a { color: inherit; text-underline-offset: .18em; }
