/*
 * Metalform design system.
 *
 * Tokens measured from the live sites, not guessed: DM Mono throughout,
 * black/white/grey neutrals, #a28114 gold accent, gold hairline buttons at
 * 12px/0.5px tracking, 1140px container.
 *
 * Replaces ~1 MB of page-builder CSS and JS with a few kB that can be read,
 * diffed and changed in one place.
 */
:root{
  --mf-black:#000;--mf-white:#fff;--mf-grey:#e4e4e4;--mf-ink:#33373d;--mf-gold:#a28114;
  --mf-bg:var(--mf-white);--mf-fg:var(--mf-black);
  --mf-font:"DM Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --mf-display:"DM Sans","Helvetica Neue",Arial,sans-serif;
  /* Measured from the live sites: 12px labels, 16px body, 20px card titles,
     35px section headings, 80px display. Line-heights are tight. */
  --mf-step--2:12px;
  --mf-step--1:14px;
  --mf-step-0:16px;
  --mf-step-1:20px;
  --mf-step-2:clamp(1.6rem,1.1rem + 1.6vw,35px);
  --mf-step-3:clamp(2.4rem,1rem + 4.6vw,80px);
  --mf-container:1140px;
  --mf-gutter:20px;
  --mf-section-y:0rem;
  --mf-flow:10px;
}
*,*::before,*::after{box-sizing:border-box}
body.mf{margin:0;background:var(--mf-bg);color:var(--mf-fg);font-family:var(--mf-font);
  font-size:var(--mf-step-0);line-height:1.15;-webkit-font-smoothing:antialiased}
.mf img,.mf svg,.mf video{max-width:100%;height:auto;display:block}
.mf a{color:inherit}

.mf-section{padding-block:var(--mf-section-y)}
.mf-section--dark{background:var(--mf-black);color:var(--mf-white)}
.mf-section--grey{background:var(--mf-grey)}
.mf-section--flush{padding-block:0}
.mf-container{width:min(100% - (var(--mf-gutter)*2),var(--mf-container));margin-inline:auto}
.mf-stack>*+*{margin-block-start:var(--mf-flow)}
.mf-section+.mf-section{padding-block-start:0}
.mf-row{display:grid;gap:var(--mf-gutter);
  grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));align-items:start}
.mf-grid{display:grid;gap:var(--mf-gutter);
  grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}

.mf h1,.mf h2,.mf h3,.mf h4{font-family:var(--mf-display);font-weight:700;line-height:1.0;
  letter-spacing:-.046em;margin:0;overflow-wrap:anywhere;text-wrap:balance}
/* Defaults only - a carried inline size always wins. */
.mf h1{font-size:var(--mf-step-3)}
.mf h2{font-size:var(--mf-step-2)}
.mf h3{font-size:var(--mf-step-1)}
.mf h4{font-size:var(--mf-step-0);font-weight:500}
.mf-eyebrow{font-family:var(--mf-font);font-size:var(--mf-step--1);letter-spacing:.18em;
  text-transform:uppercase;font-weight:500;opacity:.8}
