/* ==========================================================================
   BMFA Theme — Design System
   Building Materials & Furniture Alliance (China) Co., Ltd
   ========================================================================== */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-var.woff2') format('woff2-variations'),
       url('../fonts/plus-jakarta-sans-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  --nm-ink: #111318;
  --nm-ink-soft: #33383f;
  --nm-muted: #5f656e;
  --nm-line: #e7e2d9;
  --nm-line-soft: #f0ece4;
  --nm-paper: #ffffff;
  --nm-sand: #f8f5ef;
  --nm-sand-deep: #f1ebdf;
  --nm-gold: #c4913f;
  --nm-gold-bright: #daa14c;
  --nm-gold-deep: #8a6121;
  --nm-gold-soft: #f3e6ce;
  --nm-dark: #0d0f13;
  --nm-dark-2: #16191f;
  --nm-dark-3: #1e222a;

  --nm-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --nm-t-hero: clamp(38px, 5.6vw, 76px);
  --nm-t-h2: clamp(29px, 3.7vw, 52px);
  --nm-t-h3: clamp(20px, 1.9vw, 26px);
  --nm-t-h4: clamp(17px, 1.4vw, 20px);
  --nm-t-lead: clamp(16.5px, 1.25vw, 19px);
  --nm-t-body: 16.5px;
  --nm-t-small: 14px;

  --nm-radius: 18px;
  --nm-radius-lg: 26px;
  --nm-shell: 1240px;
  --nm-gutter: clamp(20px, 4vw, 44px);
  --nm-sec-y: clamp(56px, 7.2vw, 112px);
  --nm-shadow: 0 24px 60px -30px rgba(17, 19, 24, .35);
  --nm-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nm-paper);
  color: var(--nm-ink);
  font-family: var(--nm-font);
  font-size: var(--nm-t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--nm-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 9999; width: auto; height: auto;
  clip: auto; clip-path: none; background: var(--nm-ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: 14px;
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4, h5, h6, .wp-block-heading {
  font-family: var(--nm-font);
  color: var(--nm-ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.032em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1, .is-style-bmfa-h1 { font-size: var(--nm-t-hero); font-weight: 800; letter-spacing: -.042em; }
h2, .is-style-bmfa-h2 { font-size: var(--nm-t-h2); }
h3, .is-style-bmfa-h3 { font-size: var(--nm-t-h3); line-height: 1.22; letter-spacing: -.022em; }
h4, .is-style-bmfa-h4 { font-size: var(--nm-t-h4); line-height: 1.3; letter-spacing: -.014em; }
h5 { font-size: 16px; letter-spacing: -.01em; }
h6 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--nm-muted);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
em { font-style: italic; }
small { font-size: 13px; }

.wp-block-paragraph.is-style-bmfa-lead,
p.bmfa-lead {
  font-size: var(--nm-t-lead);
  line-height: 1.6;
  color: var(--nm-ink-soft);
}
.bmfa-in p { max-width: 68ch; }

a.bmfa-link, .wp-block-paragraph a, .bmfa-prose a {
  color: var(--nm-gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.bmfa-link:hover, .wp-block-paragraph a:hover { color: var(--nm-ink); }

blockquote {
  margin: 0 0 1.4em;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--nm-gold);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--nm-ink-soft);
  letter-spacing: -.015em;
}
blockquote cite {
  display: block; margin-top: 12px; font-size: 13px; font-style: normal;
  letter-spacing: .08em; text-transform: uppercase; color: var(--nm-muted);
}

hr, .wp-block-separator {
  border: 0; border-top: 1px solid var(--nm-line); margin: 0;
  background: none; height: 0;
}

/* Lists */
.bmfa-in ul, .bmfa-in ol, .bmfa-prose ul, .bmfa-prose ol {
  margin: 0 0 1.3em; padding: 0; list-style: none;
}
.bmfa-in ul li, .bmfa-prose ul li {
  position: relative; padding-left: 22px; margin-bottom: .5em;
}
.bmfa-in ul li::before, .bmfa-prose ul li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--nm-gold); transform: rotate(45deg);
}
.bmfa-in ol, .bmfa-prose ol { counter-reset: bmfa; }
.bmfa-in ol li, .bmfa-prose ol li {
  position: relative; padding-left: 30px; margin-bottom: .55em; counter-increment: bmfa;
}
.bmfa-in ol li::before, .bmfa-prose ol li::before {
  content: counter(bmfa, decimal-leading-zero);
  position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 700;
  color: var(--nm-gold-deep); letter-spacing: .04em;
}

/* ---------- 5. Layout primitives ---------- */
.bmfa-shell { width: 100%; max-width: var(--nm-shell); margin-inline: auto; padding-inline: var(--nm-gutter); }

.bmfa-sec { position: relative; }
.bmfa-sec > .bmfa-in { max-width: var(--nm-shell); margin-inline: auto; padding-inline: var(--nm-gutter); }
.bmfa-in { padding-inline: var(--nm-gutter); }
.bmfa-sec--pad { padding-block: var(--nm-sec-y); }
.bmfa-sec--tight { padding-block: clamp(40px, 4.6vw, 68px); }

.bmfa-sec--sand { background: var(--nm-sand); }
.bmfa-sec--sand-deep { background: var(--nm-sand-deep); }
.bmfa-sec--dark { background: var(--nm-dark); color: #fff; }
.bmfa-sec--dark h1, .bmfa-sec--dark h2, .bmfa-sec--dark h3, .bmfa-sec--dark h4 { color: #fff; }
.bmfa-sec--dark p { color: rgba(255, 255, 255, .74); }
.bmfa-sec--dark .bmfa-eyebrow { color: var(--nm-gold-bright); }

.wp-block-group.bmfa-sec { margin-block: 0 !important; }
.bmfa-sec .wp-block-group.bmfa-in { margin: 0 auto; }
.bmfa-in > * + * { margin-top: var(--nm-flow, 22px); }

/*
 * Grid-like containers are built from blocks, so WordPress adds its block gap
 * as a top margin on every sibling after the first. Inside a grid that margin
 * breaks row alignment and lets the hairline background show through, so it is
 * removed here and spacing is left to `gap`.
 */
.bmfa-grid > *,
.bmfa-feats > *,
.bmfa-steps > *,
.bmfa-split > *,
.bmfa-cards > *,
.bmfa-quotes > *,
.bmfa-gallery > *,
.bmfa-checklist > * { margin-block: 0 !important; }

/* ---------- 6. Eyebrow / section head ---------- */
.bmfa-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--nm-gold-deep);
  margin: 0 0 18px !important; max-width: none !important;
}
.bmfa-eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--nm-gold);
  transform: rotate(45deg); border-radius: 1px; flex: none;
}

