/*
Theme Name: Mainstay
Theme URI: https://ymanuehlstore.com/products/mainstay/
Author: Ymanuehl Store
Author URI: https://ymanuehlstore.com
Description: A fast, trustworthy WordPress block theme for local service businesses: plumbers, electricians, locksmiths, clinics and more. Call buttons everywhere, a multi-step quote form with a leads list, services, reviews, service areas and Google business details. One-click demo content. Companion plugin Mainstay Core included. Guides: GUIDE.md (owners) and DEVELOPER.md.
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 8.1
Version: 1.6.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mainstay
Tags: business, block-styles, full-site-editing, wide-blocks, custom-logo, editor-style, translation-ready, one-column, three-columns

Mainstay WordPress Theme, (C) 2026 Ymanuehl Store.
Mainstay is distributed under the terms of the GNU GPL v2 or later.
*/

/* ---------- Tokens (colours come from theme.json, so style variations change everything) ---------- */
:root {
  --ms-navy: var(--wp--preset--color--contrast);
  --ms-accent: var(--wp--preset--color--accent-1);
  --ms-soft: var(--wp--preset--color--accent-2);
  --ms-teal: var(--wp--preset--color--accent-3);
  --ms-muted: var(--wp--preset--color--accent-4);
  --ms-cloud: var(--wp--preset--color--accent-5);
  --ms-radius: 16px;
  --ms-shadow: 0 1px 2px rgb(15 27 45 / 0.06), 0 8px 24px rgb(15 27 45 / 0.08);
  --ms-shadow-lg: 0 2px 6px rgb(15 27 45 / 0.08), 0 20px 48px rgb(15 27 45 / 0.16);
}
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
:where(.wp-site-blocks *:focus-visible) { outline: 2px solid var(--ms-accent); outline-offset: 2px; }
.ms-icon { flex: none; }

/* ---------- Header ---------- */
.ms-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .ms-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ms-topbar-wrap { background: var(--ms-navy); color: #fff; font-size: 0.86rem; padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; }
.ms-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ms-topbar p { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.ms-topbar__text { color: rgb(255 255 255 / 0.85); min-width: 0; }
.ms-topbar__text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-topbar__right { gap: 1rem !important; }
.ms-topbar__phone { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.ms-topbar__phone:hover { color: #fff; text-decoration: underline; }
.ms-badge { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.ms-badge--live { color: #fff; }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / 0.6); animation: ms-pulse 2s infinite; }
@keyframes ms-pulse { 70% { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }
.ms-mainbar { background: var(--wp--preset--color--base); border-bottom: 1px solid var(--ms-soft); padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; transition: box-shadow 0.25s ease; }
.ms-header.is-scrolled .ms-mainbar { box-shadow: 0 6px 20px rgb(15 27 45 / 0.08); }
.ms-mainbar__row { gap: 1rem; }
.ms-brand { gap: 0.65rem; align-items: center; }
.ms-site-title, .ms-site-title a { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ms-navy); text-decoration: none; line-height: 1.1; }
.ms-header__right { gap: 1.5rem; align-items: center; }
.ms-nav { font-weight: 600; font-size: 0.98rem; gap: 1.6rem; }
.ms-nav a { text-decoration: none; color: var(--ms-navy); }
.ms-nav a:hover, .ms-nav .current-menu-item a { color: var(--ms-accent); }
.ms-header__quote .wp-block-button__link { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.35rem; font-weight: 700; }
@media (max-width: 1100px) {
  /* Tablets and small laptops keep the quote button, just more compact (phones use the bottom call and quote bar). */
  .ms-header__quote .wp-block-button__link { padding: 0.55rem 0.9rem; font-size: 0.9rem; }
  .ms-header__right { gap: 1rem; }
  .ms-nav { gap: 1.1rem; font-size: 0.95rem; }
  .ms-site-title, .ms-site-title a { font-size: 1.08rem; }
}
@media (max-width: 781px) {
  /* On phones the header scrolls away; the call and quote bar at the bottom stays instead. */
  .ms-header { position: relative; }
  .ms-topbar__text { display: none !important; }
  .ms-topbar { justify-content: center; }
  .ms-header__quote { display: none !important; }
  .ms-mainbar { padding-top: 0.55rem !important; padding-bottom: 0.55rem !important; }
  .ms-site-title, .ms-site-title a { font-size: 1.05rem; }
  .ms-brand .wp-block-site-logo img { width: 36px !important; }
  .ms-topbar-wrap { font-size: 0.8rem; }
  .ms-topbar__right { gap: 0.75rem !important; flex-wrap: nowrap; white-space: nowrap; }
}
@media (max-width: 400px) {
  .ms-badge--live { font-size: 0; gap: 0; }
  .ms-badge--live::after { content: "24/7"; font-size: 0.8rem; margin-left: 0.4rem; }
}

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.wp-element-button:active { transform: translateY(1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--ms-navy); border: 2px solid currentColor; padding: calc(0.9rem - 2px) calc(1.6rem - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ms-navy); color: #fff; border-color: var(--ms-navy); }
.ms-call-wrap { display: inline-block; }
.ms-call { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; text-decoration: none; white-space: nowrap; }
.ms-call.is-outline { background: transparent; color: var(--ms-navy); box-shadow: inset 0 0 0 2px currentColor; }
.ms-call.is-outline:hover { background: var(--ms-navy); color: #fff; box-shadow: inset 0 0 0 2px var(--ms-navy); }
.ms-inline-phone { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; color: var(--ms-accent); text-decoration: none; }
.ms-inline-phone:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.ms-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; margin-top: 0 !important; }
.ms-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ms-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(10 18 31 / 0.92) 0%, rgb(10 18 31 / 0.78) 45%, rgb(10 18 31 / 0.45) 100%); }
.ms-hero__inner { max-width: var(--wp--style--global--wide-size); margin: 0 auto; padding: clamp(2rem, 7vw, 5.5rem) var(--wp--style--root--padding-right, 1.25rem); display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .ms-hero__inner.has-form { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.ms-hero__eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem; padding: 0.4rem 0.85rem; border-radius: 999px; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.2); font-weight: 600; font-size: 0.9rem; backdrop-filter: blur(4px); }
.ms-hero__title { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; margin: 0 0 1rem; max-width: 16ch; }
.ms-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgb(255 255 255 / 0.9); max-width: 36rem; margin: 0 0 1.75rem; }
.ms-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.ms-hero__actions .ms-call { font-size: 1.1rem; padding: 1rem 1.6rem; }
.ms-hero .ms-call.is-outline { color: #fff; }
.ms-hero .ms-call.is-outline:hover { background: #fff; color: var(--ms-navy); box-shadow: inset 0 0 0 2px #fff; }
.ms-hero .ms-trust { color: rgb(255 255 255 / 0.92); }
.ms-hero .ms-trust .ms-icon { color: #4ade80; }
.ms-hero__form .ms-quote { color: var(--ms-navy); }

/* ---------- Sections ---------- */
.ms-main { padding-top: 0 !important; }
.ms-main > * + * { margin-block-start: 0; }
.ms-section { padding-top: clamp(3rem, 7vw, 5.5rem) !important; padding-bottom: clamp(3rem, 7vw, 5.5rem) !important; }
.ms-band-light { background: var(--ms-cloud); }
.ms-section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 0; }
.ms-section-head { gap: 1rem; margin-bottom: 2rem; }
.ms-section-head h2 { margin-bottom: 0; }
.ms-eyebrow { color: var(--ms-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin: 0 0 0.6rem; }
.ms-eyebrow a { color: inherit; text-decoration: none; }
.ms-link-arrow { margin: 0; font-weight: 700; }
.ms-link-arrow a { text-decoration: none; color: var(--ms-navy); }
.ms-link-arrow a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--ms-accent); }
.ms-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ms-muted); max-width: 44rem; }
.ms-empty { padding: 1rem 1.25rem; border: 1px dashed var(--ms-soft); border-radius: 12px; color: var(--ms-muted); }

/* Why us */
.ms-why { gap: 1.25rem !important; margin-top: 2rem; }
.ms-why > .wp-block-column { background: var(--wp--preset--color--base); border-radius: var(--ms-radius); padding: 1.5rem; box-shadow: var(--ms-shadow); border-top: 4px solid var(--ms-accent); }
.ms-why h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.ms-why p { margin: 0; color: var(--ms-muted); }

/* Steps */
.ms-steps-list { gap: 2rem !important; margin-top: 2rem; counter-reset: ms-step; }
.ms-step-num { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--ms-navy); color: #fff; font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 1.25rem; margin: 0 0 1rem; }
.ms-steps-list h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.ms-steps-list p:not(.ms-step-num) { color: var(--ms-muted); margin: 0; }

/* ---------- Services ---------- */
.ms-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 900px) {
  .ms-services.ms-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .ms-services.ms-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .ms-services.ms-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.ms-service a { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 1.6rem; border-radius: var(--ms-radius); background: var(--wp--preset--color--base); border: 1px solid var(--ms-soft); color: var(--ms-navy); text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.ms-service a:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow-lg); border-color: transparent; }
.ms-service__icon { width: 3.25rem; height: 3.25rem; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--ms-accent) 12%, transparent); color: var(--ms-accent); margin-bottom: 1.1rem; transition: background-color 0.25s ease, color 0.25s ease; }
.ms-service a:hover .ms-service__icon { background: var(--ms-accent); color: #fff; }
.ms-service__title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.ms-service__text { color: var(--ms-muted); margin: 0 0 1.25rem; font-size: 0.97rem; }
.ms-service__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.92rem; }
.ms-service__price { font-weight: 700; color: var(--ms-navy); }
.ms-service__more { font-weight: 700; color: var(--ms-accent); }

/* ---------- Reviews ---------- */
.ms-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ms-review figure { margin: 0; height: 100%; box-sizing: border-box; padding: 1.6rem; border-radius: var(--ms-radius); background: var(--wp--preset--color--base); box-shadow: var(--ms-shadow); display: flex; flex-direction: column; }
.ms-review blockquote { margin: 0.9rem 0 1.25rem; padding: 0; border: 0; font-size: 1.02rem; }
.ms-review blockquote p { margin: 0; }
.ms-review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.92rem; }
.ms-review figcaption span { color: var(--ms-muted); }
.ms-stars { display: inline-flex; gap: 2px; }
.ms-star { color: var(--ms-soft); }
.ms-star.is-on { color: #f59e0b; fill: #f59e0b; }
.ms-sample { font-style: normal; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ms-muted); margin-top: 0.35rem; }