.mf p{margin:0;max-width:70ch;font-weight:500;font-size:var(--mf-step-0);line-height:1.15}
.mf-section--dark p,.mf-section--dark .mf-text{color:#d0d0d0}
.mf-text>*+*{margin-block-start:.75em}

.mf-button{display:inline-block;padding:15px 20px;border:1px solid var(--mf-gold);
  border-radius:2px;background:transparent;color:var(--mf-gold);font:inherit;font-size:12px;
  letter-spacing:.5px;text-transform:uppercase;text-decoration:none;cursor:pointer;
  transition:background-color .18s ease,color .18s ease}
.mf-button:hover,.mf-button:focus-visible{background:var(--mf-gold);color:var(--mf-black)}

.mf-card{background:none;color:inherit;display:flex;flex-direction:column;padding-inline:35px}
.mf-card__media{aspect-ratio:316/300;background:var(--mf-grey);overflow:hidden}
.mf-card__media img{width:100%;height:100%;object-fit:cover}
.mf-card__body{padding:14px 0 0}
.mf-card__title{font-family:var(--mf-display);font-size:var(--mf-step-1);font-weight:700;margin:0;line-height:1.1;letter-spacing:-.02em}
.mf-card a{text-decoration:none;display:block;color:inherit}

.mf-header{border-bottom:1px solid var(--mf-grey);background:var(--mf-bg)}
.mf-header__in{display:flex;align-items:center;gap:var(--mf-gutter);flex-wrap:wrap;padding-block:1rem}
.mf-brand{font-weight:700;letter-spacing:.06em;text-decoration:none;font-size:var(--mf-step-1)}
.mf-nav{display:flex;gap:1.1rem;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.mf-nav a{text-decoration:none;font-size:var(--mf-step--1);font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:18px}
.mf-nav a:hover{color:var(--mf-gold)}
.mf-switch{display:flex;gap:.5rem;list-style:none;margin:0 0 0 auto;padding:0;align-items:center}
.mf-switch a{text-decoration:none;font-size:var(--mf-step--1);letter-spacing:.1em;opacity:.55}
.mf-switch .is-current a{opacity:1;color:var(--mf-gold);font-weight:500}
/* Flags stay icon-sized whatever the source markup asked for. */
.mf-switch img,.mf-chrome img[src*="flag"],.mf-chrome img[width="26"]{width:26px;height:auto;display:inline-block}

.mf-footer{border-top:1px solid var(--mf-grey);margin-block-start:var(--mf-section-y)}
.mf-footer__in{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  padding-block:2rem;font-size:var(--mf-step--1);opacity:.75}

.mf-form{display:grid;gap:1.1rem;max-width:42rem}
.mf-field label{display:block;margin-block-end:.35rem;font-size:var(--mf-step--2);
  letter-spacing:.08em;text-transform:uppercase}
.mf-form input,.mf-form textarea,.mf-form select{width:100%;padding:.7rem .8rem;font:inherit;
  border:1px solid var(--mf-fg);border-radius:2px;background:transparent;color:inherit}
.mf-form input:focus-visible,.mf-form textarea:focus-visible,.mf-form select:focus-visible{
  outline:2px solid var(--mf-gold);outline-offset:1px}
.mf-form-errors{border:1px solid #b00020;color:#b00020;padding:.75rem 1rem}
.mf-form-done{border:1px solid var(--mf-gold);padding:1rem}

@media (prefers-reduced-motion:reduce){.mf *{transition:none!important;animation:none!important}}

/* Icon rows (market flags) - Elementor stacked these vertically. */
.mf-iconrow{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:center}
.mf-iconrow img{width:26px;height:auto}

/* The theme prints its own title, tagline and page heading; the design system
   owns the header, so suppress the duplicates. */
.mf .site-header,.mf .site-branding,.mf .page-header,.mf .entry-header,
.mf header.entry-header,.mf .site-title,.mf .site-description{display:none!important}

/* Give the ported chrome the same gutter as everything else. */
.mf-chrome{padding-inline:var(--mf-gutter)}
.mf-chrome .mf-stack,.mf-chrome .mf-row{width:min(100%,var(--mf-container));margin-inline:auto}

/* Media and hero sections */
.mf-section--media{background-size:cover;background-position:center;background-repeat:no-repeat}
.mf-section--tall{display:grid;align-items:center;padding-block:clamp(2rem,4vw,4rem)}
.mf-section--tall .mf-container{width:min(100% - (var(--mf-gutter)*2),var(--mf-container))}
.mf-section--media.mf-section--tall{color:var(--mf-white);position:relative;isolation:isolate}
.mf-section--media.mf-section--tall::before{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.35))}

/* Hero: dark, centred, generous - matching the source treatment. */
.mf-section--dark.mf-section--tall{text-align:center;display:grid;align-items:center}
.mf-section--dark.mf-section--tall .mf-stack{align-items:center}
.mf-section--dark.mf-section--tall p{margin-inline:auto;text-align:center}
.mf-section--dark .mf-button{border-color:var(--mf-gold);color:var(--mf-gold)}
.mf-section--dark.mf-section--tall h1,.mf-section--dark.mf-section--tall h2{text-wrap:balance}

/* The ported header centres its contents, as the source does. */
.mf-chrome--header{background:var(--mf-black);color:var(--mf-white);text-align:center;
  padding-block:clamp(1rem,.6rem + 1.4vw,1.8rem)}
.mf-chrome--header .mf-stack{align-items:center}
.mf-chrome--header .mf-nav{justify-content:center}
.mf-chrome--header .mf-row{justify-items:center}
.mf-chrome--header img{margin-inline:auto}
.mf-chrome--header .mf-button{min-width:min(100%,320px)}
.mf-chrome--footer{background:var(--mf-black);color:var(--mf-white);text-align:center;
  padding-block:var(--mf-section-y)}
.mf-chrome--footer a{color:var(--mf-gold)}

/* Mobile navigation: a disclosure button, as production uses. Implemented with
   a checkbox so it works without JavaScript. */
.mf-navtoggle{display:none}
.mf-navtoggle-label{display:none;cursor:pointer;padding:.5rem;margin-inline:auto;width:max-content}
.mf-navtoggle-label span{display:block;width:26px;height:2px;background:var(--mf-gold);margin:5px 0}
@media (max-width:780px){
  .mf-navtoggle-label{display:block}
  .mf-chrome--header .mf-nav,.mf-header .mf-nav{display:none;width:100%}
  .mf-navtoggle:checked ~ .mf-nav{display:flex;flex-direction:column;align-items:center;gap:.9rem;
    padding-block:1rem}
}
/* Header buttons read as full-width calls to action. */
.mf-chrome--header .mf-button{display:block;width:min(100%,320px);margin-inline:auto;text-align:center}

/* Gallery lightbox */
.mf-lb{border:0;padding:0;max-width:100vw;max-height:100vh;width:100vw;height:100vh;
  background:rgba(0,0,0,.94);color:var(--mf-white);
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem}
.mf-lb::backdrop{background:rgba(0,0,0,.9)}
.mf-lb:not([open]){display:none}
.mf-lb__fig{margin:0;display:grid;place-items:center;gap:.75rem;max-height:88vh}
.mf-lb__img{max-width:min(92vw,1400px);max-height:80vh;width:auto;height:auto;object-fit:contain}
.mf-lb__cap{font-size:var(--mf-step--1);opacity:.8;text-align:center}
.mf-lb__close{position:absolute;top:.75rem;right:1rem;font-size:2rem;line-height:1;
  background:none;border:0;color:inherit;cursor:pointer;padding:.25rem .6rem}
.mf-lb__nav{background:none;border:0;color:inherit;font-size:3rem;line-height:1;cursor:pointer;
  padding:.5rem .9rem;opacity:.75}
.mf-lb__nav:hover,.mf-lb__close:hover{opacity:1;color:var(--mf-gold)}
.mf-lb__count{position:absolute;bottom:1rem;left:0;right:0;text-align:center;
  font-size:var(--mf-step--1);opacity:.7;margin:0}
.mf-gallery-item{display:block;cursor:zoom-in}
@media (max-width:640px){.mf-lb{grid-template-columns:1fr}.mf-lb__nav{position:absolute;top:50%}
  .mf-lb__nav--prev{left:.25rem}.mf-lb__nav--next{right:.25rem}}

/* Specification lists */
.mf-specs{display:grid;grid-template-columns:minmax(9rem,auto) 1fr;gap:.4rem 1.25rem;
  border-top:1px solid var(--mf-grey);padding-block-start:1rem}
.mf-specs dt{font-size:var(--mf-step--1);letter-spacing:.08em;text-transform:uppercase;opacity:.7}
.mf-specs dd{margin:0}
@media (max-width:560px){.mf-specs{grid-template-columns:1fr;gap:.15rem}
  .mf-specs dd{margin-block-end:.6rem}}

/* Listing carousel */
.mf-carousel{position:relative}
.mf-carousel__track{display:grid;grid-auto-flow:column;
  grid-auto-columns:minmax(min(386px,82vw),1fr);gap:var(--mf-gutter);
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding-block-end:.5rem;scrollbar-width:thin}
.mf-carousel__track>*{scroll-snap-align:start}
.mf-carousel__track::-webkit-scrollbar{height:4px}
.mf-carousel__track::-webkit-scrollbar-thumb{background:var(--mf-grey)}
.mf-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  background:rgba(0,0,0,.55);color:var(--mf-white);border:0;cursor:pointer;
  font-size:1.6rem;line-height:1;padding:.5rem .75rem;border-radius:2px}