.bmfa-sechead {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(34px, 4.4vw, 62px);
}
.bmfa-sechead > * { margin: 0 !important; }
.bmfa-sechead h2 { margin: 0 !important; }
.bmfa-sechead .bmfa-sechead__aside p { margin: 0; color: var(--nm-muted); font-size: var(--nm-t-lead); }
.bmfa-sec--dark .bmfa-sechead .bmfa-sechead__aside p { color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) {
  .bmfa-sechead { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

/* ---------- 7. Buttons ---------- */
.btn, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--nm-font); font-size: 14.5px; font-weight: 700;
  letter-spacing: -.005em; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--nm-ease), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .35s var(--nm-ease);
  white-space: nowrap;
}
.btn svg, .wp-block-button__link svg { width: 15px; height: 15px; flex: none; }
.wp-block-button__link:hover { text-decoration: none; }

.btn--gold, .wp-block-button.is-style-bmfa-gold .wp-block-button__link {
  background: var(--nm-gold); color: #16120b;
  box-shadow: 0 10px 26px -14px rgba(196, 145, 63, .85);
}
.btn--gold:hover, .wp-block-button.is-style-bmfa-gold .wp-block-button__link:hover {
  background: var(--nm-gold-bright); color: #16120b; transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(196, 145, 63, .9);
}
.btn--dark, .wp-block-button.is-style-bmfa-dark .wp-block-button__link {
  background: var(--nm-ink); color: #fff;
}
.btn--dark:hover, .wp-block-button.is-style-bmfa-dark .wp-block-button__link:hover {
  background: #000; color: #fff; transform: translateY(-2px);
}
.btn--ghost, .wp-block-button.is-style-bmfa-ghost .wp-block-button__link {
  border-color: rgba(255, 255, 255, .34); color: #fff; background: transparent;
}
.btn--ghost:hover, .wp-block-button.is-style-bmfa-ghost .wp-block-button__link:hover {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); color: #fff;
}
.btn--outline, .wp-block-button.is-style-bmfa-outline .wp-block-button__link {
  border-color: var(--nm-line); color: var(--nm-ink); background: #fff;
}
.btn--outline:hover, .wp-block-button.is-style-bmfa-outline .wp-block-button__link:hover {
  border-color: var(--nm-ink); background: #fff; color: var(--nm-ink); transform: translateY(-2px);
}
.btn--sm { padding: 11px 20px; font-size: 13.5px; }
.btn--block { display: flex; width: 100%; }

.btn-row, .wp-block-buttons {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 0 !important;
}
/* Stacked buttons look tidier at equal width than at their natural text width. */
@media (max-width: 480px) {
  .bmfa-hero .btn-row, .bmfa-hero .wp-block-buttons,
  .bmfa-cta .btn-row, .bmfa-cta .wp-block-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .bmfa-hero .btn-row .btn, .bmfa-cta .btn-row .btn,
  .bmfa-hero .wp-block-buttons .wp-block-button, .bmfa-cta .wp-block-buttons .wp-block-button,
  .bmfa-hero .wp-block-button__link, .bmfa-cta .wp-block-button__link { width: 100%; }
  .bmfa-hero .btn-row .btn, .bmfa-cta .btn-row .btn { justify-content: center; }
  .bmfa-hero .wp-block-button__link, .bmfa-cta .wp-block-button__link { text-align: center; }
}
.wp-block-buttons .wp-block-button { margin: 0; }

/* text link with arrow */
.bmfa-tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: -.005em;
  color: var(--nm-ink); border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.bmfa-tlink::after {
  content: "→"; font-size: 15px; transition: transform .35s var(--nm-ease);
}
.bmfa-tlink:hover { color: var(--nm-gold-deep); border-color: currentColor; }
.bmfa-tlink:hover::after { transform: translateX(4px); }

/* ---------- 8. Header ---------- */
.bmfa-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.bmfa-header.is-stuck { border-bottom-color: var(--nm-line); box-shadow: 0 10px 30px -26px rgba(0, 0, 0, .8); }