/* ---------- Areas, hours, trust, business details ---------- */
.ms-areas { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ms-areas li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--ms-cloud); border: 1px solid var(--ms-soft); font-weight: 600; font-size: 0.93rem; }
.ms-areas .ms-icon { color: var(--ms-accent); }
.ms-areas__note { margin-top: 1.25rem; color: var(--ms-muted); }
.ms-hours { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.ms-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--ms-soft); font-size: 0.97rem; }
.ms-hours li span:last-child { font-weight: 600; text-align: right; }
.ms-hours__em { color: var(--ms-accent); font-weight: 700; border-bottom: 0 !important; }
.ms-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ms-trust li { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.ms-trust .ms-icon { color: #16a34a; }
.ms-info { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.ms-info li, .ms-info__link { display: flex; align-items: flex-start; gap: 0.6rem; }
.ms-info__link { color: inherit; text-decoration: none; font-weight: 600; }
.ms-info__link:hover { text-decoration: underline; }
.ms-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.ms-social a { color: inherit; text-decoration: none; font-weight: 600; }
.ms-social a:hover { text-decoration: underline; }

/* ---------- Cards and bands ---------- */
.is-style-ms-card { background: var(--wp--preset--color--base); border-radius: var(--ms-radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--ms-shadow-lg); }
.is-style-ms-card h3 { margin-top: 0; }
.is-style-ms-card .ms-call-wrap, .is-style-ms-card .ms-call { width: 100%; box-sizing: border-box; }
.is-style-ms-band { background: var(--ms-navy); color: #fff; border-radius: var(--ms-radius); padding: clamp(1.5rem, 4vw, 3rem); }
.is-style-ms-band :where(h1, h2, h3) { color: #fff; }
.ms-rounded img, .wp-block-image.ms-rounded img, .wp-block-post-featured-image.ms-rounded img { border-radius: var(--ms-radius); }
.ms-cta-band { background: var(--ms-navy); color: #fff; border-radius: var(--ms-radius); padding: clamp(1.5rem, 4vw, 2.75rem) !important; gap: 1.5rem; margin-block: clamp(2.5rem, 6vw, 4.5rem) !important; }
.ms-cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ms-cta-band .ms-call.is-outline { color: #fff; }
.ms-cta-band .ms-call.is-outline:hover { background: #fff; color: var(--ms-navy); }
.ms-cta-band .wp-block-buttons { margin: 0; }

/* ---------- Page heads and content ---------- */
.ms-page-head { background: var(--ms-cloud); border-bottom: 1px solid var(--ms-soft); padding-top: clamp(2.5rem, 6vw, 4rem) !important; padding-bottom: clamp(2rem, 5vw, 3rem) !important; margin-bottom: clamp(2rem, 5vw, 3rem); }
.ms-page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); margin: 0 0 0.6rem; }
.ms-page-head .wp-block-post-excerpt { margin-bottom: 1.25rem; }
.ms-page-head .wp-block-post-excerpt__excerpt { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ms-muted); max-width: 44rem; margin: 0; }
.ms-crumb a::after { content: " /"; color: var(--ms-muted); }
.ms-meta { color: var(--ms-muted); font-size: 0.95rem; }
.ms-content { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.ms-content h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 2.2rem; }
.ms-content ul { padding-left: 1.2rem; }
.ms-content li { margin-bottom: 0.35rem; }
.ms-content--left > * { margin-left: 0 !important; max-width: none; }
.ms-service-layout { gap: clamp(2rem, 5vw, 3.5rem) !important; }
.ms-sticky { position: sticky; top: 9rem; }
.ms-post-nav { padding-bottom: 3rem; gap: 1rem; }
.ms-post-nav a { display: inline-block; padding: 0.6rem 0; font-weight: 600; }

/* FAQ (Details blocks) */
.wp-block-details { border: 1px solid var(--ms-soft); border-radius: 12px; padding: 0; margin-block: 0.6rem; background: var(--wp--preset--color--base); }
.wp-block-details summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--ms-accent); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { padding: 0 1.25rem; margin-top: 0; }
.wp-block-details > :last-child { padding-bottom: 1rem; }

/* Blog */
.ms-post-grid { gap: 2rem 1.5rem !important; }
.ms-post-grid .wp-block-post-title { font-size: 1.2rem; margin: 0.9rem 0 0.4rem; }
.ms-post-grid .wp-block-post-title a { text-decoration: none; color: var(--ms-navy); }
.ms-post-grid .wp-block-post-excerpt__excerpt { color: var(--ms-muted); margin: 0; font-size: 0.97rem; }

/* ---------- Quote form ---------- */
.ms-quote { background: var(--wp--preset--color--base); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow-lg); padding: clamp(1.25rem, 3vw, 2rem); color: var(--ms-navy); }
.ms-quote__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.ms-quote__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem) !important; margin: 0 !important; color: var(--ms-navy) !important; }
.ms-steps { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.ms-steps li { width: 1.9rem; height: 0.35rem; border-radius: 99px; background: var(--ms-soft); font-size: 0; transition: background-color 0.3s ease; }
.ms-steps li.is-on { background: var(--ms-accent); }
.ms-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ms-js .ms-step { display: none; }
.ms-js .ms-step.is-on { display: block; animation: ms-step-in 0.3s ease; }
@keyframes ms-step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.ms-step legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.9rem; padding: 0; }
.ms-choices { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-bottom: 1rem; }
.ms-choices--inline { grid-template-columns: repeat(3, 1fr); margin: 0.25rem 0 0; }
.ms-choice { position: relative; display: block; cursor: pointer; }
.ms-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ms-choice span { display: block; padding: 0.75rem 0.9rem; border: 1.5px solid var(--ms-soft); border-radius: 10px; font-weight: 600; font-size: 0.95rem; line-height: 1.3; transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.ms-choices--inline .ms-choice span { text-align: center; padding: 0.6rem 0.5rem; font-size: 0.9rem; }
.ms-choice:hover span { border-color: var(--ms-muted); }
.ms-choice input:checked + span { border-color: var(--ms-accent); background: color-mix(in srgb, var(--ms-accent) 8%, transparent); box-shadow: inset 0 0 0 1px var(--ms-accent); }
.ms-choice input:focus-visible + span { outline: 2px solid var(--ms-accent); outline-offset: 2px; }
.ms-quote label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.ms-quote input:not([type="radio"]), .ms-quote textarea { width: 100%; box-sizing: border-box; padding: 0.75rem 0.9rem; border: 1.5px solid var(--ms-soft); border-radius: 10px; font: inherit; color: inherit; background: #fff; }
.ms-quote input:focus, .ms-quote textarea:focus { outline: none; border-color: var(--ms-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ms-accent) 20%, transparent); }
.ms-quote p { margin: 0 0 0.9rem; }
.ms-grid2 { display: grid; gap: 0 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ms-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ms-quote__nav { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.ms-quote__nav .wp-element-button { margin-left: auto; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.ms-back { background: none; border: 0; padding: 0.5rem 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--ms-muted); }
.ms-back:hover { color: var(--ms-navy); }
.ms-quote__error { color: #b91c1c; font-weight: 600; font-size: 0.92rem; margin: 0.25rem 0 0 !important; }
.ms-step--done { text-align: center; padding: 1.5rem 0.5rem !important; }
.ms-step--done h3 { margin: 0.75rem 0 0.4rem; }
.ms-done-icon { color: #fff; background: #16a34a; border-radius: 50%; padding: 0.6rem; width: 3.25rem; height: 3.25rem; box-sizing: border-box; }
.ms-quote__call, .ms-quote__note { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--ms-muted); text-align: center; }
.ms-quote__call + .ms-quote__note { margin-top: 0.3rem; }

/* ---------- Footer ---------- */
.ms-footer { background: var(--ms-navy); color: rgb(255 255 255 / 0.82); padding-top: clamp(2.5rem, 6vw, 4rem) !important; padding-bottom: 1.5rem !important; margin-top: 0 !important; font-size: 0.95rem; }
.ms-footer a { color: rgb(255 255 255 / 0.9); }
.ms-footer a:hover { color: #fff; }
.ms-footer__cta { gap: 1.5rem; padding-bottom: clamp(2rem, 5vw, 3rem); border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.ms-footer__cta h2 { color: #fff; margin: 0 0 0.3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ms-footer__cta p { margin: 0; }
.ms-footer__cta-actions { gap: 0.75rem; }
.ms-footer .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.ms-footer .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--ms-navy); border-color: #fff; }
.ms-footer__cols { padding-top: clamp(2rem, 5vw, 3rem); gap: 2rem !important; }
.ms-footer__name, .ms-footer__name a { color: #fff; font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.ms-footer__tagline { margin-top: 0.4rem; }
.ms-footer__title { color: #fff; font-size: 0.85rem !important; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 1rem; }
.ms-footer__nav { gap: 0.5rem !important; }
.ms-footer__nav a { text-decoration: none; }
.ms-footer .ms-hours li { border-color: rgb(255 255 255 / 0.12); }
.ms-footer .ms-hours__em { color: #fdba74; }
.ms-footer .ms-areas { margin-top: 0; }
.ms-footer .ms-areas li { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.12); color: #fff; font-size: 0.85rem; padding: 0.35rem 0.7rem; }
.ms-footer .ms-areas .ms-icon { color: #fdba74; }
.ms-footer .ms-areas__note { color: rgb(255 255 255 / 0.7); font-size: 0.88rem; }
.ms-footer .ms-inline-phone { color: #fdba74; }
.ms-footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.14); margin-top: clamp(2rem, 5vw, 3rem) !important; padding-top: 1.25rem; gap: 1rem; font-size: 0.85rem; }
.ms-footer__bottom p { margin: 0; }

/* ---------- Call and quote bar on phones ---------- */
.ms-mobilebar { display: none; }
@media (max-width: 781px) {
  .ms-mobilebar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--wp--preset--color--base); box-shadow: 0 -6px 20px rgb(15 27 45 / 0.15); padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); gap: 0.6rem; }
  .ms-mobilebar a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.8rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
  .ms-mobilebar__call { background: var(--ms-accent); color: #fff; }
  .ms-mobilebar__quote { background: var(--ms-navy); color: #fff; }
  body:has(.ms-mobilebar) { padding-bottom: 4.6rem; }
  .ms-hero__actions .ms-call { width: 100%; }
}

/* ---------- Reveal on scroll (only when JavaScript runs, never with reduced motion) ---------- */
/* Cards no longer fade in one by one (1.6.0: one calm page load instead of motion everywhere). */
.ms-js .is-in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ms-js .ms-reveal-off { transition: none; }
  .ms-dot { animation: none; }
  .ms-js .ms-step.is-on { animation: none; }
  .ms-service a, .ms-service a:hover { transition: none; transform: none; }
}

/* 1.0.1: no gap between the header and the page (WordPress adds the block gap between top-level parts) */
.wp-site-blocks > .ms-main, .wp-site-blocks > main { margin-block-start: 0 !important; }

/* Opening hours: day and time never break inside; in a narrow box the time drops to its own line, to the right */
.ms-hours li { flex-wrap: wrap; column-gap: 1rem; row-gap: 0.15rem; }
.ms-hours li span { white-space: nowrap; }
.ms-hours li span:last-child { margin-left: auto; }

/* Inner page sections (demo pages and patterns): numbers row, timeline, photo with text, cards */
.ms-content > .ms-section:first-child, .ms-content > .alignfull.ms-section:first-child { padding-top: 0 !important; }
.ms-page-head + .ms-content { margin-top: 0 !important; }
.ms-stats { gap: 1.25rem !important; margin: 0 !important; }
.ms-stats > .wp-block-column { text-align: center; padding: 1.25rem 0.75rem; }
.ms-stat__num { white-space: nowrap; font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1; color: var(--ms-accent); margin: 0 0 0.45rem; }
.ms-stat__label { margin: 0; color: var(--ms-muted); font-weight: 600; }
.ms-step-num--wide { width: auto; min-width: 3rem; padding: 0 1rem; border-radius: 999px; }
.ms-media { gap: clamp(1.5rem, 4vw, 3.5rem) !important; align-items: center !important; }
.ms-media .wp-block-image { margin: 0; }
.ms-media .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ms-radius); }
.ms-media h2 { margin-top: 0; }
.ms-media .ms-trust { margin-block: 1.25rem; }
.ms-town h3 { display: flex; align-items: center; gap: 0.4rem; }
.ms-town h3::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ms-accent); flex: none; }
.ms-faq-layout { gap: clamp(1.5rem, 4vw, 3rem) !important; align-items: flex-start !important; }
.ms-faq-layout h3 { margin-top: 2rem; }
.ms-faq-layout > .wp-block-column:last-child > h3:first-child { margin-top: 0; }
.ms-faq-layout .wp-block-details p { color: var(--ms-muted); }
.ms-next-steps { counter-reset: ms-next; list-style: none; padding: 0 !important; margin: 0 0 1.5rem; }
.ms-next-steps li { counter-increment: ms-next; position: relative; padding-left: 2.6rem; margin-bottom: 1rem !important; }
.ms-next-steps li::before { content: counter(ms-next); position: absolute; left: 0; top: -0.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ms-navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.ms-contact-cards { gap: 1.25rem !important; align-items: stretch !important; }
.ms-contact-cards > .wp-block-column > .is-style-ms-card { height: 100%; box-sizing: border-box; }
@media (max-width: 781px) {
  .ms-stats { display: grid !important; grid-template-columns: 1fr 1fr; }
  .ms-faq-layout .ms-sticky { position: static; }
}

/* Lists made by Mainstay blocks (services, reviews, areas, trust points, hours, details) are not indented in page content */
.ms-content :is(.ms-services, .ms-reviews, .ms-areas, .ms-trust, .ms-hours, .ms-info, .ms-social) { padding-left: 0; }
.ms-content :is(.ms-services, .ms-reviews, .ms-areas, .ms-trust, .ms-hours, .ms-info, .ms-social) > li { margin-bottom: 0; }

/* Footer: the opening hours column is narrow, so each day sits above its time */
.ms-footer .ms-hours li { display: block; }
.ms-footer .ms-hours li span { display: block; }
.ms-footer .ms-hours li span:last-child { margin-left: 0; text-align: left; }
@media (max-width: 781px) {
  /* Questions page: the questions first, the "Still not sure?" card after them */
  .ms-faq-layout > .wp-block-column:first-child:has(.ms-sticky) { order: 2; }
}

/* ===================== Designs (Mainstay settings > Home page > Design; class on <html>) =====================
   Classic is the base above. Each design changes the hero layout and the button shape; colours come from the
   active style (Appearance > Editor > Styles). The hero always contains the quote button, the form (when the
   page asks for it) and the emergency band; each design shows what it needs. */
.ms-hero__band { display: none; }
.ms-hero__inner.has-form .ms-hero__quote { display: none; }

/* No-form designs: the form is replaced by the quote button, and the call button sits beside it as a second button */
:is(.ms-design-split, .ms-design-bold, .ms-design-light, .ms-design-cutout) .ms-hero__form { display: none; }
:is(.ms-design-split, .ms-design-bold, .ms-design-light, .ms-design-cutout) .ms-hero__inner.has-form { grid-template-columns: minmax(0, 1fr); }
:is(.ms-design-split, .ms-design-bold, .ms-design-light, .ms-design-cutout) .ms-hero__inner.has-form .ms-hero__quote { display: inline-flex; }
:is(.ms-design-split, .ms-design-bold, .ms-design-light, .ms-design-cutout) .ms-hero__actions .ms-hero__quote { font-size: 1.1rem; padding: 1rem 1.6rem; }

/* Split: headline on a light half, full-height photo on the other half */
.ms-design-split .ms-hero { color: var(--ms-navy); background: var(--ms-cloud); }
.ms-design-split .ms-hero::before { display: none; }
.ms-design-split .ms-hero__title { color: var(--ms-navy); }
.ms-design-split .ms-hero__text { color: var(--ms-muted); }
.ms-design-split .ms-hero__eyebrow { background: var(--wp--preset--color--base); border-color: var(--ms-soft); color: var(--ms-navy); }
.ms-design-split .ms-hero .ms-trust { color: var(--ms-navy); }
.ms-design-split .ms-hero .ms-trust .ms-icon { color: var(--ms-accent); }
.ms-design-split .ms-hero .ms-call { background: transparent; color: var(--ms-navy); box-shadow: inset 0 0 0 2px var(--ms-navy); }
.ms-design-split .ms-hero .ms-call:hover { background: var(--ms-navy); color: #fff; }
@media (min-width: 960px) {
  .ms-design-split .ms-hero { min-height: 600px; }
  .ms-design-split .ms-hero__bg { left: auto; width: 48%; }
  .ms-design-split .ms-hero__inner { padding-right: calc(48% + clamp(2rem, 4vw, 4rem)); margin-left: max(var(--wp--style--root--padding-left, 1.25rem), calc((100% - var(--wp--style--global--wide-size)) / 2)); margin-right: 0; max-width: none; }
}
@media (max-width: 959px) {
  .ms-design-split .ms-hero { display: flex; flex-direction: column; }
  .ms-design-split .ms-hero__bg { position: relative; inset: auto; height: 260px; z-index: 0; }
}

/* Bold centre: a darker photo, a big centred headline and a large call button */
.ms-design-bold .ms-hero::before { background: linear-gradient(180deg, rgb(8 12 20 / 0.7), rgb(8 12 20 / 0.82)); }
.ms-design-bold .ms-hero__inner { text-align: center; justify-items: center; padding-top: clamp(3.5rem, 10vw, 8rem); padding-bottom: clamp(3.5rem, 10vw, 8rem); }
.ms-design-bold .ms-hero__copy { display: flex; flex-direction: column; align-items: center; }
.ms-design-bold .ms-hero__title { font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 17ch; letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.98; }
.ms-design-bold .ms-hero__text { margin-inline: auto; }
.ms-design-bold .ms-hero__actions { justify-content: center; }
.ms-design-bold .ms-hero .ms-trust { grid-auto-flow: column; justify-content: center; gap: 0.5rem 1.5rem; }
@media (max-width: 781px) { .ms-design-bold .ms-hero .ms-trust { grid-auto-flow: row; justify-items: center; } }
.ms-design-bold .ms-hero .ms-call { background: transparent; box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.ms-design-bold :is(.wp-element-button, .ms-call, .ms-quote button) { border-radius: 6px; }

/* Clean light: white page, photo as a rounded card, pill buttons */
.ms-design-light .ms-hero { color: var(--ms-navy); background: var(--wp--preset--color--base); }
.ms-design-light .ms-hero::before { display: none; }
.ms-design-light .ms-hero__title { color: var(--ms-navy); }
.ms-design-light .ms-hero__text { color: var(--ms-muted); }
.ms-design-light .ms-hero__eyebrow { background: var(--ms-cloud); border-color: var(--ms-soft); color: var(--ms-navy); }
.ms-design-light .ms-hero .ms-trust { color: var(--ms-navy); }
.ms-design-light .ms-hero .ms-trust .ms-icon { color: var(--ms-teal); }
.ms-design-light .ms-hero .ms-call { background: var(--ms-cloud); color: var(--ms-navy); box-shadow: inset 0 0 0 1px var(--ms-soft); }
.ms-design-light .ms-hero__bg { border-radius: 28px; box-shadow: var(--ms-shadow-lg); }
.ms-design-light :is(.wp-element-button, .ms-call, .ms-quote button) { border-radius: 999px; }
@media (min-width: 960px) {
  .ms-design-light .ms-hero { min-height: 580px; }
  .ms-design-light .ms-hero__bg { left: auto; right: max(var(--wp--style--root--padding-right, 1.25rem), calc((100% - var(--wp--style--global--wide-size)) / 2)); top: 2.5rem; bottom: 2.5rem; height: auto; width: 44%; }
  .ms-design-light .ms-hero__inner { padding-right: calc(44% + clamp(3rem, 6vw, 6rem)); }
}
@media (max-width: 959px) {
  .ms-design-light .ms-hero { display: flex; flex-direction: column-reverse; }
  .ms-design-light .ms-hero__bg { position: relative; inset: auto; height: 240px; width: auto; margin: 0 var(--wp--style--root--padding-right, 1.25rem) 2rem; z-index: 0; }
}

/* Emergency: dark, a call band at the very top of the hero, accent top bar, call button first */
.ms-design-emergency .ms-topbar-wrap { background: var(--ms-accent); }
.ms-design-emergency .ms-hero::before { background: linear-gradient(100deg, rgb(12 12 14 / 0.95) 0%, rgb(12 12 14 / 0.84) 45%, rgb(12 12 14 / 0.6) 100%); }
.ms-design-emergency .ms-hero__band { display: flex; position: relative; z-index: 1; justify-content: center; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; background: var(--ms-accent); color: #fff; font-weight: 700; text-decoration: none; font-size: 1.02rem; text-align: center; }
.ms-design-emergency .ms-hero__band:hover strong { text-decoration: underline; }
.ms-design-emergency .ms-hero__eyebrow { background: var(--ms-accent); border-color: transparent; }
.ms-design-emergency .ms-hero__eyebrow .ms-dot { background: #fff; }
.ms-design-emergency .ms-hero__title { text-transform: uppercase; letter-spacing: -0.02em; }
.ms-design-emergency :is(.wp-element-button, .ms-call, .ms-quote button) { border-radius: 8px; }

/* ===================== Demo only: the "Try a design" switcher ===================== */
.ms-switcher { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; font-size: 0.92rem; }
.ms-switcher__toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.6rem 1rem; border: 0; border-radius: 999px; background: var(--ms-navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--ms-shadow-lg); }
.ms-switcher__panel { position: absolute; left: 0; bottom: calc(100% + 0.6rem); width: min(320px, calc(100vw - 2rem)); background: var(--wp--preset--color--base); color: var(--ms-navy); border-radius: 16px; padding: 1rem; box-shadow: var(--ms-shadow-lg); border: 1px solid var(--ms-soft); }
.ms-switcher__title { margin: 0 0 0.5rem; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ms-muted); }
.ms-switcher__designs, .ms-switcher__styles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.ms-switcher__panel button[data-design], .ms-switcher__panel button[data-reviews], .ms-switcher__panel button[data-form], .ms-switcher__panel button[data-header], .ms-switcher__panel button[data-mmenu], .ms-style-dot { min-height: 40px; padding: 0.45rem 0.75rem; border-radius: 10px; border: 1px solid var(--ms-soft); background: var(--ms-cloud); color: var(--ms-navy); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; }
.ms-switcher__panel button[aria-pressed="true"] { border-color: var(--ms-navy); background: var(--ms-navy); color: #fff; }
.ms-style-dot i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--sw1) 50%, var(--sw2) 50%); border: 1px solid rgb(0 0 0 / 0.15); }
.ms-switcher__note { margin: 0; font-size: 0.82rem; color: var(--ms-muted); }
@media (max-width: 781px) { .ms-switcher { bottom: 5.25rem; } } /* above the call and quote bar on phones */
@media print { .ms-switcher { display: none; } }

/* The top bar right side (emergency line, phone) never breaks inside an item */
.ms-topbar__right p, .ms-topbar__right a { white-space: nowrap; }

/* ===================== Reviews layouts (.ms-rv[data-layout]: grid, slider, spotlight, list) ===================== */
.ms-rv { position: relative; }
.ms-rv-nav { display: none; }
/* Slider and spotlight: a row that scrolls sideways and snaps to each review */
.ms-rv:is([data-layout="slider"], [data-layout="spotlight"]) .ms-reviews { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0.5rem 0.25rem 1.25rem; margin: -0.5rem -0.25rem 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.ms-rv:is([data-layout="slider"], [data-layout="spotlight"]) .ms-reviews::-webkit-scrollbar { display: none; }
.ms-rv:is([data-layout="slider"], [data-layout="spotlight"]) .ms-reviews > li { scroll-snap-align: start; }
.ms-rv:is([data-layout="slider"], [data-layout="spotlight"]) .ms-reviews:focus-visible { outline: 3px solid var(--ms-accent); outline-offset: 4px; border-radius: var(--ms-radius); }
.ms-rv:is([data-layout="slider"], [data-layout="spotlight"]) .ms-rv-nav { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.25rem; }
.ms-rv.is-static .ms-rv-nav { display: none; }
.ms-rv-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ms-soft); background: var(--wp--preset--color--base); color: var(--ms-navy); font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s ease, border-color 0.2s ease; }
.ms-rv-nav button:hover:not(:disabled) { border-color: var(--ms-navy); background: var(--ms-navy); color: #fff; }
.ms-rv-nav button:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 959px) { .ms-rv[data-layout="slider"] .ms-reviews { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 640px) { .ms-rv[data-layout="slider"] .ms-reviews { grid-auto-columns: 86%; } }
/* Spotlight: one large review at a time, centred */
.ms-rv[data-layout="spotlight"] .ms-reviews { grid-auto-columns: 100%; }
.ms-rv[data-layout="spotlight"] .ms-review figure { text-align: center; align-items: center; padding: clamp(1.75rem, 5vw, 3.5rem); }
.ms-rv[data-layout="spotlight"] .ms-review blockquote { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; max-width: 46rem; margin-inline: auto; font-family: var(--wp--preset--font-family--archivo); font-weight: 600; color: var(--ms-navy); }
.ms-rv[data-layout="spotlight"] .ms-review figcaption { align-items: center; }
.ms-rv[data-layout="spotlight"] .ms-rv-nav { justify-content: center; }
/* List: quotes stacked, no cards, a line on the left */
.ms-rv[data-layout="list"] .ms-reviews { grid-template-columns: 1fr; max-width: 52rem; gap: 1.75rem; }
.ms-rv[data-layout="list"] .ms-review figure { background: none; box-shadow: none; border-radius: 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 4px solid var(--ms-accent); }
.ms-rv[data-layout="list"] .ms-review blockquote { font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .ms-rv .ms-reviews { scroll-behavior: auto; } }

/* ===================== Quote form layouts ===================== */
/* All on one page: every question shown, numbered, no step dots and no Next/Back */
.ms-quote--single .ms-steps { display: none; }
.ms-quote--single .ms-step.is-on + .ms-step.is-on { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--ms-soft); }

/* Demo switcher: a small round button on phones, so it never covers the page */
@media (max-width: 781px) {
  .ms-switcher { left: 0.75rem; bottom: 4.9rem; }
  .ms-switcher__toggle { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .ms-switcher__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* In the slider layouts every card is ready (no fade-in waiting for cards that start off to the side) */
.ms-js .ms-rv:is([data-layout="slider"], [data-layout="spotlight"]) .ms-reviews > li { opacity: 1; transform: none; }

/* WhatsApp in the phone bar (when a number is set): three buttons side by side */
@media (max-width: 781px) {
  .ms-mobilebar:has(.ms-mobilebar__wa) { grid-template-columns: 1fr 1fr 1fr; gap: 0.45rem; }
  .ms-mobilebar__wa { background: #1f7a45; color: #fff; }
  .ms-mobilebar:has(.ms-mobilebar__wa) a { padding: 0.8rem 0.4rem; font-size: 0.92rem; gap: 0.3rem; }
}
/* "See all our reviews on Google" under the reviews */
.ms-rv-more { margin: 1.25rem 0 0; font-weight: 700; }
.ms-rv:is([data-layout="slider"], [data-layout="spotlight"]) .ms-rv-more { margin-top: 0.5rem; }
@media (max-width: 400px) {
  .ms-mobilebar:has(.ms-mobilebar__wa) a { white-space: nowrap; }
  .ms-mobilebar:has(.ms-mobilebar__wa) a svg { display: none; } /* three labels fit on small phones without icons */
}

/* Extra quote form questions (Mainstay settings > Quote form) */
.ms-extra { margin: 0 0 0.9rem; }
.ms-extra__label { font-weight: 600; font-size: 0.9rem; margin: 0 0 0.4rem !important; }
.ms-optional { font-weight: 400; color: var(--ms-muted); }

/* Locations block */
.ms-locations { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ms-location { background: var(--wp--preset--color--base); border: 1px solid var(--ms-soft); border-radius: var(--ms-radius); padding: 1.4rem; box-shadow: var(--ms-shadow); display: flex; flex-direction: column; gap: 0.5rem; }
.ms-location h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.ms-location p { margin: 0; display: flex; gap: 0.5rem; align-items: flex-start; }
.ms-location .ms-icon { color: var(--ms-accent); flex: none; margin-top: 0.15rem; }
.ms-location__map { margin-top: auto; padding-top: 0.5rem; font-weight: 700; }

/* Booking block */
.ms-booking iframe { width: 100%; border: 1px solid var(--ms-soft); border-radius: var(--ms-radius); background: var(--wp--preset--color--base); display: block; }
.ms-booking__alt { margin: 0.75rem 0 0; font-size: 0.92rem; color: var(--ms-muted); text-align: center; }
.ms-switcher__sites a { min-height: 40px; padding: 0.45rem 0.75rem; border-radius: 10px; border: 1px solid var(--ms-soft); background: var(--ms-cloud); color: var(--ms-navy); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.ms-switcher__sites a:hover { border-color: var(--ms-navy); }
.ms-switcher__sites a[aria-current="page"] { background: var(--ms-navy); border-color: var(--ms-navy); color: #fff; }
/* The panel opens upwards from the button: its height leaves room for the button below and a gap above. */
.ms-switcher__panel { box-sizing: border-box; max-height: calc(100vh - 5.5rem); max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 781px) { .ms-switcher__panel { max-height: calc(100vh - 9.75rem); max-height: calc(100dvh - 9.75rem); } }
/* Footer call button: full white text (the footer link colour, 90% white, fell just under 4.5:1 on the orange) */
.ms-footer .ms-call:not(.is-outline), .ms-footer .ms-call:not(.is-outline):hover { color: #fff; }

/* ---------- Our work, Team and Offers (1.5.0) ---------- */
.ms-section--auto:not(:has(*)) { display: none; }
.ms-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.ms-sec-head .ms-eyebrow { margin: 0 0 0.4rem; }
.ms-sec-head h2 { margin: 0; }
.ms-sec-head__link { font-weight: 600; text-decoration: none; color: var(--ms-navy); }
.ms-sec-head__link:hover { color: var(--ms-accent); }
.ms-work__grid, .ms-team__grid, .ms-offers__grid { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 1.25rem; }
.ms-work__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-work__grid.ms-cols-1 { grid-template-columns: minmax(0, 1fr); }
.ms-work__grid.ms-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ms-work__grid.ms-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .ms-work__grid.ms-cols-3, .ms-work__grid.ms-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ms-work__grid[class*='ms-cols-'] { grid-template-columns: minmax(0, 1fr); } }
.ms-work__item figure { position: relative; margin: 0; height: 100%; display: flex; flex-direction: column; border-radius: var(--ms-radius); overflow: hidden; background: var(--wp--preset--color--base); box-shadow: var(--ms-shadow); }
.ms-work__item img, .ms-work__noimg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; flex: none; }
.ms-work__noimg { display: grid; place-items: center; background: var(--ms-cloud); color: var(--ms-muted); }
.ms-work__item figcaption { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.15rem 1.2rem; font-size: 0.93rem; }
.ms-work__item figcaption strong { color: var(--ms-navy); font-size: 1.05rem; }
.ms-work__meta { color: var(--ms-accent); font-weight: 600; font-size: 0.86rem; }
.ms-work__text { color: var(--ms-muted); }
.ms-work__sample { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgb(15 27 45 / 0.72); color: #fff; font-size: 0.75rem; font-weight: 600; }
.ms-team__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1.5rem; }
@media (max-width: 600px) { .ms-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.ms-team__item { display: flex; flex-direction: column; gap: 0.2rem; text-align: center; }
.ms-team__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); margin-bottom: 0.75rem; }
.ms-team__photo--none { display: grid; place-items: center; background: var(--ms-cloud); color: var(--ms-muted); }
.ms-team__name { color: var(--ms-navy); font-size: 1.08rem; }
.ms-team__role { color: var(--ms-accent); font-weight: 600; font-size: 0.9rem; }
.ms-team__bio { color: var(--ms-muted); font-size: 0.92rem; }
.ms-offers__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ms-offer { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem 1.4rem 1.3rem; border: 2px dashed var(--ms-accent); border-radius: var(--ms-radius); background: var(--wp--preset--color--base); }
.ms-offer__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ms-cloud); color: var(--ms-accent); margin-bottom: 0.4rem; }
.ms-offer__title { color: var(--ms-navy); font-size: 1.2rem; line-height: 1.25; }
.ms-offer__text { color: var(--ms-navy); }
.ms-offer__terms { color: var(--ms-muted); font-size: 0.85rem; }
.ms-offer__link { margin-top: auto; padding-top: 0.6rem; font-weight: 700; color: var(--ms-accent); text-decoration: none; }
.ms-offer__link:hover { text-decoration: underline; }
.ms-visit img { border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); }

/* Plans, numbers, badges and latest articles (1.5.0) */
.ms-numbers-wrap { padding-top: 0 !important; padding-bottom: 0 !important; }
.ms-numbers { list-style: none; margin: clamp(-2.5rem, -4vw, -1.5rem) auto 0 !important; padding: 1.4rem 1.5rem !important; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1rem; background: var(--wp--preset--color--base); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow-lg); }
.ms-numbers li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem; }
.ms-numbers strong { font-family: var(--wp--preset--font-family--archivo); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--ms-accent); }
.ms-numbers span { color: var(--ms-muted); font-size: 0.9rem; }
.ms-plans__grid, .ms-badges__grid, .ms-articles__grid { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 1.25rem; }
.ms-plans__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; }
.ms-plan { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--ms-radius); background: var(--wp--preset--color--base); box-shadow: var(--ms-shadow); border: 2px solid transparent; }
.ms-plan--top { border-color: var(--ms-accent); box-shadow: var(--ms-shadow-lg); }
.ms-plan__flag { position: absolute; top: -0.8rem; left: 1.5rem; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--ms-accent); color: #fff; font-size: 0.78rem; font-weight: 700; }
.ms-plan__name { color: var(--ms-navy); font-size: 1.15rem; }
.ms-plan__price { font-family: var(--wp--preset--font-family--archivo); font-size: 2.3rem; font-weight: 800; line-height: 1.1; color: var(--ms-navy); }
.ms-plan__price small { font-family: inherit; font-size: 0.95rem; font-weight: 500; color: var(--ms-muted); }
.ms-plan__list { list-style: none; margin: 0.5rem 0 1rem !important; padding: 0 !important; display: grid; gap: 0.5rem; }
.ms-plan__list li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.95rem; }
.ms-plan__list .ms-icon { flex: none; color: var(--ms-accent); margin-top: 0.15rem; }
.ms-plan__btn { margin-top: auto; display: block; text-align: center; padding: 0.8rem 1rem; border-radius: 999px; background: var(--ms-accent); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--ms-accent); }
.ms-plan__btn.is-outline { background: transparent; color: var(--ms-navy); border-color: var(--ms-navy); }
.ms-plan__btn:hover { opacity: 0.9; }
.ms-badges__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ms-badge-card { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.2rem; border-radius: var(--ms-radius); background: var(--wp--preset--color--base); box-shadow: var(--ms-shadow); }
.ms-badge-card__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ms-cloud); color: var(--ms-accent); }
.ms-badge-card strong { display: block; color: var(--ms-navy); }
.ms-badge-card span span { display: block; color: var(--ms-muted); font-size: 0.92rem; margin-top: 0.15rem; }
.ms-articles__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ms-article a { display: flex; flex-direction: column; height: 100%; border-radius: var(--ms-radius); overflow: hidden; background: var(--wp--preset--color--base); box-shadow: var(--ms-shadow); text-decoration: none; color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ms-article a:hover { transform: translateY(-3px); box-shadow: var(--ms-shadow-lg); }
.ms-article img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ms-article__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem 1.3rem; }
.ms-article__body time { color: var(--ms-accent); font-size: 0.82rem; font-weight: 600; }
.ms-article__body strong { color: var(--ms-navy); font-size: 1.08rem; line-height: 1.3; }
.ms-article__body span { color: var(--ms-muted); font-size: 0.93rem; }
@media (prefers-reduced-motion: reduce) { .ms-article a:hover { transform: none; } }
@media (max-width: 600px) { .ms-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.1rem 1rem !important; } }

