/* ==========================================================================
   Maitri Enterprises — design system "mx"
   Shared by every page that uses views/header.php + views/footer.php.

   Structure
     1. Tokens
     2. Base (scoped to body.mx-page — migrated pages only)
     3. Layout
     4. Typography
     5. Buttons, chips, links
     6. Cards
     7. Forms
     8. Motion (reveal system)
     9. Header + navigation + mobile drawer
    10. Footer
    11. Floating actions, mobile action bar, back-to-top
    12. Toasts
    13. Utilities
   ========================================================================== */

/* 0. Fonts ------------------------------------------------------------------
   Self-hosted, byte-identical copies of the Google Fonts latin files (SIL OFL 1.1,
   see ../fonts/README.txt) with Google's own descriptors, so rendering is unchanged.
   Manrope keeps one rule per weight, exactly as Google serves it (in-between weights
   snap to the same face). header.php preloads Manrope and Bricolage on migrated pages. */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url(../fonts/bricolage-grotesque.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand — --mx-brand is overridden inline from Admin > Settings (front_end_color) */
  --mx-brand: #1B3891;
  --mx-brand-deep: #10225E;
  --mx-brand-soft: #E8ECF8;
  --mx-accent: #F2A33A;          /* marigold paint */
  --mx-accent-deep: #D9822B;
  --mx-accent-soft: #FDF0DC;
  /* The 5 service colours (.mx-svc-1..5) in display order, Painting first — as in the hero kicker */
  --mx-svc-strip: linear-gradient(90deg, #F2A33A 0 20%, var(--mx-brand) 20% 40%, #3E6E8E 40% 60%, #B54B26 60% 80%, #557A5D 80%);

  /* Neutrals (clean, slightly warm) */
  --mx-ink: #12151C;
  --mx-ink-2: #2A2F3A;
  --mx-muted: #575E6B;
  --mx-subtle: #868B95;
  --mx-canvas: #F7F6F3;
  --mx-paper: #FFFFFF;
  --mx-sand: #EFEBE4;
  --mx-line: #E4E0D8;
  --mx-line-strong: #D2CCC1;
  --mx-night: #0D1330;
  --mx-night-2: #151D45;
  --mx-on-night: #E9ECF6;
  --mx-on-night-muted: #A7AEC6;

  --mx-success: #1F7A4F;
  --mx-danger: #B83A26;
  --mx-whatsapp: #0E7A40;

  /* Type */
  --mx-font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --mx-font-accent: 'Instrument Serif', Georgia, serif;   /* italic accent words only */
  --mx-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mx-text-lead: clamp(1.0625rem, 1rem + .2vw, 1.125rem);   /* the paragraph under every section H2 */

  /* Shape + depth */
  --mx-radius-xs: 8px;
  --mx-radius-sm: 12px;
  --mx-radius: 18px;
  --mx-radius-lg: 28px;
  --mx-radius-pill: 999px;
  --mx-shadow-xs: 0 1px 2px rgba(22, 26, 35, .06);
  --mx-shadow-sm: 0 1px 2px rgba(22, 26, 35, .05), 0 4px 14px -6px rgba(22, 26, 35, .10);
  --mx-shadow: 0 18px 40px -18px rgba(22, 26, 35, .25);
  --mx-shadow-lg: 0 40px 80px -30px rgba(13, 19, 48, .45);

  /* Rhythm */
  --mx-container: 1240px;
  --mx-gutter: clamp(16px, 4vw, 32px);
  --mx-section: clamp(72px, 9vw, 128px);
  --mx-header-h: 80px;

  /* Motion */
  --mx-ease: cubic-bezier(.2, .7, .2, 1);
  --mx-ease-out: cubic-bezier(.16, 1, .3, 1);
  --mx-dur: .7s;
  --mx-dur-press: .09s;
}

/* 2. Base — migrated pages only ------------------------------------------- */
/* :where() keeps these at zero specificity so component classes always win. */
:where(.mx-page), :where(.mx-page) *, :where(.mx-page) *::before, :where(.mx-page) *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--mx-header-h) + 16px); }
/* Smooth anchor scrolling is done in JS (MX.scrollTo) — CSS smooth scroll breaks ScrollTrigger refreshes. */