.bmfa-header--over {
  position: fixed; inset: 0 0 auto; background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.bmfa-header--over .bmfa-nav > ul > li > a { color: rgba(255, 255, 255, .92); }
.bmfa-header--over .bmfa-brand__name, .bmfa-header--over .bmfa-brand__sub { color: #fff; }
.bmfa-header--over .bmfa-brand__sub { color: rgba(255, 255, 255, .62); }
.bmfa-header--over .bmfa-burger span { background: #fff; }
.bmfa-header--over .bmfa-hdr-wa { color: #fff; border-color: rgba(255, 255, 255, .3); }
.bmfa-header--over.is-stuck {
  background: rgba(255, 255, 255, .95); backdrop-filter: saturate(160%) blur(14px);
}
.bmfa-header--over.is-stuck .bmfa-nav > ul > li > a { color: var(--nm-ink); }
.bmfa-header--over.is-stuck .bmfa-brand__name { color: var(--nm-ink); }
.bmfa-header--over.is-stuck .bmfa-brand__sub { color: var(--nm-muted); }
.bmfa-header--over.is-stuck .bmfa-burger span { background: var(--nm-ink); }
.bmfa-header--over.is-stuck .bmfa-hdr-wa { color: var(--nm-ink); border-color: var(--nm-line); }
.bmfa-header--over.is-stuck { border-bottom-color: var(--nm-line); }

.bmfa-hdr {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; height: 76px; max-width: var(--nm-shell);
  margin-inline: auto; padding-inline: var(--nm-gutter);
}

/* brand */
.bmfa-brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.bmfa-brand__mark { width: 38px; height: 38px; flex: none; color: var(--nm-gold); }
.bmfa-brand__txt { display: flex; flex-direction: column; line-height: 1; }
.bmfa-brand__name {
  font-size: 21px; font-weight: 800; letter-spacing: .14em; color: var(--nm-ink);
  text-transform: uppercase; transition: color .3s;
}
.bmfa-brand__sub {
  font-size: 8.2px; font-weight: 600; letter-spacing: .135em; text-transform: uppercase;
  color: var(--nm-muted); margin-top: 5px; max-width: 210px;
  transition: color .3s;
}

/* nav */
.bmfa-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.bmfa-nav ul { list-style: none; margin: 0; padding: 0; }
.bmfa-nav > ul { display: flex; align-items: center; gap: 2px; }
.bmfa-nav > ul > li { position: relative; }
.bmfa-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; font-size: 14.2px; font-weight: 600; letter-spacing: -.005em;
  color: var(--nm-ink); border-radius: 999px; transition: color .2s, background .2s;
}
.bmfa-nav > ul > li > a::after {
  content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
  opacity: .45; transition: transform .25s;
}
.bmfa-nav > ul > li:not(.menu-item-has-children) > a::after { display: none; }
.bmfa-nav > ul > li > a:hover { color: var(--nm-gold-deep); }
.bmfa-nav > ul > li.current-menu-item > a,
.bmfa-nav > ul > li.current-menu-ancestor > a { color: var(--nm-gold-deep); }
.bmfa-nav > ul > li.current-menu-item > a::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--nm-gold);
}

/* dropdown + mega */
.bmfa-nav .sub-menu, .bmfa-mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--nm-line);
  border-radius: 16px; box-shadow: var(--nm-shadow);
  padding: 10px; min-width: 238px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .3s var(--nm-ease), visibility .22s;
  z-index: 5;
}
.bmfa-nav li:hover > .sub-menu, .bmfa-nav li:focus-within > .sub-menu,
.bmfa-nav li:hover > .bmfa-mega, .bmfa-nav li:focus-within > .bmfa-mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.bmfa-nav .sub-menu a {
  display: block; padding: 9px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--nm-ink-soft); white-space: nowrap;
}
.bmfa-nav .sub-menu a:hover { background: var(--nm-sand); color: var(--nm-ink); }

.bmfa-mega {
  width: min(880px, calc(100vw - 60px)); padding: 26px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 26px;
}
.bmfa-mega a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--nm-ink-soft);
}
.bmfa-mega a::after { content: "↗"; font-size: 12px; opacity: 0; transition: opacity .2s, transform .2s; color: var(--nm-gold-deep); }
.bmfa-mega a:hover { background: var(--nm-sand); color: var(--nm-ink); }
.bmfa-mega a:hover::after { opacity: 1; transform: translate(1px, -1px); }
.bmfa-mega__foot {
  grid-column: 1 / -1; margin-top: 14px; padding-top: 18px;
  border-top: 1px solid var(--nm-line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  grid-template-columns: none;
}
.bmfa-mega__foot span { font-size: 13px; color: var(--nm-muted); }

/* header actions */
.bmfa-hdr__act { display: flex; align-items: center; gap: 10px; flex: none; }
.bmfa-hdr-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 13px; border: 1px solid var(--nm-line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--nm-ink);
  transition: border-color .2s, color .2s, background .2s;
}
.bmfa-hdr-wa svg { width: 15px; height: 15px; color: #35b36b; }
.bmfa-hdr-wa:hover { border-color: var(--nm-ink); }
.bmfa-burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  padding: 0; cursor: pointer; position: relative; line-height: 0;
}
.bmfa-burger span {
  display: block; width: 20px; height: 1.6px; background: var(--nm-ink);
  margin: 4.2px auto; border-radius: 2px; transition: transform .3s var(--nm-ease), opacity .2s;
}
body.nav-open .bmfa-burger span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
body.nav-open .bmfa-burger span:nth-child(2) { opacity: 0; }
body.nav-open .bmfa-burger span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* mobile drawer */
.bmfa-drawer {
  position: fixed; inset: 0; z-index: 890; background: #fff;
  padding: 92px var(--nm-gutter) 40px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .28s ease, transform .4s var(--nm-ease), visibility .28s;
}
body.nav-open .bmfa-drawer { opacity: 1; visibility: visible; transform: none; }
body.nav-open { overflow: hidden; }
.bmfa-drawer ul { list-style: none; margin: 0; padding: 0; }
.bmfa-drawer > ul > li { border-bottom: 1px solid var(--nm-line-soft); }
.bmfa-drawer > ul > li > a, .bmfa-drawer .bmfa-dr-sub summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 2px; font-size: 17px; font-weight: 700; letter-spacing: -.02em;
  color: var(--nm-ink); cursor: pointer; list-style: none;
}
.bmfa-drawer .bmfa-dr-sub summary::-webkit-details-marker { display: none; }
.bmfa-drawer .bmfa-dr-sub summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--nm-gold); transition: transform .25s;
}
.bmfa-drawer .bmfa-dr-sub details[open] summary::after { transform: rotate(45deg); }
.bmfa-drawer .sub-menu { padding: 0 0 14px 4px; }
.bmfa-drawer .sub-menu a { display: block; padding: 8px 0; font-size: 14.5px; color: var(--nm-muted); }
.bmfa-drawer .bmfa-drawer__foot { margin-top: 28px; display: grid; gap: 12px; }