/* Town pages (1.5.0) */
.ms-areas li:has(> a) { padding: 0; }
.ms-areas a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.9rem; color: inherit; text-decoration: none; border-radius: 999px; }
.ms-areas a:hover { color: var(--ms-accent); background: var(--wp--preset--color--base); }
.ms-areas li[aria-current] { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; }
.ms-areas li[aria-current] .ms-icon { color: #fff; }
a.ms-badge { color: inherit; text-decoration: none; }
a.ms-badge:hover { text-decoration: underline; }
.ms-privacy-link { margin: 0; }
.ms-privacy-link a { color: inherit; }
/* Demo sites: keep the last footer line clear of the "Try a design" button. */
body:has(.ms-switcher) .ms-footer__bottom { padding-bottom: 4rem; }

/* Project pages and the before and after slider (1.5.0) */
.ms-work__item figure { position: relative; }
.ms-work__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--ms-radius); }
.ms-work__link:focus-visible { outline: 3px solid var(--ms-accent); outline-offset: 3px; }
.ms-work__item figure:has(.ms-work__link:hover) figcaption strong { color: var(--ms-accent); }
.ms-work__ba { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--ms-accent); color: #fff; font-size: 0.75rem; font-weight: 700; }
.ms-ba { position: relative; overflow: hidden; border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); aspect-ratio: 3 / 2; user-select: none; }
.ms-ba img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.ms-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ms-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); pointer-events: none; }
.ms-ba__line::after { content: ''; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: var(--ms-shadow); }
.ms-ba__tag { position: absolute; bottom: 0.8rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgb(15 27 45 / 0.72); color: #fff; font-size: 0.8rem; font-weight: 700; pointer-events: none; }
.ms-ba__tag--before { left: 0.8rem; }
.ms-ba__tag--after { right: 0.8rem; }
.ms-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ms-ba:has(.ms-ba__range:focus-visible) { outline: 3px solid var(--ms-accent); outline-offset: 3px; }
.ms-project { margin-bottom: 2rem; }
.ms-project__photo { display: block; width: 100%; height: auto; border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); }
.ms-project__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.25rem 0 0; padding: 1rem 1.25rem; border-radius: var(--ms-radius); background: var(--ms-cloud); }
.ms-project__facts dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ms-muted); }
.ms-project__facts dd { margin: 0.1rem 0 0; font-weight: 600; color: var(--ms-navy); }
.ms-project__sample { margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--ms-muted); font-style: italic; }