body.mx-page {
  margin: 0;
  font-family: var(--mx-font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--mx-ink-2);
  background: var(--mx-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:where(.mx-page) :where(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  font-family: var(--mx-font-display);
  font-weight: 650;
  color: var(--mx-ink);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
/* No single-word last lines in body copy */
:where(.mx-page) :where(p, li, dd, figcaption, blockquote) { text-wrap: pretty; }
/* Italic serif accent inside headings: <em> */
:where(.mx-page) :where(h1, h2, h3) em, .mx-accent {
  font-family: var(--mx-font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
:where(.mx-page) :where(p, figure, blockquote) { margin: 0; }
:where(.mx-page) :where(ul, ol) { margin: 0; padding: 0; }
:where(.mx-page) :where(img, svg, video) { display: block; max-width: 100%; height: auto; }
:where(.mx-page) a { color: inherit; text-decoration: none; }
:where(.mx-page) :where(button, input, select, textarea) { font: inherit; }
.mx-page ::selection { background: var(--mx-accent); color: var(--mx-ink); }
/* No default (cyan) tap flash on phones: buttons and the action bar have their own press state */
:where(.mx-page, .mx-header, .mx-drawer, .mx-footer, .mx-actionbar, .mx-toasts) :where(a, button, label, summary), :where(.mx-fab) { -webkit-tap-highlight-color: transparent; }

/* Focus — visible for keyboard users everywhere (legacy pages included) */
.mx-header a:focus-visible, .mx-header button:focus-visible,
.mx-drawer a:focus-visible, .mx-drawer button:focus-visible,
.mx-footer a:focus-visible, .mx-footer button:focus-visible,
.mx-fab:focus-visible, .mx-actionbar a:focus-visible, .mx-totop:focus-visible,
.mx-page a:focus-visible, .mx-page button:focus-visible,
.mx-page input:focus-visible, .mx-page select:focus-visible, .mx-page textarea:focus-visible {
  outline: 3px solid var(--mx-brand);
  outline-offset: 3px;
}
.mx-section--night :focus-visible, .mx-marquee :focus-visible, .mx-footer :focus-visible,
.mx-topbar :focus-visible, .mx-panel :focus-visible { outline-color: var(--mx-accent) !important; }
.mx-page a:not(.mx-btn):focus-visible { border-radius: 4px; }
/* Action bar (light surface): ink ring with a paper gap, >= 3:1 on the white bar and on the marigold Free Quote */
.mx-actionbar a:focus-visible { outline: 3px solid var(--mx-ink); outline-offset: 2px; box-shadow: 0 0 0 2px var(--mx-paper); }

.mx-skip {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  display: inline-flex; align-items: center; min-height: 44px; /* 44px target (was 39px) */
  padding: 12px 18px; border-radius: var(--mx-radius-sm);
  background: var(--mx-ink); color: #fff !important; font: 600 15px/1 var(--mx-font);
  transform: translateY(-160%); transition: transform .2s var(--mx-ease);
}
.mx-skip:focus { transform: none; }

.mx-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 3. Layout ---------------------------------------------------------------- */
.mx-container {
  width: 100%;
  max-width: calc(var(--mx-container) + var(--mx-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--mx-gutter);
}
.mx-section { padding-block: var(--mx-section); position: relative; }
.mx-section--tight { padding-block: calc(var(--mx-section) * .6); }
.mx-section--sand { background: var(--mx-sand); }
.mx-section--paper { background: var(--mx-paper); }
.mx-section--night { background: var(--mx-night); color: var(--mx-on-night); }
:where(.mx-section--night) :where(h1, h2, h3, h4) { color: #fff; }
.mx-section--night .mx-brush::after { bottom: -.17em; height: .27em; }

.mx-section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.mx-section-head--center { margin-inline: auto; text-align: center; }
.mx-section-head--split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
}
.mx-section-head--split > :first-child { max-width: 680px; }

/* 4. Typography ------------------------------------------------------------ */
.mx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12.5px/1.2 var(--mx-font);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--mx-brand);
  margin-bottom: 18px;
}
.mx-eyebrow::before {
  content: ""; width: 30px; height: 10px; border-radius: 3px;
  background: var(--mx-svc-strip);
}
.mx-section--night .mx-eyebrow { color: var(--mx-accent); }
@media (max-width: 359px) { /* small phones: "Welcome to Maitri Enterprises" stays on one line down to 320px */
  .mx-eyebrow { gap: 8px; font-size: 12px; letter-spacing: .14em; }
  .mx-eyebrow::before { width: 26px; }
}

.mx-display {
  font-family: var(--mx-font-display);
  font-size: clamp(2.6rem, 1rem + 5vw, 5.9rem);
  line-height: .98; letter-spacing: -0.042em; font-weight: 700;
  text-wrap: balance;
}
.mx-h2 { text-wrap: balance; }
/* Stays below the hero H1 from 1024px up (H1 is ~4.31vw at 1100–1800); unchanged at 390 and >= 1360 */
.mx-h2 { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.25rem); }
.mx-h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }
.mx-lead { font-size: var(--mx-text-lead); line-height: 1.65; color: var(--mx-muted); text-wrap: balance; }
.mx-section--night .mx-lead { color: var(--mx-on-night-muted); }
.mx-muted { color: var(--mx-muted); }
.mx-italic { font-style: italic; font-weight: 400; }

/* Brush-stroke highlight — the "paint" signature. Animates when revealed. */
.mx-brush {
  position: relative; white-space: nowrap; z-index: 0;
  font-family: var(--mx-font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.mx-brush::after {
  content: ""; position: absolute; z-index: -1;
  left: -.08em; right: -.08em; bottom: .02em; height: .42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M4 26c40-14 92-18 150-17 70 1 120 6 170 3 26-2 48-6 70-9-6 8-20 16-48 20-60 9-128 6-190 6-56 0-104 3-148 7-6 0-8-6-4-10z' fill='%23F2A33A'/%3E%3C/svg%3E") no-repeat left center / 100% 100%;
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 1.1s var(--mx-ease-out) .35s;
  opacity: .9;
}
.mx-js [data-reveal] .mx-brush::after,
.mx-js .mx-brush[data-reveal]::after { transform: scaleX(0); }
.mx-js [data-reveal].is-in .mx-brush::after,
.mx-js .mx-brush[data-reveal].is-in::after { transform: scaleX(1); }

/* Service colour system — one paint chip per service (helper: mx_svc_class()) */
.mx-svc-1 { --svc: #1B3891; --svc-ink: #FFFFFF; --svc-soft: #E8ECF8; }
.mx-svc-2 { --svc: #F2A33A; --svc-ink: #161A23; --svc-soft: #FDF0DC; }
.mx-svc-3 { --svc: #3E6E8E; --svc-ink: #FFFFFF; --svc-soft: #E3EDF3; }
.mx-svc-4 { --svc: #B54B26; --svc-ink: #FFFFFF; --svc-soft: #F8E5DC; }
.mx-svc-5 { --svc: #557A5D; --svc-ink: #FFFFFF; --svc-soft: #E5EEE6; }
.mx-svc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--svc, var(--mx-accent)); flex: none; }

/* Palette swatch strip */
.mx-swatches { display: inline-flex; gap: 6px; }
.mx-swatches span { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* 5. Buttons, chips, links -------------------------------------------------- */
.mx-btn {
  --_bg: var(--mx-ink); --_fg: #fff; --_bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--_bd); border-radius: var(--mx-radius-pill);
  background: var(--_bg); color: var(--_fg) !important;
  font: 700 15px/1.1 var(--mx-font); letter-spacing: .005em; text-decoration: none !important;
  white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--mx-ease), box-shadow .35s var(--mx-ease), background-color .35s var(--mx-ease), color .35s var(--mx-ease), border-color .35s var(--mx-ease);
}
.mx-btn i { font-size: 1.05em; }
.mx-btn::before { /* paint-roll sheen on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--mx-ease);
}
/* Hover-only effects need a real hover pointer: no sticky lift/sheen after a tap on touch screens */
@media (hover: hover) and (pointer: fine) {
  .mx-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(22, 26, 35, .55); }
  .mx-btn:hover::before { transform: translateX(120%); }
}
.mx-btn:active { transform: translateY(0) scale(.97); transition-duration: var(--mx-dur-press); }
.mx-btn__arrow { transition: transform .35s var(--mx-ease); }
@media (hover: hover) and (pointer: fine) {
  .mx-btn:hover .mx-btn__arrow { transform: translateX(4px); }
}

.mx-btn--primary { --_bg: var(--mx-accent); --_fg: var(--mx-ink); }
@media (hover: hover) and (pointer: fine) { .mx-btn--primary:hover { --_bg: #F5B04F; } }
.mx-btn--brand { --_bg: var(--mx-brand); --_fg: #fff; }
@media (hover: hover) and (pointer: fine) { .mx-btn--brand:hover { --_bg: var(--mx-brand-deep); } }
.mx-btn--dark { --_bg: var(--mx-ink); --_fg: #fff; }
.mx-btn--light { --_bg: #fff; --_fg: var(--mx-ink); }
.mx-btn--ghost { --_bg: transparent; --_fg: var(--mx-ink); --_bd: var(--mx-line-strong); }
@media (hover: hover) and (pointer: fine) { .mx-btn--ghost:hover { --_bd: var(--mx-ink); } }
.mx-btn--ghost-light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.35); }
@media (hover: hover) and (pointer: fine) { .mx-btn--ghost-light:hover { --_bd: #fff; --_bg: rgba(255,255,255,.08); } }
.mx-btn--whatsapp { --_bg: var(--mx-whatsapp); --_fg: #fff; }
@media (hover: hover) and (pointer: fine) { .mx-btn--whatsapp:hover { --_bg: #0B6535; } }
.mx-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.mx-btn--lg { min-height: 58px; padding: 0 32px; font-size: 16px; }
.mx-btn--block { width: 100%; }

.mx-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--mx-brand); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  transition: background-size .35s var(--mx-ease), gap .35s var(--mx-ease);
}
@media (hover: hover) and (pointer: fine) { .mx-link:hover { background-size: 100% 1.5px; gap: 12px; } }

.mx-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--mx-radius-pill);
  background: var(--mx-paper); border: 1px solid var(--mx-line);
  font: 600 13.5px/1.2 var(--mx-font); color: var(--mx-ink-2);
  box-shadow: var(--mx-shadow-xs);
}
.mx-chip i { color: var(--mx-brand); }

.mx-icon-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--mx-brand-soft); color: var(--mx-brand); font-size: 22px;
}

/* 6. Cards ----------------------------------------------------------------- */
.mx-card {
  position: relative; background: var(--mx-paper);
  border: 1px solid var(--mx-line); border-radius: var(--mx-radius);
  box-shadow: var(--mx-shadow-xs);
  transition: transform .45s var(--mx-ease), box-shadow .45s var(--mx-ease), border-color .45s var(--mx-ease);
}
@media (hover: hover) and (pointer: fine) { .mx-card--hover:hover { transform: translateY(-6px); box-shadow: var(--mx-shadow); border-color: transparent; } }

.mx-media { position: relative; overflow: hidden; border-radius: var(--mx-radius); background: var(--mx-sand); }
.mx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--mx-ease-out); }
@media (hover: hover) and (pointer: fine) { .mx-card--hover:hover .mx-media img, .mx-media--zoom:hover img { transform: scale(1.06); } }

/* 7. Forms ----------------------------------------------------------------- */
.mx-form { display: grid; gap: 16px; }
.mx-form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .mx-form-row { grid-template-columns: 1fr; } }
.mx-field { display: grid; gap: 7px; min-width: 0; }
.mx-label { font: 600 13.5px/1.3 var(--mx-font); color: var(--mx-ink); }
.mx-label .mx-req { color: var(--mx-danger); }
.mx-input, .mx-select, .mx-textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: 500 16px/1.4 var(--mx-font); color: var(--mx-ink);
  background: var(--mx-paper); border: 1.5px solid var(--mx-subtle); border-radius: var(--mx-radius-sm);
  transition: border-color .25s var(--mx-ease), box-shadow .25s var(--mx-ease), background-color .25s var(--mx-ease);
  -webkit-appearance: none; appearance: none;
}
.mx-textarea { min-height: 120px; resize: vertical; }
.mx-select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23161A23' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.mx-input::placeholder, .mx-textarea::placeholder { color: var(--mx-subtle); opacity: 1; }
.mx-input:hover, .mx-select:hover, .mx-textarea:hover { border-color: var(--mx-muted); }
.mx-input:focus, .mx-select:focus, .mx-textarea:focus {
  outline: none; border-color: var(--mx-brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mx-brand) 16%, transparent);
}
.mx-input[aria-invalid="true"], .mx-select[aria-invalid="true"], .mx-textarea[aria-invalid="true"] { border-color: var(--mx-danger); }
.mx-field-error { font: 600 13px/1.3 var(--mx-font); color: var(--mx-danger); }
.mx-form-note { font-size: 13.5px; color: var(--mx-muted); }
.mx-captcha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mx-captcha__q {
  padding: 12px 16px; border-radius: var(--mx-radius-sm); background: var(--mx-sand);
  font: 700 16px/1 var(--mx-font); color: var(--mx-ink); letter-spacing: .04em; white-space: nowrap;
}
.mx-captcha .mx-input { max-width: 140px; }

/* 8. Motion — reveal on scroll (JS adds .mx-js to <html>) ------------------- */
.mx-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--mx-dur) var(--mx-ease-out), transform var(--mx-dur) var(--mx-ease-out);
  transition-delay: var(--d, 0s);
}
.mx-js [data-reveal="left"]  { transform: translate3d(-36px, 0, 0); }
.mx-js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.mx-js [data-reveal="zoom"]  { transform: scale(.94); }
.mx-js [data-reveal="fade"]  { transform: none; }
.mx-js [data-reveal="mask"]  { transform: none; opacity: 1; clip-path: inset(0 0 100% 0 round var(--mx-radius-lg)); transition: clip-path 1.2s var(--mx-ease-out); transition-delay: var(--d, 0s); }
.mx-js [data-reveal].is-in { opacity: 1; transform: none; }
.mx-js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0 round var(--mx-radius-lg)); }
/* Never hide what has keyboard focus (e.g. a button still waiting on its stagger delay).
   transition: none also cancels a reveal already running, so the block shows at once. */