@media (max-width: 1080px) {
  .bmfa-nav { display: none; }
  .bmfa-burger { display: block; }
  .bmfa-hdr-wa { display: none; }
  .bmfa-hdr { height: 66px; }
  .bmfa-brand__name { font-size: 18px; }
  .bmfa-brand__sub { font-size: 7.4px; max-width: 175px; }
}
@media (min-width: 1081px) { .bmfa-drawer { display: none; } }

/* ---------- 9. Hero ---------- */
.bmfa-hero {
  position: relative; isolation: isolate;
  min-height: min(84vh, 760px); display: flex; align-items: flex-end;
  color: #fff; background: var(--nm-dark); overflow: hidden;
  padding-block: clamp(120px, 16vh, 190px) clamp(48px, 6vw, 82px);
}
.bmfa-hero__bg { position: absolute; inset: 0; z-index: -2; margin: 0 !important; }
.bmfa-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.02);
}
.bmfa-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, .74) 0%, rgba(8, 10, 14, .28) 34%, rgba(8, 10, 14, .86) 100%),
    linear-gradient(90deg, rgba(8, 10, 14, .72) 0%, rgba(8, 10, 14, .1) 62%);
}
.bmfa-hero .bmfa-in { width: 100%; }
.bmfa-hero h1 { color: #fff; margin: 0 0 14px; max-width: 22ch; }
.bmfa-hero .bmfa-in > * { margin-inline: 0 auto !important; }
.bmfa-hero .bmfa-hero__tag {
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; color: var(--nm-gold-bright);
  letter-spacing: -.01em; margin: 0 0 18px !important; max-width: none;
}
.bmfa-hero p { color: rgba(255, 255, 255, .8); font-size: var(--nm-t-lead); max-width: 62ch; }
.bmfa-hero .bmfa-eyebrow { color: var(--nm-gold-bright); }
.bmfa-hero .btn-row { margin-top: 30px !important; }

.bmfa-hero--short { min-height: min(64vh, 560px); }
.bmfa-hero--compact { min-height: 0; padding-block: clamp(112px, 13vw, 168px) clamp(34px, 4vw, 58px); }
.bmfa-hero--compact h1 { max-width: 26ch; }

/* breadcrumb */
.bmfa-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; letter-spacing: .02em; color: rgba(255, 255, 255, .55); margin-bottom: 20px !important; max-width: none; }
.bmfa-crumb a { color: rgba(255, 255, 255, .72); }
.bmfa-crumb a:hover { color: #fff; }
.bmfa-crumb span.sep { opacity: .45; }
.bmfa-pagehead { background: var(--nm-sand); padding-block: clamp(96px, 11vw, 150px) clamp(38px, 4.4vw, 62px); }
.bmfa-pagehead h1 { margin-bottom: 12px; }
.bmfa-pagehead .bmfa-crumb { color: var(--nm-muted); }
.bmfa-pagehead .bmfa-crumb a { color: var(--nm-muted); }
.bmfa-pagehead .bmfa-crumb a:hover { color: var(--nm-ink); }
.bmfa-pagehead p { color: var(--nm-muted); font-size: var(--nm-t-lead); max-width: 62ch; }

/* ---------- 10. Stats ---------- */
.bmfa-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--nm-line);
}
.bmfa-sec--dark .bmfa-stats { border-color: rgba(255, 255, 255, .16); }
.bmfa-stats > * { padding: 26px 26px 4px 0; }
.bmfa-stats > * + * { padding-left: 26px; border-left: 1px solid var(--nm-line); }
.bmfa-sec--dark .bmfa-stats > * + * { border-color: rgba(255, 255, 255, .16); }
.bmfa-stat__num {
  font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; letter-spacing: -.045em;
  line-height: 1; color: var(--nm-ink); margin: 0 0 8px !important;
}
.bmfa-sec--dark .bmfa-stat__num { color: #fff; }
.bmfa-stat__num em { font-style: normal; color: var(--nm-gold); }
.bmfa-stat__label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nm-muted); margin: 0 !important;
}
.bmfa-sec--dark .bmfa-stat__label { color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) {
  .bmfa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmfa-stats > * { padding: 20px 16px 4px 0; }
  .bmfa-stats > * + * { padding-left: 0; border-left: 0; }
  .bmfa-stats > :nth-child(even) { padding-left: 18px; border-left: 1px solid var(--nm-line); }
  .bmfa-stats > :nth-child(n+3) { border-top: 1px solid var(--nm-line); padding-top: 20px; }
}

/* ---------- 11. Cards: products ---------- */
.bmfa-grid { display: grid; gap: clamp(14px, 1.7vw, 22px); }
.bmfa-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bmfa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bmfa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Two-up project cards would become painfully tall at a 3:4 portrait ratio. */
.bmfa-grid--2 .bmfa-proj { aspect-ratio: 4 / 3; }
@media (max-width: 1080px) { .bmfa-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .bmfa-grid--4, .bmfa-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bmfa-grid--4, .bmfa-grid--3, .bmfa-grid--2 { grid-template-columns: minmax(0, 1fr); } }

.bmfa-card {
  position: relative; display: block; border-radius: var(--nm-radius);
  overflow: hidden; background: #fff; border: 1px solid var(--nm-line);
  transition: transform .45s var(--nm-ease), box-shadow .45s var(--nm-ease), border-color .3s;
}
.bmfa-card:hover { transform: translateY(-4px); box-shadow: var(--nm-shadow); border-color: transparent; }
.bmfa-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--nm-sand-deep); }
.bmfa-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--nm-ease); }
/*
 * Cards built from blocks wrap the image in a figure. Absolute positioning is
 * the only reliable way to make that figure fill the ratio box, because a
 * percentage height has no resolved parent height to work from otherwise.
 */