/* Offer end date and countdown (1.5.1) */
.ms-offer__ends { position: absolute; top: 1.1rem; right: 1.1rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--ms-cloud); color: var(--ms-navy); font-size: 0.78rem; font-weight: 700; }
.ms-offer__ends.is-soon { background: var(--ms-accent); color: #fff; }

/* Long menus (1.5.1): the menu button takes over below 1024px (WordPress only does this below 600px), so a menu with
   many pages never overflows on tablets. On wide screens a long menu wraps onto a second line instead. */
@media (max-width: 1023px) {
  .ms-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .ms-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
/* The business name and the quote button never wrap. Long menus (8+ links) use the menu button up to 1366px,
   very long ones (12+ links) on every screen. */
.ms-site-title, .ms-site-title a { white-space: nowrap; }
.ms-header__right .wp-block-button__link, .ms-header__right .wp-block-button { white-space: nowrap; flex-shrink: 0; }
}
.ms-nav:has(.wp-block-navigation__container > .wp-block-navigation-item:nth-child(12)) .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
.ms-nav:has(.wp-block-navigation__container > .wp-block-navigation-item:nth-child(12)) .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
@media (min-width: 1024px) {
  .ms-nav .wp-block-navigation__container { flex-wrap: wrap; justify-content: flex-end; row-gap: 0.25rem; }
  .ms-header__right { min-width: 0; }
}

/* Questions chat (1.5.1) */
.ms-chat-bubble { position: fixed; right: 1rem; bottom: 1rem; z-index: 61; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.1rem; border: 0; border-radius: 999px; background: var(--ms-accent); color: #fff; font: inherit; font-weight: 700; box-shadow: var(--ms-shadow-lg); cursor: pointer; }
.ms-chat-bubble:focus-visible { outline: 3px solid var(--ms-navy); outline-offset: 3px; }
.ms-chat-bubble.is-open span { display: none; }
@media (max-width: 781px) { .ms-chat-bubble { bottom: 5.25rem; right: 0.75rem; padding: 0.75rem; } .ms-chat-bubble span { display: none; } }
.ms-chat { position: fixed; right: 1rem; bottom: 5rem; z-index: 62; width: min(370px, calc(100vw - 1.5rem)); max-height: min(560px, calc(100vh - 7rem)); display: flex; flex-direction: column; border-radius: var(--ms-radius); background: var(--wp--preset--color--base); box-shadow: var(--ms-shadow-lg); overflow: hidden; font-size: 0.95rem; }
.ms-chat[hidden] { display: none; }
@media (max-width: 781px) { .ms-chat { right: 0.75rem; bottom: 9.25rem; max-height: calc(100vh - 11rem); } }
.ms-chat__head { flex: none; position: relative; display: flex; flex-direction: column; padding: 0.9rem 3rem 0.9rem 1.1rem; background: var(--ms-navy); color: #fff; }
.ms-chat__head span { font-size: 0.85rem; opacity: 0.8; }
.ms-chat__close { position: absolute; top: 0.6rem; right: 0.6rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.15); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.ms-chat__log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ms-chat__msg { max-width: 88%; padding: 0.6rem 0.85rem; border-radius: 14px; line-height: 1.5; }
.ms-chat__msg p { margin: 0.5rem 0 0; }
.ms-chat__msg--bot { align-self: flex-start; background: var(--ms-cloud); color: var(--ms-navy); border-bottom-left-radius: 4px; }
.ms-chat__msg--me { align-self: flex-end; background: var(--ms-accent); color: #fff; border-bottom-right-radius: 4px; }
.ms-chat__msg a { color: inherit; font-weight: 600; }
.ms-chat__more { font-size: 0.85rem; opacity: 0.75; }
.ms-chat__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.ms-chat__btn { padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--ms-accent); color: #fff !important; text-decoration: none; font-size: 0.85rem; }
.ms-chat__chips { flex: none; display: flex; gap: 0.4rem; padding: 0.35rem 1rem 0.75rem; overflow-x: auto; scrollbar-width: thin; }
.ms-chat__chip { flex: none; max-width: 240px; padding: 0.45rem 0.8rem; border: 1px solid var(--ms-soft); border-radius: 999px; background: var(--wp--preset--color--base); color: var(--ms-navy); font: inherit; font-size: 0.85rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ms-chat__chip:hover { border-color: var(--ms-accent); color: var(--ms-accent); }
.ms-chat__form { flex: none; display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--ms-soft); }
.ms-chat__form input { flex: 1; min-width: 0; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--ms-soft); border-radius: 10px; font: inherit; }
.ms-chat__form button { min-height: 44px; padding: 0 1rem; border: 0; border-radius: 10px; background: var(--ms-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* Quote form progress (1.5.1): a visible "Step 1 of 3" and thicker bars, so a tap on Next clearly moves on. */
.ms-steps-wrap { display: flex; align-items: center; gap: 0.6rem; }
.ms-steps-label { font-size: 0.8rem; font-weight: 700; color: var(--ms-muted); white-space: nowrap; }
.ms-steps li { height: 0.45rem; width: 2.2rem; }
.ms-steps li.is-on { background: var(--ms-accent); }
.ms-step legend:focus { outline: none; }
@media (max-width: 480px) { .ms-quote__head { flex-wrap: wrap; row-gap: 0.4rem; } }

/* Core blocks look finished when added on any page (1.5.1). */
.ms-content ul.is-style-ms-checks, ul.is-style-ms-checks { list-style: none; padding-left: 0; }
ul.is-style-ms-checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.55rem; }
ul.is-style-ms-checks li::before { content: ''; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ms-cloud) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.wp-block-table th, .wp-block-table td { padding: 0.75rem 1rem; border: 0; border-bottom: 1px solid var(--ms-soft); text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--ms-cloud); color: var(--ms-navy); font-weight: 700; }
.wp-block-table { overflow-x: auto; }
.wp-block-table.is-style-ms-price-list { border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); background: var(--wp--preset--color--base); }
.wp-block-table.is-style-ms-price-list table { font-size: 1rem; }
.wp-block-table.is-style-ms-price-list td:last-child, .wp-block-table.is-style-ms-price-list th:last-child { text-align: right; font-weight: 700; color: var(--ms-navy); white-space: nowrap; }
.wp-block-table.is-style-ms-price-list tr:last-child td { border-bottom: 0; }
.wp-block-table figcaption { font-size: 0.85rem; color: var(--ms-muted); }
.ms-content .wp-block-gallery img { border-radius: 12px; }
.ms-no-results { margin-top: 1.5rem; }
.ms-no-results h2 { margin-top: 0; }
/* "Try a design" first-visit hint (demo sites only). */
.ms-switcher__hint { position: absolute; left: 0; bottom: calc(100% + 0.6rem); width: max-content; max-width: min(260px, 70vw); padding: 0.6rem 0.85rem; border: 0; border-radius: 12px; background: var(--ms-accent); color: #fff; font: inherit; font-size: 0.88rem; line-height: 1.35; text-align: left; box-shadow: var(--ms-shadow-lg); cursor: pointer; animation: ms-hint-in 0.35s ease both; }
.ms-switcher__hint::after { content: ''; position: absolute; left: 1.2rem; top: 100%; border: 7px solid transparent; border-top-color: var(--ms-accent); }
.ms-switcher__hint.is-gone { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
@keyframes ms-hint-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ms-switcher__hint { animation: none; } .ms-switcher__hint.is-gone { transition: none; } }
.ms-no-results .ms-call-wrap, .ms-no-results .ms-call { width: auto; }
.ms-no-results > .wp-block-group { gap: 0.75rem; align-items: center; margin-bottom: 1.5rem; }

/* Quote form privacy note and consent (1.5.1) */
.ms-privacy-note { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--ms-muted); }
.ms-privacy-note a, .ms-consent a { color: inherit; }
.ms-consent { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--ms-navy); }
.ms-consent label { display: inline-flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.ms-consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--ms-accent); flex: none; }

