Home / Meet Unite Health Grad, Rhianna
s:256:"

').insertAfter(face2faceHeading); $(".button_b.call-to-action").addClass("rounded-button rounded-button--XL inverted"); $('').insertBefore($("#bottom")); (function(){ if(SALE_ON&&e&&a) return; var priceEl = document.querySelector('.product-price'); if(priceEl) priceEl.style.visibility='hidden'; setTimeout(function(){ var priceEl = document.querySelector('.product-price'); if(priceEl){ var text = priceEl.textContent.trim(); var match = text.match(/[\d,.]+/); if(match){ var num = parseFloat(match[0].replace(/,/g,'')); var isNZ = window.location.pathname.indexOf('-nz') > -1; priceEl.innerHTML = (isNZ ? 'NZ$' : 'A$') + num.toLocaleString('en-AU'); } priceEl.style.visibility='visible'; } },1500); })(); if(window.location.pathname==='/courses/appi-pilates-instructor-certification'){ $('').appendTo('head'); (function(){ function initFilter(){ var table = document.querySelector('.course-session-table'); if(!table) return false; if(document.querySelector('.uh-filter-bar')) return true; var rows = table.querySelectorAll('tbody tr'); var locations = ['VIC','NSW','SA','WA','QLD','Online']; var bar = document.createElement('div'); bar.className = 'uh-filter-bar'; bar.style.cssText = 'display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;align-items:center;padding:0 0 8px;'; var label = document.createElement('span'); label.innerHTML = 'Course SessionsSelect Your State and Enrol Now'; label.style.cssText = 'font-family:"Zalando Sans","Poppins",sans-serif;width:100%;text-align:left;'; bar.appendChild(label); locations.forEach(function(loc){ var btn = document.createElement('button'); btn.textContent = loc; btn.dataset.loc = loc; btn.style.cssText = 'padding:6px 16px;border-radius:100px;border:1.5px solid #65beec;background:'+(loc==='VIC'?'#65beec':'transparent')+';color:'+(loc==='VIC'?'#fff':'#65beec')+';font-family:"Zalando Sans","Poppins",sans-serif;font-size:13px;font-weight:500;cursor:pointer;'; btn.addEventListener('click',function(){ bar.querySelectorAll('button').forEach(function(b){b.style.background='transparent';b.style.color='#65beec';}); btn.style.background='#65beec';btn.style.color='#fff'; if(loc==='Online'){window.open('https://unitehealth.com.au/courses/appi-pilates-instructor-certification-100-online','_blank');return;} rows.forEach(function(row){ var td=row.querySelector('td[data-title="Location"]'); row.style.display=(td&&td.textContent.trim()===loc)?'':'none'; }); }); bar.appendChild(btn); }); var allH = document.querySelectorAll('h2,h3,h4'); var heading = null; for(var i=0;i