.mx-js [data-reveal]:focus-within, .mx-js [data-reveal]:focus-visible {
  opacity: 1; transform: none; clip-path: none; transition: none;
}

/* Split-word heading reveal — JS wraps words of [data-split] in .mx-w > .mx-w__i */
.mx-w { display: inline-block; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; clip-path: inset(-0.6em -0.3em 0 -0.3em); }
.mx-w__i { display: inline-block; transition: transform 1s var(--mx-ease-out), opacity 1s var(--mx-ease-out); transition-delay: calc(var(--wi, 0) * 55ms + var(--d, 0s)); }
.mx-js [data-split]:not(.is-in) .mx-w__i { transform: translateY(105%); opacity: 0; }
.mx-js [data-split] .mx-brush::after { transform: scaleX(0); }
.mx-js [data-split].is-in .mx-brush::after { transform: scaleX(1); transition-delay: calc(var(--wn, 4) * 55ms + .3s); }

/* Paper grain — subtle tactile texture on light surfaces */
.mx-page::before {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress — a thin "paint line" under the header */
.mx-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #1B3891, #F2A33A 30%, #C8562E 55%, #3E6E8E 78%, #557A5D);
  opacity: 0; transition: opacity .3s;
}
.mx-header.is-scrolled .mx-progress { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mx-js [data-split] .mx-w__i { transform: none !important; opacity: 1 !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mx-js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* 9. Header ------------------------------------------------------------------ */
.mx-topbar {
  position: relative; z-index: 60;
  background: var(--mx-night); color: var(--mx-on-night-muted);
  font: 500 13.5px/1.2 var(--mx-font);
}
.mx-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.mx-topbar__list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.mx-topbar__list li { display: flex; align-items: center; gap: 8px; }
.mx-topbar__list i { color: var(--mx-accent); font-size: 13px; }
.mx-topbar a { color: var(--mx-on-night); text-decoration: none; transition: color .2s; }
@media (hover: hover) and (pointer: fine) { .mx-topbar a:hover { color: var(--mx-accent); } }
.mx-topbar__social { display: flex; gap: 6px; }
.mx-topbar__social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .mx-topbar__social a:hover { background: rgba(255,255,255,.08); } }
@media (max-width: 991px) { .mx-topbar__hours { display: none !important; } }
@media (max-width: 767px) { .mx-topbar { display: none; } }

.mx-header {
  position: sticky; top: 0; z-index: 50;
  font-family: var(--mx-font);
  background: color-mix(in srgb, var(--mx-canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--mx-ease), box-shadow .35s var(--mx-ease), border-color .35s var(--mx-ease), background-color .35s;
}
.mx-header.is-scrolled { border-bottom-color: var(--mx-line); box-shadow: 0 10px 30px -22px rgba(22, 26, 35, .45); background: color-mix(in srgb, var(--mx-paper) 88%, transparent); }
.mx-header.is-hidden { transform: translateY(-100%); }
.mx-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--mx-header-h); transition: min-height .35s var(--mx-ease); }
.mx-header.is-scrolled .mx-header__inner { min-height: 68px; }

.mx-logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.mx-logo img { height: 52px; width: auto; transition: height .35s var(--mx-ease); }
.mx-header.is-scrolled .mx-logo img { height: 44px; }

.mx-nav { margin-left: auto; }
.mx-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mx-nav__item { position: relative; }
.mx-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1 var(--mx-font); color: var(--mx-ink) !important; text-decoration: none !important;
  border-radius: var(--mx-radius-pill);
  transition: background-color .25s, color .25s;
}
.mx-nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--mx-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--mx-ease);
}
.mx-nav__link:hover::after, .mx-nav__item.is-current > .mx-nav__link::after { transform: scaleX(1); }
.mx-nav__item.is-current > .mx-nav__link { color: var(--mx-brand) !important; }
.mx-nav__caret { font-size: 11px; transition: transform .3s var(--mx-ease); }
.mx-nav__item--has-menu:hover .mx-nav__caret, .mx-nav__item--has-menu.is-open .mx-nav__caret { transform: rotate(180deg); }

.mx-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 5;
  width: min(560px, 90vw); padding: 12px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  list-style: none; margin: 0;
  background: var(--mx-paper); border: 1px solid var(--mx-line); border-radius: var(--mx-radius);
  box-shadow: var(--mx-shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .25s var(--mx-ease), transform .3s var(--mx-ease), visibility .25s;
}
.mx-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.mx-nav__item--has-menu:not(.is-dismissed):hover .mx-menu,
.mx-nav__item--has-menu.is-open .mx-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mx-menu__link {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--mx-radius-sm);
  color: var(--mx-ink) !important; text-decoration: none !important; font: 600 14.5px/1.3 var(--mx-font);
  transition: background-color .2s;
}
.mx-menu__link:hover, .mx-menu__link.is-current { background: var(--mx-sand); }
.mx-menu__icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--mx-brand-soft); color: var(--mx-brand); font-size: 16px;
  transition: background-color .25s, color .25s;
}
/* Direct class hook (header.php); same specificity as the old [class*="mx-svc-"] selectors it replaces */
.mx-menu__link.mx-menu__link--svc .mx-menu__icon { background: var(--svc-soft); color: var(--svc); }
.mx-menu__link.mx-menu__link--svc.mx-svc-2 .mx-menu__icon { color: #8A5A12; }
.mx-menu__link:hover .mx-menu__icon { background: var(--svc, var(--mx-brand)); color: var(--svc-ink, #fff); }
.mx-menu__all {
  grid-column: 1 / -1; margin-top: 6px; padding: 14px 16px; border-radius: var(--mx-radius-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--mx-night); color: #fff !important; text-decoration: none !important; font: 600 14px/1.3 var(--mx-font);
}
.mx-menu__all span { color: var(--mx-on-night-muted); font-weight: 500; }
.mx-menu__all i { color: var(--mx-accent); }

.mx-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.mx-header__call { display: inline-flex; align-items: center; gap: 12px; color: var(--mx-ink) !important; text-decoration: none !important; }
.mx-header__call-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--mx-brand-soft); color: var(--mx-brand); font-size: 16px; transition: background-color .25s, color .25s;
}
.mx-header__call:hover .mx-header__call-icon { background: var(--mx-brand); color: #fff; }
.mx-header__call-text { display: grid; gap: 3px; font: 500 12px/1 var(--mx-font); color: var(--mx-muted); }
.mx-header__call-text strong { font: 700 15px/1 var(--mx-font); color: var(--mx-ink); }

.mx-burger {
  display: none; position: relative; width: 48px; height: 48px; flex: none;
  border: 1.5px solid var(--mx-line-strong); border-radius: 50%; background: var(--mx-paper); cursor: pointer;
}
.mx-burger span, .mx-burger::before, .mx-burger::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--mx-ink);
  transition: transform .3s var(--mx-ease), opacity .3s;
}
.mx-burger::before { top: 17px; } .mx-burger span { top: 23px; } .mx-burger::after { top: 29px; }

@media (max-width: 1199px) {
  .mx-header__call-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mx-nav__link { padding: 10px 11px; }
}
@media (max-width: 1023px) {
  :root { --mx-header-h: 72px; }
  .mx-nav, .mx-header__call { display: none; }
  .mx-burger { display: block; }
  .mx-header__actions { margin-left: auto; }
  .mx-logo img { height: 44px; }
}
@media (max-width: 767px) {
  .mx-header__quote { display: none; }
}