/* Reviews and Quote form choices in the switcher: same rounded buttons as the designs (1.5.1). */
.ms-switcher__panel button[data-reviews], .ms-switcher__panel button[data-form], .ms-switcher__panel button[data-header], .ms-switcher__panel button[data-mmenu] { min-height: 36px; padding: 0.35rem 0.8rem; font-size: 0.88rem; }
.ms-switcher__panel button[data-design]:hover, .ms-switcher__panel button[data-reviews]:hover, .ms-switcher__panel button[data-form]:hover, .ms-switcher__panel button[data-header]:hover, .ms-switcher__panel button[data-mmenu]:hover { border-color: var(--ms-navy); }
.ms-switcher__panel button:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 2px; }

/* Hero "call first" card (1.5.1): for emergency trades, a dominant tap-to-call button instead of the form. */
.ms-hero__callcard { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--ms-radius); background: var(--wp--preset--color--base); color: var(--ms-navy); box-shadow: var(--ms-shadow-lg); text-align: center; }
.ms-callcard__eyebrow { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; font-weight: 700; font-size: 0.9rem; color: var(--ms-accent); }
.ms-callcard__btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.9rem; padding: 1.2rem 1rem; border-radius: 18px; background: var(--ms-accent); color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgb(0 0 0 / 0.18); }
.ms-callcard__btn small { display: block; font-size: 0.85rem; font-weight: 600; opacity: 0.9; text-align: left; }
.ms-callcard__btn strong { display: block; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.1; letter-spacing: -0.01em; }
.ms-callcard__btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--ms-accent); animation: ms-call-pulse 2.2s ease-out infinite; }
@keyframes ms-call-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ms-accent) 55%, transparent); } 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ms-callcard__note { margin: 0; font-size: 0.92rem; color: var(--ms-muted); }
.ms-callcard__quote { font-weight: 700; color: var(--ms-navy); }
@media (prefers-reduced-motion: reduce) { .ms-callcard__btn::after { animation: none; } }

/* Repeated question: the answer already shown flashes once instead of being added again (1.5.1). */
.ms-chat__msg.is-again { animation: ms-chat-again 0.7s ease-out; }
@keyframes ms-chat-again { 0%, 100% { transform: none; opacity: 1; } 30% { transform: scale(1.03); opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .ms-chat__msg.is-again { animation: none; } }

/* Work right under the hero (setting work_first, 1.5.1): bigger photos for trades that sell on looks. Empty wrapper hides when the block shows nothing. */
.ms-work-top:not(:has(.ms-work)) { display: none; }
.ms-work--feature .ms-work__grid { gap: 1.5rem; }
.ms-work--feature .ms-work__item img { aspect-ratio: 3 / 2; }
@media (max-width: 700px) { .ms-work--feature .ms-work__grid { grid-template-columns: minmax(0, 1fr); } }

/* Good to know section (1.6.0): a short numbered trade checklist on the home page. */
.ms-tips__intro { max-width: 46rem; margin: -0.5rem 0 1.5rem; color: var(--ms-muted); }
.ms-tips__grid { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ms-tip { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid var(--ms-line, #e5e7eb); border-radius: var(--ms-radius); background: var(--wp--preset--color--base); }
.ms-tip__num { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ms-accent); color: #fff; font-weight: 700; font-size: 0.95rem; }
.ms-tip strong { display: block; color: var(--ms-navy); margin-bottom: 0.2rem; }
.ms-tip span span { display: block; color: var(--ms-muted); font-size: 0.95rem; }
.ms-tips__cta { margin: 1.25rem 0 0; font-weight: 600; }
.ms-tips__cta a { color: var(--ms-accent); }

/* ---------- Menus (1.6.0): dropdowns, header layouts and phone menu styles ---------- */
/* Desktop dropdowns: a card with room for longer names; very long lists scroll. */
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { min-width: 15.5rem !important; padding: 0.4rem !important; border: 1px solid var(--ms-line, #e5e7eb) !important; border-radius: 12px; background: var(--wp--preset--color--base) !important; color: var(--ms-navy) !important; box-shadow: 0 16px 40px rgb(15 27 45 / 0.14); }
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { max-height: min(70vh, 34rem); overflow-y: auto; overscroll-behavior: contain; }
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 0.75rem !important; border-radius: 8px; line-height: 1.35; }
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible { background: color-mix(in srgb, var(--ms-accent) 10%, transparent); color: var(--ms-accent); }
 /* Deeper levels sit indented inside the same card: nothing flies out off-screen or over the page. */
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .has-child { flex-direction: column; align-items: stretch !important; }
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-submenu__toggle { display: none !important; }
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container { position: static !important; visibility: inherit !important; opacity: 1 !important; width: auto !important; height: auto !important; min-width: 0 !important; max-height: none; overflow: visible !important; margin: 0 0 0.25rem 0.85rem !important; padding: 0 0 0 0.5rem !important; border: 0 !important; border-left: 2px solid var(--ms-line, #e5e7eb) !important; border-radius: 0; background: transparent !important; box-shadow: none !important; transform: none !important; }
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding-block: 0.4rem !important; font-size: 0.92em; color: var(--ms-muted); }

/* Header layouts on computers (the same 1024px line where the menu button gives way to the links). */
@media (min-width: 1024px) {
  html.ms-header-center:not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8))) .ms-header__right { flex: 1; justify-content: space-between !important; }
  html.ms-header-center:not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8))) nav.ms-nav { flex: 1; --navigation-layout-justification-setting: center; --navigation-layout-justify: center; }
  html.ms-header-center .ms-nav .wp-block-navigation__container { justify-content: center !important; }
  :is(html.ms-header-stacked:not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12))), html:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8)):not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12)))) .ms-mainbar__row { flex-wrap: wrap !important; row-gap: 0; }
  :is(html.ms-header-stacked:not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12))), html:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8)):not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12)))) .ms-header__right { display: contents; }
  :is(html.ms-header-stacked:not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12))), html:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8)):not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12)))) .ms-header__quote { order: 2; }
  :is(html.ms-header-stacked:not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12))), html:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8)):not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12)))) nav.ms-nav { order: 3; flex: 0 0 100%; padding-block: 0.6rem; margin-top: 0.75rem; border-top: 1px solid var(--ms-line, #e5e7eb); --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
  :is(html.ms-header-stacked:not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12))), html:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8)):not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12)))) .ms-nav .wp-block-navigation__container { justify-content: flex-start !important; flex-wrap: wrap; column-gap: 1.75rem; row-gap: 0.25rem; }
  :is(html.ms-header-stacked:not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12))), html:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8)):not(:has(nav.ms-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(12)))) .ms-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { left: 0 !important; right: auto !important; }
}