').appendTo("#header .nav_right"); $('
').appendTo("#header .nav_right"); (function() { function uhHeroSwap() { var heroImg = document.getElementById('uh-hero-img'); var heroText = document.getElementById('uh-hero-text'); var overlay = document.getElementById('uh-hero-overlay'); var buttonsDesktop = document.getElementById('uh-hero-buttons-desktop'); var buttonsMobile = document.getElementById('uh-hero-buttons-mobile'); if (!heroImg || !heroText || !overlay || !buttonsDesktop || !buttonsMobile) return; if (window.innerWidth <= 768) { heroImg.src = 'https://21287782.fs1.hubspotusercontent-na1.net/hubfs/21287782/Website%20Imagery/Mobile%20Home%20Page.png'; heroText.src = 'https://21287782.fs1.hubspotusercontent-na1.net/hubfs/21287782/Website%20Imagery/MobileDeal.png'; heroText.style.width = '85%'; overlay.style.justifyContent = 'flex-start'; overlay.style.paddingTop = '20%'; buttonsDesktop.style.display = 'none'; buttonsMobile.style.display = 'flex'; } else { heroImg.src = 'https://21287782.fs1.hubspotusercontent-na1.net/hubfs/21287782/Website%20Imagery/Home%20Page%20hero%20banner.png'; heroText.src = 'https://21287782.fs1.hubspotusercontent-na1.net/hubfs/21287782/Website%20Imagery/EXPORT%20AS%20SVG%20OR%20PNG%20(svg%20will%20be%20better%20quality).svg'; heroText.style.width = '55%'; overlay.style.justifyContent = 'flex-end'; overlay.style.paddingTop = '0'; overlay.style.paddingBottom = '8%'; buttonsDesktop.style.display = 'flex'; buttonsMobile.style.display = 'none'; } } uhHeroSwap(); window.addEventListener('resize', uhHeroSwap); })(); }); (function () { function initSlider() { var track = document.getElementById('uh-testimonials'); var prevBtn = document.getElementById('uh-prev'); var nextBtn = document.getElementById('uh-next'); var dotsContainer = document.getElementById('uh-dots'); if (!track || !prevBtn || !nextBtn || !dotsContainer) return; var cards = track.querySelectorAll(':scope > div'); var cardWidth = 340; var total = cards.length; var current = 0; dotsContainer.innerHTML = ''; cards.forEach(function (_, i) { var dot = document.createElement('button'); dot.style.cssText = 'width:8px;height:8px;border-radius:50%;border:none;background:#302924;opacity:' + (i === 0 ? '1' : '0.2') + ';cursor:pointer;padding:0;transition:opacity 0.3s;'; dot.addEventListener('click', function () { goTo(i); }); dotsContainer.appendChild(dot); }); function updateDots() { dotsContainer.querySelectorAll('button').forEach(function (d, i) { d.style.opacity = i === current ? '1' : '0.2'; d.style.width = i === current ? '24px' : '8px'; d.style.borderRadius = '4px'; }); } function goTo(index) { current = Math.max(0, Math.min(index, total - 1)); track.scrollTo({ left: current * cardWidth, behavior: 'smooth' }); updateDots(); } prevBtn.addEventListener('click', function () { goTo(current - 1); }); nextBtn.addEventListener('click', function () { goTo(current + 1); }); track.addEventListener('scroll', function () { var index = Math.round(track.scrollLeft / cardWidth); if (index !== current) { current = index; updateDots(); } }); updateDots(); } if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', initSlider); else initSlider(); })(); (function() { var bar = document.querySelector('.uh-trust-bar'); if (!bar) return; var cta = document.querySelector('.uh-trust-cta'); var items = bar.querySelectorAll('div:not(.uh-trust-cta)'); function updateTrustBar() { var mobile = window.innerWidth < 768; bar.style.flexWrap = mobile ? 'wrap' : ''; bar.style.justifyContent = mobile ? 'flex-start' : ''; bar.style.gap = mobile ? '8px' : ''; if (cta) cta.style.display = mobile ? 'none' : ''; items.forEach(function(item) { item.style.justifyContent = mobile ? 'flex-start' : 'center'; item.style.flex = mobile ? '0 0 calc(50% - 4px)' : '1'; }); } updateTrustBar(); window.addEventListener('resize', updateTrustBar); })(); (function() { var grid = document.getElementById('uh-accred-grid'); if (!grid) return; function updateGrid() { if (window.innerWidth < 600) { grid.style.gridTemplateColumns = 'repeat(2, 1fr)'; grid.firstElementChild.style.gridColumn = '1 / -1'; } else { grid.style.gridTemplateColumns = '160px repeat(4, 1fr)'; grid.firstElementChild.style.gridColumn = ''; } } updateGrid(); window.addEventListener('resize', updateGrid); })(); (function() { var heroContent = document.getElementById('uh-hero-content'); if (!heroContent) return; function updateHero() { heroContent.style.padding = window.innerWidth < 768 ? '60px 20px' : '60px 6%'; } updateHero(); window.addEventListener('resize', updateHero); })(); (function() { document.querySelectorAll('span[style*="padding-left:5px"]').forEach(function(span) { span.style.display = 'none'; }); })(); /* Blog listing: load more posts */ $(document).ready(function () { if (!$('body').hasClass('blog-index-page')) return; var $list = $('#view_details .col-md-9'); var $pagRow = $list.children('.row').last(); var $btn = $pagRow.find('a.next'); if (!$list.length || !$btn.length) return; var PAGES_ON_LOAD = 2; var match = window.location.search.match(/[?&]page=(\d+)/); var nextPage = (match ? parseInt(match[1], 10) : 1) + 1; var hasMore = true, busy = false; function loadPage(done) { if (!hasMore || busy) return; busy = true; $btn.addClass('uh-loading').text('Loading…'); $.get('/blog?page=' + nextPage) .done(function (html) { var $page = $('
').append($.parseHTML(html)); var $posts = $page.find('#view_details article.type-post'); $posts.each(function () { if (this.id && document.getElementById(this.id)) return; $pagRow.before(this); }); hasMore = $posts.length > 0 && $page.find('#view_details .pagination a.next').length > 0; nextPage++; }) .fail(function () { hasMore = false; }) .always(function () { busy = false; $btn.removeClass('uh-loading').text('Load more posts'); if (!hasMore) $pagRow.hide(); if (done) done(); }); } (function autoLoad(remaining) { if (remaining <= 0 || !hasMore) return; loadPage(function () { autoLoad(remaining - 1); }); })(PAGES_ON_LOAD); $btn.text('Load more posts').on('click', function (e) { e.preventDefault(); loadPage(); }); }); /* Blog post enhancements */ $(document).ready(function () { if (!$('body').hasClass('view-blog-post')) return; var $content = $('#view_details article.type-post .entry-content').first(); if (!$content.length) return; var CTA_BEFORE_SECTION = 4; var txt = function ($el) { return $el.text().trim(); }; var $kt = $content.children('h2').filter(function () { return /key takeaways/i.test(txt($(this))); }).first(); if ($kt.length) $kt.add($kt.next('ul, ol')).wrapAll('
'); $content.children('p').each(function () { var $p = $(this), $kids = $p.children(); if ($kids.length === 1 && $kids.first().is('strong') && txt($p) === txt($kids.first())) $p.addClass('uh-lead'); }); $content.find('table').wrap('
'); var $faqHead = $content.children('h2').filter(function () { return /common questions|faqs?\b|frequently asked/i.test(txt($(this))); }).first(); if ($faqHead.length) { $faqHead.nextUntil('h2', 'h3').each(function () { var $h3 = $(this); var $answer = $h3.nextUntil('h2, h3'); $h3.add($answer).wrapAll('
'); $answer.wrapAll('
'); $h3.attr({ role: 'button', tabindex: '0', 'aria-expanded': 'false' }); }); $content.on('click keydown', '.uh-faq__item > h3', function (e) { if (e.type === 'keydown' && e.key !== 'Enter' && e.key !== ' ') return; e.preventDefault(); var $item = $(this).parent().toggleClass('is-open'); $(this).attr('aria-expanded', $item.hasClass('is-open') ? 'true' : 'false'); }); } var $last = $content.children('h2').last(); if ($last.length && !$last.is($faqHead)) $last.add($last.nextAll()).wrapAll('
'); var ctaHtml = '
' + '
' + '