.mf-carousel__nav:hover,.mf-carousel__nav:focus-visible{background:var(--mf-gold);color:var(--mf-black)}
.mf-carousel__prev{left:-.25rem}
.mf-carousel__next{right:-.25rem}
.mf-carousel.is-static .mf-carousel__nav{display:none}
@media (prefers-reduced-motion:reduce){.mf-carousel__track{scroll-behavior:auto}}

/* Grid and flex children default to min-width:auto, so a scrolling carousel
   track pushes its container wider than the viewport instead of scrolling. */
.mf-row>*,.mf-grid>*,.mf-stack>*,.mf-carousel,.mf-carousel__track{min-width:0}
.mf-carousel{max-width:100%;overflow:hidden;width:100%}
.mf-carousel__track{max-width:100%}
.mf-layout,.mf-chrome{overflow-x:clip}

/* A carousel is a full-width band, not a column in a row - otherwise it is
   squeezed into a third of the container and clips its cards. */
.mf-row>.mf-carousel,.mf-grid>.mf-carousel,.mf-stack>.mf-carousel{grid-column:1/-1}
.mf-carousel__track{padding-inline:2px}

/* Card titles are labels, not underlined links. */
.mf-card a,.mf-card a:hover{text-decoration:none}
.mf-card__title{text-decoration:none}
.mf-layout a{text-decoration-thickness:1px;text-underline-offset:2px}