/* Phone menu, all styles: left-aligned, clear levels, submenus open with a tap. */
.ms-nav .wp-block-navigation__responsive-container.is-menu-open { box-sizing: border-box; padding: 1rem 1.5rem 7rem !important; background: var(--wp--preset--color--base) !important; color: var(--ms-navy) !important; overflow-y: auto; }
.ms-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 3.25rem !important; }
.ms-nav .is-menu-open .wp-block-navigation__container { align-items: stretch !important; gap: 0 !important; width: 100%; }
.ms-nav .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; font-size: 1.15rem !important; font-weight: 700 !important; border-bottom: 1px solid var(--ms-line, #e5e7eb); }
.ms-nav .is-menu-open .wp-block-navigation-item__content { display: block; padding: 0.85rem 0 !important; text-align: left; }
.ms-nav .is-menu-open .has-child { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center !important; }
.ms-nav .is-menu-open .has-child > .wp-block-navigation-submenu__toggle { display: grid !important; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--ms-line, #e5e7eb); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.ms-nav .is-menu-open .has-child > .wp-block-navigation-submenu__toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.ms-nav .is-menu-open .has-child > .wp-block-navigation-submenu__toggle svg { transform: none !important; }
.ms-nav .is-menu-open .has-child.ms-sub-open > .wp-block-navigation-submenu__toggle svg { transform: rotate(180deg) !important; }
.ms-nav .is-menu-open .has-child > .wp-block-navigation__submenu-container { grid-column: 1 / -1; display: none !important; position: static !important; opacity: 1 !important; visibility: visible !important; width: auto !important; height: auto !important; min-width: 0 !important; margin: 0 0 0.6rem 0.2rem !important; padding: 0 0 0 1rem !important; border: 0 !important; border-left: 2px solid var(--ms-accent) !important; background: transparent !important; box-shadow: none !important; gap: 0 !important; }
.ms-nav .is-menu-open .has-child.ms-sub-open > .wp-block-navigation__submenu-container { display: flex !important; flex-direction: column; }
.ms-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { font-size: 1rem !important; font-weight: 500 !important; border-bottom: 0; }
.ms-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 0 !important; }
.ms-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: 1rem !important; right: 1.25rem !important; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ms-navy) 6%, transparent); }
/* While the menu is open: the call and quote bar stays on top; the demo switcher and chat button step aside. */
html.has-modal-open .ms-mobilebar, html.has-modal-open .cqb-bar { z-index: 100001; } /* .cqb-bar: the Call & Quote Bar plugin */
html.has-modal-open .ms-switcher, html.has-modal-open [data-ms-chat], html.has-modal-open .ms-chat { display: none !important; }
/* Side panel. */
html.ms-mmenu-drawer .ms-nav .wp-block-navigation__responsive-container.is-menu-open { left: auto !important; right: 0 !important; width: min(380px, 88vw) !important; box-shadow: 0 0 0 100vmax rgb(15 27 45 / 0.45); animation: ms-menu-drawer 0.25s ease-out both !important; }
@keyframes ms-menu-drawer { from { transform: translateX(100%); } to { transform: none; } }
/* Bottom sheet. */
html.ms-mmenu-sheet .ms-nav .wp-block-navigation__responsive-container.is-menu-open { top: auto !important; bottom: 0 !important; height: auto !important; max-height: 88vh; border-radius: 20px 20px 0 0; box-shadow: 0 0 0 100vmax rgb(15 27 45 / 0.45); animation: ms-menu-sheet 0.28s ease-out both !important; }
html.ms-mmenu-sheet .ms-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 2.75rem !important; }
html.ms-mmenu-sheet .ms-nav .wp-block-navigation__responsive-container.is-menu-open::before { content: ''; position: absolute; top: 0.6rem; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--ms-line, #d1d5db); }
@keyframes ms-menu-sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.ms-mmenu-drawer .ms-nav .wp-block-navigation__responsive-container.is-menu-open, html.ms-mmenu-sheet .ms-nav .wp-block-navigation__responsive-container.is-menu-open { animation: none !important; }
  .ms-nav .is-menu-open .has-child > .wp-block-navigation-submenu__toggle svg { transition: none; }
}

/* Long service area lists (1.6.0): the "+N more areas" chip links to the full list. */
.ms-areas__more a, .ms-areas__more { font-weight: 700; color: var(--ms-accent); text-decoration: none; }
.ms-areas__more a:hover { text-decoration: underline; }

/* Footer layout (1.6.0): uses the space on tablets and phones; long area lists stay short ("+N more areas"). */
.ms-footer .ms-areas__more, .ms-footer .ms-areas__more a { color: #fdba74; }
.ms-footer .ms-areas { gap: 0.4rem; }
@media (min-width: 782px) and (max-width: 1100px) {
  .ms-footer__cols { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.75rem !important; }
  .ms-footer__cols > .wp-block-column:first-child { grid-column: 1 / -1; max-width: 40rem; }
}
@media (min-width: 400px) and (max-width: 781px) {
  .ms-footer__cols { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem !important; }
  .ms-footer__cols > .wp-block-column:first-child, .ms-footer__cols > .wp-block-column:last-child { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
  .ms-footer__cols > .wp-block-column { flex-basis: auto !important; width: auto !important; }
  .ms-footer__cta-actions, .ms-footer__cta-actions > * { width: 100%; }
  .ms-footer__cta-actions .wp-block-button__link, .ms-footer__cta-actions .ms-call { box-sizing: border-box; width: 100%; justify-content: center; text-align: center; }
  .ms-footer__bottom { flex-direction: column; align-items: flex-start !important; }
}
/* Tap targets (1.6.0): the menu button and page numbers are at least 44px, the size a thumb needs. */
/* No display value here: WordPress and the long-menu rules decide when the button shows. */
.ms-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ms-line, #e5e7eb) !important; border-radius: 10px; background: var(--wp--preset--color--base); color: var(--ms-navy); }
.ms-nav .wp-block-navigation__responsive-container-open svg { width: 24px; height: 24px; }
.wp-block-query-pagination { gap: 0.5rem; }
.wp-block-query-pagination .page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--ms-line, #e5e7eb); border-radius: 10px; text-decoration: none; }
.wp-block-query-pagination .page-numbers.current { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; }
.wp-block-query-pagination .page-numbers.dots { border: 0; min-width: 0; padding: 0; }
/* Long numbers like "Same day" fit their cell on phones (1.6.0). */
@media (max-width: 600px) {
  .ms-stat__num { font-size: clamp(1.6rem, 8vw, 2.2rem); white-space: normal; overflow-wrap: anywhere; }
  .ms-numbers strong { font-size: clamp(1.35rem, 6.5vw, 1.8rem); overflow-wrap: anywhere; }
}
/* Space between a post's photo and its first paragraph. */
.single .wp-block-post-featured-image { margin-block-end: clamp(1.25rem, 3vw, 2rem) !important; }

/* ---------- Big menus (1.6.0) ---------- */
/* Mega menu: a dropdown whose items have their own sub-items opens as columns, each sub-item list under a small heading. */
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container:has(> .has-child),
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container:has(> .has-child) {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); align-items: start; column-gap: 1rem; row-gap: 0.25rem; width: min(50rem, calc(100vw - 2rem)) !important; padding: 0.9rem !important; max-height: none !important; overflow: visible !important;
}
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation-item__content { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-muted); padding-bottom: 0.25rem !important; }
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation__submenu-container { margin-left: 0 !important; padding-left: 0 !important; border-left: 0 !important; }
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: inherit; font-size: 0.95em; }
/* A long flat dropdown (11+ links) uses two columns instead of a tall scrolling list. */
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container:not(:has(> .has-child)):has(> li:nth-child(11)),
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container:not(:has(> .has-child)):has(> li:nth-child(11)) {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.5rem; width: min(32rem, calc(100vw - 2rem)) !important; max-height: none; overflow: visible;
}
/* Every dropdown stays inside the screen (assets/ms.js measures it and sets the shift). */
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { transform: translateX(var(--ms-dd-shift, 0px)); }
/* "Menu on its own row" has room: up to 11 top links stay as links on computers. */
@media (min-width: 1024px) {
  html.ms-header-stacked .ms-nav:not(:has(.wp-block-navigation__container > .wp-block-navigation-item:nth-child(12))) .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none !important; }
  html.ms-header-stacked .ms-nav:not(:has(.wp-block-navigation__container > .wp-block-navigation-item:nth-child(12))) .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: flex !important; }
}
/* Footer menu: long lists use two columns; a submenu shows as a plain indented list, never a dropdown. */
.ms-footer__nav .wp-block-navigation__container:has(> li:nth-child(9)) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.ms-footer__nav .wp-block-navigation-submenu__toggle { display: none !important; }
.ms-footer__nav .has-child { flex-direction: column; align-items: flex-start !important; }
.ms-footer__nav .wp-block-navigation__submenu-container { position: static !important; visibility: visible !important; opacity: 1 !important; width: auto !important; height: auto !important; min-width: 0 !important; overflow: visible !important; margin: 0.35rem 0 0 0.75rem !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; gap: 0.35rem; font-size: 0.92em; }
.ms-footer__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0 !important; color: rgb(255 255 255 / 0.75); }
.ms-footer .wp-block-columns.ms-footer__cols > .wp-block-column { min-width: 0; }
.ms-footer :is(.ms-footer__tagline, .ms-info, .ms-footer__nav a) { overflow-wrap: anywhere; }
/* Text next to a quote form (contact page and similar, 1.6.0): both columns start at the top, and the text stays in
   view while the visitor scrolls the form, instead of floating in the middle of a tall form. */
@media (min-width: 782px) {
  .wp-block-columns:has(> .wp-block-column [data-ms-quote]) { align-items: flex-start !important; }
  .wp-block-columns:has(> .wp-block-column [data-ms-quote]) > .wp-block-column:not(:has([data-ms-quote])) { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 7.5rem); align-self: flex-start !important; }
}

