/* Metal Master — WordPress compatibility layer (generated by
   tools/build_elementor_theme.py — edit that script, not this file).

   The design system was written for a static page where every section
   was a direct child of <main class="shell">. Elementor wraps each
   widget, so the rules that relied on that relationship are restated
   here against the nested structure. */

.mm-site .mm-main section.hero,
.hero {
  /* break out of the .shell frame → edge-to-edge */
  width: 100%;
  margin: 0;
  border-radius: 0;
  /* fill the whole viewport, header included */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.mm-site .mm-main section.contact-section:not(.panel) {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  /* a touch more than --gutter on narrow screens — the hero (dark) and
  the contact-aside (orange) are both solid colour, so the default
  12px gutter reads as the two panels touching */
  margin-top: clamp(28px, 5.5vw, 40px);
}
.mm-site .mm-main section:not(.panel) {
  border-radius: var(--r-panel);
  margin-top: var(--gutter);
  padding: var(--pad);
  background: var(--paper);
  color: var(--text);
  position: relative;
  overflow: clip;
}
.mm-site .mm-main section:not(.panel) > .wrap {
  max-width: 1240px; margin-inline: auto;
}
.mm-site .mm-main section.section--tight {
  padding-block: clamp(26px, 3.5vw, 48px);
}
.mm-site .mm-main section.section--dark {
  background: var(--ink); color: var(--on-ink);
}
.mm-site .mm-main section.section--steel {
  background: var(--sand);
}
.mm-site .mm-main section[style*="steel-100"] {
  background: var(--sand) !important;
}
.mm-site .mm-main section:not(.panel) {
  border-radius: 0; margin-top: 0; padding-inline: var(--pad-shell);
  padding-block: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.mm-site .mm-main section.section--dark {
  border-top-color: var(--line-ink);
}
.mm-site .mm-main .wrap:not(.wrap--narrow) {
  max-width: none;
}
.mm-site .mm-main .wrap--narrow {
  max-width: 900px; margin-inline: 0;
}
.mm-site .mm-main section.section--tight {
  padding-block: clamp(28px, 3.5vw, 48px);
}
.mm-site .mm-main section.contact-section:not(.panel) {
  padding: clamp(40px, 6vw, 80px) var(--pad-shell); margin-top: 0;
}
.mm-site .mm-main section.hs {
  position: relative; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: visible;
  background: #151514; color: var(--on-ink);
  height: calc(100vh + 70vh * (var(--n, 6) - 1)); height: calc(100svh + 70svh * (var(--n, 6) - 1));
}
.mm-site .mm-main section.svc-stack {
  --stack-top: 77px;                                   /* fixed nav height */
  --head-h: clamp(64px, 9.5vh, 100px);                 /* visible strip of a covered card (title + its padding) */
  --card-h: max(440px, calc(100vh - var(--stack-top) - 5 * var(--head-h)));
  position: relative; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: visible;
  background: var(--sand); color: var(--on-ink);
}
@supports (height: 100svh) {
  .mm-site .mm-main section.svc-stack {
    --card-h: max(440px, calc(100svh - var(--stack-top) - 5 * var(--head-h)));
  }
}
@media (max-width: 720px) {
  .mm-site .mm-main section.svc-stack {
    --stack-top: 73px; --head-h: 60px; --card-h: max(430px, calc(100svh - var(--stack-top) - 5 * var(--head-h)));
  }
}
.panel.hs-intro,
.mm-site .mm-main section.svc-stack,
.svc-stack__foot {
  background: var(--color-white);
}
.mm-site .mm-main section:not(.panel,
.svc-stack) {
  padding-top: var(--space-section-y); padding-bottom: var(--space-section-y);
}
.mm-site .mm-main section.contact-section:not(.panel) {
  padding-top: var(--space-section-y); padding-bottom: var(--space-section-y);
}
.panel,
.mm-site .mm-main section:not(.panel) {
  border-top: 0;
}

/* ---- Elementor resets `img` / `video` globally; restate ours above it ---- */

.mm-site .elementor img,
.mm-site .elementor svg {
  max-width: 100%;
}
.mm-site .elementor .clients__logo img {
  width: auto;
  max-width: 210px;
  height: clamp(54px, 6vw, 78px);
}
@media (max-width: 560px) {
  .mm-site .elementor .clients__logo img {
    height: clamp(46px, 13vw, 58px);
    max-width: 150px;
  }
}
.mm-site .elementor .tst__arrow svg {
  width: 18px;
  height: 18px;
}
.mm-site .elementor .tst__avatar img {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .nav__logo img {
  height: 17px;
  width: auto;
}
.mm-site .elementor .menu__top img {
  height: 18px;
  width: auto;
}
.mm-site .elementor .menu__nav-toggle svg {
  width: 22px;
  height: 22px;
}
.mm-site .elementor .svc__icon img {
  width: 80px;
  height: 80px;
}
.mm-site .elementor .work-fan__item img {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .arch-card__icon svg {
  width: 20px;
  height: 20px;
}
.mm-site .elementor .faq-cta__badge svg {
  width: 30px;
  height: auto;
}
.mm-site .elementor .foot__brand-row img {
  height: 26px;
  width: auto;
}
.mm-site .elementor .foot__social svg {
  width: 18px;
  height: 18px;
}
.mm-site .elementor .card__icon svg {
  width: 24px;
  height: 24px;
}
.mm-site .elementor .gallery__item img {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .lightbox__img {
  max-width: 100%;
  border-radius: var(--r-card);
  box-shadow: 0 50px 90px -20px rgba(0, 0, 0, .6);
}
.mm-site .elementor .lightbox__close svg {
  width: 20px;
  height: 20px;
}
.mm-site .elementor .contact__info svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.mm-site .elementor .upload__icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
}
.mm-site .elementor .visit-fineprint svg {
  width: 14px;
  height: 14px;
  margin-top: .2em;
}
.mm-site .elementor .nav__logo img {
  height: 19px;
}
.mm-site .elementor .menu__top img {
  height: 19px;
}
.mm-site .elementor .lightbox__img {
  border-radius: 0;
}
.mm-site .elementor .hero__sparks {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .hero__fx {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .hero__weld {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .hs__arrow svg {
  width: 18px;
  height: 18px;
}
.mm-site .elementor .home-about__photo img {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .svc-card__img {
  width: 64%;
  height: 100%;
}
@media (max-width: 720px) {
  .mm-site .elementor .svc-card__img {
    width: 100%;
  }
}
.mm-site .elementor .svc-stack.is-h .svc-card__img {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .tst__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}
.mm-site .elementor .tst__video {
  width: 100%;
  height: 100%;
}
.mm-site .elementor .tst__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.mm-site .elementor .tst-dialog__close svg {
  width: 18px;
  height: 18px;
}
.mm-site .elementor .areas__item .card__icon svg {
  width: 20px;
  height: 20px;
}
.mm-site .elementor .loc__list svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ *
 * WordPress / Elementor glue
 * ------------------------------------------------------------------ */

/* Our section widgets fill the row and bring no spacing of their own. */
.mm-site [class*="elementor-widget-mm-"] { width: 100%; }
.mm-site [class*="elementor-widget-mm-"] > .elementor-widget-container { margin: 0; padding: 0; }
.mm-site .elementor-widget:not(:last-child) { margin-block-end: 0; }
.mm-site .mm-main > .elementor,
.mm-site .mm-main > .elementor > .e-con,
.mm-site .mm-main > .elementor > .elementor-section { width: 100%; max-width: none; }

/* The static site separated two same-coloured panels with a hairline using
   `.panel--paper + .panel--paper`. Elementor wraps every widget, so the
   sections are no longer siblings — match through the wrappers instead. */
.mm-site .elementor-element:has(> .panel--paper) + .elementor-element:has(> .panel--paper) > .panel,
.mm-site .elementor-element:has(> .panel--sand) + .elementor-element:has(> .panel--sand) > .panel {
  border-top: 1px solid var(--line);
}
.mm-site .elementor-element:has(> .panel--dark) + .elementor-element:has(> .panel--dark) > .panel,
.mm-site .elementor-element:has(> .panel--ink) + .elementor-element:has(> .panel--ink) > .panel {
  border-top: 1px solid var(--line-ink);
}

/* The fixed nav sits under the WordPress admin bar for logged-in editors. */
.admin-bar .nav-shell { top: 32px; }
.admin-bar .menu { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav-shell { top: 46px; }
  .admin-bar .menu { top: 46px; }
}

/* Readable prose: policy pages, posts, and the free-form panel. */
.mm-prose { max-width: 76ch; }
.mm-prose > * + * { margin-top: 1.05em; }
.mm-prose h2 { margin-top: 1.9em; }
.mm-prose h3 { margin-top: 1.5em; }
.mm-prose ul, .mm-prose ol { padding-left: 1.3em; list-style: revert; }
.mm-prose li + li { margin-top: .35em; }
.mm-prose a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.mm-prose img { max-width: 100%; height: auto; }

/* Blog / search templates reuse the gallery grid. */
.mm-post-grid .mm-post-card a { display: block; position: relative; color: inherit; text-decoration: none; }
.mm-featured { margin-bottom: clamp(24px, 4vw, 48px); }
.mm-featured img { width: 100%; height: auto; display: block; }
.mm-pagination { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.mm-widget { margin-bottom: 28px; }
.mm-comments { margin-top: clamp(32px, 5vw, 64px); }
.mm-comments__list { list-style: none; padding: 0; }

/* Inside the Elementor editor the fixed header would cover the first section. */
body.elementor-editor-active .nav-shell { position: absolute; }
body.elementor-editor-active .menu { display: none; }