.bmfa-card__media > figure,
.bmfa-card__media > .wp-block-image {
  position: absolute; inset: 0; margin: 0 !important;
  width: 100%; height: 100%; display: block;
}
.bmfa-card__media > figure img,
.bmfa-card__media > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.bmfa-card:hover .bmfa-card__media img { transform: scale(1.055); }
.bmfa-card__body {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 19px 18px;
}
.bmfa-card__title { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; margin: 0 !important; color: var(--nm-ink); line-height: 1.3; }
.bmfa-card__title a { color: inherit; }
.bmfa-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bmfa-card__body::after {
  content: "→"; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--nm-line);
  display: grid; place-items: center; flex: none; font-size: 12px; color: var(--nm-ink);
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--nm-ease);
}
.bmfa-card:hover .bmfa-card__body::after { background: var(--nm-gold); border-color: var(--nm-gold); color: #16120b; transform: rotate(-45deg); }
.bmfa-card__meta {
  position: absolute; top: 14px; left: 14px; z-index: 2; margin: 0 !important;
  padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .93);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nm-ink);
}
.bmfa-card--flat { border: 0; background: transparent; }
.bmfa-card--flat .bmfa-card__body { padding: 15px 0 0; }
.bmfa-card--flat:hover { transform: none; box-shadow: none; }

/* ---------- 12. Cards: projects ---------- */
.bmfa-proj {
  position: relative; display: block; border-radius: var(--nm-radius); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--nm-dark-2); color: #fff; isolation: isolate;
}
.bmfa-proj--wide { aspect-ratio: 4 / 3; }
.bmfa-proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--nm-ease); }
.bmfa-proj::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 10, 14, .06) 18%, rgba(8, 10, 14, .55) 62%, rgba(8, 10, 14, .92) 100%);
  transition: opacity .4s;
}
.bmfa-proj:hover img { transform: scale(1.06); }
.bmfa-proj__body { position: absolute; inset: auto 0 0; padding: 22px; }
.bmfa-proj__loc {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--nm-gold-bright); margin-bottom: 8px;
}
.bmfa-proj__title { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; letter-spacing: -.02em; color: #fff; margin: 0 !important; line-height: 1.2; }
.bmfa-proj__meta { font-size: 12.5px; color: rgba(255, 255, 255, .66); margin: 7px 0 0 !important; }
.bmfa-proj__meta span + span::before { content: " · "; margin: 0 4px; opacity: .6; }

/* ---------- 13. Feature blocks ---------- */
.bmfa-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--nm-line); border-block: 1px solid var(--nm-line); }
.bmfa-feats > * { background: #fff; padding: 30px 28px 32px; }
.bmfa-sec--sand .bmfa-feats > * { background: var(--nm-sand); }
.bmfa-feats h3, .bmfa-feats h4 { font-size: 17px !important; margin: 0 0 9px !important; letter-spacing: -.018em; }
.bmfa-feats p { font-size: 14.5px; color: var(--nm-muted); margin: 0 !important; max-width: none; }
@media (max-width: 900px) { .bmfa-feats { grid-template-columns: 1fr; } }
.bmfa-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--nm-gold-soft); color: var(--nm-gold-deep); margin-bottom: 16px; flex: none;
}
.bmfa-ico svg { width: 20px; height: 20px; }
.bmfa-ico--dark { background: rgba(255, 255, 255, .08); color: var(--nm-gold-bright); }
.bmfa-ico--plain { background: transparent; color: var(--nm-gold); width: 26px; height: 26px; margin: 0; }

/* feature list (checkmarks) */
.bmfa-checklist { display: grid; gap: 11px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bmfa-checklist li {
  position: relative; padding-left: 30px !important; font-size: 14.8px; color: var(--nm-ink-soft);
  margin: 0 !important; line-height: 1.45;
}
.bmfa-checklist li::before {
  content: "" !important; position: absolute !important; left: 0 !important; top: .28em !important;
  width: 17px !important; height: 17px !important; border-radius: 50% !important;
  background: var(--nm-gold-soft) !important; transform: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6121' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
  background-size: 10px !important; background-repeat: no-repeat !important; background-position: center !important;
}
.bmfa-sec--dark .bmfa-checklist li { color: rgba(255, 255, 255, .78); }
.bmfa-sec--dark .bmfa-checklist li::before { background-color: rgba(218, 161, 76, .2) !important; }

/* ---------- 14. Steps ---------- */
.bmfa-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.bmfa-step { position: relative; padding: 0 20px 0 0; border-top: 1px solid var(--nm-line); padding-top: 22px; }
.bmfa-step::before {
  content: ""; position: absolute; top: -3.5px; left: 0; width: 7px; height: 7px;
  border-radius: 50%; background: var(--nm-gold);
}
.bmfa-step__n {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--nm-gold-deep); margin-bottom: 10px;
}
.bmfa-step h3, .bmfa-step h4 { font-size: 16.5px !important; margin: 0 0 8px !important; letter-spacing: -.018em; }
.bmfa-step p { font-size: 14px; color: var(--nm-muted); margin: 0 !important; max-width: none; }
.bmfa-sec--dark .bmfa-step { border-color: rgba(255, 255, 255, .16); }
.bmfa-sec--dark .bmfa-step h3, .bmfa-sec--dark .bmfa-step h4 { color: #fff; }
.bmfa-sec--dark .bmfa-step p { color: rgba(255, 255, 255, .62); }
@media (max-width: 1000px) { .bmfa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; } }
@media (max-width: 560px) { .bmfa-steps { grid-template-columns: 1fr; } }