Ready to become a Pilates instructor?

' + '

Get APPI-certified in person or 100% online, with courses across Australia and New Zealand.

' + '
' + '
' + 'Explore Our Courses' + '
Not sure? Book a chat
' + '
' + '
'; var $anchor = $content.children('h2').eq(CTA_BEFORE_SECTION - 1); if (!$anchor.length) $anchor = $content.children('.uh-faq__item').first().prevAll('h2').first(); if (!$anchor.length) $anchor = $content.children('.uh-closing'); if ($anchor.length) $anchor.first().before(ctaHtml); else $content.append(ctaHtml); }); $(document).ready(function(){ (function(){ var $c = $('#header .navbar > .container'); var $list = $c.find('.nav_right .nav-list').first(); if (!$c.length || !$list.length) return; // Browse All link: added to the main menu (so it also shows on mobile), then moved left of the logo var BROWSE_URL = 'https://unitehealth.com.au/courses'; var BROWSE_TEXT = 'Browse All'; var hasBrowse = false; $list.children('li.nav-item').each(function(){ if ($.trim($(this).children('a').first().text()).toLowerCase().indexOf('browse all') !== -1){ hasBrowse = true; return false; } }); if (!hasBrowse){ $list.append(''); } var wanted = ['pilates instructor','clinical pilates','upskill','browse all']; var $left = $(''); var found = 0; wanted.forEach(function(name){ $list.children('li.nav-item').each(function(){ var t = $.trim($(this).children('a').first().text()).toLowerCase(); if (t.indexOf(name) !== -1){ $(this).addClass('uh-moved').clone(true).removeClass('uh-moved').appendTo($left); found++; return false; } }); }); if (found !== wanted.length){ $list.children('.uh-moved').removeClass('uh-moved'); return; } $c.addClass('uh-split-nav').prepend($left); })(); }); $(document).ready(function () { (function () { // Category pages only if (window.location.pathname.indexOf('/categories/') !== 0) return; /* ---------- 1. Styling ---------- */ var css = // rounded cards, buttons, text tweaks '.all_item .prd_box{border-radius:16px !important;overflow:hidden !important;}' + '.all_item .prd_box .courses_img img{display:block !important;}' + '.all_item .courses_content h2{font-size:15px !important;line-height:1.35 !important;}' + '.all_item .courses_content .price{font-weight:500 !important;}' + '.all_item .courses_btn .btn{border-radius:100px !important;padding:7px 16px !important;}' + '.all_item .add_cart .fa-shopping-cart{display:none !important;}' + // even rows, no gaps, buttons lined up at the bottom '.all_item{display:flex !important;flex-wrap:wrap !important;}' + '.all_item::before,.all_item::after{display:none !important;}' + '.all_item > div{float:none !important;display:flex !important;}' + '.all_item > div > .prd_box{width:100% !important;display:flex !important;flex-direction:column !important;}' + '.all_item .courses_btn{margin-top:auto !important;}' + // mobile: stop cards stretching too wide, keep them centred '@media (max-width:767px){.all_item > div{max-width:420px !important;margin:0 auto !important;}}'; var s = document.createElement('style'); s.appendChild(document.createTextNode(css)); document.head.appendChild(s); /* ---------- 2. Remove "Category :" from the heading ---------- */ var h1 = document.querySelector('.all_item_main_box h1'); if (h1) h1.textContent = h1.textContent.replace(/^\s*Category\s*:\s*/i, ''); /* ---------- 3. Load all courses onto page 1 ---------- */ var params = new URLSearchParams(window.location.search); if (parseInt(params.get('page') || '1', 10) > 1) return; var grid = document.querySelector('.all_item'); if (!grid) return; var cards = grid.querySelectorAll('.prd_box'); var perPage = cards.length; var showing = document.querySelectorAll('.showing_results'); var m = showing.length ? showing[0].textContent.match(/of\s*(\d+)/) : null; var total = m ? parseInt(m[1], 10) : 0; if (!perPage || !total || total <= perPage) return; var lastPage = Math.min(Math.ceil(total / perPage), 10); function key(box) { var a = box.querySelector('a[href*="/courses/"]'); return a ? a.getAttribute('href').split('?')[0] : ''; } var seen = {}; for (var i = 0; i < cards.length; i++) seen[key(cards[i])] = true; var reqs = []; for (var p = 2; p <= lastPage; p++) { params.set('page', p); reqs.push( fetch(window.location.pathname + '?' + params.toString(), { credentials: 'same-origin' }) .then(function (r) { if (!r.ok) throw new Error(r.status); return r.text(); }) ); } Promise.all(reqs).then(function (pages) { var added = 0; pages.forEach(function (html) { var doc = new DOMParser().parseFromString(html, 'text/html'); var g = doc.querySelector('.all_item'); if (!g) return; Array.prototype.forEach.call(g.children, function (col) { var box = col.querySelector('.prd_box'); if (!box) return; var k = key(box); if (!k || seen[k]) return; seen[k] = true; grid.appendChild(document.importNode(col, true)); added++; }); }); if (!added) return; var shown = perPage + added; Array.prototype.forEach.call(showing, function (el) { el.textContent = 'Showing 1-' + shown + ' of ' + total + ' Results'; }); Array.prototype.forEach.call(document.querySelectorAll('.pagination a.btn'), function (a) { a.style.setProperty('display', 'none', 'important'); }); }).catch(function () { /* a page failed to load: keep normal pagination */ }); })(); }); $(document).ready(function () { (function () { if (document.getElementById('uh-zalando-sans')) return; var link = document.createElement('link'); link.id = 'uh-zalando-sans'; link.rel = 'stylesheet'; link.href = 'https://fonts.googleapis.com/css2?family=Zalando+Sans:ital,wght@0,400;0,500;0,600;1,500&display=swap'; document.head.appendChild(link); })(); }); /* ===== Unite Health – live Instagram strip (free, via Cloudflare Worker) ===== Add to the site-wide JS block (replaces the SnapWidget / Behold code). On the homepage only, it swaps the images and links in the existing .uh-ig-scroll strip for the 8 latest Instagram posts, with a caption on hover. Keeps the strip's own layout, including swiping on phones. If the feed can't load, the current static images stay. */ $(document).ready(function () { (function () { var FEED_URL = 'https://unite-instagram.kendra-jeffery.workers.dev/'; // Unite Health Instagram Worker var HOME_PATHS = ['/', '/index.html', '/home']; // pages that count as the homepage var MAX_POSTS = 8; var CACHE_MINUTES = 30; var path = window.location.pathname.replace(/\/+$/, '') || '/'; if (HOME_PATHS.indexOf(path) === -1) return; var strip = document.querySelector('.uh-ig-scroll'); if (!strip) return; var template = strip.querySelector('.uh-ig-item'); if (!template) return; var CACHE_KEY = 'uhIgFeed:' + FEED_URL; function readCache() { try { var c = JSON.parse(sessionStorage.getItem(CACHE_KEY)); if (c && Date.now() - c.t < CACHE_MINUTES * 60000) return c.posts; } catch (e) {} return null; } function writeCache(posts) { try { sessionStorage.setItem(CACHE_KEY, JSON.stringify({ t: Date.now(), posts: posts })); } catch (e) {} } function imageFor(p) { if (p.mediaType === 'VIDEO') return p.thumbnailUrl || ''; return p.mediaUrl || p.thumbnailUrl || ''; } function altFor(p) { var c = (p.caption || '').replace(/\s+/g, ' ').trim(); if (!c) return 'Unite Health on Instagram'; return c.length > 120 ? c.slice(0, 117) + '…' : c; } function captionFor(p) { // Caption for the hover, hashtags trimmed off the end var c = (p.caption || '').replace(/(\s*#[^\s#]+)+\s*$/, '').replace(/\s+/g, ' ').trim(); return c.length > 160 ? c.slice(0, 157).replace(/\s+\S*$/, '') + '…' : c; } function addHover(a, img, p) { // Soft zoom + charcoal tint with the post caption img.style.setProperty('transition', 'transform .5s ease', 'important'); var overlay = document.createElement('span'); overlay.setAttribute('aria-hidden', 'true'); overlay.style.cssText = 'position:absolute !important;inset:0 !important;display:flex !important;' + 'flex-direction:column !important;justify-content:center !important;padding:16px !important;' + 'box-sizing:border-box !important;background:rgba(48,41,36,.88) !important;' + 'opacity:0 !important;transition:opacity .3s ease !important;pointer-events:none !important;'; var icon = document.createElement('span'); icon.style.cssText = 'position:absolute !important;top:10px !important;right:10px !important;line-height:0 !important;'; icon.innerHTML = '' + ''; overlay.appendChild(icon); var text = captionFor(p); if (text) { var cap = document.createElement('span'); cap.textContent = text; cap.style.cssText = 'display:-webkit-box !important;-webkit-box-orient:vertical !important;' + '-webkit-line-clamp:6 !important;overflow:hidden !important;color:#F6F5F2 !important;' + 'font-family:Poppins,sans-serif !important;font-size:12px !important;line-height:1.45 !important;' + 'font-weight:400 !important;text-align:left !important;letter-spacing:0 !important;'; overlay.appendChild(cap); } a.appendChild(overlay); a.addEventListener('mouseenter', function () { img.style.setProperty('transform', 'scale(1.05)', 'important'); overlay.style.setProperty('opacity', '1', 'important'); }); a.addEventListener('mouseleave', function () { img.style.setProperty('transform', 'none', 'important'); overlay.style.setProperty('opacity', '0', 'important'); }); } function render(posts) { posts = (posts || []).filter(function (p) { return p && p.permalink && imageFor(p); }).slice(0, MAX_POSTS); if (!posts.length) return; // keep the existing images var frag = document.createDocumentFragment(); posts.forEach(function (p) { var a = template.cloneNode(true); a.href = p.permalink; a.target = '_blank'; a.rel = 'noopener'; a.setAttribute('aria-label', 'View on Instagram: ' + altFor(p)); var img = a.querySelector('img'); if (img) { img.src = imageFor(p); img.alt = altFor(p); img.loading = 'lazy'; img.decoding = 'async'; img.removeAttribute('srcset'); addHover(a, img, p); } frag.appendChild(a); }); strip.innerHTML = ''; strip.appendChild(frag); } var cached = readCache(); if (cached) { render(cached); return; } fetch(FEED_URL) .then(function (r) { if (!r.ok) throw new Error(r.status); return r.json(); }) .then(function (data) { var posts = (data && data.posts) || []; writeCache(posts); render(posts); }) .catch(function () { /* keep the existing images */ }); })(); }); /* ===== Unite Health - "Book a call" corner tab + HubSpot calendar pop-up (compact; readable source: book-a-call-tab.js) ===== */ $(document).ready(function(){!function(){var e={meetingUrl:"https://meetings.hubspot.com/laura-brand",tabText:"BOOK A FREE CHAT",eyebrow:"Free course consultation",heading:"Not sure where to start?",headingAccent:"Let\u2019s chat",body:"Thinking about training with Unite Health? A quick call with our team can help you find the right course for your goals, lifestyle and schedule.",points:["Walk through the training pathways available","Get answers to any questions you have","Decide which option is the best fit for you"],phone:"0406 825 671",panelBackground:"linear-gradient(180deg, #F6F5F2 45%, #EAFF75 100%)",showDelay:3e3,showOnPaths:["/pilates-courses-*","/courses/appi-pilates-instructor-certification","/courses/appi-pilates-instructor-certification-100-online","/course-packages/appi-full-matwork","/course-packages/appi-matwork-certification-series","/course-packages/appi-equipment-certification-series"],colors:{blue:"#65beec",charcoal:"#302924",lime:"#EAFF75",offwhite:"#F6F5F2",muted:"#837973"},font:"'Zalando Sans', 'Poppins', sans-serif",serif:"'P22 Mackinac Pro', Mackinac, Georgia, 'Times New Roman', serif"},t="uh_bookcall_dismissed",o="uh_bookcall_booked";function n(e,t,o){try{var n=window[e];return void 0===o?n.getItem(t):n.setItem(t,o)}catch(e){return null}}function i(e){var t="";for(var o in e)e.hasOwnProperty(o)&&(t+=o+":"+e[o]+" !important;");return t}function a(e,t,o){e.style.setProperty(t,o,"important")}function r(e,t){window.dataLayer=window.dataLayer||[];var o={event:e};for(var n in t)o[n]=t[n];window.dataLayer.push(o)}function l(e){return e.toLowerCase().replace(/^\/pages(?=\/)/,"").replace(/(.)\/+$/,"$1")}var s=l(window.location.pathname),c=!e.showOnPaths.some(function(e){return"*"===e.slice(-1)?0===s.indexOf(l(e.slice(0,-1))):s===l(e)});if(!document.getElementById("uh-bookcall-modal")){var d=e.colors,p=e.font,u=window.matchMedia("(max-width: 767px)").matches,f='',h='',g=document.createElement("div");g.id="uh-bookcall-modal",g.setAttribute("role","dialog"),g.setAttribute("aria-modal","true"),g.setAttribute("aria-label","Book a call"),g.style.cssText=i({position:"fixed",inset:"0","z-index":"2147483000",display:"none","align-items":"center","justify-content":"center",background:"rgba(48,41,36,0.55)","backdrop-filter":"blur(4px)","-webkit-backdrop-filter":"blur(4px)",padding:u?"0":"24px",opacity:"0",transition:"opacity .25s ease","font-family":p,"box-sizing":"border-box"});var x=u?"":'
    '+e.points.map(function(e){return'
  • '+h+""+e+"
  • "}).join("")+"