/* Mobile drawer */
.mx-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; font-family: var(--mx-font); }
.mx-drawer.is-open { visibility: visible; }
.mx-drawer__scrim { position: absolute; inset: 0; background: rgba(13, 19, 48, .55); opacity: 0; transition: opacity .35s var(--mx-ease); }
.mx-drawer.is-open .mx-drawer__scrim { opacity: 1; }
.mx-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: var(--mx-canvas); box-shadow: var(--mx-shadow-lg);
  transform: translateX(100%); transition: transform .45s var(--mx-ease-out);
}
.mx-drawer.is-open .mx-drawer__panel { transform: none; }
.mx-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--mx-line); }
.mx-drawer__head img { height: 44px; width: auto; }
.mx-drawer__close {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--mx-line-strong); background: var(--mx-paper); color: var(--mx-ink); font-size: 18px; cursor: pointer;
}
.mx-drawer__nav { list-style: none; margin: 0; padding: 12px 20px; }
.mx-drawer__nav > li { border-bottom: 1px solid var(--mx-line); }
.mx-drawer__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 18px 2px; border: 0; background: none; cursor: pointer; text-align: left;
  font: 600 22px/1.2 var(--mx-font-display); letter-spacing: -0.02em; color: var(--mx-ink) !important; text-decoration: none !important;
}
.mx-drawer__link.is-current { color: var(--mx-brand) !important; }
.mx-drawer__link i { font-size: 14px; color: var(--mx-muted); transition: transform .3s var(--mx-ease); }
.mx-drawer__link[aria-expanded="true"] i { transform: rotate(180deg); }
.mx-drawer__sub { list-style: none; margin: 0; padding: 0 0 14px; display: grid; gap: 2px; }
.mx-drawer__sub[hidden] { display: none; }
.mx-drawer__sub a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 8px; border-radius: var(--mx-radius-sm);
  font: 600 15px/1.3 var(--mx-font); color: var(--mx-ink-2) !important; text-decoration: none !important;
}
@media (hover: hover) and (pointer: fine) { .mx-drawer__sub a:hover { background: var(--mx-sand); } }
.mx-drawer__sub i { width: 22px; text-align: center; color: var(--mx-brand); }
.mx-drawer__foot { margin-top: auto; padding: 20px; display: grid; gap: 12px; border-top: 1px solid var(--mx-line); background: var(--mx-paper); }
.mx-drawer__contact { display: grid; gap: 10px; margin: 4px 0 6px; padding: 0; list-style: none; font-size: 14.5px; }
.mx-drawer__contact a { display: flex; align-items: center; gap: 10px; color: var(--mx-ink-2) !important; text-decoration: none !important; }
.mx-drawer__contact i { width: 18px; color: var(--mx-brand); }
html.mx-locked, html.mx-locked body { overflow: hidden; }

/* 10. Footer ----------------------------------------------------------------- */
.mx-footer {
  position: relative; overflow: hidden;
  background: var(--mx-night); color: var(--mx-on-night-muted);
  font: 400 15px/1.7 var(--mx-font);
}
.mx-footer a { color: var(--mx-on-night); text-decoration: none; transition: color .2s; }
@media (hover: hover) and (pointer: fine) { .mx-footer a:hover { color: var(--mx-accent); } }
.mx-footer h2, .mx-footer h3 { margin: 0; font-family: var(--mx-font-display); font-weight: 650; color: #fff; letter-spacing: -0.015em; }

.mx-footer__cta {
  position: relative; padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mx-footer__cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.mx-footer__cta h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.75rem); line-height: 1.04; max-width: 15ch; }
.mx-footer__cta h2 em { color: var(--mx-accent); font-family: var(--mx-font-accent); font-style: italic; font-weight: 400; }
.mx-footer__cta p { margin-top: 14px; max-width: 46ch; color: var(--mx-on-night-muted); }
.mx-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mx-footer__paint {
  position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--mx-accent) 40%, transparent), transparent 60%);
  filter: blur(20px); opacity: .5;
}

.mx-footer__main { padding-block: clamp(48px, 6vw, 80px); }
.mx-footer__grid { display: grid; gap: 40px 32px; grid-template-columns: 1.35fr .8fr 1fr 1.25fr; }
@media (max-width: 1199px) { .mx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .mx-footer__grid { grid-template-columns: 1fr; } }

.mx-footer__logo { display: inline-flex; padding: 10px 14px; border-radius: var(--mx-radius-sm); background: #fff; line-height: 0; }
.mx-footer__logo img { height: 50px; width: auto; }
.mx-footer__about { margin-top: 20px; max-width: 38ch; }
.mx-footer .mx-footer__title { font: 700 12.5px/1.2 var(--mx-font) !important; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px !important; }
.mx-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mx-footer__links a { display: inline-flex; align-items: center; gap: 0; }
.mx-footer__links a::before { content: ""; width: 0; height: 2px; margin-right: 0; background: var(--mx-accent); transition: width .3s var(--mx-ease), margin-right .3s var(--mx-ease); }
@media (hover: hover) and (pointer: fine) { .mx-footer__links a:hover::before { width: 12px; margin-right: 8px; } }
.mx-footer__bottom a i { display: inline-block; margin-left: .4em; }
/* Direct class hook (footer.php), not li[class*="mx-svc-"]: an attribute-substring key restyled every link on any class change */
.mx-footer__links li.mx-footer__svc a { gap: 10px; }
.mx-footer__links li.mx-footer__svc a::before { display: none; }
.mx-footer__links .mx-svc-dot { transition: transform .3s var(--mx-ease); }
@media (hover: hover) and (pointer: fine) { .mx-footer__links a:hover .mx-svc-dot { transform: rotate(45deg) scale(1.15); } }
.mx-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mx-footer__contact li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.mx-footer__contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--mx-accent); }
.mx-footer__contact small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mx-on-night-muted); }
.mx-footer__contact span, .mx-footer__contact a { color: var(--mx-on-night); }

.mx-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.mx-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 15px;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--mx-ease);
}
@media (hover: hover) and (pointer: fine) { .mx-social a:hover { background: var(--mx-accent); border-color: var(--mx-accent); color: var(--mx-ink); transform: translateY(-3px); } }