/* ---------- 15. Accordion (core details) ---------- */
.wp-block-details, .bmfa-details {
  border-bottom: 1px solid var(--nm-line);
  padding: 0; margin: 0 !important;
}
.bmfa-sec--dark .wp-block-details { border-color: rgba(255, 255, 255, .14); }
.wp-block-details summary, .bmfa-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(16px, 1.35vw, 19px); font-weight: 700; letter-spacing: -.02em; color: var(--nm-ink);
}
.bmfa-sec--dark .wp-block-details summary { color: #fff; }
.wp-block-details summary::-webkit-details-marker, .bmfa-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after, .bmfa-details summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111318' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  transition: transform .3s var(--nm-ease);
}
.wp-block-details[open] summary::after { transform: rotate(180deg); }
.wp-block-details > *:not(summary) { padding-bottom: 6px; }
.wp-block-details > p, .wp-block-details > ul, .wp-block-details > ol, .wp-block-details > .wp-block-group {
  font-size: 15px; color: var(--nm-muted); max-width: 78ch;
}
.bmfa-sec--dark .wp-block-details > p { color: rgba(255, 255, 255, .68); }

/* stage header */
.bmfa-stage { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; padding: 30px 0 24px; }
.bmfa-stage__n {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--nm-gold-deep);
  padding-top: 6px; text-transform: uppercase;
}
.bmfa-stage h3 { margin: 0 0 8px !important; font-size: clamp(19px, 1.8vw, 24px) !important; }
.bmfa-stage p { margin: 0 !important; color: var(--nm-muted); font-size: 15px; max-width: 70ch; }
@media (max-width: 640px) { .bmfa-stage { grid-template-columns: 1fr; gap: 6px; } }

/* feature grid with image */
.bmfa-split { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(28px, 4.4vw, 66px); align-items: center; }
.bmfa-split--rev > .bmfa-split__media { order: -1; }
.bmfa-split__media { border-radius: var(--nm-radius-lg); overflow: hidden; background: var(--nm-sand-deep); }
.bmfa-split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.bmfa-split h2 { margin-bottom: 16px; }
.bmfa-split__body p { color: var(--nm-muted); }
@media (max-width: 900px) { .bmfa-split { grid-template-columns: 1fr; } .bmfa-split--rev > .bmfa-split__media { order: 0; } }

/* media + overlay card */
.bmfa-mediacard { position: relative; border-radius: var(--nm-radius-lg); overflow: hidden; isolation: isolate; }
.bmfa-mediacard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bmfa-mediacard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,14,0) 30%, rgba(8,10,14,.8) 100%); z-index: -1; }
.bmfa-mediacard__body { position: absolute; inset: auto 0 0; padding: clamp(20px, 3vw, 34px); color: #fff; }
.bmfa-mediacard__body h3 { color: #fff; margin: 0 0 8px !important; }
.bmfa-mediacard__body p { color: rgba(255, 255, 255, .78) !important; margin: 0 !important; font-size: 14.5px; max-width: 52ch; }

/* ---------- 16. Reviews ---------- */
.bmfa-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bmfa-quote {
  background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-radius);
  padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 14px;
}
.bmfa-quote p { font-size: 15px; line-height: 1.62; color: var(--nm-ink-soft); margin: 0 !important; max-width: none; }
.bmfa-quote__by { font-size: 12.5px; font-weight: 600; color: var(--nm-muted); letter-spacing: .01em; margin-top: auto; }
.bmfa-quote__stars { color: var(--nm-gold); letter-spacing: 2px; font-size: 13px; }
.bmfa-sec--dark .bmfa-quote { background: var(--nm-dark-2); border-color: rgba(255, 255, 255, .1); }
.bmfa-sec--dark .bmfa-quote p { color: rgba(255, 255, 255, .82); }
@media (max-width: 940px) { .bmfa-quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bmfa-quotes { grid-template-columns: 1fr; } }

/* video card */
.bmfa-video { position: relative; display: block; border-radius: var(--nm-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--nm-dark-2); }
.bmfa-video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1s var(--nm-ease), opacity .4s; }
.bmfa-video:hover img { transform: scale(1.05); opacity: 1; }
.bmfa-video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.bmfa-video__play span {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; color: var(--nm-ink);
  transition: transform .4s var(--nm-ease), background .3s;
}
.bmfa-video:hover .bmfa-video__play span { transform: scale(1.08); background: var(--nm-gold-bright); }
.bmfa-video__cap {
  position: absolute; inset: auto 0 0; padding: 16px 18px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 14, .8));
}

/* ---------- 17. CTA ---------- */
.bmfa-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--nm-dark); color: #fff; padding-block: clamp(64px, 8vw, 104px); }
.bmfa-cta img.bmfa-cta__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .38;
  /* Constrained layouts cap children at the content width — the backdrop has to
     ignore that and bleed to both edges of the section. */
  max-width: none !important; margin: 0 !important;
}
.bmfa-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 10, 14, .94) 0%, rgba(8, 10, 14, .58) 62%, rgba(8, 10, 14, .34) 100%);
}
.bmfa-cta h2 { color: #fff; max-width: 22ch; margin-bottom: 16px; }
.bmfa-cta p { color: rgba(255, 255, 255, .78); max-width: 58ch; }
.bmfa-cta .btn-row { margin-top: 28px !important; }
.bmfa-cta__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .bmfa-cta__inner { grid-template-columns: 1fr; } }