/* Mega menu group headings are labels: no hover highlight (they still link to the group's page). */
.ms-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation-item__content:hover { background: transparent !important; color: var(--ms-accent); }
/* Long flat dropdowns that scroll: a slim scrollbar. */
.ms-nav .wp-block-navigation__submenu-container { scrollbar-width: thin; }
/* Phone menu with a mega menu: one tap on Services shows every group, each under a small heading (no third level of arrows). */
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation-submenu__toggle { display: none !important; }
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child { display: block !important; }
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation-item__content { padding: 0.9rem 0 0.2rem !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-muted); }
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation__submenu-container { display: flex !important; flex-direction: column; margin: 0 !important; padding: 0 !important; border-left: 0 !important; }
/* Phone menu: the first item never sits under the close button. */
.ms-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4.25rem !important; }
html.ms-mmenu-sheet .ms-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.75rem !important; }
/* Phone menu with a mega menu: compact and visual. The first group (services) as two-column tiles, the others
   (towns, help links) as chips that wrap, so the whole menu stays short. */
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation__submenu-container { flex-direction: row !important; flex-wrap: wrap; gap: 0.4rem !important; padding-bottom: 0.4rem !important; }
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item { width: auto; border: 0 !important; font-size: 0.92rem !important; }
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content { box-sizing: border-box; max-width: 100%; display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 0.85rem !important; border: 1px solid var(--ms-line, #e5e7eb); border-radius: 999px; background: var(--wp--preset--color--base); line-height: 1.25; }
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child:first-child > .wp-block-navigation__submenu-container { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child:first-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content { display: flex; width: 100%; height: 100%; min-height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--ms-accent) 7%, var(--wp--preset--color--base)); border-color: color-mix(in srgb, var(--ms-accent) 22%, transparent); font-weight: 600; }
.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child:last-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item:first-child > .wp-block-navigation-item__content { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; font-weight: 700; }

.ms-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container > .has-child:first-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item { min-width: 0; }

/* ---------- Spacing and small screens (1.6.0 review) ---------- */
/* Service pages: below 1100px the "Need this done?" card moves under the content at full width, so the call
   button and hours never get squeezed into a narrow column. */
@media (max-width: 1100px) {
  .ms-service-layout { flex-wrap: wrap !important; }
  .ms-service-layout > .wp-block-column { flex-basis: 100% !important; width: 100%; }
  .ms-service-layout .ms-sticky { position: static !important; }
}
.ms-aside .ms-call, .ms-aside .wp-block-button__link { white-space: nowrap; }
.ms-aside :is(.ms-call, .wp-block-button, .wp-block-button__link) { box-sizing: border-box; max-width: 100%; }
/* Quote form: room between the Next button, the "Urgent? Call" line and the reply promise. */
.ms-quote__call { margin-top: 1.25rem !important; }
.ms-quote__call + .ms-quote__note { margin-top: 0.6rem !important; }
.ms-quote__nav { margin-top: 1.25rem; }
/* Questions chat: quick questions scroll sideways without a visible scrollbar; a soft fade shows there is more. */
.ms-chat__chips { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem !important; }
.ms-chat__chips::-webkit-scrollbar { display: none; }
/* Footer call to action and "Ready when you are" bands: on phones every button is full width, all the same. */
@media (max-width: 781px) {
  .ms-footer__cta-actions .wp-block-buttons, .ms-footer__cta-actions .wp-block-button,
  .ms-cta-band > .wp-block-group, .ms-cta-band .wp-block-buttons, .ms-cta-band .wp-block-button { width: 100%; }
  .ms-cta-band :is(.ms-call, .wp-block-button__link) { box-sizing: border-box; width: 100%; justify-content: center; text-align: center; }
  .ms-cta-band > .wp-block-group { flex-direction: column; align-items: stretch !important; }
}
/* Footer service areas: no double padding, and a hover that suits the dark footer. */
.ms-footer .ms-areas li:has(a) { padding: 0 !important; }
.ms-footer .ms-areas li a { padding: 0.35rem 0.7rem; }
.ms-footer .ms-areas li a:hover, .ms-footer .ms-areas li a:focus-visible { background: rgb(255 255 255 / 0.12); color: #fff; }
.ms-footer .ms-areas li[aria-current] { background: rgb(255 255 255 / 0.12); }
/* Footer service areas, "Plain list" style (Mainstay settings): two tidy columns of town names, no chips. */
html.ms-fareas-plain .ms-footer .ms-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; }
html.ms-fareas-plain .ms-footer .ms-areas li, html.ms-fareas-plain .ms-footer .ms-areas li a { padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0; font-size: 0.92rem; font-weight: 500; color: rgb(255 255 255 / 0.85); }
html.ms-fareas-plain .ms-footer .ms-areas li a:hover { color: #fff; text-decoration: underline; }
html.ms-fareas-plain .ms-footer .ms-areas .ms-areas__more { grid-column: 1 / -1; }
html.ms-fareas-plain .ms-footer .ms-areas .ms-areas__more a { color: #fdba74; font-weight: 700; }

/* ---------- Footer on tablets and phones (1.6.0 redesign) ---------- */
@media (max-width: 781px) {
  .ms-footer__cols { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 1.75rem !important; }
  .ms-footer__cols > .wp-block-column { grid-column: auto !important; max-width: none !important; }
  /* Links in two columns, opening hours on one line each. */
  .ms-footer__nav .wp-block-navigation__container { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem !important; }
  .ms-footer .ms-hours li { display: flex !important; flex-wrap: nowrap; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; font-size: 0.92rem; }
  .ms-footer .ms-hours li span { white-space: normal; }
  .ms-footer .ms-hours li span:last-child { text-align: right; }
  .ms-footer__title { margin-bottom: 0.75rem !important; }
}
@media (min-width: 600px) and (max-width: 781px) {
  /* Tablets: two columns (business and links, then hours and areas); buttons side by side at their normal size. */
  .ms-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 2.5rem !important; }
  .ms-footer__cta-actions { flex-direction: row !important; width: auto !important; }
  .ms-footer__cta-actions > *, .ms-footer__cta-actions .wp-block-buttons, .ms-footer__cta-actions .wp-block-button, .ms-footer__cta-actions :is(.ms-call, .wp-block-button__link) { width: auto !important; }
  .ms-cta-band > .wp-block-group { flex-direction: row !important; width: auto; }
  .ms-cta-band .wp-block-buttons, .ms-cta-band .wp-block-button, .ms-cta-band :is(.ms-call, .wp-block-button__link) { width: auto !important; }
}

/* Featured before and after (1.6.0): a large compare slider next to the story of the job. */
.ms-featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.25rem); align-items: center; }
.ms-featured__media .ms-ba { border-radius: var(--ms-radius); overflow: hidden; box-shadow: var(--ms-shadow-lg); aspect-ratio: 4 / 3; }
.ms-featured__media .ms-ba img { width: 100%; height: 100%; object-fit: cover; }
.ms-featured__text h2 { margin: 0.25rem 0 0.4rem; }
.ms-featured__meta { margin: 0 0 1rem; color: var(--ms-accent); font-weight: 600; font-size: 0.95rem; }
.ms-featured__hint { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.25rem 0 1.25rem; font-size: 0.9rem; color: var(--ms-muted); }
.ms-featured__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.ms-featured__quote { font-weight: 700; color: var(--ms-navy); }
@media (max-width: 900px) { .ms-featured { grid-template-columns: minmax(0, 1fr); } }

/* Keyword line inside the home page headline (1.6.0): small, above the big words, for Google and for visitors. */
.ms-hero__kicker { display: block; margin-bottom: 0.6rem; font-size: clamp(0.85rem, 1.4vw, 1rem); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; opacity: 0.85; }

/* ---------- One-page quote form (1.6.0): compact ---------- */
/* No "Step 1 of 3" on a form that is all on one page. */
.ms-quote--single .ms-steps-wrap, .ms-quote--single .ms-steps-label { display: none !important; }
/* Answers as compact chips that wrap, instead of a full-width box per answer. */
.ms-quote--single .ms-choices, .ms-quote--single .ms-choices--inline { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.75rem; }
.ms-quote--single .ms-choice span, .ms-quote--single .ms-choices--inline .ms-choice span { padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.92rem; text-align: left; }
/* Tighter sections and labels. */
.ms-quote--single .ms-step legend { font-size: 1rem; margin-bottom: 0.6rem; }
.ms-quote--single .ms-step.is-on + .ms-step.is-on { margin-top: 0.9rem !important; padding-top: 0.9rem !important; }
.ms-quote--single textarea { min-height: 4.5rem; }
.ms-quote--single .ms-extra { margin-bottom: 0.6rem; }
.ms-quote--single .ms-extra__label { margin-bottom: 0.35rem; }
/* The short contact fields sit two to a row, also on phones (Name | Phone, Email | ZIP). */
.ms-quote--single .ms-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.75rem; }
.ms-quote--single .ms-grid2 label { font-size: 0.88rem; }

/* ---------- Clean light design, refined (1.6.0) ---------- */
.ms-hero__badge { display: none; }
.ms-design-light .ms-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--ms-accent) 7%, var(--wp--preset--color--base)) 0%, var(--wp--preset--color--base) 92%); border-bottom: 1px solid var(--ms-soft); }
@media (min-width: 960px) {
  .ms-design-light .ms-hero { min-height: 620px; }
  .ms-design-light .ms-hero__bg { top: 2.25rem; bottom: 2.75rem; height: calc(100% - 5rem) !important; object-fit: cover; border-radius: 28px 28px 28px 110px; box-shadow: var(--ms-shadow-lg), 22px 22px 0 0 color-mix(in srgb, var(--ms-accent) 16%, transparent); }
  :is(.ms-design-light, .ms-design-cutout) .ms-hero__badge { display: flex; align-items: center; gap: 0.75rem; position: absolute; z-index: 3; bottom: calc(2.75rem + 1.5rem); left: calc(100% - max(var(--wp--style--root--padding-right, 1.25rem), calc((100% - var(--wp--style--global--wide-size)) / 2)) - 44% - 1.5rem); max-width: 17rem; padding: 0.85rem 1.1rem; border-radius: 16px; background: var(--wp--preset--color--base); box-shadow: var(--ms-shadow-lg); color: var(--ms-navy); font-size: 0.9rem; line-height: 1.35; }
  :is(.ms-design-light, .ms-design-cutout) .ms-hero__badge .ms-icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--ms-accent) 12%, transparent); color: var(--ms-accent); }
  :is(.ms-design-light, .ms-design-cutout) .ms-hero__badge strong { display: block; font-family: var(--wp--preset--font-family--archivo); font-size: 1.15rem; color: var(--ms-accent); }
}
@media (max-width: 959px) {
  /* Phones and tablets: the photo first, shorter, then the headline. */
  .ms-design-light .ms-hero { flex-direction: column !important; }
  .ms-design-light .ms-hero__bg { height: clamp(190px, 38vw, 300px) !important; margin: 1.25rem var(--wp--style--root--padding-right, 1.25rem) 0 !important; border-radius: 22px; }
}

