/* EMS Metrology — one block of rules per section pattern, in page order. */

/* ---- slider: a scroll-snap track; works without JavaScript ------------- */
/* Space between slides: a page sets --ems-slider-gap (a length WITH a unit, e.g. 30px; default 0px) on the slider Group in its own CSS block. Never margins on the slides. */
.is-style-ems-slider { --ems-per: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--ems-slider-gap, 0px); }
/* The scrollbar goes whenever script runs, because script builds the buttons and dots that replace it. Without script it stays: it is how a mouse reaches the later slides. It is gated on the media query and not on the is-ready class view.js adds: that class arrives after the first paint, and with classic scrollbars the page would flash a scrollbar and then shift up. */
@media (scripting: enabled) {
	.is-style-ems-slider { scrollbar-width: none; }
	.is-style-ems-slider::-webkit-scrollbar { display: none; }
}
.is-style-ems-slider > * { flex: 0 0 calc((100% - (var(--ems-per) - 1) * var(--ems-slider-gap, 0px)) / var(--ems-per)); min-width: 0; scroll-snap-align: start; margin: 0; }
/* The block editor loads this stylesheet but not view.js: no scrolling strip there. Every slide, and the "+" that adds one, shows in rows. */
.editor-styles-wrapper .is-style-ems-slider { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; row-gap: 16px; }
.is-style-ems-slider.ems-per-2 { --ems-per: 2; }
.is-style-ems-slider.ems-per-3 { --ems-per: 3; }
.is-style-ems-slider.ems-per-4 { --ems-per: 4; }
.ems-slider__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; row-gap: 4px; margin-top: 24px; } /* wraps: a dozen dots must not push a phone sideways */
.ems-slider__controls[hidden], .ems-slider__dot[hidden] { display: none; }
.ems-slider__prev, .ems-slider__next, .ems-slider__pause { width: 45px; height: 45px; padding: 0; border: 0; background: #fff; box-shadow: 0 4px 16px rgba(12, 76, 147, .15); cursor: pointer; position: relative; }
.ems-slider__prev::before, .ems-slider__next::before, .ems-slider__pause::before { content: ""; position: absolute; inset: 13px; background: var(--ems-primary); -webkit-mask: url(../icons/arrow-left.svg) center / contain no-repeat; mask: url(../icons/arrow-left.svg) center / contain no-repeat; }
.ems-slider__next::before { -webkit-mask-image: url(../icons/arrow-right.svg); mask-image: url(../icons/arrow-right.svg); }
.ems-slider__pause { margin-left: auto; }
.ems-slider__pause::before { -webkit-mask-image: url(../icons/pause.svg); mask-image: url(../icons/pause.svg); }
.ems-slider__pause.is-paused::before { -webkit-mask-image: url(../icons/play.svg); mask-image: url(../icons/play.svg); }
/* The buttons carry a shadow of their own, which would replace the white band of the focus ring (base.css): keep both. */
.ems-slider__prev:focus-visible, .ems-slider__next:focus-visible, .ems-slider__pause:focus-visible { box-shadow: 0 0 0 2px #fff, 0 4px 16px rgba(12, 76, 147, .15); }
.ems-slider__prev:hover, .ems-slider__next:hover, .ems-slider__pause:hover { background: var(--ems-alert); }
.ems-slider__prev:hover::before, .ems-slider__next:hover::before, .ems-slider__pause:hover::before { background: #fff; }
/* A dot looks 10px but is a 24px target (WCAG 2.5.8); the 5px side margins keep the dots close together. */
.ems-slider__dot { position: relative; width: 24px; height: 24px; margin: 0 -5px; padding: 0; border: 0; background: none; cursor: pointer; }
.ems-slider__dot::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ems-border); }
.ems-slider__dot[aria-current="true"]::before { background: var(--ems-alert); }

/* ---- tabs -------------------------------------------------------------- */
.ems-tabs__nav { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0 0 32px; padding: 0; list-style: none; font: 800 18px/26px var(--ems-heading); border-bottom: 2px solid var(--ems-border); }
.ems-tabs__nav li { padding: 0 0 14px; margin-bottom: -2px; color: var(--ems-text-strong); border-bottom: 2px solid transparent; cursor: pointer; }
.ems-tabs__nav li[aria-selected="true"], .ems-tabs__nav li:hover { color: var(--ems-primary); border-bottom-color: var(--ems-alert); }
.ems-tabs__panel[hidden] { display: none !important; } /* a layout rule on a panel must not undo the attribute */
/* The block editor loads this stylesheet but not view.js, so it shows every panel at once, with nothing between them. Editor only: on the site one panel shows at a time. */
.editor-styles-wrapper .ems-tabs__panel ~ .ems-tabs__panel { margin-top: 48px; }

/* ---- counter and toggle ------------------------------------------------ */
.is-style-ems-counter { margin: 0; font: 800 34px/40px var(--ems-heading); color: var(--ems-primary); font-variant-numeric: tabular-nums; }
/* While a counter counts, view.js hides the moving digits from assistive technology and reads this copy of the final text instead (it exists only during the count). */
.ems-counter__final { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ems-toggle { border-bottom: 1px solid var(--ems-border); }
.ems-toggle summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 800 18px/26px var(--ems-heading); color: var(--ems-primary); cursor: pointer; list-style: none; }
.ems-toggle summary::-webkit-details-marker { display: none; }
.ems-toggle summary::after { content: ""; flex: none; width: 20px; height: 26px; background: var(--ems-alert); -webkit-mask: url(../icons/plus.svg) center / 20px no-repeat; mask: url(../icons/plus.svg) center / 20px no-repeat; }
.ems-toggle[open] summary::after { -webkit-mask-image: url(../icons/minus.svg); mask-image: url(../icons/minus.svg); }

/* ---- video pop-up ------------------------------------------------------ */
.ems-lightbox a { display: block; }
/* The frame is 16:9, so its width is also capped by the height left over (120px for the close button above it and the margins): a landscape phone shows the whole video. vh is the fallback for browsers without dvh. */
.ems-lightbox__dialog { width: min(960px, calc(100vw - 40px)); width: min(960px, calc(100vw - 40px), calc((100vh - 120px) * 16 / 9)); width: min(960px, calc(100vw - 40px), calc((100dvh - 120px) * 16 / 9)); padding: 0; border: 0; background: #000; overflow: visible; }
.ems-lightbox__dialog::backdrop { background: rgba(12, 28, 52, .85); }
.ems-lightbox__frame { aspect-ratio: 16 / 9; }
.ems-lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ems-lightbox__close { position: absolute; right: 0; top: -48px; width: 40px; height: 40px; border: 0; background: var(--ems-alert); cursor: pointer; }
.ems-lightbox__close::before { content: ""; position: absolute; inset: 10px; background: #fff; -webkit-mask: url(../icons/x.svg) center / contain no-repeat; mask: url(../icons/x.svg) center / contain no-repeat; }
html:has(.ems-lightbox__dialog[open]) { overflow: hidden; } /* the page behind a modal does not scroll */

/* ---- lists with the source's arrow marker ------------------------------ */
.ems-list { margin: 0 0 24px; padding: 0; list-style: none; }
.ems-list li { position: relative; padding: 5px 0 5px 28px; font-weight: 600; color: var(--ems-primary); }
.ems-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; background: var(--ems-primary); -webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat; mask: url(../icons/arrow-right.svg) center / contain no-repeat; }

/* ---- forms ------------------------------------------------------------- */
.ems-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ems-form__submit, .ems-form--contact .ems-form__field:has(textarea) { grid-column: 1 / -1; }
.ems-form input:not([type=submit]), .ems-form select, .ems-form textarea { width: 100%; min-height: 56px; padding: 14px 20px; font: 400 16px/26px var(--ems-body); color: var(--ems-text-strong); background: #fff; border: 1px solid var(--ems-border); border-radius: 0; }
.ems-form textarea { min-height: 150px; resize: vertical; }
/* view.js turns a date or time field into a native picker by blurring it and focusing it again; WebKit then does not match :focus-visible, so the field would show no ring. The same two-tone ring as base.css, asked for on :focus. */
.ems-form input.ems-date:focus, .ems-form input.ems-time:focus { outline: 2px solid var(--ems-primary); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.ems-form .wpcf7-not-valid-tip { font-size: 13px; color: var(--ems-alert); }
/* A send is in progress (view.js marks the submit button aria-disabled, not disabled, so it keeps focus and its name): it looks unavailable and does not react to the pointer. */
.ems-form button[aria-disabled="true"] { opacity: .6; cursor: progress; }
.ems-form button.ems-btn--solid[aria-disabled="true"]:hover { background: var(--ems-alert); border-color: var(--ems-alert); }
/* How many characters a message box has room for (view.js): empty and hidden until the box is used; the spoken twin is visually hidden. */
.ems-form__limit { margin: 6px 0 0; font: 400 13px/20px var(--ems-body); color: var(--ems-text); }
.ems-form__limit.is-full { font-weight: 600; color: var(--ems-primary); }
.ems-form__limit-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* The heading of a form card, the source's .tt-subtitle: Home's Request a Quote and Contact's Send Message. 29/35 over 1024px wide, 19/23 from there down (measured; the same on both pages). Two classes, so Home's heading, which is also an .ems-title, keeps this size. Not scoped to .ems-main, which the block editor's canvas does not have. */
.ems-home-quote .ems-quote__title, .ems-contact-main .ems-contact-main__card h3 { font: 800 29px/1.2 var(--ems-heading); }
@media (max-width: 1024.98px) {
	.ems-home-quote .ems-quote__title, .ems-contact-main .ems-contact-main__card h3 { font-size: 19px; }
}

/* ---- search and archive results (templates/search.html, archive.html, index.html) ---- */
.ems-results .wp-block-post-template { margin: 0 0 40px; padding: 0; list-style: none; }
.ems-results .wp-block-post { margin: 0 0 32px; }
.ems-results__title { margin: 0 0 8px; }
.ems-results__title a { text-decoration: none; }
.ems-results__title a:hover { color: var(--ems-alert); }
.ems-results__excerpt { margin: 0; }

/* ---- generic layout: prose --------------------------------------------- */
.ems-prose > * { max-width: 920px; }
.ems-prose > .wp-block-columns { max-width: none; gap: 60px; }
.ems-prose--split > .wp-block-columns { align-items: flex-start; }
.ems-prose .wp-block-table { margin: 0 0 24px; }
.ems-prose table { width: 100%; border-collapse: collapse; }
.ems-prose th, .ems-prose td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ems-border); }
.ems-prose th { font: 800 16px/24px var(--ems-heading); color: var(--ems-primary); background: var(--ems-surface); }
.ems-prose td:last-child, .ems-prose th:last-child { white-space: nowrap; font-weight: 700; color: var(--ems-primary); }
.ems-section--surface { background: var(--ems-surface); }

/* ---- generic layout: cards --------------------------------------------- */
.ems-cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.ems-card { padding: 32px 30px; background: #fff; border: 1px solid var(--ems-border); box-shadow: 0 6px 24px rgba(12, 76, 147, .06); }
.ems-card :where(h3, h4) { font-size: 20px; line-height: 26px; }
.ems-card p:last-child { margin-bottom: 0; }

@media (max-width: 1024.98px) {
	.is-style-ems-slider.ems-per-3, .is-style-ems-slider.ems-per-4 { --ems-per: 2; }
	.ems-cards__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
	.is-style-ems-slider.ems-per-2, .is-style-ems-slider.ems-per-3, .is-style-ems-slider.ems-per-4 { --ems-per: 1; }
	.ems-cards__grid, .ems-form { grid-template-columns: 1fr; }
	.ems-prose > .wp-block-columns { gap: 24px; }
}
/* Less motion: nothing glides or fades (base.css says so for every element; the slider also says it itself). */
@media (prefers-reduced-motion: reduce) {
	.is-style-ems-slider { scroll-behavior: auto; }
	.ems-slider__prev, .ems-slider__next, .ems-slider__pause, .ems-slider__dot::before { transition: none; }
}

/* ==== PAGE: home (Task 14). Only the Task 14 agent edits between these markers. ==== */
/* ---- home-banner ---- */
/* The section is the 1320px box: a teal shape cut on the slant behind, the photograph 40px inside it (26px from the top). */
.ems-home-banner.ems-section { padding: 26px var(--ems-gutter) 0; isolation: isolate; }
.ems-home-banner::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: var(--ems-gutter); right: var(--ems-gutter); background: var(--ems-teal); clip-path: polygon(0 0, 56% 0, 35% 100%, 0 100%); }
.ems-home-banner .ems-banner__track { margin: 0 40px; }
.ems-home-banner .ems-banner__slide { position: relative; display: flex; align-items: center; aspect-ratio: 1240 / 559; min-height: 440px; overflow: hidden; background: var(--ems-text-strong); color: #fff; }
.ems-home-banner .ems-banner__bg { position: absolute; inset: 0; margin: 0; }
.ems-home-banner .ems-banner__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A dark wash so white type reads on the pale part of the photograph. */
.ems-home-banner .ems-banner__slide::after { content: ""; position: absolute; inset: 0; background: rgba(8, 20, 38, .32); pointer-events: none; }
.ems-home-banner .ems-banner__holder { position: relative; z-index: 1; box-sizing: border-box; width: 100%; padding: 0 40px 24px; }
.ems-home-banner .ems-banner__slide--right .ems-banner__holder { padding-left: 48.4%; }
.ems-home-banner .ems-banner__slide--centre .ems-banner__holder { max-width: 863px; margin: 0 auto; text-align: center; }
.ems-home-banner .ems-banner__heading { position: relative; }
.ems-home-banner .ems-banner__slide--right .ems-banner__heading { max-width: 455px; padding-left: 50px; border-left: 2px solid var(--ems-teal); }
.ems-home-banner .ems-banner__title { margin: 0; font: 800 53px/67px var(--ems-heading); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.ems-home-banner .ems-banner__text { max-width: 405px; margin: 36px 0 0 50px; font: 400 16px/27px var(--ems-body); color: #fff; }
.ems-home-banner .ems-banner__slide--centre .ems-banner__heading::after { content: ""; display: block; width: 60px; height: 2px; margin: 24px auto 0; background: var(--ems-teal); }
.ems-home-banner .ems-banner__slide--centre .ems-banner__text { max-width: 490px; margin: 22px auto 0; }
/* The play button: a teal disc with two soft rings, to the left of the line. */
.ems-home-banner .ems-lightbox { position: absolute; top: calc(50% - 41px); left: -147px; width: 89px; height: 89px; margin: 0; }
.ems-home-banner .ems-lightbox a { display: flex; align-items: center; justify-content: center; width: 89px; height: 89px; border-radius: 50%; background: var(--ems-teal); box-shadow: 0 0 0 9px rgba(21, 145, 168, .28), 0 0 0 18px rgba(21, 145, 168, .12); transition: background .2s; }
.ems-home-banner .ems-lightbox a:hover { background: var(--ems-primary); }
.ems-home-banner .ems-lightbox img { width: 26px; height: 26px; margin-left: 3px; filter: invert(1); }
/* The slides' entrance is CSS only, so a visitor sees the first slide even before the script has run. */
@keyframes ems-banner-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.ems-home-banner .ems-banner__slide:first-child .ems-banner__holder { animation: ems-banner-in .8s cubic-bezier(.2, .7, .2, 1) .1s both; }
/* The arrows sit in a white panel on the photograph's bottom right corner; the dots would only repeat them. */
.ems-home-banner .ems-slider__controls { position: absolute; z-index: 2; right: calc(var(--ems-gutter) + 40px); bottom: 39px; gap: 10px; margin: 0; padding: 17px 20px; background: #fff; }
.ems-home-banner .ems-slider__dot { display: none; }
.ems-home-banner .ems-slider__prev, .ems-home-banner .ems-slider__next, .ems-home-banner .ems-slider__pause { box-shadow: none; }
.ems-home-banner .ems-slider__pause { margin-left: 0; }
@media (max-width: 1024.98px) {
	.ems-home-banner::before { clip-path: polygon(0 0, 50% 0, 34% 100%, 0 100%); }
	.ems-home-banner.ems-section { padding-top: 25px; }
	.ems-home-banner .ems-banner__track { margin: 0 15px; }
	.ems-home-banner .ems-banner__slide { aspect-ratio: auto; min-height: 330px; }
	.ems-home-banner .ems-banner__holder { padding-top: 24px; padding-bottom: 96px; }
	.ems-home-banner .ems-banner__title { font-size: 38px; line-height: 48px; }
	.ems-home-banner .ems-banner__slide--right .ems-banner__heading { max-width: 100%; padding-left: 30px; }
	.ems-home-banner .ems-banner__text { margin-left: 30px; font-size: 15px; line-height: 24px; }
	.ems-home-banner .ems-lightbox { left: -87px; width: 60px; height: 60px; top: calc(50% - 30px); }
	.ems-home-banner .ems-lightbox a { width: 60px; height: 60px; box-shadow: 0 0 0 6px rgba(21, 145, 168, .28), 0 0 0 12px rgba(21, 145, 168, .12); }
	.ems-home-banner .ems-lightbox img { width: 20px; height: 20px; }
	.ems-home-banner .ems-slider__controls { right: calc(var(--ems-gutter) + 15px); bottom: 15px; }
}
@media (max-width: 767.98px) {
	.ems-home-banner::before { clip-path: polygon(0 0, 62% 0, 60% 10px, 0 10px); }
	.ems-home-banner.ems-section { padding-top: 10px; }
	.ems-home-banner .ems-banner__track { margin: 0; }
	.ems-home-banner .ems-banner__slide { aspect-ratio: auto; min-height: 416px; align-items: flex-start; }
	.ems-home-banner .ems-banner__holder { padding: 30px 15px 84px; }
	.ems-home-banner .ems-banner__slide--right .ems-banner__holder { padding-left: 15px; }
	.ems-home-banner .ems-banner__slide--right .ems-banner__heading { padding-left: 0; border-left: 0; }
	.ems-home-banner .ems-banner__slide--centre .ems-banner__holder { max-width: none; margin: 0; text-align: left; }
	.ems-home-banner .ems-banner__slide--centre .ems-banner__heading::after { display: none; }
	.ems-home-banner .ems-banner__title { font-size: 34px; line-height: 46px; }
	.ems-home-banner .ems-banner__text, .ems-home-banner .ems-banner__slide--centre .ems-banner__text { max-width: none; margin: 18px 0 0; }
	.ems-home-banner .ems-lightbox { position: static; width: 70px; height: 70px; margin: 0 0 24px; }
	.ems-home-banner .ems-lightbox a { width: 70px; height: 70px; }
	.ems-home-banner .ems-slider__controls { right: 0; bottom: 0; gap: 8px; padding: 10px 14px; }
	.ems-home-banner .ems-slider__prev, .ems-home-banner .ems-slider__next, .ems-home-banner .ems-slider__pause { width: 40px; height: 40px; }
	.ems-home-banner .ems-slider__prev::before, .ems-home-banner .ems-slider__next::before, .ems-home-banner .ems-slider__pause::before { inset: 10px; }
}

/* ---- shared by the Home sections ---- */
/* The source keeps every section 60px in from the edge and its text 60px further in (20 and 20 on a phone). */
.ems-section.ems-home { padding: 90px calc(var(--ems-gutter) * 2); }
.ems-home .ems-title { margin: 0; }
.ems-home .wp-block-columns { margin: 0; }

/* Body words, the eyebrow, section titles and buttons take base.css's type scale; only what differs from it is sized below. */

/* ---- home-services-heading ---- */
.ems-home-services-heading.ems-section { padding-top: 129px; padding-bottom: 0; overflow: hidden; }
.ems-home .ems-hsh__cols { gap: 30px; align-items: flex-start; }
.ems-home .ems-hsh__cols > .ems-hsh__title { position: relative; flex: 0 0 calc(50% - 15px); }
.ems-home .ems-hsh__cols > .ems-hsh__note { flex: 0 0 calc(50% - 15px); padding: 55px 29px 0 0; }
.ems-hsh__note p { margin: 0; }
.ems-hsh__note p::after { content: ""; display: block; width: 50px; height: 2px; margin-top: 33px; background: var(--ems-teal); }
/* The big pale word behind the heading. */
.ems-home-services-heading .ems-hsh__ghost { position: absolute; z-index: -1; top: -66px; left: -122px; margin: 0; font: 800 200px/220px var(--ems-heading); letter-spacing: -4px; color: var(--ems-surface); white-space: nowrap; pointer-events: none; user-select: none; }
.ems-home-services-heading.ems-section { isolation: isolate; }
@media (max-width: 1024.98px) {
	.ems-home-services-heading.ems-section { padding-top: 100px; }
	.ems-home .ems-hsh__cols > .ems-hsh__title { flex-basis: calc(41.667% - 17.5px); }
	.ems-home .ems-hsh__cols > .ems-hsh__note { flex-basis: calc(50% - 15px); padding: 55px 0 0; }
	.ems-home-services-heading .ems-hsh__ghost { top: -66px; left: 0; font-size: 150px; line-height: 165px; letter-spacing: -3px; }
}
@media (max-width: 767.98px) {
	.ems-home-services-heading.ems-section { padding-top: 72px; padding-bottom: 22px; }
	.ems-home .ems-hsh__cols > .ems-hsh__title { flex-basis: 100%; }
	.ems-home .ems-hsh__cols > .ems-hsh__note { display: none; }
	.ems-home-services-heading .ems-hsh__ghost { top: -50px; font-size: 110px; line-height: 121px; letter-spacing: -2px; }
}

/* ---- home-services ---- */
/* Three cards. A small white panel sits over the photograph's lower left; on hover or focus a navy panel covers it with the description. */
.ems-icon--ruler { --ems-icon: url(../icons/ruler.svg); }
.ems-icon--gauge { --ems-icon: url(../icons/gauge.svg); }
.ems-icon--truck { --ems-icon: url(../icons/truck.svg); }
.ems-home-services.ems-section { padding: 65px calc(var(--ems-gutter) * 2 + 25px) 0; }
.ems-home-services .is-style-ems-slider { --ems-slider-gap: 60px; }
.ems-home-services .is-style-ems-slider.ems-per-3 { --ems-per: 3; }
.ems-svc-card { position: relative; display: grid; grid-template-columns: 100%; grid-template-rows: auto 50px; }
.ems-home-services .ems-svc-card__img { grid-area: 1 / 1; margin: 0; }
.ems-home-services .ems-svc-card__img img { display: block; width: 100%; height: 100%; aspect-ratio: 570 / 532; object-fit: cover; }
/* The drop: a navy shape with a white icon in it. */
.ems-home-services .ems-svc-card__drop { position: relative; width: 64px; height: 85px; margin: 0; }
.ems-svc-card__drop::after { content: ""; position: absolute; inset: 0; background: var(--ems-primary); -webkit-mask: url(../img/drop.svg) center / contain no-repeat; mask: url(../img/drop.svg) center / contain no-repeat; }
.ems-svc-card__drop.ems-icon::before { position: absolute; z-index: 1; left: 15px; top: 35px; width: 34px; height: 34px; margin: 0; background: #fff; }
.ems-home-services .ems-svc-card__small { grid-area: 1 / 1 / 3 / 2; align-self: end; display: grid; grid-template-columns: 1fr auto; align-content: start; width: calc(100% - 34px); margin-bottom: 30px; padding: 0 0 9px 17px; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
.ems-home-services .ems-svc-card__small .ems-svc-card__drop { grid-area: 1 / 1; margin-top: -14px; }
.ems-home-services .ems-svc-card__plus { grid-area: 1 / 2; margin: 4px 22px 0 0; font: 700 20px/20px var(--ems-body); color: var(--ems-primary); }
.ems-home-services .ems-svc-card__small .ems-svc-card__title { grid-area: 2 / 1 / 3 / 3; margin: 14px 20px 0 0; font: 800 23px/27.6px var(--ems-heading); color: var(--ems-primary); }
.ems-home-services .ems-svc-card__small .ems-svc-card__sub { grid-area: 3 / 1 / 4 / 3; margin: 0; font: 400 16px/16px var(--ems-body); color: var(--ems-teal); }
/* The whole card is the link: the title's link stretches over it. */
.ems-svc-card__title a { color: inherit; }
.ems-svc-card__title a::after { content: ""; position: absolute; z-index: 2; inset: 0; }
.ems-svc-card:has(a:focus-visible) { outline: 2px solid var(--ems-primary); outline-offset: 4px; }
.ems-home-services .ems-svc-card__large { position: absolute; z-index: 1; inset: 0 0 30px; box-sizing: border-box; padding: 105px 24px 0 44px; overflow: hidden; background: var(--ems-primary); color: #fff; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.ems-svc-card:hover .ems-svc-card__large, .ems-svc-card:focus-within .ems-svc-card__large { opacity: 1; visibility: visible; transition: opacity .3s; }
.ems-home-services .ems-svc-card__large .ems-svc-card__drop { position: absolute; left: 27px; top: 12px; }
.ems-svc-card__large .ems-svc-card__drop::after { background: var(--ems-teal); }
.ems-home-services .ems-svc-card__large .ems-svc-card__title { margin: 0; font: 800 23px/27.6px var(--ems-heading); color: #fff; }
.ems-home-services .ems-svc-card__large .ems-svc-card__sub { margin: 0; font: 400 16px/16px var(--ems-body); color: var(--ems-accent-pale); }
.ems-home-services .ems-svc-card__text { max-width: 235px; margin: 14px 0 0; font: 400 15px/24px var(--ems-body); color: #fff; }
/* The source never shows the equipment list (it is hidden in its stylesheet), so it is hidden here, on the site and in the block editor alike. The 15 lines stay in the page and in the expected text until Donovan decides to show them or drop them (go-live item C8). */
.ems-home-services .ems-svc-card__list { display: none; }
.ems-home-services .ems-svc-card__go { position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; margin: 0; background: #fff; }
.ems-svc-card__go.ems-icon::before { position: absolute; inset: 0; width: 20px; height: 20px; margin: auto; background: var(--ems-primary); }
@media (max-width: 1279.98px) {
	.ems-home-services .is-style-ems-slider { --ems-slider-gap: 30px; }
	.ems-home-services .ems-svc-card__text { font-size: 14px; line-height: 21px; }
}
@media (max-width: 1024.98px) {
	.ems-home-services .ems-svc-card__large { display: none; }
	.ems-home-services .ems-svc-card__small { width: calc(100% - 14px); padding-left: 12px; }
	.ems-home-services .ems-svc-card__small .ems-svc-card__drop { width: 52px; height: 67px; margin-top: -12px; }
	.ems-home-services .ems-svc-card__small .ems-svc-card__drop.ems-icon::before { left: 12px; top: 27px; width: 28px; height: 28px; }
	.ems-home-services .ems-svc-card__plus { margin-right: 14px; }
	.ems-home-services.ems-section { padding: 65px calc(var(--ems-gutter) * 2) 30px; }
	.ems-home-services .ems-svc-card__small .ems-svc-card__title { margin-top: 8px; font-size: 18px; line-height: 23px; }
}
@media (max-width: 767.98px) {
	.ems-home-services .is-style-ems-slider.ems-per-3 { --ems-per: 1; }
	.ems-home-services.ems-section { padding: 40px calc(var(--ems-gutter) * 2) 20px; }
}

/* ---- home-about-company ---- */
.ems-icon--badge-check { --ems-icon: url(../icons/badge-check.svg); }
.ems-icon--file-check { --ems-icon: url(../icons/file-check.svg); }
.ems-home-about-company.ems-section { padding: 99px calc(var(--ems-gutter) * 2) 8px calc(var(--ems-gutter) - 13px); }
.ems-home .ems-about__cols { justify-content: space-between; align-items: flex-start; gap: 0; }
.ems-home .ems-about__cols > .ems-about__media, .ems-home .ems-about__cols > .ems-about__text { flex: 0 0 46%; min-width: 0; }
.ems-about__media { position: relative; padding-top: 3px; }
.ems-home-about-company .ems-about__photo { max-width: 565px; margin: 0; }
.ems-home-about-company .ems-about__photo img { display: block; width: 100%; height: auto; }
/* The navy badge with its dotted texture, over the photograph's top left corner. */
.ems-home-about-company .ems-badge { position: absolute; z-index: 1; left: -11px; top: 44px; box-sizing: border-box; width: 134px; min-height: 171px; padding: 22px 12px 20px; text-align: center; color: #fff; background: var(--ems-primary) url(../img/badge-bg.png) center / cover no-repeat; }
.ems-home-about-company .ems-badge p { margin: 0; }
.ems-home-about-company .ems-badge__icon { width: 41px; height: 41px; margin: 0 auto 3px; }
.ems-badge__icon.ems-icon::before { display: block; width: 41px; height: 41px; margin: 0; background: #fff; }
.ems-home-about-company .ems-badge__value { font: 700 36px/36px var(--ems-body); margin-top: 5px; }
.ems-home-about-company .ems-badge__value sub { font-size: 16px; line-height: 1; vertical-align: baseline; margin-left: 2px; }
.ems-home-about-company .ems-badge__label { font: 400 16px/21px var(--ems-body); }
.ems-home-about-company .ems-about__lead { margin: 33px 0 0; }
.ems-home-about-company .ems-list { margin: 33px 0 0; }
.ems-home .ems-list li { padding: 5px 0 5px 26px; font-weight: 500; }
.ems-home .ems-list li:first-child { padding-top: 0; }
.ems-home .ems-list li::before { top: 9px; width: 14px; height: 14px; }
.ems-home .ems-list li:first-child::before { top: 4px; }
/* Two figures side by side, a hairline between them. Two equal columns, as the source's pair of col-6 boxes: the second label's offset
   (the icon's room) shrinks with the row's width, so "Certificates Issued" keeps its two-line label (87 to 134px in the source)
   at every width. The row is a size container so the offsets follow the row, not the window; the plain px lines are the fallback. */
.ems-home .ems-stats { gap: 0; margin: 21px 0 0; container-type: inline-size; }
.ems-home .ems-stats > .ems-stat { position: relative; flex: 1 1 50%; min-width: 0; min-height: 102px; padding: 17px 15px 0 81px; }
.ems-home .ems-stats > .ems-stat:first-child { padding-right: 0; }
.ems-home .ems-stats > .ems-stat + .ems-stat { margin-left: 0; padding-left: 92px; padding-left: clamp(81px, calc(50cqw - 109px), 111px); border-left: 1px solid var(--ems-border); }
/* A pale drop behind a teal icon. */
.ems-stat::after { content: ""; position: absolute; left: 11px; top: 0; width: 64px; height: 85px; background: var(--ems-surface); -webkit-mask: url(../img/drop.svg) center / contain no-repeat; mask: url(../img/drop.svg) center / contain no-repeat; }
.ems-stats > .ems-stat + .ems-stat::after { left: 22px; left: clamp(11px, calc(50cqw - 179px), 41px); }
.ems-stat.ems-icon::before { position: absolute; z-index: 1; left: 0; top: 24px; width: 46px; height: 46px; margin: 0; color: var(--ems-teal); }
.ems-stats > .ems-stat + .ems-stat.ems-icon::before { left: 11px; left: clamp(0px, calc(50cqw - 190px), 30px); }
.ems-home .ems-stat .is-style-ems-counter { margin: 0; font: 700 34px/34px var(--ems-body); color: var(--ems-primary); }
.ems-home .ems-stat .is-style-ems-counter sub { font-size: 16px; line-height: 1; vertical-align: baseline; margin-left: 2px; }
.ems-home .ems-stat__label { margin: 1px 0 0; }
@media (max-width: 1024.98px) {
	.ems-home-about-company.ems-section { padding: 40px calc(var(--ems-gutter) * 2) 0; }
	.ems-home .ems-about__cols { gap: 30px; }
	.ems-home .ems-about__cols > .ems-about__media, .ems-home .ems-about__cols > .ems-about__text { flex: 1 1 0; }
	.ems-about__media { padding-top: 4px; }
	.ems-home-about-company .ems-badge { left: 0; top: 0; width: 93px; min-height: 116px; padding: 14px 8px 10px; }
	.ems-home-about-company .ems-badge__icon { width: 28px; height: 28px; margin-bottom: 0; }
	.ems-badge__icon.ems-icon::before { width: 28px; height: 28px; }
	.ems-home-about-company .ems-badge__value { font-size: 26px; line-height: 28px; margin-top: 4px; }
	.ems-home-about-company .ems-badge__value sub { font-size: 12px; }
	.ems-home-about-company .ems-badge__label { font-size: 13px; line-height: 16px; }
	.ems-home .ems-stats { flex-direction: column; }
	.ems-home .ems-stats > .ems-stat, .ems-home .ems-stats > .ems-stat:first-child, .ems-home .ems-stats > .ems-stat + .ems-stat { flex: none; width: auto; min-height: 96px; padding: 14px 0 0 76px; border-left: 0; }
	.ems-home .ems-stats > .ems-stat + .ems-stat { border-top: 1px solid var(--ems-border); margin-top: 8px; padding-top: 22px; }
	.ems-stat::after, .ems-stats > .ems-stat + .ems-stat::after { left: 8px; top: 8px; width: 52px; height: 70px; }
	.ems-stats > .ems-stat + .ems-stat::after { top: 16px; }
	.ems-stat.ems-icon::before, .ems-stats > .ems-stat + .ems-stat.ems-icon::before { left: 0; top: 24px; width: 38px; height: 38px; }
	.ems-stats > .ems-stat + .ems-stat.ems-icon::before { top: 32px; }
	.ems-home .ems-stat .is-style-ems-counter { font-size: 28px; line-height: 30px; }
}
@media (max-width: 767.98px) {
	.ems-home-about-company.ems-section { padding-top: 50px; padding-bottom: 30px; }
	.ems-home .ems-about__cols { flex-direction: column; gap: 30px; }
	.ems-home .ems-stats { flex-direction: row; }
	.ems-home .ems-stats > .ems-stat, .ems-home .ems-stats > .ems-stat:first-child { flex: 1 1 0; min-height: 0; padding: 86px 0 0 0; }
	.ems-home .ems-stats > .ems-stat + .ems-stat { flex: 1 1 0; margin-top: 0; padding: 86px 0 0 24px; border-top: 0; border-left: 1px solid var(--ems-border); }
	.ems-stat::after, .ems-stats > .ems-stat + .ems-stat::after { top: 0; left: 8px; }
	.ems-stats > .ems-stat + .ems-stat::after { left: 32px; }
	.ems-stat.ems-icon::before, .ems-stats > .ems-stat + .ems-stat.ems-icon::before { top: 16px; left: 0; }
	.ems-stats > .ems-stat + .ems-stat.ems-icon::before { left: 24px; }
	.ems-home .ems-about__cols > .ems-about__media, .ems-home .ems-about__cols > .ems-about__text { flex: none; width: 100%; }
}

/* ---- home-service-banner ---- */
/* A band 60px in from each edge: photograph behind, a teal disc with an icon, a white heading. The tab row below overlaps its foot. */
.ems-icon--wrench { --ems-icon: url(../icons/wrench.svg); }
.ems-home-service-banner.ems-section { padding: 133px var(--ems-gutter) 0; }
.ems-sband { position: relative; isolation: isolate; box-sizing: border-box; padding: 118px 15px 165px; overflow: hidden; text-align: center; color: #fff; background: var(--ems-primary); }
.ems-sband .ems-sband__bg { position: absolute; z-index: -1; inset: 0; margin: 0; }
.ems-sband .ems-sband__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ems-sband .ems-sband__icon { display: flex; align-items: center; justify-content: center; width: 99px; height: 99px; margin: 0 auto; border-radius: 50%; background: var(--ems-teal); }
.ems-sband__icon.ems-icon::before { display: block; width: 39px; height: 39px; margin: 0; background: #fff; }
.ems-sband .ems-sband__title { margin: 29px 0 0; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .2); }
.ems-sband .ems-sband__text { margin: 26px 0 0; color: #fff; }
@media (max-width: 1024.98px) {
	.ems-home-service-banner.ems-section { padding-top: 64px; }
	.ems-sband { padding: 60px 15px 94px; }
	.ems-sband .ems-sband__icon { width: 79px; height: 79px; }
	.ems-sband__icon.ems-icon::before { width: 32px; height: 32px; }
	.ems-sband .ems-sband__title { margin-top: 20px; }
	.ems-sband .ems-sband__text { margin-top: 24px; }
}
@media (max-width: 767.98px) {
	.ems-home-service-banner.ems-section { padding-top: 43px; }
	.ems-sband { padding: 50px 10px 220px; }
	.ems-sband .ems-sband__icon { width: 69px; height: 69px; }
	.ems-sband__icon.ems-icon::before { width: 28px; height: 28px; }
	.ems-sband .ems-sband__title { margin-top: 22px; }
	.ems-sband__title br { display: none; }
	.ems-sband .ems-sband__text { margin-top: 20px; }
}

/* ---- home-service-tabs ---- */
/* Three tab buttons that overlap the band above by 50px, then one panel at a time. */
.ems-icon--microscope { --ems-icon: url(../icons/microscope.svg); }
.ems-icon--hard-hat { --ems-icon: url(../icons/hard-hat.svg); }
.ems-icon--flag { --ems-icon: url(../icons/flag.svg); }
.ems-icon--users { --ems-icon: url(../icons/users.svg); }
.ems-icon--handshake { --ems-icon: url(../icons/handshake.svg); }
.ems-icon--file-badge { --ems-icon: url(../icons/file-badge.svg); }
.ems-icon--award { --ems-icon: url(../icons/award.svg); }
.ems-home-service-tabs.ems-section { position: relative; z-index: 2; margin-top: -50px; padding: 0 calc(var(--ems-gutter) * 2); }
.ems-home-service-tabs .ems-tabs__nav { display: flex; flex-wrap: nowrap; gap: 14px; margin: 0; padding: 0; border: 0; list-style: none; }
.ems-home-service-tabs .ems-tabs__nav li { position: relative; display: flex; flex: 1 1 0; align-items: center; box-sizing: border-box; min-width: 0; height: 100px; margin: 0; padding: 10px 64px; font: 800 20px/24px var(--ems-heading); color: var(--ems-primary); background: #fff; border: 0; box-shadow: 0 10px 30px rgba(26, 54, 85, .15); cursor: pointer; transition: background .2s, color .2s; }
.ems-home-service-tabs .ems-tabs__nav li::after { content: "+"; content: "+" / ""; position: absolute; left: 9px; top: 4px; font: 700 20px/28px var(--ems-body); }
.ems-home-service-tabs .ems-tabs__nav li:hover { color: var(--ems-alert); background: #fff; }
.ems-home-service-tabs .ems-tabs__nav li[aria-selected="true"] { color: #fff; background: var(--ems-primary); box-shadow: none; }
.ems-home-service-tabs .ems-tabs__nav li:focus-visible { outline-offset: -6px; }
.ems-home-service-tabs .ems-tabs__nav li[aria-selected="true"]:focus-visible { outline-color: #fff; box-shadow: none; }
.ems-hst__panel { padding-top: 125px; }
.ems-home .ems-hst__cols { gap: 30px; align-items: flex-start; }
.ems-home .ems-hst__cols > .ems-hst__text, .ems-home .ems-hst__cols > .ems-hst__media { flex: 1 1 0; min-width: 0; }
.ems-hst__media { padding-top: 19px; }
.ems-hst .ems-hst__photo { margin: 0; }
.ems-hst .ems-hst__photo img { display: block; width: 100%; height: auto; }
.ems-hst .ems-hst__lead { margin: 33px 0 0; }
.ems-hst .ems-list { margin: 33px 0 0; }
.ems-hst .ems-list--info { margin-top: 33px; }
.ems-hst .ems-list--info li { padding: 3px 0 3px 26px; font-weight: 400; color: var(--ems-text); }
.ems-hst .ems-list--info li:first-child { padding-top: 0; }
.ems-hst .ems-list--info li:first-child::before { top: 5px; }
.ems-hst .ems-list--info li::before { top: 8px; }
.ems-hst .ems-list--info strong { font-weight: 700; color: var(--ems-primary); }
/* Icon, heading and words in a row of three. */
.ems-home .ems-hst__feats { gap: 30px; margin-top: 55px; }
.ems-home .ems-hst__feats > .ems-feat { position: relative; flex: 1 1 0; min-width: 0; padding-left: 94px; }
.ems-feat.ems-icon::before { position: absolute; left: 4px; top: 0; width: 56px; height: 56px; margin: 0; color: var(--ems-teal); }
.ems-hst .ems-feat__title { margin: 0; padding: 0 0 12px; font: 800 20px/26px var(--ems-heading); }
.ems-hst .ems-feat p { margin: 0; }
.ems-home .ems-hst__feats--plain > .ems-feat { padding-left: 0; }
.ems-hst__feats--plain .ems-list { margin-top: 0; }
/* Why choose us: the words, a signature, and four pale cards in two staggered columns. */
.ems-hst .ems-hst__sign { display: flex; align-items: center; margin-top: 30px; }
.ems-hst .ems-hst__signature { flex: none; margin: 0; }
.ems-hst .ems-hst__signature img { display: block; width: 239px; height: 70px; max-width: none; }
.ems-hst .ems-hst__role { margin: 0; padding-left: 22px; font: 400 13px/15.6px var(--ems-body); }
.ems-home .ems-hst__cards { gap: 30px; margin: 0; }
.ems-home .ems-hst__cards > .ems-hst__cardcol { flex: 1 1 0; min-width: 0; }
.ems-home .ems-hst__cards > .ems-hst__cardcol:nth-child(2) { padding-top: 30px; }
.ems-hst .ems-card2 { position: relative; padding: 37px 35px 30px; background: var(--ems-surface); }
.ems-hst .ems-hst__cardcol > .ems-card2 + .ems-card2 { margin-top: 30px; }
.ems-card2::after { content: ""; position: absolute; left: 35px; top: 37px; width: 64px; height: 83px; background: #fff; -webkit-mask: url(../img/drop.svg) center / contain no-repeat; mask: url(../img/drop.svg) center / contain no-repeat; }
.ems-card2.ems-icon::before { position: absolute; z-index: 1; left: 43px; top: 53px; width: 48px; height: 48px; margin: 0; color: var(--ems-teal); }
.ems-hst .ems-card2__title { margin: 90px 0 0; padding: 0 0 8px; font: 800 20px/26px var(--ems-heading); }
.ems-hst .ems-card2 p { margin: 0; }
@media (max-width: 1024.98px) {
	.ems-home-service-tabs.ems-section { margin-top: -37px; }
	.ems-home-service-tabs .ems-tabs__nav li { height: 74px; padding: 10px 10px 10px 30px; font-size: 16px; line-height: 20px; }
	.ems-hst__panel { padding-top: 71px; }
	.ems-home .ems-hst__feats { flex-direction: column; gap: 30px; margin-top: 40px; }
	.ems-home .ems-hst__feats > .ems-feat { flex: none; }
	.ems-hst__media { padding-top: 12px; }
	.ems-home .ems-hst__cols--why { flex-direction: column; }
	.ems-home .ems-hst__cols--why > .ems-hst__media { padding-top: 40px; width: 100%; flex: none; }
}
@media (max-width: 767.98px) {
	.ems-home-service-tabs.ems-section { margin-top: -169px; }
	.ems-home-service-tabs .ems-tabs__nav { flex-direction: column; gap: 10px; }
	.ems-home-service-tabs .ems-tabs__nav li { flex: none; height: 60px; font-size: 18px; line-height: 22px; }
	.ems-hst__panel { padding-top: 60px; }
	.ems-home .ems-hst__cols { flex-direction: column; }
	.ems-home .ems-hst__cols > .ems-hst__text, .ems-home .ems-hst__cols > .ems-hst__media { flex: none; width: 100%; }
	.ems-hst__media { padding-top: 30px; }
	.ems-home .ems-hst__cols--why > .ems-hst__media { padding-top: 40px; }
	.ems-home .ems-hst__cards { flex-direction: column; gap: 30px; }
	.ems-home .ems-hst__cards > .ems-hst__cardcol:nth-child(2) { padding-top: 0; }
	.ems-hst .ems-card2 { padding: 20px 20px 24px; }
	.ems-card2::after { left: 20px; top: 20px; }
	.ems-card2.ems-icon::before { left: 28px; top: 36px; }
	.ems-hst .ems-card2__title { margin-top: 90px; }
	.ems-home .ems-hst__feats { margin-top: 36px; }
}

/* ---- home-additional-services ---- */
/* A photograph at the left with a navy block under it, and a white panel laid over it holding the heading and a three-up slider. */
.ems-icon--thermometer { --ems-icon: url(../icons/thermometer.svg); }
.ems-icon--zap { --ems-icon: url(../icons/zap.svg); }
.ems-icon--circle-gauge { --ems-icon: url(../icons/circle-gauge.svg); }
.ems-home-additional-services.ems-section { padding: 120px var(--ems-gutter) 50px; }
.ems-add { position: relative; padding-top: 100px; }
.ems-home-additional-services .ems-add__bg { position: absolute; z-index: 0; top: 0; left: 0; width: 83.94%; margin: 0; aspect-ratio: 1108 / 676; }
.ems-home-additional-services .ems-add__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ems-add__bg::after { content: ""; position: absolute; top: 100%; left: 0; width: 33.84%; height: 124px; background: var(--ems-primary); }
.ems-home-additional-services .ems-add__panel { position: relative; z-index: 1; margin-left: 28.41%; padding: 92px 30px 0 100px; background: #fff; }
.ems-home .ems-add__head { align-items: center; gap: 0; }
.ems-home .ems-add__head > .ems-add__title { flex: 0 0 342px; box-sizing: border-box; padding: 0 25px 22px 0; }
.ems-home .ems-add__head > .ems-add__note { flex: 0 1 400px; padding-top: 9px; }
.ems-add__note p { margin: 0; }
.ems-home-additional-services .ems-add__track { --ems-slider-gap: 30px; margin-top: 5px; padding-top: 25px; }
.ems-add-card { position: relative; box-sizing: border-box; padding: 45px 20px 45px 45px; background: var(--ems-surface); }
.ems-add-card__drop { position: absolute; z-index: 1; top: -25px; left: 47px; width: 83px; height: 107px; margin: 0; }
.ems-add-card__drop::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ems-teal); -webkit-mask: url(../img/drop.svg) center / contain no-repeat; mask: url(../img/drop.svg) center / contain no-repeat; }
.ems-add-card__drop.ems-icon::before { position: absolute; left: 21px; top: 44px; width: 41px; height: 41px; margin: 0; background: #fff; }
.ems-home-additional-services .ems-add-card__title { margin: 66px 0 0; padding: 0 0 21px; font: 800 20px/26px var(--ems-heading); }
.ems-add-card p { margin: 0; }
.ems-home-additional-services .ems-add-card .ems-list { margin: 21px 0 0; }
.ems-add-card .wp-block-buttons { margin-top: 18px; }
.ems-add-card .ems-btn .wp-block-button__link { white-space: nowrap; }
/* The source shows only small square dots under the slider; the arrows stay out of the way. */
.ems-home-additional-services .ems-slider__controls { margin-top: 36px; gap: 0; }
.ems-home-additional-services .ems-slider__prev, .ems-home-additional-services .ems-slider__next { display: none; }
.ems-home-additional-services .ems-slider__dot { margin: 0; }
.ems-home-additional-services .ems-slider__dot::before { inset: 8.5px; border-radius: 0; background: var(--ems-primary); }
.ems-home-additional-services .ems-slider__dot[aria-current="true"]::before { inset: 2px; background: linear-gradient(var(--ems-primary), var(--ems-primary)) center / 7px 7px no-repeat, rgba(12, 76, 147, .12); }
/* As the source: three cards at every width from 768px up, one below. */
.ems-home-additional-services .is-style-ems-slider.ems-per-3 { --ems-per: 3; }
@media (max-width: 1279.98px) {
	.ems-home-additional-services .ems-add__panel { padding-left: 50px; }
	.ems-add-card { padding: 45px 20px 45px 30px; }
	.ems-add-card__drop { left: 32px; }
}
@media (max-width: 1024.98px) {
	.ems-home-additional-services.ems-section { padding: 65px var(--ems-gutter) 25px; }
	.ems-add { padding-top: 54px; }
	.ems-home-additional-services .ems-add__bg { width: 100%; height: 100%; aspect-ratio: auto; }
	.ems-add__bg::after { display: none; }
	.ems-home-additional-services .ems-add__panel { margin-left: 0; padding: 71px 15px 0; }
	.ems-home .ems-add__head > .ems-add__title { flex: 0 0 40%; }
	.ems-home .ems-add__head > .ems-add__note { flex: 1 1 0; }
	.ems-home-additional-services .ems-add__track { --ems-slider-gap: 30px; }
	.ems-add-card { padding: 30px 25px; }
	.ems-add-card__drop { left: 25px; width: 52px; height: 67px; top: -25px; }
	.ems-add-card__drop.ems-icon::before { left: 13px; top: 27px; width: 26px; height: 26px; }
	.ems-home-additional-services .ems-add-card__title { margin-top: 44px; padding-bottom: 14px; }
	.ems-add-card .ems-btn .wp-block-button__link { padding-left: 20px; padding-right: 20px; }
	.ems-home-additional-services .ems-slider__controls { margin-top: 22px; }
}
@media (max-width: 767.98px) {
	.ems-home-additional-services .is-style-ems-slider.ems-per-3 { --ems-per: 1; }
	.ems-home-additional-services.ems-section { padding-top: 0; }
	.ems-add { padding-top: 20px; }
	.ems-home-additional-services .ems-add__panel { margin-left: 15px; padding: 41px 15px 0 25px; }
	.ems-home .ems-add__head { flex-direction: column; align-items: stretch; }
	.ems-home .ems-add__head > .ems-add__title { flex: none; padding-bottom: 0; }
	.ems-home .ems-add__head > .ems-add__note { flex: none; padding: 20px 0 13px; }
	.ems-add-card { padding: 30px 25px; }
	.ems-add-card__drop { left: 25px; width: 52px; height: 67px; }
}

/* ---- home-work-plan ---- */
/* A big pale word behind a centred heading, then three steps, each a picture and a title. */
.ems-home-work-plan.ems-section { padding: 79px calc(var(--ems-gutter) * 2) 0; overflow: hidden; isolation: isolate; }
.ems-home-work-plan .ems-wp__ghost { position: absolute; z-index: -1; top: 13px; left: 0; right: 0; margin: 0; font: 800 200px/220px var(--ems-heading); letter-spacing: -4px; text-align: center; white-space: nowrap; color: var(--ems-surface); pointer-events: none; user-select: none; }
.ems-wp__head { max-width: 570px; margin: 0 auto; text-align: center; }
.ems-wp__head .is-style-ems-eyebrow { justify-content: center; }
.ems-home-work-plan .ems-wp__text { margin: 37px 0 0; padding-bottom: 9px; }
.ems-home .ems-wp__steps { gap: 30px; margin-top: 19px; }
.ems-home .ems-wp__steps > .ems-step { flex: 1 1 0; min-width: 0; text-align: center; }
.ems-wp__steps .ems-step__img { margin: 0; }
.ems-wp__steps .ems-step__img img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.ems-wp__steps .ems-step__title { margin: 37px 0 0; font: 800 20px/26px var(--ems-heading); }
@media (max-width: 1024.98px) {
	.ems-home-work-plan.ems-section { padding-top: 40px; }
	.ems-home-work-plan .ems-wp__ghost { top: 0; font-size: 150px; line-height: 165px; letter-spacing: -3px; }
	.ems-home-work-plan .ems-wp__text { margin-top: 24px; }
	.ems-home .ems-wp__steps { gap: 0; max-width: 558px; margin: 28px auto 0; }
	.ems-wp__steps .ems-step__img img { max-width: 156px; }
	.ems-wp__steps .ems-step__title { margin-top: 28px; }
}
@media (max-width: 767.98px) {
	.ems-home-work-plan.ems-section { padding-top: 16px; padding-bottom: 30px; }
	.ems-home-work-plan .ems-wp__ghost { text-align: left; left: 0; font-size: 110px; line-height: 121px; letter-spacing: -2px; }
	.ems-wp__head { margin: 0; text-align: left; max-width: none; }
	.ems-wp__head .is-style-ems-eyebrow { justify-content: flex-start; }
	.ems-home .ems-wp__steps { flex-direction: column; gap: 24px; max-width: none; margin: 24px 0 0; }
	.ems-home .ems-wp__steps > .ems-step { flex: none; }
	.ems-wp__steps .ems-step__img img { max-width: 143px; }
	.ems-wp__steps .ems-step__title { margin-top: 20px; font-size: 18px; line-height: 24px; }
}

/* ---- home-onsite ---- */
/* The same band as the service banner, taller at the foot: the quote card below is pulled up over it. */
.ems-icon--phone-call { --ems-icon: url(../icons/phone-call.svg); }
.ems-icon--user-star { --ems-icon: url(../icons/user-star.svg); }
.ems-home-onsite.ems-section { padding: 140px var(--ems-gutter) 0; }
.ems-sband.ems-onband { padding-bottom: 242px; }
@media (max-width: 1024.98px) {
	.ems-home-onsite.ems-section { padding-top: 63px; }
	.ems-sband.ems-onband { padding-bottom: 172px; }
}
@media (max-width: 767.98px) {
	.ems-home-onsite.ems-section { padding-top: 50px; }
	.ems-sband.ems-onband { padding-bottom: 189px; }
}

/* ---- home-quote ---- */
/* A white card laid over the foot of the band: the form on the left, a photograph with a count on the right. */
.ems-home-quote.ems-section { position: relative; z-index: 2; margin-top: -125px; padding: 0 calc(var(--ems-gutter) * 2); }
.ems-quote { position: relative; isolation: isolate; padding: 66px 70px; background: #fff; box-shadow: 0 10px 50px rgba(26, 54, 85, .12); }
.ems-quote::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 177px; background: url(../img/quote-map.png) left bottom / 100% auto no-repeat; pointer-events: none; }
.ems-home .ems-quote__cols { gap: 30px; align-items: flex-start; }
.ems-home .ems-quote__cols > .ems-quote__form { flex: 1 1 0; min-width: 0; align-self: flex-start; }
.ems-home .ems-quote__cols > .ems-quote__media { position: relative; flex: 0 0 384px; min-width: 0; align-self: flex-start; }
.ems-home-quote .ems-quote__title { margin: -7px 0 0; padding: 0 0 23px; }
.ems-quote__form .ems-form { gap: 31px 30px; margin: 16px 35px 0 0; }
.ems-quote__form .ems-form--quote .ems-form__field:nth-child(1), .ems-quote__form .ems-form--quote .ems-form__field:nth-child(4), .ems-quote__form .ems-form--quote .ems-form__field:nth-child(5) { grid-column: 1 / -1; }
.ems-quote__form .ems-form__field { position: relative; }
.ems-quote__form .ems-form p { margin: 0; }
.ems-quote__form .ems-form input:not([type=submit]), .ems-quote__form .ems-form select { box-sizing: border-box; width: 100%; min-height: 52px; padding: 10px 12px 10px 17px; font: 400 16px/normal var(--ems-body); color: var(--ems-text); background: var(--ems-surface); border: 1px solid var(--ems-surface); border-radius: 0; }
.ems-quote__form .ems-form input::placeholder { color: var(--ems-text); opacity: 1; }
.ems-quote__form .ems-form select { appearance: none; -webkit-appearance: none; padding-right: 30px; background: var(--ems-surface) linear-gradient(var(--ems-primary), var(--ems-primary)) no-repeat -100px -100px; }
.ems-quote__form .ems-form--quote .ems-form__field:nth-child(5)::after { content: ""; position: absolute; right: 16px; top: 24px; border: 4px solid transparent; border-top: 5px solid var(--ems-primary); pointer-events: none; }
/* Calendar and clock icons inside the date and time fields. */
.ems-quote__form .ems-form--quote .ems-form__field:nth-child(6) input, .ems-quote__form .ems-form--quote .ems-form__field:nth-child(7) input { padding-left: 50px; }
.ems-quote__form .ems-form--quote .ems-form__field:nth-child(6)::before, .ems-quote__form .ems-form--quote .ems-form__field:nth-child(7)::before { content: ""; position: absolute; z-index: 1; left: 19px; top: 17px; width: 19px; height: 19px; background: var(--ems-primary); -webkit-mask: url(../icons/calendar-clock.svg) center / contain no-repeat; mask: url(../icons/calendar-clock.svg) center / contain no-repeat; pointer-events: none; }
.ems-quote__form .ems-form--quote .ems-form__field:nth-child(7)::before { -webkit-mask-image: url(../icons/clock.svg); mask-image: url(../icons/clock.svg); }
.ems-quote__form .ems-form__submit { margin-top: -16px; }
.ems-home-quote .ems-quote__photo { margin: 0; }
.ems-home-quote .ems-quote__photo img { display: block; width: 384px; height: 466px; max-width: 100%; object-fit: cover; }
.ems-home-quote .ems-quote__badge { position: absolute; right: -20px; bottom: -20px; box-sizing: border-box; width: 154px; min-height: 151px; padding: 20px 10px 16px; text-align: center; color: #fff; background: var(--ems-primary); box-shadow: -15px -15px 0 #fff; }
.ems-quote__badge.ems-icon::before { display: block; width: 39px; height: 43px; margin: 0 auto 6px; background: #fff; }
.ems-home-quote .ems-quote__badge .is-style-ems-counter { margin: 0; font: 700 36px/36px var(--ems-body); color: #fff; }
.ems-home-quote .ems-quote__label { margin: 4px 0 0; font: 400 16px/21px var(--ems-body); color: #fff; }
@media (max-width: 1024.98px) {
	.ems-home-quote.ems-section { margin-top: -116px; }
	.ems-quote { padding: 38px 35px 47px; }
	.ems-quote::before { height: 269px; background-image: url(../img/quote-map-md.png); background-position: center bottom; }
	.ems-home .ems-quote__cols > .ems-quote__media { flex: 0 0 238px; }
	.ems-quote__form .ems-form { grid-template-columns: 1fr; gap: 26px; margin-right: 0; }
	.ems-quote__form .ems-form--quote .ems-form__field:nth-child(n) { grid-column: 1 / -1; }
	.ems-quote__form .ems-form input:not([type=submit]), .ems-quote__form .ems-form select { min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
	.ems-quote__form .ems-form--quote .ems-form__field:nth-child(5)::after { top: 19px; }
	.ems-quote__form .ems-form--quote .ems-form__field:nth-child(6)::before, .ems-quote__form .ems-form--quote .ems-form__field:nth-child(7)::before { top: 12px; }
	.ems-quote__form .ems-form__submit { margin-top: -11px; }
	.ems-home-quote .ems-quote__photo img { width: 238px; height: 368px; }
	.ems-home-quote .ems-quote__badge { right: -15px; bottom: -15px; width: 113px; min-height: 106px; padding: 14px 6px 10px; box-shadow: -10px -10px 0 #fff; }
	.ems-quote__badge.ems-icon::before { width: 29px; height: 30px; margin-bottom: 3px; }
	.ems-home-quote .ems-quote__badge .is-style-ems-counter { font-size: 28px; line-height: 30px; }
	.ems-home-quote .ems-quote__label { font-size: 13px; line-height: 16px; }
}
@media (max-width: 767.98px) {
	.ems-home-quote.ems-section { margin-top: -194px; }
	.ems-quote { padding: 33px 25px; }
	.ems-quote::before { height: 410px; background-size: auto 410px; }
	.ems-home .ems-quote__cols { flex-direction: column; gap: 30px; }
	.ems-home .ems-quote__cols > .ems-quote__form, .ems-home .ems-quote__cols > .ems-quote__media { flex: none; width: 100%; }
	.ems-home-quote .ems-quote__title { padding-bottom: 21px; }
	.ems-quote__form .ems-form { gap: 24px; }
	.ems-home-quote .ems-quote__photo img { width: 100%; height: 296px; }
	.ems-home-quote .ems-quote__badge { right: -11px; bottom: -11px; }
}

/* ---- home-testimonials ---- */
/* A white card laid over a navy slanted shape: a photograph cut on the slant at the left, a play button, five stars, the quote, and the arrows in the bottom right corner. */
.ems-home-testimonials.ems-section { position: relative; isolation: isolate; padding: 100px var(--ems-gutter); }
.ems-home-testimonials::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: var(--ems-gutter); right: var(--ems-gutter); background: url(../img/testimonials-dots.png) right top / 760px auto no-repeat, var(--ems-primary); clip-path: polygon(31.8% 0, 100% 0, 100% 100%, 63.6% 100%); }
.ems-home-testimonials::after { content: ""; position: absolute; z-index: -2; left: var(--ems-gutter); right: var(--ems-gutter); bottom: 0; height: 100px; background: var(--ems-surface); }
.ems-htm__stage { position: relative; width: 92.42%; }
.ems-home-testimonials .ems-htm__track { background: #fff; }
.ems-htm__slide { position: relative; min-height: 663px; background: #fff; }
.ems-htm__slide::after { content: ""; position: absolute; top: 0; left: 47%; width: 102px; height: 64px; background: var(--ems-primary); -webkit-mask: url(../icons/quote-mark.svg) center / contain no-repeat; mask: url(../icons/quote-mark.svg) center / contain no-repeat; }
.ems-home-testimonials .ems-htm__photo { position: absolute; top: 0; bottom: 0; left: 0; width: 57%; margin: 0; clip-path: polygon(0 0, 51.8% 0, 98.3% 100%, 0 100%); }
.ems-home-testimonials .ems-htm__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.ems-home-testimonials .ems-htm__play { position: absolute; z-index: 1; top: calc(50% - 44px); left: 39.3%; width: 89px; height: 89px; margin: 0; }
.ems-htm__play a { display: flex; align-items: center; justify-content: center; width: 89px; height: 89px; border-radius: 50%; background: var(--ems-teal); box-shadow: 0 0 0 9px rgba(21, 145, 168, .28), 0 0 0 18px rgba(21, 145, 168, .12); transition: background .2s; }
.ems-htm__play a:hover { background: var(--ems-primary); }
.ems-htm__play img { width: 26px; height: 26px; margin-left: 3px; filter: invert(1); }
.ems-home-testimonials .ems-htm__body { position: relative; z-index: 1; box-sizing: border-box; width: 40.5%; margin-left: 55.16%; padding: 100px 0 175px; }
.ems-htm__body .ems-title { margin: 0 0 25px; }
/* The source's quote: 19/31 from 1230px wide, 15/24 below that (measured in Task 18b). */
.ems-home-testimonials .ems-htm__quote { margin: 0 0 26px; font-size: 19px; line-height: 31px; }
@media (max-width: 1229.98px) {
	.ems-home-testimonials .ems-htm__quote { font-size: 15px; line-height: 24px; }
}
/* Five stars, drawn here (they are decoration, not text). */
.ems-htm__quote::before { content: ""; display: block; width: 110px; height: 16px; margin-bottom: 24px; background: var(--ems-alert); -webkit-mask: url(../icons/star-fill.svg) 0 0 / 22px 16px repeat-x; mask: url(../icons/star-fill.svg) 0 0 / 22px 16px repeat-x; }
.ems-home-testimonials .ems-htm__name { margin: 0; font: 400 13px/20px var(--ems-body); color: var(--ems-text); }
.ems-htm__name strong { font: 800 16px/24px var(--ems-heading); color: var(--ems-primary); }
/* The dots sit under the text, the arrows in the card's corner. */
.ems-home-testimonials .ems-slider__controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; box-sizing: border-box; height: 80px; margin: 0; padding-left: calc(55.16% - 8px); gap: 0; }
.ems-home-testimonials .ems-slider__dot { order: 1; margin: 0; transform: translateY(-88px); }
.ems-home-testimonials .ems-slider__dot::before { inset: 8.5px; border-radius: 0; background: var(--ems-primary); }
.ems-home-testimonials .ems-slider__dot[aria-current="true"]::before { inset: 2px; background: linear-gradient(var(--ems-primary), var(--ems-primary)) center / 7px 7px no-repeat, rgba(12, 76, 147, .12); }
.ems-home-testimonials .ems-slider__prev, .ems-home-testimonials .ems-slider__next { order: 2; width: 80px; height: 80px; background: #fff; box-shadow: none; }
.ems-home-testimonials .ems-slider__prev { margin-left: auto; }
.ems-home-testimonials .ems-slider__prev::before, .ems-home-testimonials .ems-slider__next::before { inset: 29.5px; }
@media (max-width: 1024.98px) {
	.ems-home-testimonials.ems-section { padding: 117px var(--ems-gutter) 54px; }
	.ems-home-testimonials::before { top: 63px; clip-path: polygon(28.2% 0, 100% 0, 100% 100%, 76.7% 100%); }
	.ems-home-testimonials::after { height: 54px; }
	.ems-htm__stage { width: 100%; }
	.ems-htm__slide { min-height: 533px; }
	.ems-htm__slide::after { left: 43%; width: 60px; height: 38px; }
	.ems-home-testimonials .ems-htm__play { left: 40%; top: calc(50% - 40px); width: 72px; height: 72px; }
	.ems-htm__play a { width: 72px; height: 72px; box-shadow: 0 0 0 7px rgba(21, 145, 168, .28), 0 0 0 14px rgba(21, 145, 168, .12); }
	.ems-htm__play img { width: 22px; height: 22px; }
	.ems-home-testimonials .ems-htm__body { width: 41%; margin-left: 55.2%; padding: 54px 0 87px; }
	.ems-home-testimonials .ems-slider__controls { height: 24px; bottom: 28px; padding-left: calc(55.2% - 8px); }
	.ems-home-testimonials .ems-slider__dot { transform: none; }
	.ems-home-testimonials .ems-slider__prev, .ems-home-testimonials .ems-slider__next { display: none; }
}
@media (max-width: 767.98px) {
	.ems-home-testimonials.ems-section { padding: 20px var(--ems-gutter); }
	.ems-home-testimonials::before { clip-path: polygon(40% 0, 100% 0, 100% 100%, 20% 100%); background-size: 400px auto; }
	.ems-home-testimonials::after { height: 20px; }
	.ems-htm__slide { min-height: 0; padding-top: 32px; }
	.ems-htm__slide::after { top: 32px; left: 20px; width: 62px; height: 40px; z-index: 2; }
	.ems-home-testimonials .ems-htm__photo { position: relative; inset: auto; width: 100%; height: 265px; clip-path: none; }
	.ems-home-testimonials .ems-htm__play { top: 56px; left: auto; right: 22px; width: 64px; height: 64px; }
	.ems-htm__play a { width: 64px; height: 64px; box-shadow: 0 0 0 6px rgba(21, 145, 168, .28), 0 0 0 12px rgba(21, 145, 168, .12); }
	.ems-home-testimonials .ems-htm__body { width: auto; margin: 0; padding: 33px 15px 87px; }
	.ems-home-testimonials .ems-slider__controls { left: 0; bottom: 36px; padding-left: 7px; }
}
@media (max-width: 575.98px) {
	.ems-home-testimonials .ems-htm__quote { font-size: 15px; }
}

/* ---- home-brands ---- */
/* Four logo tiles in a 2 x 2 grid at the left; the heading and a faint dotted world map at the right. Demo logos, kept for now. */
.ems-home-brands.ems-section { position: relative; overflow: hidden; padding: 140px calc(var(--ems-gutter) * 2) 139px; }
.ems-home .ems-brands__cols { gap: 30px; align-items: flex-start; }
.ems-home .ems-brands__cols > .ems-brands__logos, .ems-home .ems-brands__cols > .ems-brands__text { flex: 1 1 0; min-width: 0; }
.ems-brands__text { position: relative; padding-top: 5px; }
.ems-brands__text::before { content: ""; position: absolute; z-index: -1; left: 0; top: -59px; width: 695px; height: 342px; background: url(../img/world-dots.png) 0 0 / 695px 342px no-repeat; pointer-events: none; }
.ems-home-brands { isolation: isolate; }
.ems-home-brands .ems-brands__grid { display: grid; grid-template-columns: repeat(2, 246px); gap: 30px; margin: 0; }
.ems-home-brands .ems-brands__logo { box-sizing: border-box; margin: 0; padding: 2px; background: #fff; border: 2px solid var(--ems-surface); }
.ems-home-brands .ems-brands__logo img { display: block; width: 100%; height: auto; }
.ems-home-brands .ems-brands__lead { max-width: 585px; margin: 33px 0 0; }
@media (max-width: 1024.98px) {
	.ems-home-brands.ems-section { padding: 60px calc(var(--ems-gutter) * 2) 60px; }
	.ems-home .ems-brands__cols > .ems-brands__logos { flex: 0 0 250px; }
	.ems-home-brands .ems-brands__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.ems-brands__text::before { left: 190px; top: -40px; }
	.ems-home-brands .ems-brands__lead { margin-top: 24px; }
}
@media (max-width: 767.98px) {
	.ems-home-brands.ems-section { padding: 36px var(--ems-gutter) 40px; }
	.ems-home .ems-brands__cols { flex-direction: column; gap: 30px; }
	.ems-home .ems-brands__cols > .ems-brands__logos, .ems-home .ems-brands__cols > .ems-brands__text { flex: none; width: 100%; }
	.ems-home-brands .ems-brands__grid { gap: 10px; }
	.ems-brands__text::before { left: 190px; top: 20px; }
}
/* ==== END PAGE: home ==== */

/* ==== PAGE: about-us, testimonials, services (Task 15). Only the Task 15 agent edits between these markers. ==== */
/* ---- about: shared by every About section ---- */
.ems-about strong { color: var(--ems-text-strong); font-weight: 600; }

/* ---- about-intro ---- */
/* The source's photographs: the large one at the left edge, the small one 43px outside it and 116px up into its corner. */
.ems-about-intro .ems-about-intro__cols { display: grid; grid-template-columns: 46.6% minmax(0, 585px); gap: 0; margin: 0; align-items: start; }
.ems-about-intro__media, .ems-about-intro__text { min-width: 0; }
.ems-about-intro__large { width: 86.7%; margin: 0; }
/* Pulled 7% out to the left of its column, but never past the page's own side padding (it sat 2 to 17px outside the screen between 360 and 767px). */
.ems-about-intro__small { width: 46.2%; margin: -18.9% 0 0 -7%; margin-left: max(-7%, calc(var(--ems-gutter) * -1 + 4px)); }
.ems-about-intro__large img, .ems-about-intro__small img { display: block; width: 100%; height: auto; }
@media (max-width: 575.98px) {
	.ems-about-intro .ems-about-intro__cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.ems-about-intro__large { width: 100%; }
}

/* ---- about-services ---- */
/* The source's dotted map sits behind the lists and bleeds off the left edge. Pin markers as in its "Industries We Serve" list. */
.ems-about-services { background: url(../img/world-dots.png) left -110px bottom 60px / 695px auto no-repeat; }
.ems-about-services__intro { max-width: 920px; margin-bottom: 48px; }
.ems-about-services .ems-about-services__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin: 0; }
.ems-about-services h3 { font-size: 20px; line-height: 26px; }
.ems-about-services .ems-list li::before { top: 9px; width: 14px; height: 18px; background: var(--ems-alert); -webkit-mask-image: url(../icons/map-pin.svg); mask-image: url(../icons/map-pin.svg); }
@media (max-width: 1024.98px) {
	.ems-about-services .ems-about-services__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
	.ems-about-services { background-size: 330px auto; background-position: left -70px bottom 20px; }
	.ems-about-services .ems-about-services__cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---- about-jig-fixture, about-service-options, about-team (the generic prose and cards layouts carry them) ---- */
.ems-about-service-options > p { max-width: 920px; }
.ems-about-service-options .ems-cards__grid { margin-top: 32px; }

/* ---- about-subcontract (the generic prose layout on the surface colour carries it) ---- */

/* ---- about-quality ---- */
/* The source's certificates layout without the certificates: the photograph inside the page gutter at its natural 1108px (never
   stretched), a white panel over its right part that starts 375px across and 100px down and reaches the photograph's bottom
   (it stretches to the row, so no strip of photograph shows under it). The source hides the photograph at 1024px and below. */
.ems-about-quality.ems-section { display: grid; grid-template-columns: min(28.4%, 375px) calc(min(84%, 1108px) - min(28.4%, 375px)) minmax(0, 1fr); }
.ems-about-quality__photo { grid-column: 1 / 3; grid-row: 1; margin: 0; }
.ems-about-quality__photo img { display: block; width: 100%; height: auto; }
.ems-about-quality__panel { grid-column: 2 / 4; grid-row: 1; position: relative; display: flex; flex-direction: column; justify-content: center; margin-top: 100px; padding: 80px 100px; background: #fff; }
.ems-about-quality__panel > * { max-width: 760px; }
@media (max-width: 1024.98px) {
	.ems-about-quality.ems-section { grid-template-columns: minmax(0, 1fr); }
	.ems-about-quality__photo { display: none; }
	.ems-about-quality__panel { grid-column: 1; display: block; margin-top: 0; padding: 0; }
}

/* ---- about-customer-service (the generic prose layout, split into two columns, carries it) ---- */

/* ---- about-why-choose ---- */
/* Nine reasons in three columns; each gets the source's arrow marker in front of its heading and a rule above it. */
.ems-about-why-choose__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 40px; margin-top: 40px; }
.ems-about-why-choose__item { padding-top: 24px; border-top: 2px solid var(--ems-border); }
.ems-about-why-choose__item h3 { position: relative; padding-left: 30px; font-size: 20px; line-height: 26px; }
.ems-about-why-choose__item h3::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; background: var(--ems-teal); -webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat; mask: url(../icons/arrow-right.svg) center / contain no-repeat; }
.ems-about-why-choose__item p { margin: 0; padding-left: 30px; }
@media (max-width: 1024.98px) {
	.ems-about-why-choose__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
	.ems-about-why-choose__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---- about-objective (the generic prose layout, with its table, carries it) ---- */
.ems-about td strong, .ems-about th strong { color: inherit; font-weight: inherit; }
.ems-about-objective .wp-block-table th, .ems-about-objective .wp-block-table td { border: 0; border-bottom: 1px solid var(--ems-border); }
.ems-about-objective .wp-block-table th { border-bottom: 2px solid var(--ems-primary); }
.ems-about-objective .wp-block-table thead { border-bottom: 0; }
/* On phones the fixed layout would split the columns 50/50 and wrap the long objective to six lines beside a near-empty
   "Target" column: let the content size them, so the short Target column takes only what it needs. */
@media (max-width: 575.98px) {
	.ems-about-objective .wp-block-table table { table-layout: auto; }
	.ems-about-objective .wp-block-table th:last-child, .ems-about-objective .wp-block-table td:last-child { width: 1%; padding-left: 16px; white-space: nowrap; }
}

/* ---- about-commitment ---- */
/* The commitment line ("Reliable Measurement. Responsive Service. Practical Solutions.") carries its own class, so adding or
   removing blocks above it never moves the large style to another paragraph. */
.ems-about-commitment .ems-about-commitment__motto { margin: 8px 0 24px; font: 800 28px/38px var(--ems-heading); color: var(--ems-primary); }
.ems-about-commitment .ems-about-commitment__motto strong { color: inherit; font-weight: inherit; }
@media (max-width: 575.98px) {
	.ems-about-commitment .ems-about-commitment__motto { font-size: 22px; line-height: 30px; }
}

/* ---- testimonials-slider ---- */
/* The source's slide: a photograph from the left edge with a slanted right side, a teal play button on it, the text from 47%
   across with two heavy quotation marks over its right end. Every slide repeats the heading, as the source does.
   The photographs, the reviewer name and the video link are the source's demo content, kept for now.
   The dots live in a band reserved at the bottom of the slide's text (--ems-tslide-band), so a longer review makes the slide
   taller instead of running into them: the band is the dots' distance from the slide bottom (--ems-tslide-dots) plus their 24px
   height plus at least 26px of air. --ems-tslide-pad is the section's own bottom padding (base.css: 90px, 60px at 1024px and
   below), which the dots' offset is measured from. */
.ems-testimonials-slider.ems-section { --ems-tslide-pad: var(--ems-section-pad); --ems-tslide-dots: 100px; --ems-tslide-band: 150px; position: relative; padding-left: 0; padding-right: 0; padding-bottom: var(--ems-tslide-pad); overflow: hidden; }
.ems-tslide { position: relative; min-height: 663px; }
.ems-tslide::after { content: ""; position: absolute; top: 0; right: 15.8%; width: 102px; height: 64px; background: var(--ems-primary); -webkit-mask: url(../icons/quote-mark.svg) center / contain no-repeat; mask: url(../icons/quote-mark.svg) center / contain no-repeat; }
/* Three-part selectors for the photo and the play button: the block editor lays out every block with a two-class rule (position: relative), which a single class loses to, and the slide would show them stacked above the text there. */
.ems-tslide > .ems-tslide__photo.wp-block-image { position: absolute; top: 0; bottom: 0; left: 0; width: 47.5%; margin: 0; clip-path: polygon(0 0, 52.7% 0, 100% 100%, 0 100%); }
.ems-tslide__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.ems-tslide > .ems-tslide__play.wp-block-image { position: absolute; z-index: 1; top: calc(50% - 44px); left: 33.3%; width: 89px; height: 89px; margin: 0; }
.ems-tslide__play a { display: flex; align-items: center; justify-content: center; width: 89px; height: 89px; border-radius: 50%; background: var(--ems-teal); box-shadow: 0 0 0 9px rgba(21, 145, 168, .28), 0 0 0 18px rgba(21, 145, 168, .12); transition: background .2s; }
.ems-tslide__play a:hover { background: var(--ems-primary); }
.ems-tslide__play img { width: 26px; height: 26px; margin-left: 3px; filter: invert(1); }
.ems-tslide__body { position: relative; z-index: 1; width: 34%; margin-left: 46.7%; padding-top: 89px; padding-bottom: var(--ems-tslide-band); }
.ems-tslide .ems-title { margin-bottom: 33px; }
.ems-testimonials-slider .ems-tslide__quote { margin: 0 0 24px; font-size: 18px; line-height: 31px; }
/* Five stars, drawn here (they are decoration, not text). */
.ems-tslide__quote::before { content: ""; display: block; width: 110px; height: 16px; margin-bottom: 24px; background: var(--ems-alert); -webkit-mask: url(../icons/star-fill.svg) 0 0 / 22px 16px repeat-x; mask: url(../icons/star-fill.svg) 0 0 / 22px 16px repeat-x; }
.ems-testimonials-slider .ems-tslide__name { margin: 0; font: 400 13px/20px var(--ems-body); color: var(--ems-text); }
.ems-tslide__name strong { font: 800 16px/24px var(--ems-heading); color: var(--ems-primary); }
/* Only the dots: the source has no arrows. They sit under the text, in the band the body reserves. */
.ems-testimonials-slider .ems-slider__controls { position: absolute; z-index: 2; left: 46.7%; bottom: calc(var(--ems-tslide-pad) + var(--ems-tslide-dots)); margin: 0; gap: 0; } /* above the slides: their text would paint over the dots and take the click */
.ems-testimonials-slider .ems-slider__prev, .ems-testimonials-slider .ems-slider__next, .ems-testimonials-slider .ems-slider__pause { display: none; }
/* The source's dots: small navy squares; the current one is larger, in a pale box. */
.ems-testimonials-slider .ems-slider__dot { margin: 0 -2px; }
.ems-testimonials-slider .ems-slider__dot::before { inset: 9px; border-radius: 0; background: var(--ems-primary); opacity: .45; }
.ems-testimonials-slider .ems-slider__dot[aria-current="true"]::before { inset: 7px; opacity: 1; box-shadow: 0 0 0 5px var(--ems-surface-alt); }
@media (max-width: 1024.98px) {
	.ems-testimonials-slider.ems-section { --ems-tslide-dots: 90px; --ems-tslide-band: 140px; }
	.ems-tslide > .ems-tslide__photo.wp-block-image { width: 50%; }
	.ems-tslide > .ems-tslide__play.wp-block-image { left: 28%; }
	.ems-tslide::after { right: 6%; }
	.ems-tslide__body { width: 42%; margin-left: 52%; padding-top: 70px; }
	.ems-testimonials-slider .ems-slider__controls { left: 52%; }
}
@media (max-width: 767.98px) {
	.ems-tslide { min-height: 0; }
	.ems-tslide::after { top: 0; right: auto; left: 20px; }
	.ems-tslide > .ems-tslide__photo.wp-block-image { position: relative; inset: auto; width: 100%; height: 280px; clip-path: none; }
	.ems-tslide > .ems-tslide__play.wp-block-image { top: 60px; left: auto; right: 40px; width: 70px; height: 70px; }
	.ems-tslide__play a { width: 70px; height: 70px; box-shadow: 0 0 0 7px rgba(21, 145, 168, .28), 0 0 0 14px rgba(21, 145, 168, .12); }
	.ems-testimonials-slider.ems-section { --ems-tslide-dots: 10px; --ems-tslide-band: 100px; }
	.ems-tslide__body { width: auto; margin: 0; padding: 32px var(--ems-gutter) var(--ems-tslide-band); }
	.ems-testimonials-slider .ems-slider__controls { left: var(--ems-gutter); }
}
/* Phones: the body size (15px/24px), not the 18px of desktop. */
@media (max-width: 575.98px) {
	.ems-testimonials-slider .ems-tslide__quote { font-size: 15px; line-height: 24px; }
}

/* ---- testimonials-reviews ---- */
/* The source's heading block (a ghost word behind a centred title) and four cards: a grey frame on three sides, two heavy quotation marks on the corner, five stars. */
.ems-testimonials-reviews { overflow: hidden; }
.ems-tm__head { position: relative; text-align: center; }
.ems-tm__ghost { position: absolute; z-index: 0; top: -66px; left: 0; right: 0; margin: 0; font: 800 200px/220px var(--ems-heading); color: var(--ems-surface); text-align: center; white-space: nowrap; pointer-events: none; user-select: none; }
.ems-tm__head > :not(.ems-tm__ghost) { position: relative; z-index: 1; }
.ems-tm__head .is-style-ems-eyebrow { justify-content: center; }
.ems-tm__head .ems-tm__intro { max-width: 530px; margin: 24px auto 0; }
.ems-tm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 46px; align-items: start; max-width: 1200px; margin: 50px auto 0; }
.ems-tcard { position: relative; padding: 19px 43px 22px; background: #fff; border: 16px solid var(--ems-surface); border-right-width: 0; }
.ems-tcard::after { content: ""; position: absolute; top: -34px; right: -25px; width: 71px; height: 45px; background: var(--ems-primary); -webkit-mask: url(../icons/quote-mark.svg) center / contain no-repeat; mask: url(../icons/quote-mark.svg) center / contain no-repeat; }
.ems-tcard h3 { margin: 0 0 16px; font-size: 20px; line-height: 30px; }
.ems-tcard .ems-tcard__name { margin: 0; font: 400 13px/20px var(--ems-body); color: var(--ems-text); }
.ems-tcard__name strong { font: 800 16px/24px var(--ems-heading); color: var(--ems-primary); }
.ems-tcard__name::after { content: ""; display: block; width: 65px; height: 11px; margin-top: 14px; background: var(--ems-alert); -webkit-mask: url(../icons/star-fill.svg) 0 0 / 13px 11px repeat-x; mask: url(../icons/star-fill.svg) 0 0 / 13px 11px repeat-x; }
.ems-testimonials-reviews .wp-block-buttons { justify-content: center; margin-top: 56px; }
@media (max-width: 1024.98px) {
	.ems-tm__ghost { font-size: 120px; line-height: 132px; top: -30px; }
	.ems-tm__grid { gap: 48px 30px; }
	.ems-tcard { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 767.98px) {
	.ems-tm__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.ems-tm__ghost { font-size: 80px; line-height: 88px; top: -10px; }
	.ems-tcard::after { top: -30px; right: 12px; }
}

/* ---- testimonials-videos ---- */
/* Text on the left; on the right the first video large with a red play badge, and a row of four thumbnails under it
   (4 across at every width, as the source). Demo content kept for now. */
.ems-testimonials-videos { overflow: hidden; }
.ems-testimonials-videos .ems-tvideo__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; align-items: start; }
.ems-tvideo__text, .ems-tvideo__media { position: relative; min-width: 0; }
.ems-tvideo__text .ems-tm__ghost { position: absolute; z-index: 0; top: -66px; left: -122px; margin: 0; font: 800 200px/220px var(--ems-heading); color: var(--ems-surface); white-space: nowrap; pointer-events: none; user-select: none; }
.ems-tvideo__text > :not(.ems-tm__ghost) { position: relative; z-index: 1; }
.ems-tvideo__text .wp-block-buttons { margin-top: 32px; }
.ems-tvideo__main, .ems-tvideo__thumb { position: relative; margin: 0; }
.ems-tvideo__main img, .ems-tvideo__thumb img { display: block; width: 100%; height: auto; }
/* The badge: a red rounded rectangle with a white triangle, two pseudo-elements on the link. */
.ems-tvideo__main a, .ems-tvideo__thumb a { position: relative; display: block; }
.ems-tvideo__main a::before, .ems-tvideo__thumb a::before { content: ""; position: absolute; top: 50%; left: 50%; width: 80px; height: 56px; margin: -28px 0 0 -40px; border-radius: 14px; background: var(--ems-alert); transition: background .2s; }
.ems-tvideo__main a::after, .ems-tvideo__thumb a::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -13px 0 0 -9px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.ems-tvideo__thumb a::before { width: 40px; height: 28px; margin: -14px 0 0 -20px; border-radius: 7px; }
.ems-tvideo__thumb a::after { margin: -7px 0 0 -5px; border-width: 7px 0 7px 12px; }
.ems-tvideo__main a:hover::before, .ems-tvideo__thumb a:hover::before { background: var(--ems-primary); }
/* 4 across at every width: the generic slider rules drop to 2 and 1 per view, so this one is more specific. */
.is-style-ems-slider.ems-per-4.ems-tvideo__thumbs { --ems-slider-gap: 14px; --ems-per: 4; margin-top: 20px; }
@media (max-width: 1024.98px) {
	.ems-tvideo__text .ems-tm__ghost { font-size: 120px; line-height: 132px; top: -30px; left: -60px; }
}
@media (max-width: 575.98px) {
	.ems-testimonials-videos .ems-tvideo__cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.ems-tvideo__text .ems-tm__ghost { font-size: 80px; line-height: 88px; top: -10px; left: -10px; }
	.is-style-ems-slider.ems-per-4.ems-tvideo__thumbs { --ems-slider-gap: 8px; }
	.ems-tvideo__main a::before { width: 64px; height: 44px; margin: -22px 0 0 -32px; }
	.ems-tvideo__thumb a::before { width: 28px; height: 20px; margin: -10px 0 0 -14px; border-radius: 5px; }
	.ems-tvideo__thumb a::after { margin: -5px 0 0 -3px; border-width: 5px 0 5px 9px; }
}

/* ---- testimonials-clients ---- */
/* The source's map runs 143px behind the form column; the form fields are pale grey with no border. Below 1025px the map goes
   and the form sits centred (left-aligned on phones), as the source does. The form itself is Contact Form 7's. */
.ems-testimonials-clients { overflow: hidden; }
.ems-testimonials-clients .ems-tclient__cols { display: grid; grid-template-columns: 51.1% 44.3%; gap: 0; margin: 0; align-items: start; }
.ems-tclient__map, .ems-tclient__form { position: relative; min-width: 0; }
.ems-tclient__map { z-index: 0; margin-top: 19px; }
.ems-tclient__map figure { width: 121.2%; margin: 0; }
.ems-tclient__map img { display: block; width: 100%; max-width: none; height: auto; }
.ems-tclient__form { z-index: 1; }
.ems-tclient__form .ems-title { margin-bottom: 32px; }
.ems-tclient__form .ems-form { gap: 30px; }
.ems-tclient__form .ems-form__field:first-child, .ems-tclient__form .ems-form__field:has(textarea) { grid-column: 1 / -1; }
.ems-tclient__form .ems-form input:not([type=submit]), .ems-tclient__form .ems-form textarea { min-height: 52px; background: var(--ems-surface); border: 0; }
.ems-tclient__form .ems-form textarea { height: 102px; min-height: 102px; }
@media (max-width: 1024.98px) {
	.ems-testimonials-clients .ems-tclient__cols { grid-template-columns: minmax(0, 540px); justify-content: center; }
	.ems-tclient__map { display: none; }
	.ems-tclient__form { text-align: center; }
	.ems-tclient__form .is-style-ems-eyebrow { justify-content: center; }
	.ems-tclient__form .ems-form { text-align: left; }
	.ems-tclient__form .ems-form__submit { text-align: center; }
}
@media (max-width: 575.98px) {
	.ems-tclient__form { text-align: left; }
	.ems-tclient__form .is-style-ems-eyebrow { justify-content: flex-start; }
	.ems-tclient__form .ems-form { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ems-tclient__form .ems-form__submit { text-align: left; }
}

/* ==== END PAGE: about-us, testimonials, services ==== */

/* ==== PAGE: the five service pages (Task 16). Only the Task 16 agent edits between these markers. ==== */
/* Also holds the Services overview page's own sections (services-intro, services-impacts, services-repair). */

/* ---- services-intro: the generic cards layout, each card one linked title ---- */
.ems-services-intro > p { max-width: 920px; }
.ems-services-intro .ems-cards__grid { margin-top: 32px; }
.ems-services-intro .ems-card { position: relative; padding: 0; transition: border-color .2s, box-shadow .2s; }
.ems-services-intro .ems-card h3 { margin: 0; }
.ems-services-intro .ems-card a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 30px; color: var(--ems-primary); }
/* The whole card is the link, not only its words. */
.ems-services-intro .ems-card a::before { content: ""; position: absolute; inset: 0; }
.ems-services-intro .ems-card a::after { content: ""; flex: none; width: 22px; height: 22px; background: var(--ems-alert); -webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat; mask: url(../icons/arrow-right.svg) center / contain no-repeat; transition: transform .2s; }
.ems-services-intro .ems-card:hover { border-color: var(--ems-primary); box-shadow: 0 10px 30px rgba(12, 76, 147, .12); }
.ems-services-intro .ems-card:hover a { color: var(--ems-alert); }
.ems-services-intro .ems-card:hover a::after { transform: translateX(4px); }
.ems-services-intro .ems-card a:focus-visible { outline-offset: -4px; }

/* ---- services-impacts: a grey panel, two columns of arrow-marked points ---- */
.ems-services-impacts.ems-section { padding-top: 0; padding-bottom: 0; }
.ems-services-impacts__panel { padding: 127px var(--ems-gutter) 148px; background: var(--ems-surface); }
.ems-services-impacts__panel .ems-title { margin-bottom: 33px; }
.ems-services-impacts .ems-services-impacts__cols { gap: 30px; margin: 0; }
.ems-services-impacts .ems-services-impacts__col p { position: relative; margin: 0 0 27px; padding-left: 29px; }
.ems-services-impacts .ems-services-impacts__col p::before { content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; background: var(--ems-primary); -webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat; mask: url(../icons/arrow-right.svg) center / contain no-repeat; }
.ems-services-impacts .ems-services-impacts__col strong { font-weight: 700; color: var(--ems-primary); }

/* ---- services-repair: the photograph beside three step tabs; it reaches up over the grey panel above ---- */
.ems-services-repair.ems-section { margin-top: -43px; padding-top: 0; padding-bottom: 90px; }
.ems-services-repair__inner { padding: 0 var(--ems-gutter); }
.ems-services-repair .ems-services-repair__cols { align-items: flex-start; gap: 30px; margin: 0; }
.ems-services-repair__media .wp-block-image { margin: 0 44px 0 0; }
.ems-services-repair__media img { display: block; width: 100%; height: auto; }
/* The tabs become small white cards with a plus mark; the open one is solid blue. */
.ems-services-repair .ems-tabs__nav { gap: 14px; margin: 0 0 35px; border: 0; }
.ems-services-repair .ems-tabs__nav li { position: relative; margin: 0; padding: 22px 27px; font: 800 17px/26px var(--ems-heading); color: var(--ems-primary); background: #fff; border: 0; box-shadow: 0 10px 30px rgba(12, 76, 147, .1); transition: background .2s, color .2s; }
.ems-services-repair .ems-tabs__nav li::before { content: "+"; content: "+" / ""; position: absolute; left: 9px; top: 6px; font: 800 16px/20px var(--ems-heading); }
.ems-services-repair .ems-tabs__nav li:hover { color: var(--ems-alert); }
/* The open tab's words sit 5px lower, as in the source. */
.ems-services-repair .ems-tabs__nav li[aria-selected="true"], .ems-services-repair .ems-tabs__nav li[aria-selected="true"]:hover { padding-top: 27px; padding-bottom: 17px; color: #fff; background: var(--ems-primary); }
.ems-services-repair .ems-tabs__panel .ems-title { margin-bottom: 33px; }
.ems-services-repair .ems-tabs__panel p { margin: 0 0 33px; }
/* The first paragraph holds the phone number, which comes from the Site Details: the sentence is three blocks, drawn as one line. */
.ems-services-repair .ems-services-repair__line { margin: 0 0 33px; }
.ems-services-repair .ems-services-repair__line > *, .ems-services-repair .ems-services-repair__line .wp-block-button { display: inline; margin: 0; padding: 0; }
.ems-services-repair .ems-services-repair__phone .wp-block-button__link { display: inline; padding: 0; background: none; border: 0; border-radius: 0; font: inherit; font-weight: 700; color: var(--ems-alert); white-space: nowrap; }
.ems-services-repair .ems-services-repair__phone .wp-block-button__link:hover { color: var(--ems-primary); }
/* The spaces round the number must not depend on whitespace between the blocks: the editor draws none there, and an HTML minifier may drop it. A generated space collapses into the real one, so nothing doubles. First and last of TYPE, not of child: in the editor the block appender is the Group's last child when it is selected. */
.ems-services-repair .ems-services-repair__line > p:first-of-type::after,
.ems-services-repair .ems-services-repair__line > p:last-of-type::before { content: " "; }

/* ---- the five service pages: service-mechanical, -dimensional, -electrical, -onsite, -fa ---- */
.ems-service .ems-title { margin-bottom: 38px; }
.ems-service h3 { margin: 35px 0 23px; font-size: 29px; line-height: 35px; }
/* The list runs down two columns, as the source's does. */
.ems-service p + .ems-list { margin-top: 28px; }
.ems-service .ems-list { column-count: 2; column-gap: 30px; }
.ems-service .ems-list li { break-inside: avoid; font-weight: 500; }

/* ---- service-contact: the source's "Ask Question" card as a band under the service text ---- */
.ems-service-contact .ems-title { margin-bottom: 28px; font-size: 29px; line-height: 41px; }
.ems-service-contact .ems-form__field:has(textarea) { grid-column: 1 / -1; }

/* ---- service-brands: the partner strip. Five logos fit one row; narrower screens slide ---- */
.ems-service-brands.ems-section { padding-top: 140px; padding-bottom: 140px; background: url(../img/world-dots.png) center / 695px auto no-repeat; }
.ems-service-brands .ems-title { margin-bottom: 38px; }
.ems-service-brands .ems-service-brands__track { --ems-slider-gap: 20px; --ems-per: 2; max-width: calc(5 * 210px + 4 * 20px); }
.ems-service-brands .ems-service-brands__logo { margin: 0; padding: 2px; background: #fff; border: 2px solid var(--ems-surface); }
.ems-service-brands .ems-service-brands__logo img { display: block; width: 100%; height: auto; }

@media (min-width: 576px) {
	.ems-service-brands .ems-service-brands__track { --ems-per: 3; }
}
@media (min-width: 1025px) {
	.ems-service-brands .ems-service-brands__track { --ems-per: 5; }
}
@media (max-width: 1024.98px) {
	.ems-services-impacts__panel { padding-top: 55px; padding-bottom: 72px; }
	.ems-services-impacts__panel .ems-title { margin-bottom: 16px; }
	.ems-services-repair .ems-tabs__nav li { padding: 23px 27px; font-size: 15px; line-height: 24px; }
	.ems-services-repair .ems-tabs__nav li[aria-selected="true"], .ems-services-repair .ems-tabs__nav li[aria-selected="true"]:hover { padding-top: 28px; padding-bottom: 18px; }
	.ems-service-brands.ems-section { padding-top: 63px; padding-bottom: 63px; }
}
@media (max-width: 575.98px) {
	.ems-services-impacts__panel { padding-top: 43px; padding-bottom: 16px; }
	.ems-services-impacts .ems-services-impacts__cols { flex-direction: column; gap: 0; }
	.ems-services-impacts .ems-services-impacts__col p { margin-bottom: 20px; }
	.ems-services-repair.ems-section { margin-top: 0; padding-top: 57px; padding-bottom: 60px; }
	.ems-services-repair__media .wp-block-image { margin-right: 0; }
	.ems-services-repair .ems-tabs__nav { gap: 10px; }
	.ems-services-repair .ems-services-repair__cols { flex-direction: column; gap: 40px; }
	.ems-services-repair .ems-tabs__nav li { width: 100%; padding: 18px 30px; }
	.ems-services-repair .ems-tabs__nav li[aria-selected="true"], .ems-services-repair .ems-tabs__nav li[aria-selected="true"]:hover { padding-top: 23px; padding-bottom: 13px; }
	.ems-service .ems-list { column-count: 1; }
	.ems-service h3 { margin: 28px 0 16px; font-size: 20px; line-height: 26px; }
	.ems-service-contact .ems-title { font-size: 26px; line-height: 34px; }
	.ems-service-brands.ems-section { padding-top: 50px; padding-bottom: 50px; }
}
/* ==== END PAGE: the five service pages ==== */

/* ==== PAGE: accreditations, career, contact-us, coverage (Task 17). Only the Task 17 agent edits between these markers. ==== */
/* ---- accreditations-overview, accreditation-sac, accreditation-bizsafe (the generic prose layout carries them; the PDF's bold phrases read as the About page's do) ---- */
.ems-accreditation strong { color: var(--ems-text-strong); font-weight: 600; }

/* ---- contact-main and coverage-locations: the source gives both the same title block, a pale word behind an eyebrow and a title ---- */
/* The source pads these sections twice over: 140px on the section and 140px more inside it (63 + 63 on a tablet, 50 + 50 on a phone). */
.ems-contact-main.ems-section, .ems-coverage-locations.ems-section { isolation: isolate; overflow: hidden; padding: 280px calc(var(--ems-gutter) * 2); }
.ems-contact-main .wp-block-columns, .ems-coverage-locations .wp-block-columns { margin: 0; }
.ems-contact-main__intro, .ems-coverage-locations__text { position: relative; min-width: 0; }
.ems-contact-main .is-style-ems-eyebrow, .ems-coverage-locations .is-style-ems-eyebrow { margin: -11px 0 12px; }
.ems-contact-main .ems-title, .ems-coverage-locations .ems-title { margin: 0 0 33px; }
.ems-contact-main .ems-title + p, .ems-coverage-locations .ems-title + p { margin: 0; }
.ems-contact-main .ems-title + p + p, .ems-coverage-locations .ems-title + p + p { margin: 16px 0 0; }
.ems-contact-main__intro strong, .ems-coverage-locations__text strong { font-weight: 700; color: var(--ems-primary); }
/* The big pale word behind the heading. */
.ems-contact-main .ems-contact-main__ghost, .ems-coverage-locations .ems-coverage-locations__ghost { position: absolute; z-index: -1; top: -77px; left: -122px; margin: 0; font: 800 200px/220px var(--ems-heading); letter-spacing: -4px; color: var(--ems-surface); white-space: nowrap; pointer-events: none; user-select: none; }

/* ---- contact-main ---- */
.ems-contact-main .ems-contact-main__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 30px; align-items: start; }
.ems-contact-main .ems-contact-main__intro { grid-column: 1 / span 5; align-self: start; }
.ems-contact-main .ems-contact-main__form { grid-column: 6 / span 7; align-self: start; }
.ems-contact-main .ems-title + p, .ems-contact-main .ems-title + p + p { max-width: 400px; }
/* The three contact lines: an envelope, a bold label, the address under it. The address is a button bound to the Site Details. */
.ems-contact-main .ems-contact-main__row { position: relative; margin: 25px 0 0; padding-left: 38px; }
.ems-contact-main .ems-contact-main__row + .ems-contact-main__row { margin-top: 11px; }
.ems-contact-main__row.ems-icon::before { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; margin: 0; color: var(--ems-primary); }
.ems-contact-main .ems-contact-main__label { margin: 0 0 -3px; font-weight: 700; color: var(--ems-primary); }
.ems-contact-main__row .wp-block-buttons { margin: 0; }
/* The address never breaks mid-word: on a tablet it may reach into the gap before the card instead. */
.ems-contact-main__mail .wp-block-button__link { padding: 0; background: none; border: 0; border-radius: 0; font: inherit; color: var(--ems-text); text-decoration: none; white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.ems-contact-main__mail .wp-block-button__link:hover { color: var(--ems-primary); text-decoration: underline; }
/* The white card with the form, on the source's soft shadow. */
.ems-contact-main .ems-contact-main__card { padding: 66px 70px; background: #fff; box-shadow: 0 10px 30px rgba(26, 54, 85, .15); }
.ems-contact-main .ems-contact-main__card h3 { margin: 0 0 39px; }
.ems-contact-main .ems-form { gap: 31px 30px; }
.ems-contact-main .ems-form__field:first-child { grid-column: 1 / -1; }
.ems-contact-main .wpcf7-form-control-wrap { display: block; }
.ems-contact-main .ems-form input:not([type=submit]), .ems-contact-main .ems-form textarea { height: 52px; min-height: 0; padding: 10px 12px 10px 17px; font: 400 16px/27px var(--ems-body); color: var(--ems-text); background: var(--ems-surface); border-color: var(--ems-surface); }
.ems-contact-main .ems-form textarea { height: 182px; }
.ems-contact-main .ems-form ::placeholder { color: var(--ems-text); opacity: 1; }
.ems-contact-main .ems-form__submit { margin-top: 8px; }

/* ---- coverage-locations ---- */
.ems-coverage-locations .ems-coverage-locations__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 30px; align-items: start; margin: 0 0 61px; }
.ems-coverage-locations .ems-coverage-locations__text { grid-column: 1 / span 5; align-self: start; }
.ems-coverage-locations .ems-coverage-locations__media { position: relative; grid-column: 7 / span 6; align-self: start; min-width: 0; }
.ems-coverage-locations .ems-coverage-locations__photo, .ems-coverage-locations .ems-coverage-locations__panel { margin: 0; }
.ems-coverage-locations__photo img, .ems-coverage-locations__panel img { display: block; width: 100%; height: auto; }
/* The small blue panel hangs off the photograph's lower left corner. */
.ems-coverage-locations .ems-coverage-locations__panel { position: absolute; left: -70px; bottom: -30px; width: 134px; }
/* Three columns of seven places; each place is a pale card with the theme's arrow marker. */
.ems-coverage-locations .ems-coverage-locations__places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; }
/* WordPress lets a column break any word; the source lets a long one reach into the card's right padding instead. */
.ems-coverage-locations__col { min-width: 0; word-break: normal; overflow-wrap: normal; }
.ems-coverage-locations .ems-list { margin: 0; }
.ems-coverage-locations .ems-list li { margin-top: 19px; padding: 24px 10px 21px 53px; font-weight: 400; color: var(--ems-text); background: var(--ems-surface); }
.ems-coverage-locations .ems-list li strong { font-weight: 700; color: var(--ems-primary); }
.ems-coverage-locations .ems-list li::before { left: 25px; top: 29px; }

/* ---- contact-main and coverage-locations: narrower screens ---- */
@media (max-width: 1399.98px) {
	.ems-contact-main .ems-contact-main__ghost, .ems-coverage-locations .ems-coverage-locations__ghost { top: -71px; left: 0; font-size: 170px; line-height: 187px; letter-spacing: -3.4px; }
}
@media (max-width: 1199.98px) {
	.ems-coverage-locations .ems-coverage-locations__text { grid-column: 1 / span 6; }
	.ems-coverage-locations .ems-coverage-locations__panel { left: -14px; bottom: -15px; width: 100px; }
}
@media (max-width: 1139.98px) {
	.ems-coverage-locations .ems-list li::before { top: 28px; }
}
@media (min-width: 768px) and (max-width: 899.98px) {
	/* The text column is about 200px wide here, too narrow for the full address beside its envelope: the address starts under the envelope. */
	.ems-contact-main .ems-contact-main__row { padding-left: 0; }
	.ems-contact-main .ems-contact-main__label { padding-left: 38px; }
}
@media (max-width: 1024.98px) {
	.ems-contact-main.ems-section, .ems-coverage-locations.ems-section { padding-top: 126px; padding-bottom: 126px; }
	.ems-contact-main .is-style-ems-eyebrow, .ems-coverage-locations .is-style-ems-eyebrow { margin-top: -10px; }
	.ems-contact-main .ems-title, .ems-coverage-locations .ems-title { margin-bottom: 19px; }
	.ems-contact-main .ems-contact-main__ghost, .ems-coverage-locations .ems-coverage-locations__ghost { top: -62px; font-size: 150px; line-height: 165px; letter-spacing: -3px; }
	.ems-contact-main .ems-contact-main__card { padding: 48px 45px; }
	.ems-contact-main .ems-form { gap: 26px 30px; }
	.ems-contact-main .ems-form input:not([type=submit]), .ems-contact-main .ems-form textarea { height: 42px; padding: 10px 12px 10px 17px; line-height: 20px; }
	.ems-contact-main .ems-form textarea { height: 174px; }
	.ems-contact-main .ems-form__submit { margin-top: 7px; }
	.ems-coverage-locations .ems-coverage-locations__top { margin-bottom: 40px; }
	/* At the theme's 16px type, "Fredericksburg" is 119px wide: the cards need a narrower gap and left padding to hold it from 576px up. */
	.ems-coverage-locations .ems-coverage-locations__places { column-gap: 20px; }
	.ems-coverage-locations .ems-list li { padding: 14px 10px 11px 32px; }
	.ems-coverage-locations .ems-list li::before { left: 10px; top: 18px; }
}
@media (max-width: 767.98px) {
	.ems-contact-main .ems-contact-main__cols, .ems-coverage-locations .ems-coverage-locations__top { grid-template-columns: minmax(0, 1fr); row-gap: 50px; }
	.ems-coverage-locations .ems-coverage-locations__top { row-gap: 35px; }
	.ems-contact-main .ems-contact-main__intro, .ems-contact-main .ems-contact-main__form, .ems-coverage-locations .ems-coverage-locations__text, .ems-coverage-locations .ems-coverage-locations__media { grid-column: 1 / -1; }
	.ems-contact-main .is-style-ems-eyebrow, .ems-coverage-locations .is-style-ems-eyebrow { margin-bottom: 8px; }
	.ems-contact-main .ems-contact-main__ghost, .ems-coverage-locations .ems-coverage-locations__ghost { top: -50px; font-size: 100px; line-height: 110px; letter-spacing: -2px; }
	.ems-contact-main .ems-contact-main__card { padding: 33px 25px; }
	.ems-contact-main .ems-contact-main__card h3 { margin-bottom: 37px; }
}
@media (max-width: 575.98px) {
	.ems-contact-main.ems-section, .ems-coverage-locations.ems-section { padding-top: 100px; padding-bottom: 100px; }
	.ems-contact-main .is-style-ems-eyebrow, .ems-coverage-locations .is-style-ems-eyebrow { margin-top: -11px; }
	.ems-contact-main .ems-contact-main__ghost, .ems-coverage-locations .ems-coverage-locations__ghost { top: -48px; }
	.ems-contact-main .ems-form { gap: 24px 30px; }
	.ems-coverage-locations .ems-coverage-locations__top { margin-bottom: 31px; }
	.ems-coverage-locations .ems-coverage-locations__panel { width: 90px; }
	.ems-coverage-locations .ems-coverage-locations__places { grid-template-columns: minmax(0, 1fr); }
	.ems-coverage-locations .ems-list li { margin-top: 10px; padding: 10px 10px 8px 36px; }
	.ems-coverage-locations .ems-list li::before { left: 10px; top: 14px; }
}
/* ==== END PAGE: accreditations, career, contact-us, coverage ==== */