/* ---------- 18. Forms ---------- */
.bmfa-form { display: grid; gap: 16px; }
.bmfa-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bmfa-field { display: grid; gap: 7px; }
.bmfa-field label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--nm-ink-soft); text-transform: uppercase; }
.bmfa-field .req { color: var(--nm-gold-deep); }
.bmfa-field input, .bmfa-field textarea, .bmfa-field select,
.wp-block-search__input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--nm-line); border-radius: 11px;
  background: #fff; font-family: var(--nm-font); font-size: 15px; color: var(--nm-ink);
  transition: border-color .2s, box-shadow .2s;
}
.bmfa-field textarea { min-height: 132px; resize: vertical; }
.bmfa-field input:focus, .bmfa-field textarea:focus, .bmfa-field select:focus {
  border-color: var(--nm-gold); box-shadow: 0 0 0 3px rgba(196, 145, 63, .14); outline: none;
}
.bmfa-field input::placeholder, .bmfa-field textarea::placeholder { color: #a6a9ae; }
.bmfa-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }
.bmfa-form__note { font-size: 12.5px; color: var(--nm-muted); margin: 0 !important; }
.bmfa-alert { padding: 14px 16px; border-radius: 11px; font-size: 14px; margin-bottom: 18px; }
.bmfa-alert--ok { background: #eaf6ee; color: #1c6b3a; border: 1px solid #cbe7d5; }
.bmfa-alert--err { background: #fdeeee; color: #8f2020; border: 1px solid #f3d2d2; }
@media (max-width: 620px) { .bmfa-form__row { grid-template-columns: 1fr; } }

/* contact cards */
.bmfa-contactcard { display: grid; gap: 22px; padding: 30px; background: var(--nm-sand); border-radius: var(--nm-radius-lg); }
.bmfa-contactcard__item { display: flex; gap: 14px; align-items: flex-start; }
.bmfa-contactcard__item strong { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--nm-muted); margin-bottom: 4px; font-weight: 700; }
.bmfa-contactcard__item a, .bmfa-contactcard__item span { font-size: 15px; color: var(--nm-ink); line-height: 1.5; }

/* ---------- 19. Footer ---------- */
.bmfa-footer { background: var(--nm-dark); color: rgba(255, 255, 255, .72); padding-block: clamp(52px, 6vw, 78px) 26px; }
.bmfa-footer h6 { color: rgba(255, 255, 255, .45); font-size: 11px; letter-spacing: .17em; margin-bottom: 16px; }
.bmfa-footer a { color: rgba(255, 255, 255, .72); }
.bmfa-footer a:hover { color: #fff; }
.bmfa-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 48px); }
.bmfa-footer__brand .bmfa-brand__name { color: #fff; }
.bmfa-footer__brand .bmfa-brand__sub { color: rgba(255, 255, 255, .45); }
.bmfa-footer__blurb { font-size: 14px; color: rgba(255, 255, 255, .58); max-width: 34ch; margin: 18px 0 22px; line-height: 1.65; }
.bmfa-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bmfa-footer ul a { font-size: 14px; }
.bmfa-footer__bottom {
  margin-top: clamp(34px, 4vw, 54px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: rgba(255, 255, 255, .45);
}
.bmfa-footer__bottom .bmfa-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .bmfa-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bmfa-footer__top { grid-template-columns: 1fr; } }

/* ---------- 20. Floating WhatsApp ---------- */
.bmfa-fab {
  position: fixed; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 800;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 13px; border-radius: 999px;
  background: #1faa59; color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 16px 34px -14px rgba(31, 170, 89, .7);
  transition: transform .35s var(--nm-ease), box-shadow .35s;
}
.bmfa-fab:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 22px 40px -14px rgba(31, 170, 89, .8); }
.bmfa-fab svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 600px) { .bmfa-fab span { display: none; } .bmfa-fab { padding: 14px; } }

/* ---------- 21. Blog / archive ---------- */
.bmfa-postcard { display: grid; gap: 14px; }
.bmfa-postcard__media { display: block; border-radius: var(--nm-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--nm-sand-deep); }
.bmfa-postcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--nm-ease); }
.bmfa-postcard:hover .bmfa-postcard__media img { transform: scale(1.05); }
.bmfa-postcard__cat { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nm-gold-deep); }
.bmfa-postcard h3 { font-size: 19px !important; margin: 6px 0 0 !important; letter-spacing: -.022em; }
.bmfa-postcard p { font-size: 14px; color: var(--nm-muted); margin: 6px 0 0 !important; }
.bmfa-postcard time { font-size: 12.5px; color: var(--nm-muted); }

.bmfa-archive-head { padding-block: clamp(96px, 10vw, 140px) clamp(30px, 3.4vw, 46px); background: var(--nm-sand); }
.bmfa-archive-head h1 { margin-bottom: 10px; }
.bmfa-archive-head p { color: var(--nm-muted); max-width: 60ch; font-size: var(--nm-t-lead); }

.bmfa-pagination { display: flex; gap: 8px; justify-content: center; margin-top: clamp(32px, 4vw, 52px); }
.bmfa-pagination .page-numbers {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-grid; place-items: center;
  border: 1px solid var(--nm-line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--nm-ink);
}
.bmfa-pagination .page-numbers.current, .bmfa-pagination .page-numbers:hover { background: var(--nm-ink); color: #fff; border-color: var(--nm-ink); }

/* single post / page prose */
.bmfa-prose { max-width: 78ch; margin-inline: auto; }
.bmfa-prose > * + * { margin-top: 22px; }
.bmfa-prose h2 { font-size: clamp(25px, 2.6vw, 34px); margin-top: 44px; }
.bmfa-prose h3 { font-size: clamp(19px, 1.9vw, 23px); margin-top: 34px; }
.bmfa-prose img, .bmfa-prose .wp-block-image img { border-radius: 14px; }
.bmfa-prose .wp-block-image { margin: 26px 0; }
.bmfa-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bmfa-prose th, .bmfa-prose td { padding: 11px 14px; border-bottom: 1px solid var(--nm-line); text-align: left; vertical-align: top; }
.bmfa-prose th { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--nm-muted); background: var(--nm-sand); }