",m=!e.phone||u?"":''+f+'Prefer to talk now? '+e.phone+"";g.innerHTML='
'+e.eyebrow+'

'+e.heading+' '+e.headingAccent+'

'+e.body+"

"+x+m+'
Loading calendar\u2026
-1?"&":"?")+'embed=true" style="'+i({position:"relative","z-index":"1",width:"100%","line-height":"0"})+'">
',document.body.appendChild(g);var b=document.getElementById("uh-bookcall-box"),y=!1,w=null;if(document.getElementById("uh-bookcall-close").addEventListener("click",z),g.addEventListener("click",function(e){e.target===g&&z()}),document.addEventListener("keydown",function(e){"Escape"===e.key&&"flex"===g.style.display&&z()}),$(document).on("click",'a[href="#book-a-call"], [data-book-call]',function(e){e.preventDefault(),L("inline_button")}),window.addEventListener("message",function(e){var t="";try{t=new URL(e.origin).hostname}catch(e){return}if(/(^|\.)hubspot\.com$/.test(t)&&e.data&&e.data.meetingBookSucceeded){n("localStorage",o,"1"),r("book_call_booked",{}),"function"==typeof window.fbq&&window.fbq("track","Schedule");var i=document.getElementById("uh-bookcall-tab");i&&i.parentNode.removeChild(i)}}),!(c||n("sessionStorage",t)||n("localStorage",o))){var k=u?128:170,v=Math.round(.42*k),E=document.createElement("div");E.id="uh-bookcall-tab",E.style.cssText=i({position:"fixed",left:"0",bottom:"0",width:k+"px",height:k+"px","z-index":"2147482000",transform:"translate(-100%, 100%)",transition:"transform .5s cubic-bezier(.2,.8,.2,1)","pointer-events":"none",filter:"drop-shadow(0 2px 8px rgba(48,41,36,0.18))"}),E.innerHTML='',document.body.appendChild(E),document.getElementById("uh-bookcall-trigger").addEventListener("click",function(){L("corner_tab")}),document.getElementById("uh-bookcall-dismiss").addEventListener("click",function(e){e.stopPropagation(),n("sessionStorage",t,"1"),a(E,"transform","translate(-100%, 100%)"),setTimeout(function(){E.parentNode&&E.parentNode.removeChild(E)},500),r("book_call_dismiss",{})}),setTimeout(function(){a(E,"transform","translate(0, 0)")},e.showDelay)}}function L(t){w=document.activeElement,function(){if(!y){y=!0;var t=document.createElement("script");t.src="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js",t.async=!0,t.onerror=function(){document.getElementById("uh-bookcall-loading").innerHTML='Open the booking calendar'},document.body.appendChild(t)}}(),a(g,"display","flex"),document.documentElement.style.setProperty("overflow","hidden","important"),requestAnimationFrame(function(){a(g,"opacity","1"),a(b,"transform","translateY(0)")}),b.focus(),r("book_call_open",{book_call_source:t||"tab"})}function z(){a(g,"opacity","0"),a(b,"transform","translateY(16px)"),setTimeout(function(){a(g,"display","none")},250),document.documentElement.style.removeProperty("overflow"),w&&w.focus&&w.focus()}}()});/* ===== Studio Partnership — Register Interest popup (HubSpot form) ===== Paste into the site-wide JS block. Safe on every page: it exits immediately unless the page contains the #uh-partner-modal popup HTML. */ $(document).ready(function () { (function () { var modal = document.getElementById('uh-partner-modal'); if (!modal) return; document.body.appendChild(modal); // stops parent containers clipping/offsetting the popup var formTarget = document.getElementById('uh-partner-form'); var closeBtn = document.getElementById('uh-partner-modal-close'); var formLoaded = false; var lastFocus = null; // Brand styles injected into HubSpot's form iframe (its default theme sets labels to white) var FORM_CSS = "@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans:ital,wght@0,400;0,500;0,600;1,500&display=swap');" + "body,.hs-form,.hs-form *{font-family:'Zalando Sans',sans-serif !important;}" + ".hs-form label{color:#302924 !important;font-size:14px !important;font-weight:500 !important;margin-bottom:6px !important;}" + ".hs-form label .hs-form-required{color:#65beec !important;}" + ".hs-form .hs-input{width:100% !important;box-sizing:border-box !important;background:#F6F5F2 !important;border:1px solid #DDD6C9 !important;border-radius:12px !important;padding:12px 14px !important;font-size:15px !important;color:#302924 !important;height:auto !important;}" + ".hs-form .hs-input:focus{outline:none !important;border-color:#65beec !important;background:#fff !important;}" + ".hs-form textarea.hs-input{min-height:110px !important;}" + ".hs-form .hs-error-msgs label,.hs-form .hs-error-msg{color:#d9534f !important;font-size:13px !important;font-weight:400 !important;}" + ".hs-form .hs-button{background:#302924 !important;color:#EAFF75 !important;border:0 !important;border-radius:85px !important;padding:15px 34px !important;font-size:16px !important;font-weight:600 !important;cursor:pointer !important;box-shadow:none !important;}" + ".hs-form .hs-button:hover{background:#4a413a !important;}" + ".submitted-message{color:#302924 !important;font-size:16px !important;font-family:'Zalando Sans',sans-serif !important;}"; function styleForm() { var frame = formTarget.querySelector('iframe'); if (!frame) return; try { var doc = frame.contentDocument; if (!doc || doc.getElementById('uh-form-style')) return; var st = doc.createElement('style'); st.id = 'uh-form-style'; st.textContent = FORM_CSS; doc.head.appendChild(st); } catch (e) { /* iframe not accessible — form still works, just unstyled */ } } function loadForm() { if (formLoaded) return; formLoaded = true; function create() { formTarget.innerHTML = ''; window.hbspt.forms.create({ portalId: '21287782', formId: '7637a3a0-013c-4a7f-950c-4a1ad3f18dc2', region: 'na1', target: '#uh-partner-form', onFormReady: function () { styleForm(); setTimeout(styleForm, 300); }, onFormSubmitted: function () { setTimeout(styleForm, 50); } }); } if (window.hbspt && window.hbspt.forms) { create(); return; } var s = document.createElement('script'); s.src = 'https://js.hsforms.net/forms/embed/v2.js'; s.charset = 'utf-8'; s.onload = create; s.onerror = function () { formLoaded = false; formTarget.innerHTML = '

Sorry, the form couldn\'t load. Please refresh the page and try again.

'; }; document.head.appendChild(s); } function openModal(e) { if (e) e.preventDefault(); lastFocus = document.activeElement; loadForm(); modal.style.setProperty('display', 'flex', 'important'); document.body.style.overflow = 'hidden'; if (closeBtn) closeBtn.focus(); } function closeModal() { modal.style.setProperty('display', 'none', 'important'); document.body.style.overflow = ''; if (lastFocus && lastFocus.focus) lastFocus.focus(); } // Any link to #register-interest opens the popup $(document).on('click', 'a[href="#register-interest"]', openModal); if (closeBtn) closeBtn.addEventListener('click', closeModal); modal.addEventListener('click', function (e) { if (e.target === modal) closeModal(); }); document.addEventListener('keydown', function (e) { if (e.key === 'Escape' && modal.style.display === 'flex') closeModal(); }); // Direct link: page-url#register-interest opens the popup on load if (window.location.hash === '#register-interest') openModal(); })(); });