/* Location card: info panel + dark-styled Google map */
.mx-locate {
  position: relative; display: grid; grid-template-columns: minmax(340px, .78fr) 1.5fr;
  margin-top: clamp(40px, 5vw, 64px); overflow: hidden;
  border-radius: var(--mx-radius-lg); border: 1px solid rgba(255,255,255,.09);
  background: var(--mx-night-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.mx-locate [hidden] { display: none !important; }
.mx-locate__info {
  position: relative; display: flex; flex-direction: column; gap: 26px;
  padding: clamp(28px, 3.6vw, 48px);
}
/* 5-service paint strip along the top edge: the shared strip, Painting first, as the eyebrow chip below */
.mx-locate__info::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--mx-svc-strip);
}
.mx-locate__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 700 12.5px/1.2 var(--mx-font); letter-spacing: .16em; text-transform: uppercase; color: var(--mx-accent);
}
.mx-locate__eyebrow::before {
  content: ""; width: 30px; height: 10px; border-radius: 3px;
  background: var(--mx-svc-strip);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.mx-footer .mx-locate__title {
  margin-top: -12px; font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 650; font-variation-settings: "opsz" 96;
}
.mx-locate__title em { color: var(--mx-accent); font-family: var(--mx-font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.mx-locate__facts { list-style: none; margin: 0; padding: 22px 0 0; display: grid; gap: 18px; border-top: 1px solid rgba(255,255,255,.09); }
.mx-locate__facts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.mx-locate__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(242,163,58,.12); color: var(--mx-accent); font-size: 17px;
}
.mx-locate__facts small { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-on-night-muted); }
.mx-locate__facts address, .mx-locate__facts span { font-style: normal; color: var(--mx-on-night); font-size: 15.5px; line-height: 1.55; }
.mx-locate__facts address { max-width: 34ch; }

/* Live open/closed badge (filled in by mx.js, Asia/Kolkata time) */
.mx-locate__status {
  display: flex !important; width: fit-content; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 12px 5px 10px; white-space: nowrap;
  border-radius: var(--mx-radius-pill); font: 700 12.5px/1.2 var(--mx-font) !important; letter-spacing: .02em;
  background: rgba(255,255,255,.07); color: var(--mx-on-night-muted) !important;
}
.mx-locate__status[hidden] { display: none !important; }
.mx-locate__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mx-locate__status.is-open { background: rgba(52, 199, 123, .14); color: #7BE0A8 !important; }
.mx-locate__status.is-open::before { box-shadow: 0 0 0 0 rgba(123,224,168,.6); }
/* Two pulses (4.4s, under the 5s of WCAG 2.2.2) once the badge is in view (mx.js adds .is-seen) */
.mx-locate__status.is-open.is-seen::before { animation: mx-locate-pulse 2.2s ease-out 2; }
@keyframes mx-locate-pulse { 0% { box-shadow: 0 0 0 0 rgba(123,224,168,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(123,224,168,0); } }

.mx-locate__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.mx-locate__actions .mx-btn { flex: 1 1 auto; }
.mx-locate__copy.is-copied { --_bd: #7BE0A8; color: #7BE0A8 !important; }

.mx-locate__map {
  position: relative; min-height: 460px; isolation: isolate;
  background: #1a2350; border-left: 1px solid rgba(255,255,255,.08);
}
.mx-locate__map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* Native-looking dark map: invert lightness, rotate hues back so the pin and parks keep their colours */
  filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.92) contrast(.95);
}
/* Navy brand tint + soft edge vignette. Both ignore the pointer, so the map stays fully usable. */
.mx-locate__map::before, .mx-locate__map::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mx-locate__map::before { background: #1B3891; mix-blend-mode: color; opacity: .35; }
.mx-locate__map::after { box-shadow: inset 0 0 40px rgba(13,19,48,.35); }
/* Shown until the iframe paints (or if it is blocked) */
.mx-locate__skeleton {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(circle at 50% 50%, rgba(242,163,58,.12), transparent 55%);
}
.mx-locate__pin { color: var(--mx-accent); font-size: 40px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); animation: mx-locate-bob 2.4s var(--mx-ease) infinite; }
@keyframes mx-locate-bob { 50% { transform: translateY(-8px); } }
/* Phones: "Show map" press-to-load facade (mx.js unhides it below 768px); the address, directions and copy stay above */
.mx-locate__load { position: absolute; left: 50%; top: calc(50% + 40px); z-index: 2; translate: -50% 0; }
/* The footer's looping animations rest while the card is off screen (mx.js toggles .is-offscreen) */
.mx-locate.is-offscreen .mx-locate__pin, .mx-locate.is-offscreen .mx-locate__status::before { animation-play-state: paused; }
@media (max-width: 767px) { .mx-locate__pin { animation-iteration-count: 2; } } /* the facade keeps the pin on screen: bob twice, then rest */

@media (max-width: 991px) {
  .mx-locate { grid-template-columns: 1fr; }
  .mx-locate__map { min-height: 340px; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 599px) {
  .mx-locate { border-radius: var(--mx-radius); }
  .mx-locate__map { min-height: 280px; }
  .mx-locate__actions .mx-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-locate__status.is-open.is-seen::before, .mx-locate__pin { animation: none; }
}

.mx-footer__wordmark { overflow: hidden; padding-top: 8px; line-height: .85; }
.mx-footer__wordmark span {
  display: block; white-space: nowrap; text-align: center;
  font: 700 clamp(2.1rem, 8.4vw, 9.6rem)/.95 var(--mx-font-display); letter-spacing: -0.055em;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.02) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(14%);
}
.mx-footer__wordmark em { font-family: var(--mx-font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.mx-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; font-size: 14px; }
.mx-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.mx-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 768px) { .mx-footer__bottom-inner { padding-right: 84px; } }
/* 44px rows for touch, and for narrow windows (the 320px desktop window gets the phone footer, not 19px rows) */
@media (pointer: coarse), (max-width: 767px) {
  .mx-footer__links a, .mx-footer__contact a, .mx-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; } .mx-footer__links { gap: 0; }
  .mx-social a { width: 44px; height: 44px; }
}

/* 11. Floating actions -------------------------------------------------------- */
.mx-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--mx-whatsapp); color: #fff !important; font-size: 30px; text-decoration: none !important;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .65);
  transition: transform .3s var(--mx-ease);
}
.mx-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mx-whatsapp);
  animation: none;
}
/* Pulses twice each time the button appears (on the home page: when the hero leaves view), then rests */
body:not(.mx-hero-in-view) .mx-fab::before { animation: mx-pulse 2.4s var(--mx-ease) .4s 2; }
@media (hover: hover) and (pointer: fine) { .mx-fab:hover { transform: scale(1.07); } }
.mx-fab__label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  padding: 8px 12px; border-radius: var(--mx-radius-xs); background: var(--mx-ink); color: #fff;
  font: 600 13px/1 var(--mx-font); white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--mx-ease);
}
.mx-fab:focus-visible .mx-fab__label { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) and (pointer: fine) { .mx-fab:hover .mx-fab__label { opacity: 1; transform: translate(0, -50%); } }
@keyframes mx-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

.mx-totop {
  position: fixed; right: 30px; bottom: 96px; z-index: 79;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--mx-paper); color: var(--mx-ink); box-shadow: var(--mx-shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--mx-ease), visibility .3s;
}
.mx-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.mx-totop svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mx-totop circle { fill: none; stroke: var(--mx-accent); stroke-width: 3; stroke-linecap: round; }

