/* John Morley Footer: two call-to-action panels, link columns, the name set
   full width (footer.js fits it to the container) and the legal row */
.jm.footer { padding: 72px 0 28px; background: var(--white); color: var(--slate); }
.jm .ftr { display: block; margin: 0; padding: 0; background: none; }

/* call-to-action panels */
.jm .ftr__cta { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 16px; }
.jm .ftr__panel { display: grid; align-content: start; justify-items: start; gap: 12px; min-height: 220px; padding: 32px; border-radius: var(--r); background: var(--lime); color: var(--slate); text-decoration: none; }
.jm .ftr__panel strong { font: 800 40px/.95 var(--font-display); text-transform: uppercase; }
.jm .ftr__panel span { max-width: 44ch; color: var(--slate-2); }
.jm .ftr__panel .btn { margin-top: auto; }
.jm .ftr__panel--dark { background: var(--slate); color: #fff; transition: background-color .2s; }
.jm .ftr__panel--dark span { color: rgba(255, 255, 255, .85); }
.jm .ftr__panel--dark em { margin-top: auto; font: 900 44px/1 var(--font-display); font-style: normal; color: var(--clay); }
.jm a.ftr__panel--dark:hover { background: #000; color: #fff; }

/* link columns */
.jm .ftr__cols { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 32px; padding: 64px 0 48px; }
.jm .ftr__h { margin: 0 0 12px; font: 800 22px/1 var(--font-display); text-transform: uppercase; color: var(--lead); }
.jm .ftr__cols ul { margin: 0; padding: 0; list-style: none; }
.jm .ftr__cols li a { display: inline-block; padding: 5px 0; }
.jm .ftr__cols a { color: var(--slate); text-decoration: none; }
.jm .ftr__cols a:hover { color: var(--clay-ink); }
.jm .ftr__cols address, .jm .ftr__cols p { margin: 0 0 12px; font-style: normal; }
.jm .ftr__mail { overflow-wrap: anywhere; }

/* the name, full width */
/* the .82 line box ends at the cap tops: pad it so round letters (O, S, &) aren't clipped, margins keep the spacing */
.jm .ftr__word { margin: -.06em 0; padding: .06em 0; overflow: hidden; font: 900 clamp(48px, 11.6vw, 182px)/.82 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; color: var(--slate); white-space: nowrap; user-select: none; }
.jm .ftr__word i { font-style: normal; color: var(--clay); }
.jm .ftr__word span { display: inline-block; }
/* the logo, small, above the legal row */
.jm .ftr__word--svg { margin: 8px 0 0; padding: 0; overflow: visible; font-size: 0; line-height: 0; }
.jm .ftr__word--svg .lgo { display: block; width: auto; max-width: 100%; height: 48px; fill: none; stroke: none; }

/* legal row, credit in the same muted link style */
.jm .ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.jm .ftr__legal p { margin: 0; }
.jm .ftr__legal ul { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.jm .ftr__legal a { color: var(--mute); text-decoration: none; }
.jm .ftr__legal a:hover { color: var(--slate); }
/* designer credit: "Designed by" and the Sky Web Design logo in a bordered badge */
.jm .ftr__legal ul { align-items: center; }
.jm .ftr__legal a.ftr__credit--logo { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1.5px solid var(--slate); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--slate); transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.jm .ftr__legal a.ftr__credit--logo img { display: block; width: auto; height: 20px; }
.jm .ftr__legal a.ftr__credit--logo:hover { border-color: var(--clay); background: var(--clay-soft); color: var(--slate); transform: translateY(-1px); }
.jm .ftr__legal a.ftr__credit--logo:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

@media (max-width: 1024px) {
	.jm .ftr__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.jm .ftr__cta { grid-template-columns: 1fr; }
	.jm .ftr__panel { min-height: 0; padding: 24px; }
	.jm .ftr__legal ul { gap: 0 20px; }
	/* finger-sized legal links */
	.jm .ftr__legal li > a:not(.ftr__credit--logo) { display: inline-flex; align-items: center; min-height: 44px; }
	.jm .ftr__legal a.ftr__credit--logo { min-height: 44px; }
}
@media (max-width: 768px) {
	/* Sky360's WhatsApp button (fixed, bottom-left) would sit on the legal row at the very end of the page */
	body:has(.sky-whatsapp-widget) .jm .ftr__legal { padding-bottom: 92px; }
}