/* Arrows sit against the track edge and stay inside the band. */
.mf-carousel__prev{left:0}
.mf-carousel__next{right:0}
.mf-carousel__nav{box-shadow:0 0 0 1px rgba(255,255,255,.12)}

/* Keep the last row of a grid from leaving a single orphan card stretched. */
.mf-grid{align-items:start}

/* Card links are whole-card targets; underlining the title looks unfinished. */
.mf-card a,.mf-card a *,.mf-listing a,.mf-carousel a,.mf-carousel a *{text-decoration:none!important}
.mf-card__title{position:relative;display:inline-block;padding-block-end:2px}
.mf-card a:hover .mf-card__title{box-shadow:inset 0 -1px 0 currentColor}

/* Arrows: solid, quiet, inside the band. */
.mf-carousel__nav{background:rgba(0,0,0,.72);color:#fff;box-shadow:none;border-radius:0;
  width:44px;height:44px;display:grid;place-items:center;padding:0;font-size:1.5rem}
.mf-carousel__nav:focus-visible{outline:2px solid var(--mf-gold);outline-offset:2px}
.mf-section--dark .mf-carousel__nav{background:rgba(255,255,255,.14)}

/* The theme's button reset outranks the component rules above, so the carousel
   arrows need explicit specificity rather than relying on source order. */
.mf .mf-carousel button.mf-carousel__nav{
  background:rgba(0,0,0,.72)!important;color:#fff!important;border:0!important;
  border-radius:0!important;width:44px;height:44px;padding:0;font-size:1.5rem;
  display:grid;place-items:center;box-shadow:none!important;opacity:1}
.mf .mf-carousel button.mf-carousel__nav:hover{background:var(--mf-gold)!important;color:#000!important}
.mf .mf-section--dark .mf-carousel button.mf-carousel__nav{background:rgba(255,255,255,.18)!important}
.mf .mf-carousel button.mf-carousel__nav:focus-visible{outline:2px solid var(--mf-gold);outline-offset:2px}
