/* Landing pages (templates/page-landing.html, <main class="mevo-landing">): X-Factor, Labor Saver.
   Values from the previous landing pages (old theme main.css / media.css, measured on the old render at 1440 / 768 / 390).
   Every selector is scoped under .mevo-landing. The brand-hero rules of style.css are scoped to brand/product pages, so the
   ones this template needs are declared again here (values copied from style.css; brand-hero.php and style.css unchanged). */

.mevo-landing { color: #25282a; font-size: 16px; line-height: 24px; }
.mevo-landing .wp-block-post-content > * { margin-block: 0; }
.mevo-landing .wp-block-post-content > .mevo-res-slider { margin-block: 48px; }   /* the old videos row's 3rem above and below */
.mevo-landing .mevo-landing-wrap { box-sizing: border-box; width: 100%; margin-inline: auto; padding-inline: 15px; }
@media (min-width: 576px) { .mevo-landing .mevo-landing-wrap { max-width: 540px; } }
@media (min-width: 768px) { .mevo-landing .mevo-landing-wrap { max-width: 720px; } }
@media (min-width: 992px) { .mevo-landing .mevo-landing-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .mevo-landing .mevo-landing-wrap { max-width: 1140px; } }
@media (min-width: 1400px) { .mevo-landing .mevo-landing-wrap { max-width: 1320px; } }

/* ---- Hero (pattern brand-hero): background photo, logo in the left third, visually hidden h1 ---- */
.mevo-landing .mevo-brand-hero { position: relative; overflow: hidden; background: #23262b; color: #fff; }
.mevo-landing .mevo-brand-hero__media { position: absolute; inset: 0; }
.mevo-landing .mevo-brand-hero__bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.mevo-landing .mevo-brand-hero__inner { position: relative; z-index: 1; padding-top: 16px; padding-bottom: 121px; }   /* old: 1rem + the three stacked columns' 35 px margins */
.mevo-landing .mevo-brand-hero__inner, .mevo-landing .mevo-brand-hero__inner > * { margin-block: 0; }
.mevo-landing .mevo-brand-hero__logo { display: block; width: 100%; max-width: 100%; height: auto; }
@media (min-width: 768px) {
	.mevo-landing .mevo-brand-hero__inner { padding-top: 128px; padding-bottom: 163px; }   /* old 8rem + the 35 px column margin */
	.mevo-landing .mevo-brand-hero__logo { width: calc((100% + 30px) / 3 - 30px); }        /* old 1/3 column */
}

/* ---- Headings with the blue bar (old atwm-heading-left/center-bottom-blue-bar) ---- */
.mevo-landing .wp-block-heading.mevo-landing-h2 { position: relative; margin: 16px 0 32px; padding: 0 0 24px; color: #25282a; font-size: 32px; font-weight: 900; line-height: 1.2; text-align: left; }
.mevo-landing .wp-block-heading.mevo-landing-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 80px; height: 6px; border-radius: 3px; background: #2573be; }
.mevo-landing .wp-block-heading.mevo-landing-h2c { position: relative; margin: 16px 0 24px; padding: 0 0 24px; color: #25282a; font-size: 48px; font-weight: 900; line-height: 1.2; text-align: center; }
.mevo-landing .wp-block-heading.mevo-landing-h2c::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 80px; height: 6px; margin-left: -40px; border-radius: 3px; background: #2573be; }
@media (max-width: 767px) {
	.mevo-landing .wp-block-heading.mevo-landing-h2 { margin-bottom: 25.6px; font-size: 25.6px; }
	.mevo-landing .wp-block-heading.mevo-landing-h2c { margin: 16px 0; font-size: 32px; }
}

/* ---- Intro (pattern landing-intro): text half + two-image composition ---- */
.mevo-landing .mevo-landing-intro { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 768px) { .mevo-landing .mevo-landing-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; } }   /* old row: two 50 % columns of the container (gutters inside the columns) */
.mevo-landing .mevo-landing-intro__text { padding: 35px 36px 0; }
@media (min-width: 768px) { .mevo-landing .mevo-landing-intro__text { padding: 0 48px; } }
@media (min-width: 1200px) { .mevo-landing .mevo-landing-intro__text { padding: 0 78px; } }
.mevo-landing .mevo-landing-intro__text p { margin: 0 0 35px; }
.mevo-landing .mevo-landing-intro__text p.mevo-landing-btns { margin: 0 0 35px; }
.mevo-landing .mevo-landing-btn { display: inline-block; padding: 14px 20px; border-radius: 5px; background: #2573be; color: #fff; font-size: 14px; font-weight: 400; line-height: 18px; text-decoration: none; }
.mevo-landing .mevo-landing-btn:hover, .mevo-landing .mevo-landing-btn:focus-visible { background: #1b5a94; color: #fff; }
.mevo-landing .mevo-landing-btn:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.mevo-landing .mevo-landing-intro__media { position: relative; margin: 35px 0 0; padding-right: 10%; }
@media (min-width: 768px) { .mevo-landing .mevo-landing-intro__media { margin-inline: 15px; } }
.mevo-landing .mevo-landing-intro__media::before { content: ""; display: block; padding-bottom: 95%; }
.mevo-landing .mevo-landing-intro__media .mevo-dots { display: block; top: -35px; right: 0; z-index: 0; }   /* shown at every width, as the old dots */
.mevo-landing .mevo-landing-intro__big { position: absolute; top: 9%; right: 14%; z-index: 1; display: block; width: 72%; max-width: none; height: auto; aspect-ratio: 4536 / 4322; object-fit: cover; border-top-left-radius: 10%; }
.mevo-landing .mevo-landing-intro__small { position: absolute; bottom: 0; left: 0; z-index: 2; display: block; width: 44%; max-width: none; height: auto; border-bottom-right-radius: 10%; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); }
@media (prefers-reduced-motion: no-preference) {
	.mevo-landing .mevo-landing-intro__small { transition: transform 0.5s; }
	.mevo-landing .mevo-landing-intro__media:hover .mevo-landing-intro__small { transform: scale(1.1); }
}

/* ---- Feature grid (pattern feature-grid; script assets/js/mevo-filter.js) ---- */
.mevo-landing .mevo-features { margin-bottom: 56px; }   /* old: 3rem under the grid + the cards' 8 px */
/* filter row = the old isotope header (owner review 2026-11-17): the old page text size per width - 16 px from 1200 and below 768,
   13 px at 992-1199, 14 px at 768-991 - line height 1.5, label bold caps 30 px before the buttons, buttons 10 px apart, no padding */
.mevo-landing .mevo-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 16px 0; font-size: 16px; line-height: 1.5; }
@media (min-width: 768px) and (max-width: 991px) { .mevo-landing .mevo-filter { font-size: 14px; } }
@media (min-width: 992px) and (max-width: 1199px) { .mevo-landing .mevo-filter { font-size: 13px; } }
.mevo-landing .mevo-filter[hidden] { display: none; }
.mevo-landing .mevo-filter__label { margin: 0 30px 0 0; font-weight: 700; text-transform: uppercase; }
.mevo-landing .mevo-filter__btn { min-height: 24px; margin: 0 10px; padding: 0; border: 0; background: none; color: #25282a; font: inherit; cursor: pointer; }   /* 24 px: target size */
.mevo-landing .mevo-filter__btn[aria-pressed="true"] { color: #1d76bc; font-weight: 700; }
.mevo-landing .mevo-filter__btn:hover { color: #1d76bc; }
.mevo-landing .mevo-filter__btn:focus-visible, .mevo-landing .mevo-filter__select:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.mevo-landing .mevo-filter__pick { display: none; margin: 0; }
.mevo-landing .mevo-filter__select { min-height: 38px; padding: 4px 8px; border: 1px solid #ced4da; border-radius: 4px; background: #fff; color: #25282a; font: inherit; }
@media (max-width: 767px) {
	.mevo-landing .mevo-filter__btns { display: none; }
	.mevo-landing .mevo-filter__pick { display: block; }
}
.mevo-landing .mevo-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 576px) { .mevo-landing .mevo-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mevo-landing .mevo-feature { display: flex; flex-direction: column; margin: 0; overflow: hidden; border-radius: 10px; background: rgba(0, 0, 0, 0.8); color: #fff; }
.mevo-landing .mevo-feature[hidden] { display: none; }
.mevo-landing .mevo-feature__img { position: relative; display: block; margin: 0; padding-bottom: 80%; background: #fff; }
.mevo-landing .mevo-feature__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mevo-landing .mevo-feature__text { flex: 1 1 auto; padding: 20px; }
.mevo-landing .mevo-feature__text .wp-block-heading { position: relative; margin: 0 0 17.6px; padding: 0 0 11.2px; color: #fff; font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.mevo-landing .mevo-feature__text .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 4px; border-radius: 3px; background: #2573be; }
.mevo-landing .mevo-feature__text p { margin: 0; color: #fff; font-size: 0.9rem; line-height: 1.5; }
/* Picture overlay (old .atwm-feature-item): from 1200 px the card is the picture only and the text panel slides up over it on hover or
   keyboard focus (the figure is focusable, named by the card h3): rgba(0,0,0,.8), 20 px, centred vertically, 0.4 s ease. Below 1200 the
   text stays under the picture: the old 3-up cards cut the text off there (6 of 39 at 1024, 37 at 768). Escape hides it (blocks.js). */
.mevo-landing .mevo-feature:has(.mevo-feature__img:focus-visible) { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.mevo-landing .mevo-feature__img:focus-visible { outline: none; }
@media (min-width: 1200px) {
	.mevo-landing .mevo-feature { position: relative; background: #fff; }
	.mevo-landing .mevo-feature__text { position: absolute; inset: 0; z-index: 1; margin: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-radius: 10px; background: rgba(0, 0, 0, 0.8); transform: translateY(100%); transition: transform 0.4s ease; }
	.mevo-landing .mevo-feature:hover .mevo-feature__text,
	.mevo-landing .mevo-feature:focus-within .mevo-feature__text { transform: translateY(0); }
	.mevo-landing .mevo-feature.is-dismissed .mevo-feature__text { transform: translateY(100%); }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) { .mevo-landing .mevo-feature__text { transition: none; } }

/* ---- Newsletter band (pattern home-newsletter): the old landing values ---- */
.mevo-landing .mevo-newsletter.mevo-newsletter { padding-top: 32px !important; padding-bottom: 48px !important; }
.mevo-landing .mevo-newsletter__h.mevo-newsletter__h { margin: 16px 0 28px; font-size: 1.75rem; line-height: 1.2; }
.mevo-landing .mevo-newsletter__form input,
.mevo-landing .mevo-newsletter__btn { min-height: 50px; font-size: 1rem; }