/* spec table block */
.bmfa-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bmfa-table th, .bmfa-table td { padding: 13px 16px; border-bottom: 1px solid var(--nm-line); text-align: left; }
.bmfa-table th { width: 34%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--nm-muted); font-weight: 700; background: var(--nm-sand); }
.bmfa-table tr:last-child th, .bmfa-table tr:last-child td { border-bottom: 0; }
.bmfa-table td { color: var(--nm-ink-soft); }
.wp-block-table table.bmfa-table { border: 1px solid var(--nm-line); border-radius: 12px; overflow: hidden; }

/* gallery */
.bmfa-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bmfa-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.bmfa-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .bmfa-gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- 22. Misc utilities ---------- */
.bmfa-center { text-align: center; }
.bmfa-center p, .bmfa-center .bmfa-eyebrow { margin-inline: auto !important; }
.bmfa-center .btn-row { justify-content: center; }
.bmfa-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--nm-gold-soft); color: var(--nm-gold-deep); font-size: 12px; font-weight: 700;
  letter-spacing: .06em;
}
.bmfa-note { font-size: 13px; color: var(--nm-muted); }
.bmfa-divider { height: 1px; background: var(--nm-line); border: 0; margin-block: clamp(34px, 4vw, 56px); }
.bmfa-badge-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.bmfa-badge-row span { font-size: 12.5px; color: var(--nm-muted); display: inline-flex; align-items: center; gap: 7px; }
.bmfa-badge-row span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--nm-gold); }

/* embedded video / map / matterport */
.bmfa-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--nm-radius-lg); overflow: hidden; background: #000; }
.bmfa-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bmfa-embed--tall { aspect-ratio: 4 / 3; }

/* 404 */
.bmfa-404 { text-align: center; padding-block: clamp(90px, 12vw, 160px); }
.bmfa-404 .bmfa-404__code { font-size: clamp(70px, 14vw, 160px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--nm-gold); margin: 0 0 10px; }
.bmfa-404 h1 { font-size: clamp(24px, 3vw, 38px); }
.bmfa-404 p { color: var(--nm-muted); max-width: 46ch; margin-inline: auto; }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .bmfa-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--nm-ease), transform .8s var(--nm-ease); }
  .bmfa-reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 23. WordPress core fixes ---------- */
.alignwide { max-width: var(--nm-shell); }
.alignfull { max-width: 100%; }
.wp-block-image { margin: 0; }
.wp-block-image img { border-radius: inherit; }
.wp-block-columns { gap: clamp(16px, 2vw, 26px); margin-bottom: 0 !important; }
.wp-block-buttons > .wp-block-button > .wp-block-button__link { font-size: 14.5px; font-weight: 700; padding: 15px 28px; border-radius: 999px; }
.entry-content > * + *, .bmfa-prose > * + * { margin-top: 0; }
.wp-block-spacer { margin: 0 !important; }
.wp-block-separator { max-width: 100% !important; }
figcaption, .wp-element-caption { font-size: 12.5px; color: var(--nm-muted); text-align: left; margin-top: 8px; }
.wp-block-table { margin: 0; }
.wp-block-table table { border-collapse: collapse; }
.wp-block-quote { border-left: 2px solid var(--nm-gold); padding-left: 26px; }
.wp-block-quote cite { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--nm-muted); }
.wp-block-search__button { border-radius: 999px; background: var(--nm-ink); color: #fff; border: 0; padding: 12px 20px; font-weight: 600; }
.wp-block-search__inside-wrapper { gap: 8px; }

/* admin bar offset for sticky header */
body.admin-bar .bmfa-header--over { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bmfa-header--over { top: 46px; } }

/* ---------- 24. PHP-rendered cards & singles ---------- */
a.bmfa-card, a.bmfa-proj { color: inherit; }
.bmfa-card__media { display: block; position: relative; }
.bmfa-card__title { display: block; }
.bmfa-proj__body, .bmfa-proj__loc, .bmfa-proj__title, .bmfa-proj__meta { display: block; }
.bmfa-proj__loc { display: inline-flex; }

/* object meta strip (single project) */
.bmfa-objinfo {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin: 0; border-top: 1px solid var(--nm-line); border-bottom: 1px solid var(--nm-line);
}
.bmfa-objinfo > div { padding: 20px 22px 20px 0; }
.bmfa-objinfo > div + div { padding-left: 22px; border-left: 1px solid var(--nm-line); }
.bmfa-objinfo dt {
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--nm-muted); margin-bottom: 6px;
}
.bmfa-objinfo dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--nm-ink); letter-spacing: -.01em; }
@media (max-width: 820px) {
  .bmfa-objinfo { grid-template-columns: 1fr 1fr; }
  .bmfa-objinfo > div { padding: 16px 16px 16px 0; }
  .bmfa-objinfo > div + div { padding-left: 0; border-left: 0; }
  .bmfa-objinfo > :nth-child(even) { padding-left: 16px; border-left: 1px solid var(--nm-line); }
  .bmfa-objinfo > :nth-child(n+3) { border-top: 1px solid var(--nm-line); }
}

/* footer address */
.bmfa-footer__addr {
  margin: 18px 0 0; font-size: 12.5px; line-height: 1.6;
  color: rgba(255, 255, 255, .45); max-width: 30ch;
}

/* search form */
.bmfa-searchform { display: flex; gap: 8px; }
.bmfa-searchform input[type="search"] {
  flex: 1 1 auto; padding: 13px 16px; border: 1px solid var(--nm-line); border-radius: 11px;
  font-family: var(--nm-font); font-size: 15px; background: #fff;
}
.bmfa-searchform button {
  flex: none; padding: 0 22px; border: 0; border-radius: 11px; background: var(--nm-ink);
  color: #fff; font-weight: 600; cursor: pointer;
}
.bmfa-searchform button:hover { background: #000; }

/* blog cards inside a plain grid */
.bmfa-postcard h3 a { color: inherit; }
.bmfa-postcard h3 a:hover { color: var(--nm-gold-deep); }