/* Mobile bottom action bar */
.mx-actionbar { display: none; }
@media (max-width: 767px) {
  .mx-actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--mx-paper) 94%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--mx-line); box-shadow: 0 -12px 30px -20px rgba(22, 26, 35, .4);
    font-family: var(--mx-font);
  }
  .mx-actionbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--mx-radius-sm);
    font: 700 14px/1 var(--mx-font); text-decoration: none !important;
    transition: transform var(--mx-dur-press) var(--mx-ease), filter var(--mx-dur-press);
  }
  .mx-actionbar a:active { transform: scale(.96); filter: brightness(.93); }
  .mx-actionbar__call { background: var(--mx-brand-soft); color: var(--mx-brand) !important; }
  .mx-actionbar__wa { background: var(--mx-whatsapp); color: #fff !important; }
  .mx-actionbar__quote { background: var(--mx-accent); color: var(--mx-ink) !important; }
  body.mx-has-actionbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mx-fab { display: none; }
  .mx-totop { display: none; }
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* 12. Toasts ------------------------------------------------------------------ */
/* Anchored at the bottom so a toast never covers the header's menu, logo or quote button:
   bottom-left on wider screens (the floating WhatsApp / back-to-top buttons are bottom-right),
   just above the action bar on phones. */
.mx-toasts {
  position: fixed; bottom: 24px; left: 24px; z-index: 300; display: grid; gap: 10px;
  width: min(420px, calc(100vw - 48px)); font-family: var(--mx-font);
}
@media (max-width: 767px) {
  .mx-toasts { left: 12px; right: 12px; width: auto; bottom: calc(70px + 12px + env(safe-area-inset-bottom)); }
}
.mx-js [data-mx-toast]:not(.is-shown) { display: none; } /* mx.js re-inserts it after load so it is announced */
.mx-toast {
  display: grid; grid-template-columns: 36px 1fr 44px; gap: 12px; align-items: start;
  padding: 16px; border-radius: var(--mx-radius); background: var(--mx-paper);
  border: 1px solid var(--mx-line); box-shadow: var(--mx-shadow-lg);
  animation: mx-toast-in .5s var(--mx-ease-out);
  font-size: 14.5px; line-height: 1.5; color: var(--mx-ink-2);
}
.mx-toast.is-leaving { animation: mx-toast-out .35s var(--mx-ease) forwards; }
.mx-toast__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; }
.mx-toast--success .mx-toast__icon { background: var(--mx-success); }
.mx-toast--error .mx-toast__icon { background: var(--mx-danger); }
.mx-toast strong { display: block; margin-bottom: 2px; color: var(--mx-ink); font-weight: 700; }
.mx-toast__close { width: 44px; height: 44px; margin: -4px -4px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--mx-muted); cursor: pointer; }
.mx-toast__actions { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
.mx-toast__actions a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--mx-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.mx-toast__actions a:hover { text-decoration-thickness: 2px; }
.mx-toast a:focus-visible, .mx-toast button:focus-visible { outline: 3px solid var(--mx-brand); outline-offset: 2px; }
.mx-toast a:focus-visible { border-radius: 4px; }
.mx-toast__close:hover { background: var(--mx-sand); color: var(--mx-ink); }
@keyframes mx-toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes mx-toast-out { to { opacity: 0; transform: translateY(12px); } }

/* 13. Utilities ---------------------------------------------------------------- */
.mx-flex { display: flex; } .mx-wrap { flex-wrap: wrap; } .mx-center { align-items: center; }
.mx-gap-12 { gap: 12px; } .mx-gap-16 { gap: 16px; }
.mx-mt-24 { margin-top: 24px; } .mx-mt-32 { margin-top: 32px; } .mx-mt-40 { margin-top: 40px; }
.mx-text-center { text-align: center; }
.mx-noscroll { overflow: hidden; }
.mx-nowrap { white-space: nowrap; }

/* Legacy pages: the new shell sits on top of the old template — keep its own type. */
body.mx-legacy .mx-header, body.mx-legacy .mx-topbar, body.mx-legacy .mx-footer { line-height: 1.5; }
body.mx-legacy .mx-header *, body.mx-legacy .mx-footer *, body.mx-legacy .mx-drawer * { box-sizing: border-box; }
body.mx-legacy .mx-footer p { margin: 0; }

/* Review fixes: small Android action bar, tablet floating controls */
@media (max-width: 379px) {
  .mx-actionbar { grid-template-columns: .8fr 1.15fr 1.15fr; gap: 6px; padding-inline: 10px; }
  .mx-actionbar a { gap: 6px; font-size: 13px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .mx-totop { display: none; } }
/* Very short screens (landscape phones, 400% zoom): the bar joins the page flow instead of covering it */
@media (max-width: 767px) and (max-height: 480px) {
  .mx-actionbar { position: static; }
  body.mx-has-actionbar { padding-bottom: 0; }
  html { scroll-padding-bottom: 0; }
  .mx-toasts { bottom: 12px; }
}

/* ===== Mobile layer (<=1023): m1-shell ===== */
/* 14. m1-shell: phone shell + global foundations; all rules <=1023px (1024px+ unchanged). Tiers: reduced, base,
   enhanced (@supports scroll timelines, not on html.mx-lite). Header, drawer, action bar, FAB and toasts exist on
   every page, so this layer lives here; the JS half is the last IIFE in mx.js (sets html.mxm / html.mx-lite).
   Cascade note: this block now loads BEFORE the page CSS (css/<controller>/*). The four selectors prefixed
   with `html ` tie with a page rule (home 01-hero, 03-services, 06-quote); the one extra type selector keeps
   them winning exactly as they did when this layer loaded last. Do not drop the prefix. */

@media (max-width: 1023px) {
  /* P16 shared motion tokens */
  :root {
    --mxm-dur-press: .09s; --mxm-dur-release: .22s; --mxm-dur-tap: .18s; --mxm-dur-flood: .32s;
    --mxm-dur-sheet-in: .38s; --mxm-dur-sheet-out: .26s; --mxm-dur-bar-show: .22s; --mxm-dur-bar-hide: .3s;
    --mxm-dur-enter: .45s; --mxm-travel: 14px; --mxm-travel-touch: 12px; --mxm-stagger: 35ms;
    --mxm-ease-out: cubic-bezier(.16, 1, .3, 1); --mxm-ease-in: cubic-bezier(.5, 0, .75, 0); --mxm-ease-pop: cubic-bezier(.34, 1.36, .64, 1);
    --mxm-press: .97; --mxm-press-card: .985;
    --mx-gutter: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    color-scheme: light;
  }
  .mx-header { padding-top: env(safe-area-inset-top, 0px); }
  .mx-toasts { width: min(420px, calc(100% - 40px)); }

  /* M11 drawer sheet */
  .mx-drawer:not(.is-open) { pointer-events: none; }
  .mx-drawer__scrim { touch-action: pinch-zoom; }
  .mx-drawer__panel { touch-action: pan-y pinch-zoom; }
  :is(.mx-drawer__scrim, .mx-drawer__panel) { transition-duration: var(--mxm-dur-sheet-out); transition-timing-function: var(--mxm-ease-in); }
  .mx-drawer.is-open > * { transition-duration: var(--mxm-dur-sheet-in); transition-timing-function: var(--mxm-ease-out); }
  .mx-drawer__foot { padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
  .mx-drawer__sub .mx-svc-2 i { color: #8A5A12 !important; } /* beats the inline --svc: marigold is fill only */
  .mx-drawer li + li { --i: 1; } .mx-drawer li + li + li { --i: 2; } .mx-drawer li + li + li + li { --i: 3; } .mx-drawer li + li + li + li + li { --i: 4; }

  /* P15 gestures, overscroll */
  html.mx-locked { overscroll-behavior: none; }
  .glightbox-container { overscroll-behavior: contain; }
  :where(.mx-btn, .mx-actionbar a, .mx-burger, .mx-drawer a, .mx-drawer button) { touch-action: manipulation; }
  .mx-fab { bottom: max(22px, env(safe-area-inset-bottom, 0px)); }
}

/* Touch: no sticky hover, press 90ms in / 220ms out, P1 dab */
@media (max-width: 1023px) and (hover: none), (max-width: 1023px) and (pointer: coarse) {
  /* .mx-btn / .mx-fab hover effects now sit behind @media (hover: hover) and (pointer: fine) in sections 5 and 11 */
  html .mx-hero-explore:hover .mx-hero-explore-i { transform: none; }
  .mx-hero-explore:hover:not(:active) { transform: none; gap: 12px; }
  .mx-btn, html .mx-hero-explore, html .mx-services__quote, html .mx-projects__filter { transition-duration: var(--mxm-dur-release); }
  :is(.mx-hero-explore, .mx-services__quote, .mx-projects__filter):active { transition-duration: var(--mxm-dur-press); }
  .mx-burger, .mx-drawer__close, .mx-drawer__link, .mx-drawer__sub a { transition: scale var(--mxm-dur-release) var(--mxm-ease-out), background-color .2s; }
  :is(.mx-burger, .mx-drawer__close, .mx-drawer__link, .mx-drawer__sub a):active { scale: .96; transition-duration: var(--mxm-dur-press); }
  .mx-footer a:active, .mx-drawer__contact a:active { opacity: .62; }

  /* P1 dab spreads from the finger (JS: --mxm-x/y) */
  .mx-hero-explore, .mx-services__quote, .mx-projects__filter, .mx-drawer__sub a { position: relative; isolation: isolate; overflow: hidden; }
  :is(.mx-hero-explore, .mx-services__quote, .mx-services__card, .mx-projects__filter, .mx-projects__tile, .mx-drawer__sub a)::before {
    content: ""; position: absolute; z-index: -1; left: var(--mxm-x, 50%); top: var(--mxm-y, 50%); width: 300%; aspect-ratio: 1;
    border-radius: 50%; background: var(--svc-soft, var(--mx-sand)); translate: -50% -50%; scale: 0; opacity: 0; pointer-events: none;
    transition: scale .45s var(--mxm-ease-out), opacity .35s var(--mx-ease) .08s;
  }
  a.mx-hero-explore::before { background: color-mix(in srgb, var(--svc) 45%, var(--mx-ink)); }
  a.mx-projects__tile::before { z-index: 1; background: var(--svc); }
  :is(.mx-hero-explore, .mx-services__quote, .mx-projects__filter, .mx-projects__tile, .mx-drawer__sub a):active::before,
  .mx-services__card:has(.mx-services__explore:active)::before { scale: 1; opacity: 1; transition: scale var(--mxm-dur-flood) var(--mxm-ease-out) 50ms, opacity 0s 50ms; }
  a.mx-projects__tile:active::before { opacity: .3; }
}
@media (max-width: 1023px) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  /* card press, 50ms late so a scroll never flashes it */
  html .mx-services__card { transition: transform .3s var(--mx-ease), box-shadow .3s var(--mx-ease), scale var(--mxm-dur-release) var(--mxm-ease-out); }
  .mx-services__card:has(.mx-services__explore:active) { scale: var(--mxm-press-card); transition-duration: .3s, .3s, var(--mxm-dur-press); transition-delay: 0s, 0s, 50ms; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  /* M11 visible exit, links settle from the panel edge, close turns, rows unfold */
  .mx-drawer:not(.is-open) { transition: visibility 0s var(--mxm-dur-sheet-out); }
  .mx-drawer.is-open .mx-drawer__nav > li { animation: mxm-in .3s var(--mxm-ease-out) both; animation-delay: calc(60ms + var(--i, 0) * var(--mxm-stagger)); }
  .mx-drawer.is-open .mx-drawer__close i { animation: mxm-turn .3s var(--mxm-ease-out) both; }
  .mx-drawer__sub:not([hidden]) li { transition: opacity .2s, translate .26s var(--mxm-ease-out); transition-delay: calc(var(--i, 0) * 30ms); }
  @starting-style { .mx-drawer__sub:not([hidden]) li { opacity: 0; translate: 0 -6px; } }
}

/* Phones */
@media (max-width: 767px) {
  /* P4 entrances <=450ms, 14px, stagger 35ms capped at 120ms; shorter rhythm */
  :root { --mx-dur: var(--mxm-dur-enter); --mx-section: clamp(56px, 14.4vw, 64px); }
  .mx-js [data-reveal] { transition-delay: min(calc(var(--d, 0s) * .45), .12s); }
  .mx-js [data-reveal=""] { transform: translate3d(0, var(--mxm-travel), 0); }
  .mx-js [data-reveal="zoom"] { transform: scale(.97); }
  .mx-js [data-reveal] .mx-brush::after { transition-duration: var(--mxm-dur-enter); transition-delay: .15s; }
  .mx-footer__main { padding-block: 40px; }
  .mx-footer__grid { gap: 32px 20px; }
  .mx-locate { margin-top: 32px; }
  .mx-locate__info { gap: 20px; }
  .mx-locate__map { min-height: 220px; }

  /* P3/M10 header: solid, no shrink (no per-frame layout), quick back, gentle away */
  .mx-header { background: color-mix(in srgb, var(--mx-canvas) 97%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform var(--mxm-dur-bar-show) var(--mxm-ease-out), background-color .35s, box-shadow .35s, border-color .35s; }
  .mx-header.is-scrolled { background: color-mix(in srgb, var(--mx-paper) 97%, transparent); }
  .mx-header.is-scrolled .mx-header__inner { min-height: var(--mx-header-h); }
  html.mxm .mx-header.is-hidden:not(.mxm-hide) { transform: none; }
  html.mxm .mx-header.mxm-hide { transform: translateY(-100%); transition-duration: var(--mxm-dur-bar-hide), .35s; transition-timing-function: var(--mxm-ease-in), ease; }

  /* P2 action bar: solid, rises in once; the chip follows the service on screen */
  html .mx-actionbar { background: color-mix(in srgb, var(--mx-paper) 97%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .3s var(--mx-ease), translate var(--mxm-dur-sheet-in) var(--mxm-ease-out), visibility 0s; }
  .mx-actionbar__quote::before { content: ""; width: 14px; height: 10px; flex: none; border-radius: 3px; background: var(--mx-svc-strip); box-shadow: inset 0 0 0 1px rgba(18, 21, 28, .35); transition: background-color .25s; }
  .mx-actionbar.mxm-tint .mx-actionbar__quote::before { background: var(--svc); } /* class hook (mx.js), not [class*=] */
  .mx-actionbar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; display: none; pointer-events: none; background: var(--mx-svc-strip); transform-origin: 0 50%; }

  /* M14 toasts rise above the bar */
  .mx-toasts { top: auto; left: 12px; right: 12px; width: auto; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  body.mx-typing .mx-toasts { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 360px) and (max-width: 599px) {
  .mx-footer__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .mx-footer__grid > div { grid-column: 1 / -1; }
}
@media (max-width: 767px) and (min-height: 481px) {
  body.mx-typing .mx-actionbar { visibility: hidden; transition: transform .3s var(--mx-ease), visibility 0s .3s; } /* out of tab order */
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  @starting-style { .mx-actionbar { translate: 0 100%; } }
  .mx-toast { animation: mxm-up var(--mxm-dur-sheet-in) var(--mxm-ease-out); }
  .mx-toast.is-leaving { animation: mxm-down var(--mxm-dur-sheet-out) var(--mxm-ease-in) forwards; }
}

/* Enhanced tier */
@supports (animation-timeline: scroll()) {
  @media (max-width: 767px) and (min-height: 481px) {
    /* M13 paint gauge replaces the header line */
    .mx-progress { display: none; }
    .mx-actionbar::before { display: block; animation: mxm-draw linear both; animation-timeline: scroll(root); }
  }
  @media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    /* P4 brush accents and the footer strip draw with the scroll */
    :root:not(.mx-lite) .mx-section .mx-brush { view-timeline: --mxm-brush block; }
    :root:not(.mx-lite) .mx-section .mx-brush::after { transform: none; transition: none; animation: mxm-draw linear both; animation-timeline: --mxm-brush; animation-range: entry 40% cover 35%; }
    :root:not(.mx-lite) .mx-locate__info::before { transform-origin: 0 50%; animation: mxm-draw linear both; animation-timeline: view(); animation-range: entry 30% cover 30%; }
  }
}

@keyframes mxm-in { from { opacity: 0; transform: translateX(var(--mxm-travel-touch, 12px)); } }
@keyframes mxm-turn { from { rotate: -90deg; } }
@keyframes mxm-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes mxm-down { to { opacity: 0; transform: translateY(16px); } }
@keyframes mxm-draw { from { scale: 0 1; } }
/* ===== /Mobile layer: m1-shell ===== */

/* ===== Shell, mobile round step 2 (<=1023 unless noted) ===== */
/* 15. Shell step 2: m1 handoffs (edge-to-edge bar, drawer fit), audit fixes (compact phone footer, targets),
   [data-mx-actionbar-yield], the P13 quick-quote sheet and P14 page transitions. 1024px+ is untouched except
   where noted (focus ring, skip-link height, locate strip and hover gating live in their own sections above). */

/* H2 edge-to-edge (viewport-fit=cover): pad the bar for the home indicator; when Chrome's bottom toolbar
   collapses (safe-area-max-inset), sit the bar lower instead of floating above the gap */
@media (max-width: 767px) and (min-height: 481px) {
  .mx-actionbar {
    padding-bottom: calc(10px + max(env(safe-area-inset-bottom, 0px), env(safe-area-max-inset-bottom, 0px)));
    bottom: calc(env(safe-area-inset-bottom, 0px) - max(env(safe-area-inset-bottom, 0px), env(safe-area-max-inset-bottom, 0px)));
  }
}
/* 200% zoom on a phone (~195 CSS px): the decorative chip would widen the bar past the screen */
@media (max-width: 299px) {
  .mx-actionbar__quote::before { display: none; }
  .mx-actionbar a { min-width: 0; }
  .mx-footer__cta-actions .mx-btn { width: 100%; padding-inline: 16px; white-space: normal; text-align: center; }
  .mx-locate__facts li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mx-locate .mx-nowrap, .mx-locate__status { white-space: normal; }
}

/* [data-mx-actionbar-yield]: while one is >= 40% on screen (mx.js sets body.mx-bar-yield), the bar steps aside
   and leaves the tab order; reduced motion just hides and shows it */
@media (max-width: 767px) and (min-height: 481px) {
  body.mx-bar-yield .mx-actionbar {
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--mxm-dur-bar-hide, .3s) var(--mxm-ease-in, ease-in), visibility 0s var(--mxm-dur-bar-hide, .3s);
  }
}
@media (max-width: 767px) and (min-height: 481px) and (prefers-reduced-motion: reduce) {
  body.mx-bar-yield .mx-actionbar { transition: none; }
}

@media (max-width: 1023px) {
  /* Drawer: 44px contact rows; current page marked by more than colour */
  .mx-drawer__contact { gap: 0; margin: 0; }
  .mx-drawer__contact a, .mx-drawer__contact li > span { min-height: 44px; }
  .mx-drawer__link.is-current { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 6px; }
  /* Drawer scrolls inside when it can't fit (Services open, short or landscape screens): a soft fade on the
     bottom edge says there is more below (mx.js toggles .has-more) */
  .mx-drawer__panel::after {
    content: ""; position: sticky; bottom: 0; flex: none; height: 44px; margin-top: -44px; pointer-events: none;
    background: linear-gradient(rgba(13, 19, 48, 0), rgba(13, 19, 48, .2)); opacity: 0; transition: opacity .2s;
  }
  .mx-drawer__panel.has-more::after { opacity: 1; }
  /* No WhatsApp FAB over the field being typed in (tablets) */
  body.mx-typing .mx-fab { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* Short phones (320x640, 360x640, 375x667): the whole drawer fits, buttons included */
@media (max-width: 1023px) and (max-height: 720px) {
  .mx-drawer__head { padding-block: 12px; }
  .mx-drawer__nav { padding-block: 4px; }
  .mx-drawer__link { padding-block: 12px; }
  .mx-drawer__foot { gap: 10px; padding-top: 12px; }
}
/* Touch tablets (768-1023): full-size targets in the top bar and header */
@media (max-width: 1023px) and (pointer: coarse) {
  .mx-topbar__list a { display: inline-flex; align-items: center; min-height: 44px; }
  .mx-topbar__social a { width: 44px; height: 44px; }
  .mx-header__quote { min-height: 44px; }
}
/* Landscape phones: no top bar, and the header tucks away on scroll as on portrait phones */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .mx-topbar { display: none; }
  html.mxm .mx-header.is-hidden:not(.mxm-hide) { transform: none; }
  html.mxm .mx-header.mxm-hide { transform: translateY(-100%); }
}

/* Phone footer: shorter blurb (the full text stays for screen readers), tighter contact rows; nothing removed */
@media (max-width: 767px) {
  .mx-footer__about { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin-top: 16px; }
  .mx-footer .mx-footer__title { margin-bottom: 12px !important; }
  .mx-footer__contact { gap: 4px; }
  .mx-footer__contact li { align-items: center; gap: 12px; }
  .mx-footer__contact small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Rendering skipped until the footer nears the screen (size remembered after the first render).
     Migrated pages only: on legacy pages axe/Lighthouse then misread the unrendered footer links as #00E (1.9:1). */
  body.mx-page .mx-footer { content-visibility: auto; contain-intrinsic-size: auto 1500px; }
}
@media (max-width: 359px) {
  .mx-locate__info { padding-inline: 18px; }
  /* 200% zoom on a phone (~195px): columns may shrink below their longest word instead of being clipped */
  .mx-footer__grid, .mx-locate { grid-template-columns: minmax(0, 1fr); }
  .mx-footer__contact a, .mx-locate__facts address, .mx-locate__eyebrow { overflow-wrap: anywhere; }
}

/* P13 quick-quote sheet (footer.php on every page but home; js/mx-quickquote.js opens it up to 1023px) */
.mx-sheet { display: none; }
.mx-sheet[open] {
  position: fixed; inset: auto 0 var(--mx-kb, 0px); display: flex; flex-direction: column; box-sizing: border-box;
  width: 100%; max-width: 640px; max-height: calc(100dvh - var(--mx-kb, 0px) - 16px); margin: 0 auto; padding: 0; border: 0;
  border-radius: 24px 24px 0 0; overflow: hidden; background: var(--mx-paper); color: var(--mx-ink-2);
  box-shadow: 0 -24px 60px -24px rgba(13, 19, 48, .5); font: 400 16px/1.55 var(--mx-font); text-align: left;
}
.mx-sheet::backdrop { background: rgba(13, 19, 48, .55); }
.mx-sheet *, .mx-sheet *::before, .mx-sheet *::after { box-sizing: border-box; }
.mx-sheet [hidden] { display: none !important; }
.mx-sheet::before { /* paint strip; takes the picked service's colour (.is-tinted + .mx-svc-N from JS) */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 1; background: var(--mx-svc-strip);
}
.mx-sheet.is-tinted::before { background: var(--svc); }
.mx-sheet__grab { flex: none; display: grid; place-items: center; height: 24px; padding-top: 4px; touch-action: none; cursor: grab; }
.mx-sheet__grab span { width: 40px; height: 4px; border-radius: 4px; background: var(--mx-line-strong); }
.mx-sheet__head {
  flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 2px 14px 14px 20px; border-bottom: 1px solid var(--mx-line); touch-action: none;
}
.mx-sheet .mx-sheet__title {
  margin: 0; font: 650 clamp(1.35rem, 1.15rem + 1vw, 1.6rem)/1.1 var(--mx-font-display); letter-spacing: -0.025em;
  color: var(--mx-ink); font-variation-settings: "opsz" 96; text-transform: none;
}
.mx-sheet p { margin: 0; }
.mx-sheet .mx-sheet__lead { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--mx-muted); }
.mx-sheet__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 1.5px solid var(--mx-line-strong); border-radius: 50%; background: var(--mx-paper); color: var(--mx-ink);
  font-size: 17px; line-height: 1; cursor: pointer; touch-action: manipulation;
}
.mx-sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.mx-sheet__form { gap: 14px; margin: 0; }
.mx-sheet .mx-label { display: block; margin: 0; }
.mx-sheet__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.mx-sheet .mx-sheet__legend { float: none; width: auto; margin: 0 0 10px; padding: 0; font: 600 13.5px/1.3 var(--mx-font); color: var(--mx-ink); }
.mx-sheet__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .mx-sheet__chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mx-sheet__chip { position: relative; display: flex; min-width: 0; margin: 0; cursor: pointer; }
.mx-sheet__chip .mx-sheet__chip-face { width: 100%; }
.mx-sheet__radio { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mx-sheet__chip-face {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--mx-line-strong); border-radius: var(--mx-radius-pill); background: var(--mx-paper);
  font: 600 14px/1.2 var(--mx-font); color: var(--mx-ink); transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.mx-sheet__chip-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--svc, transparent); box-shadow: inset 0 0 0 1px rgba(18, 21, 28, .2); }
.mx-sheet__chip--unsure { --svc: transparent; --svc-soft: var(--mx-sand); } /* never inherits the sheet's tint */
.mx-sheet__chip--unsure .mx-sheet__chip-dot { border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--mx-muted); }
.mx-sheet .mx-field { align-content: start; } /* side-by-side fields keep their inputs level */
.mx-sheet__radio:checked + .mx-sheet__chip-face { border-color: var(--mx-ink); box-shadow: inset 0 0 0 1px var(--mx-ink); background: var(--svc-soft, var(--mx-sand)); }
.mx-sheet__radio:focus-visible + .mx-sheet__chip-face { outline: 3px solid var(--mx-brand); outline-offset: 2px; }
.mx-sheet__group[aria-invalid="true"] .mx-sheet__chip-face { border-color: var(--mx-danger); }
@media (hover: hover) and (pointer: fine) { .mx-sheet__chip:hover .mx-sheet__radio:not(:checked) + .mx-sheet__chip-face { border-color: var(--mx-muted); } }
.mx-sheet__opt { font-weight: 500; color: var(--mx-muted); }
.mx-sheet .mx-field-error { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.mx-sheet .mx-textarea { min-height: 96px; }
.mx-sheet__submit { display: grid; gap: 10px; margin-top: 2px; }
.mx-sheet .mx-sheet__note { font-size: 13px; line-height: 1.45; color: var(--mx-muted); text-align: center; }
.mx-sheet .mx-sheet__alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 16px; font-size: 14px; color: var(--mx-muted); }
.mx-sheet__alt a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--mx-brand);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.mx-sheet a:focus-visible, .mx-sheet button:focus-visible { outline: 3px solid var(--mx-brand); outline-offset: 2px; }
.mx-sheet a:focus-visible { border-radius: 4px; }
.mx-sheet .mx-btn.is-busy { pointer-events: none; }
/* Error toast after a sheet send: "Edit and resend" reopens the sheet with the draft restored */
.mx-toast__retry {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 14.5px/1.5 var(--mx-font); color: var(--mx-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.mx-toast__retry[hidden] { display: none; }
@media (min-width: 641px) { .mx-sheet__body { padding-inline: 28px; } .mx-sheet__head { padding-inline: 28px 20px; } }
/* Rises with the shared sheet tokens; reduced motion: it simply appears */
@media (prefers-reduced-motion: no-preference) {
  .mx-sheet {
    translate: 0 100%;
    transition: translate var(--mxm-dur-sheet-out, .26s) var(--mxm-ease-in, cubic-bezier(.5, 0, .75, 0)),
      display var(--mxm-dur-sheet-out, .26s) allow-discrete, overlay var(--mxm-dur-sheet-out, .26s) allow-discrete;
  }
  .mx-sheet[open] { translate: 0 0; transition-duration: var(--mxm-dur-sheet-in, .38s); transition-timing-function: var(--mxm-ease-out, cubic-bezier(.16, 1, .3, 1)); }
  @starting-style { .mx-sheet[open] { translate: 0 100%; } }
  .mx-sheet::backdrop { opacity: 0; transition: opacity .26s linear, display .26s allow-discrete, overlay .26s allow-discrete; }
  .mx-sheet[open]::backdrop { opacity: 1; transition-duration: .38s; }
  @starting-style { .mx-sheet[open]::backdrop { opacity: 0; } }
}

/* P14 page-to-page crossfade (~.25s) and the service photo carried from the home card to its page.
   The @view-transition opt-in itself is inline in header.php's <head> (same media query); unsupported
   browsers just navigate. mx.js names the tapped card's photo. */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
  ::view-transition-group(mx-svc-photo) { animation-duration: .32s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  ::view-transition-old(mx-svc-photo), ::view-transition-new(mx-svc-photo) { height: 100%; object-fit: cover; overflow: clip; animation-duration: .32s; }
  /* The phone action bar is the same on both pages: its own group, and no second rise-in (header.php: html.mx-vt) */
  .mx-actionbar { view-transition-name: mx-actionbar; }
  html.mx-vt .mx-actionbar { transition: none; }
  body.mx-route-service .services-details__img-1 img { view-transition-name: mx-svc-photo; }
}
/* ===== /Shell, mobile round step 2 ===== */
