/* MCS Commercial Cleaning - shared styles.
   The pages are a measured copy of the original Wix site: every block is absolutely placed
   (desktop measured at 1280px and 1920px wide; phones get the original's 320px-wide mobile layout).
   Per-page placement lives in each page's <style>, header and footer placement in assets/css/chrome.css,
   the original's fonts, colours and text classes in assets/css/theme.css. */

/* ---------------------------------------------------------------- page frame */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 980px; background: #fff; color: #000; font: 16px/1.4 var(--ff-body); overflow-x: hidden; }
img, svg, video { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.sec { position: relative; width: 100%; }
#SITE_HEADER { z-index: 20; }
#SITE_FOOTER { z-index: 1; }
main { display: block; position: relative; z-index: 2; }
.c { position: absolute; margin: 0; }
.m-only { display: none !important; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: #000; font: 14px var(--ff-body); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid #116dff; outline-offset: 1px; }

/* section and box backgrounds */
.bg-fill { position: absolute; inset: 0; }
.bgm { position: absolute; inset: 0; overflow: hidden; }
.bgm img, .bgm video { width: 100%; height: 100%; object-fit: cover; }
/* "background reveal" (as on the original): the photo stays put while the section scrolls over it */
.bgm.pin .pinw { position: absolute; inset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bgm.pin { overflow: clip; }
  .bgm.pin .pinw { top: -100vh; top: -100lvh; height: calc(100% + 200vh); height: calc(100% + 200lvh); bottom: auto; overflow: clip; }
  .bgm.pin img { position: sticky; top: 0; height: 100vh; height: max(100lvh, calc(100% - 200lvh)); }
}
.strip-bg { overflow: hidden; }
.box { overflow: visible; }

/* rich text (the original's Wix text boxes) */
.rt { word-wrap: break-word; overflow-wrap: break-word; text-align: start; }
.rt :where(p, h1, h2, h3, h4, h5, h6, blockquote, div) { margin: 0; }
.rt :where(h1, h2, h3, h4, h5, h6) { font-weight: inherit; font-size: inherit; }
.rt a { color: inherit; text-decoration: none; }
.rt :where(ul, ol) { letter-spacing: normal; margin: 0 0 0 .5em; line-height: normal; padding: 0 0 0 1.3em; }
.rt li { font-style: inherit; font-weight: inherit; line-height: inherit; letter-spacing: normal; margin-bottom: 0; }
.rt :where(ul) { list-style-type: disc; }

/* images, icons, lines, buttons */
.img { overflow: hidden; }
.img img, .img picture { width: 100%; height: 100%; object-fit: cover; }
.img a { display: block; width: 100%; height: 100%; }
.vec svg { width: 100%; height: 100%; overflow: visible; }
.vec a { display: block; width: 100%; height: 100%; }
.btn { display: block; white-space: nowrap; text-decoration: none; cursor: pointer; transition: all .2s ease, visibility 0s; }
.btn .lb, .btn .ic { position: absolute; transition: inherit; }
.btn .ic svg { width: 100%; height: 100%; transition: fill .2s ease; }
.btn .ic svg * { transition: fill .2s ease; }

/* background / embedded video (Wix VideoPlayer: muted, looping, no controls) */
.vplayer { overflow: hidden; }
.vplayer video { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- testimonial slideshow (Wix SlideShow, cross-fade) */
.slideshow { overflow: hidden; }
.ss-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
.ss-slide.is-on { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; }
.ss-arrow { position: absolute; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; }
.ss-arrow svg { width: 100%; height: 100%; }
.ss-next svg { transform: scaleX(-1); }
.ss-dots { position: absolute; z-index: 2; display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.ss-dot { display: block; padding: 0; border: 0; border-radius: 0; cursor: pointer; }

/* ---------------------------------------------------------------- FAQ (Wix FAQ app, numbered accordion: first answer open on load) */
.faq { height: auto; padding: 32px 0; background: #fff; }
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-item { display: flex; min-height: 100px; }
.faq-item + .faq-item { margin-top: 12px; }
.faq-num { flex: none; display: flex; align-items: center; justify-content: center; width: 100px; background: rgb(1, 191, 202);
  color: #fff; font: 20px/28px var(--ff-body); }
.faq-acc { flex: 1; display: flex; flex-direction: column; justify-content: center; border: 1px solid #000; }
.faq-in { padding: 12px 24px 3px 28px; }
.faq-h { margin: 0; font: inherit; }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 0; width: 100%; margin: 0; padding: 12px 0; border: 0;
  background: none; cursor: pointer; text-align: start; color: #000; }
.faq-t { padding-bottom: 8px; font: 20px/24px var(--ff-body); }
.faq-q .chev { flex: none; width: 30px; height: 30px; align-self: flex-start; transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-ab { padding: 12px 0 28px; color: #000; font: 16px/24px var(--ff-body); }
.faq-ab p { margin: 0; }
.faq-div { height: 1px; }

/* ---------------------------------------------------------------- maps (Contact: Google embed; Service Areas: Leaflet, several pins) */
.gmap { overflow: hidden; background: #e5e3df; }
.gmap iframe { display: block; width: 100%; height: 100%; border: 0; }
.lmap .leaflet-popup-content-wrapper { border-radius: 2px; box-shadow: 0 2px 7px 1px rgba(0, 0, 0, .3); }
.lmap .leaflet-popup-content { margin: 10px 14px; font: 12px/1.4 Roboto, Arial, sans-serif; color: #000; }
.lmap-pop strong { display: block; font-weight: 500; }
.lmap-pop a { color: #1a73e8; }

/* ---------------------------------------------------------------- Contact form (Wix Forms: pill fields, placeholders only; posts to the Apex form relay) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.wform .wf-box { position: absolute; display: block; border: 1px solid rgb(12, 26, 66); border-radius: 100px; padding: 0 12px 0 12px; background: rgba(255, 255, 255, 0); }
.wform :is(input, select, textarea) { display: block; width: 100%; height: 100%; margin: 0; padding: 8px 2px 8px 0; border: 0; border-radius: 0; background: none;
  font-family: var(--ff-body); line-height: 24px; color: #000; outline: none; }
.wform ::placeholder { color: rgb(89, 89, 89); opacity: 1; }
.wform .wf-box:focus-within { box-shadow: 0 0 0 1px rgb(12, 26, 66); }
.wform .wf-sel select { -webkit-appearance: none; appearance: none; padding-right: 30px; color: rgb(89, 89, 89); cursor: pointer; }
.wform .wf-sel select:valid:not(:has(option[value=""]:checked)) { color: #000; }
.wform .wf-sel svg { position: absolute; right: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; fill: rgb(12, 26, 66); pointer-events: none; }
.wform .wf-ta { border-radius: 21px; padding: 8px 0 8px 12px; }
.wform .wf-ta textarea { padding: 0 12px 0 0; resize: none; }
.wform .wf-send { position: absolute; padding: 0; border: 0; border-radius: 100px; background: rgb(1, 191, 202); color: #fff; font-family: var(--ff-body);
  line-height: 1.2; cursor: pointer; transition: opacity .2s; }
.wform .wf-send:hover { opacity: .85; }

/* ---------------------------------------------------------------- header menu (Wix horizontal menu with flyout sub-menus) */
#site-nav { pointer-events: none; }
#site-nav > ul { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
#site-nav > ul > li { position: absolute; top: 0; height: 100%; pointer-events: auto; }
#site-nav > ul > li > a { position: absolute; inset: 4px; display: flex; align-items: center; justify-content: flex-end; padding: 10px;
  font: 700 16px/25px var(--ff-body); letter-spacing: .05em; color: #0c1a42; white-space: nowrap; transition: color .1s linear; }
#site-nav > ul > li > a[aria-current="page"], #site-nav > ul > li:hover > a, #site-nav > ul > li.open > a { color: #01bfca; }
#site-nav .sub { position: absolute; top: 49px; left: 50%; transform: translateX(-50%); min-width: 100%; list-style: none; margin: 0;
  padding: 10px 10px 2px; background: #fff; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; z-index: 5; }
#site-nav .has-sub:hover > .sub, #site-nav .has-sub.open > .sub { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
#site-nav .sub li { margin-bottom: 8px; }
#site-nav .sub a { display: block; padding: 10px; font: 16px/25px var(--ff-body); letter-spacing: .05em; color: #000; text-align: center;
  white-space: nowrap; background: rgba(255, 255, 255, 0); transition: color .1s linear, background-color .1s linear; }
#site-nav .sub a:hover, #site-nav .sub a[aria-current="page"] { color: #01bfca; background: #fff; }
.nav-toggle, .mobile-menu, .qab, .back-to-top { display: none; }

/* ---------------------------------------------------------------- the original's mobile site (320px wide) */
@media (max-width: 750px) {
  body { min-width: 0; }
  .d-only { display: none !important; }
  .m-only { display: block !important; }
  #site-nav { display: none; }
  main, #SITE_FOOTER { overflow-x: clip; }

  /* hamburger (Wix MENU_AS_CONTAINER_TOGGLE) */
  .nav-toggle { display: block; left: calc(50% + 100px); top: 14px; width: 50px; height: 50px; padding: 0; border: 0; background: none; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 14px; width: 22px; height: 2px; border-radius: 2px; background: #000; }
  .nav-toggle span:nth-child(1) { top: 15px; }
  .nav-toggle span:nth-child(2) { top: 24px; }
  .nav-toggle span:nth-child(3) { top: 33px; }

  /* the full-screen mobile menu (Wix expandable menu, right-aligned) */
  .mobile-menu:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: #fff; }
  .nav-open, .nav-open body { overflow: hidden; }
  .nav-open .qab, .nav-open .back-to-top { display: none; }
  .mm-close { position: absolute; left: calc(50% + 100px); top: 14px; width: 50px; height: 50px; padding: 0; border: 0; background: none; cursor: pointer; }
  .mm-close span { position: absolute; left: 11px; top: 24px; width: 28px; height: 2px; border-radius: 2px; background: #000; transform: rotate(45deg); }
  .mm-close span + span { transform: rotate(-45deg); }
  .mobile-menu nav { width: 280px; margin: 72px auto 40px; }
  .mm-list, .mm-sub { list-style: none; margin: 0; padding: 0; }
  .mm-list > li { border-bottom: 1px solid rgba(0, 0, 0, .3); }
  .mm-row { display: flex; flex-direction: row-reverse; align-items: center; height: 56px; }
  .mm-row > a { flex: 1; padding: 0 10px 0 0; font: 700 18px/56px var(--ff-body); color: #000; text-align: right; white-space: nowrap; }
  .mm-row > a[aria-current="page"] { color: #01bfca; }
  .mm-exp { flex: none; width: 50px; height: 56px; padding: 0 18px 0 20px; border: 0; background: none; cursor: pointer; }
  .mm-exp svg { width: 12px; height: 7px; transition: transform .2s ease; }
  .mm-exp[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mm-sub a { display: block; padding: 0 25px 0 0; font: 16px/56px var(--ff-body); color: #000; text-align: right; white-space: nowrap; }
  .mm-sub a[aria-current="page"] { color: #01bfca; }

  /* FAQ, mobile layout: number bar above each question */
  .faq-item { display: block; min-height: 0; }
  .faq-num { width: auto; height: 60px; justify-content: flex-start; padding: 20px; font-size: 20px; line-height: 20px; }
  .faq-in { padding: 12px 20px 3px; }
  .faq-t { font-size: 15px; line-height: 21px; }
  .faq-q .chev { width: 22.5px; height: 22.5px; }
  .faq-ab { font-size: 14px; line-height: 21px; }

  /* quick-action bar + back-to-top (Wix mobile site chrome) */
  .qab { display: block; position: fixed; right: 16px; bottom: 16px; z-index: 90; }
  .qab-veil { position: fixed; inset: 0; background: #fff; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
  .qab.open .qab-veil { opacity: .9; visibility: visible; transition: opacity .2s ease, visibility 0s; }
  .qab-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; width: 50px; height: 50px; padding: 0; border: 0;
    border-radius: 50%; background: #01bfca; box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .3); cursor: pointer; }
  .qab-btn span { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
  .qab-list:not([hidden]) { position: absolute; right: 0; bottom: 62px; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
  .qab-list a { display: flex; align-items: center; gap: 10px; color: #000; font: 12px Helvetica, Arial, sans-serif; }
  .qab-i { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .3); }
  .qab-i svg { width: 20px; height: 20px; fill: #fff; }
  .back-to-top { display: block; position: fixed; left: 12px; bottom: 12px; width: 27px; height: 27px; z-index: 90;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
  .back-to-top.show { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
  .back-to-top svg { width: 100%; height: 100%; }
  .wform :is(input, select, textarea) { line-height: 17px; }
  .wform .wf-sel svg { right: 8px; width: 21px; height: 21px; margin-top: -10.5px; }
}