/* ---------- Calmer, less templated details (1.6.0, frontend-design review) ---------- */
html.ms-no-eyebrows :is(.ms-eyebrow, .ms-sec-head .ms-eyebrow) { display: none !important; }
.ms-eyebrow { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.ms-footer__title { text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem !important; }
.ms-sample { text-transform: none; letter-spacing: 0; font-style: italic; }
.ms-project__facts dt { text-transform: none; letter-spacing: 0; }
.ms-hero__kicker { text-transform: none !important; letter-spacing: 0 !important; font-size: clamp(0.95rem, 1.5vw, 1.1rem) !important; }

/* ===================== Workshop design (1.6.0): mechanics and repair trades =====================
   One bold idea: the quote form is a job card on a workshop-grey hero. Everything else stays quiet: concrete bands,
   ruled rows instead of identical cards, squarer corners, the accent only on actions. Archivo heavy for headings,
   Manrope for text (the theme's own fonts). */
html.ms-design-workshop { --ms-ws-engine: #2B2F33; --ms-ws-concrete: #E7E5E0; --ms-ws-paper: #FAFAF7; --ms-ws-line: #CFCBC3; }
.ms-design-workshop :is(h1, h2, h3, .ms-hero__title) { font-family: var(--wp--preset--font-family--archivo); font-weight: 850; letter-spacing: -0.025em; }
.ms-design-workshop :is(.wp-element-button, .ms-call, .ms-quote button) { border-radius: 6px; }
/* Hero: engine grey, the photo as a dim texture. */
.ms-design-workshop .ms-hero { background: var(--ms-ws-engine); }
.ms-design-workshop .ms-hero__bg { filter: grayscale(1) contrast(1.1); opacity: 0.28; }
.ms-design-workshop .ms-hero::before { background: linear-gradient(90deg, var(--ms-ws-engine) 0%, rgb(43 47 51 / 0.85) 55%, rgb(43 47 51 / 0.6) 100%); }
.ms-design-workshop .ms-hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 0.98; max-width: 13ch; }
.ms-design-workshop .ms-hero__kicker { color: rgb(255 255 255 / 0.75); font-weight: 600; }
/* The job card: paper, a strip of the accent at the top, ruled lines instead of boxes. */
.ms-design-workshop .ms-hero__form .ms-quote { position: relative; background: var(--ms-ws-paper); border-radius: 6px; padding-top: 2.1rem; box-shadow: 0 2px 0 var(--ms-ws-line), 0 24px 50px rgb(0 0 0 / 0.35); animation: ms-ws-card 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ms-design-workshop .ms-hero__form .ms-quote::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(135deg, var(--ms-accent) 0 14px, var(--ms-ws-engine) 14px 28px); }
.ms-design-workshop .ms-quote__head { padding-bottom: 0.75rem; border-bottom: 2px solid var(--ms-ws-engine); }
.ms-design-workshop .ms-quote .ms-choice span { border-radius: 4px; border-color: var(--ms-ws-line); background: #fff; }
.ms-design-workshop .ms-quote :is(input[type=text], input[type=tel], input[type=email], input:not([type]), textarea) { border-radius: 4px; background: #fff; border-color: var(--ms-ws-line); }
@keyframes ms-ws-card { from { opacity: 0; transform: translateY(18px) rotate(-1deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ms-design-workshop .ms-hero__form .ms-quote { animation: none; } }
/* Quiet sections: concrete bands, no floating cards. */
.ms-design-workshop .ms-band-light { background: var(--ms-ws-concrete) !important; }
.ms-design-workshop .ms-services { gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ms-design-workshop .ms-service a { display: grid !important; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; align-items: start; padding: 1.25rem 0; border: 0; border-top: 2px solid var(--ms-ws-engine); border-radius: 0; background: transparent; box-shadow: none; }
.ms-design-workshop .ms-service a:hover { transform: none; box-shadow: none; }
.ms-design-workshop .ms-service a:hover .ms-service__title { color: var(--ms-accent); }
.ms-design-workshop .ms-service__icon { width: 2.5rem; height: 2.5rem; border-radius: 4px; background: var(--ms-ws-engine); color: #fff; flex: none; }
.ms-design-workshop .ms-service a:hover .ms-service__icon { background: var(--ms-accent); }
.ms-design-workshop .ms-service__icon { grid-row: 1 / span 3; margin: 0 !important; }
.ms-design-workshop :is(.ms-service__title, .ms-service__text, .ms-service__foot) { grid-column: 2; }
.ms-design-workshop .ms-service__title { margin: 0.35rem 0 0.4rem !important; }
.ms-design-workshop .ms-service__text { margin-bottom: 0.75rem; }
.ms-design-workshop :is(.ms-why, .ms-offers__grid, .ms-badges__grid, .ms-tips__grid) > * { border-radius: 6px; box-shadow: none; }
.ms-design-workshop :is(.ms-review figure, .ms-plan, .ms-tip, .ms-badge-card) { border-radius: 6px; box-shadow: none; border: 1px solid var(--ms-ws-line); }
.ms-design-workshop .ms-numbers { border-radius: 6px; box-shadow: 0 2px 0 var(--ms-ws-line); }

/* ---------- Cut-out design (1.6.0): a transparent photo standing in a soft arch in the accent colour ---------- */
.ms-hero__figure { display: none; }
.ms-design-cutout .ms-hero { color: var(--ms-navy); background: linear-gradient(180deg, color-mix(in srgb, var(--ms-accent) 6%, var(--wp--preset--color--base)) 0%, var(--wp--preset--color--base) 100%); border-bottom: 1px solid var(--ms-soft); }
.ms-design-cutout .ms-hero::before { display: none; }
.ms-design-cutout .ms-hero__title { color: var(--ms-navy); }
.ms-design-cutout .ms-hero__text { color: var(--ms-muted); }
.ms-design-cutout .ms-hero__eyebrow { background: var(--ms-cloud); border-color: var(--ms-soft); color: var(--ms-navy); }
.ms-design-cutout .ms-hero .ms-trust { color: var(--ms-navy); }
.ms-design-cutout .ms-hero .ms-trust .ms-icon { color: var(--ms-teal); }
.ms-design-cutout .ms-hero .ms-call { background: var(--ms-cloud); color: var(--ms-navy); box-shadow: inset 0 0 0 1px var(--ms-soft); }
.ms-design-cutout .ms-hero .ms-call:hover { background: var(--ms-navy); color: #fff; box-shadow: none; }
.ms-design-cutout .ms-hero.has-cutout .ms-hero__bg { display: none; }
.ms-design-cutout .ms-hero__figure { display: flex; align-items: flex-end; justify-content: center; position: relative; isolation: isolate; }
/* A soft arch in the accent colour, and a thin outline arch set a little up and to the left. Wide images (a van, a car)
   may reach past the arch's sides. */
.ms-design-cutout .ms-hero__figure::before { content: ""; position: absolute; left: 11%; right: 9%; top: 0; bottom: 0; z-index: -1; border-radius: 999px 999px 28px 28px; background: color-mix(in srgb, var(--ms-accent) 15%, var(--wp--preset--color--base)); }
.ms-design-cutout .ms-hero__figure::after { content: ""; position: absolute; left: 5%; right: 15%; top: -14px; bottom: 14px; z-index: -1; border: 2px solid color-mix(in srgb, var(--ms-accent) 35%, transparent); border-radius: 999px 999px 28px 28px; }
.ms-design-cutout .ms-hero__cutout { display: block; width: auto; height: auto; max-width: 76%; max-height: 92%; object-fit: contain; object-position: bottom; margin: 0 0 4% 2%; filter: drop-shadow(0 18px 22px rgb(15 27 45 / 0.18)); }
/* the arch fill runs 11%-91%, so its centre is 51%: keep wide cut-outs (cars, vans) inside its 80% width and nudge 1% right to sit on that centre */
@media (min-width: 960px) {
  /* --ms-hero-gutter: the header's wide-container edge; --ms-hero-fig: the arch, capped at half the wide size so the copy keeps its room on big screens */
  .ms-design-cutout .ms-hero { min-height: 640px; display: flex; align-items: center; --ms-hero-gutter: max(var(--wp--style--root--padding-right, 1.25rem), calc((100% - var(--wp--style--global--wide-size)) / 2)); --ms-hero-fig: min(44%, calc(var(--wp--style--global--wide-size) / 2)); }
  /* the hero is a flex row here, so the inner's max-width + auto margins no longer centre it: line the copy up with the header instead */
  .ms-design-cutout .ms-hero__inner { flex: 1; max-width: none; margin: 0; padding-left: var(--ms-hero-gutter); padding-right: calc(var(--ms-hero-gutter) + var(--ms-hero-fig) + clamp(3rem, 6vw, 6rem)); }
  .ms-design-cutout :is(.ms-hero__figure, .ms-hero:not(.has-cutout) .ms-hero__bg) { position: absolute; right: var(--ms-hero-gutter); left: auto; top: 50%; bottom: auto; transform: translateY(-50%); width: var(--ms-hero-fig); height: min(540px, calc(100% - 5rem)); }
  /* No cut-out uploaded: the hero photo in the same arch shape. */
  .ms-design-cutout .ms-hero:not(.has-cutout) .ms-hero__bg { width: calc(var(--ms-hero-fig) * 0.8); right: calc(var(--ms-hero-gutter) + var(--ms-hero-fig) * 0.1); border-radius: 999px 999px 28px 28px; box-shadow: var(--ms-shadow-lg); }
  .ms-design-cutout .ms-hero__badge { left: calc(100% - var(--ms-hero-gutter) - var(--ms-hero-fig) - 1.5rem); bottom: calc(50% - min(270px, 50% - 2.5rem) + 2rem); } /* on the arch's lower-left corner */
  .ms-design-cutout .ms-hero.has-cutout .ms-hero__badge { bottom: auto; top: calc(50% - min(270px, 50% - 2.5rem) + 3rem); } /* upper-left: cut-outs stand at the bottom */
}
@media (max-width: 959px) {
  /* Phones and tablets: headline and buttons first, the picture below them. */
  .ms-design-cutout .ms-hero { display: flex; flex-direction: column; }
  .ms-design-cutout .ms-hero__inner { order: 1; width: 100%; box-sizing: border-box; padding-bottom: 1.75rem; }
  .ms-design-cutout .ms-hero__figure { order: 2; height: clamp(230px, 62vw, 360px); width: min(100% - 2 * var(--wp--style--root--padding-right, 1.25rem), 520px); margin: 0 auto 2rem; }
  .ms-design-cutout .ms-hero:not(.has-cutout) .ms-hero__bg { order: 2; position: relative; inset: auto; z-index: 0; width: min(100% - 2 * var(--wp--style--root--padding-right, 1.25rem), 420px); height: clamp(220px, 58vw, 340px); margin: 0 auto 2rem; border-radius: 999px 999px 22px 22px; }
}

/* ---------- Calm sections (1.7.0, Mainstay settings > Section style): the same content with fewer boxes ---------- */
/* Services: ruled rows, icon | name and one line | price, two columns on wide screens. */
.ms-sections-calm .ms-services { gap: 0 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ms-sections-calm .ms-services[class*="ms-cols-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-sections-calm .ms-service a { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; grid-template-areas: "icon title price" "icon text price"; column-gap: 1rem; row-gap: 0.15rem; align-items: start; height: auto; padding: 1.1rem 0; border: 0; border-bottom: 1px solid var(--ms-soft); border-radius: 0; background: transparent; box-shadow: none; }
.ms-sections-calm .ms-service a:hover { transform: none; box-shadow: none; }
.ms-sections-calm .ms-service a:hover .ms-service__title { color: var(--ms-accent); }
.ms-sections-calm .ms-service__icon { grid-area: icon; width: 2.75rem; height: 2.75rem; margin: 0; border-radius: 12px; }
.ms-sections-calm .ms-service__icon .ms-icon { width: 20px; height: 20px; }
.ms-sections-calm .ms-service__title { grid-area: title; margin: 0; font-size: 1.08rem; transition: color 0.2s ease; }
.ms-sections-calm .ms-service__text { grid-area: text; margin: 0; font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-sections-calm .ms-service__foot { grid-area: price; margin: 0; padding-top: 0.15rem; }
.ms-sections-calm .ms-service__more { display: none; }
.ms-sections-calm .ms-service__price { white-space: nowrap; }
@media (max-width: 600px) {
  /* Phones: name, two lines of text, then the price, so the text is not squeezed. */
  .ms-sections-calm .ms-service a { grid-template-columns: 2.75rem minmax(0, 1fr); grid-template-areas: "icon title" "icon text" "icon price"; }
  .ms-sections-calm .ms-service__foot { justify-content: flex-start; padding-top: 0.3rem; }
}
/* Why choose us: no boxes, a short accent rule over each point. */
.ms-sections-calm .ms-why > .wp-block-column { background: transparent; box-shadow: none; border-radius: 0; border-top: 0; padding: 0; }
.ms-sections-calm .ms-why > .wp-block-column::before { content: ""; display: block; width: 2.5rem; height: 3px; border-radius: 3px; background: var(--ms-accent); margin-bottom: 1rem; }
/* How it works: plain numbers on a thin line instead of filled circles. */
.ms-sections-calm .ms-steps-list > .wp-block-column { border-top: 1px solid var(--ms-soft); padding-top: 1.1rem; }
.ms-sections-calm .ms-step-num { width: auto; height: auto; display: block; background: none; color: var(--ms-accent); font-size: 2rem; line-height: 1; margin: 0 0 0.6rem; }
/* Offers: one band in the accent colour. */
.ms-sections-calm .ms-offers__grid { gap: 0; border-radius: var(--ms-radius); overflow: hidden; background: var(--ms-accent); }
.ms-sections-calm .ms-offer { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 1.6rem 1.5rem; color: #fff; }
.ms-sections-calm .ms-offer + .ms-offer { box-shadow: inset 1px 0 0 rgb(255 255 255 / 0.25); }
.ms-sections-calm :is(.ms-offer__title, .ms-offer__text, .ms-offer__link) { color: #fff; }
.ms-sections-calm .ms-offer__terms { color: rgb(255 255 255 / 0.85); }
.ms-sections-calm .ms-offer__icon { background: rgb(255 255 255 / 0.16); color: #fff; }
.ms-sections-calm .ms-offer__ends, .ms-sections-calm .ms-offer__ends.is-soon { background: rgb(255 255 255 / 0.18); color: #fff; }
@media (max-width: 600px) { .ms-sections-calm .ms-offer + .ms-offer { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25); } }
/* Reviews and plans: a thin border instead of a shadow. */
.ms-sections-calm :is(.ms-review figure, .ms-plan:not(.ms-plan--top)) { box-shadow: none; border: 1px solid var(--ms-soft); }
.ms-sections-calm .ms-plan--top { box-shadow: none; }
