/* ---- Block markup -------------------------------------------------------
   style.css holds the original Hubbard design. These rules adapt it to the
   markup WordPress blocks produce, so pages can be edited block by block.
   ------------------------------------------------------------------------ */
body{margin:0;background:#F5F4F0;--bwdvs-font:'Montserrat',sans-serif}
.editor-styles-wrapper{background:#F5F4F0}
:is(.hb,.editor-styles-wrapper){--arr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E")}

/* Scroll-in animation, set with the classes "reveal" and "d-80" etc. */
.hb.anim .reveal{opacity:0;transform:translateY(20px)}
.hb.anim .reveal.in{opacity:1;transform:none;transition:opacity .9s var(--ease),transform .9s var(--ease);transition-delay:var(--d,0ms)}
.hb.anim .hero-img.reveal{transform:none}
.hb.anim .hero-img.reveal img{--sc:1.14}
.hb.anim .hero-img.reveal.in img{--sc:1.04;transition:transform 2s var(--ease)}
:is(.hb,.editor-styles-wrapper) .d-80{--d:80ms}:is(.hb,.editor-styles-wrapper) .d-120{--d:120ms}:is(.hb,.editor-styles-wrapper) .d-140{--d:140ms}:is(.hb,.editor-styles-wrapper) .d-160{--d:160ms}:is(.hb,.editor-styles-wrapper) .d-200{--d:200ms}:is(.hb,.editor-styles-wrapper) .d-240{--d:240ms}:is(.hb,.editor-styles-wrapper) .d-260{--d:260ms}:is(.hb,.editor-styles-wrapper) .d-300{--d:300ms}:is(.hb,.editor-styles-wrapper) .d-320{--d:320ms}:is(.hb,.editor-styles-wrapper) .d-420{--d:420ms}:is(.hb,.editor-styles-wrapper) .d-520{--d:520ms}

/* Section spacing that used to be inline styles */
:is(.hb,.editor-styles-wrapper) section.pt-24{padding-top:24px}
:is(.hb,.editor-styles-wrapper) section.pt-48{padding-top:48px}
:is(.hb,.editor-styles-wrapper) .contact-grid.mt-24{margin-top:24px}

/* Header: the menu is a Navigation block */
.hb-header .hb-menu{display:flex;align-items:center}
.hb-header nav .current-menu-item>a::after{transform:scaleX(1)}
.hb-header nav li.is-btn>a{padding:0 22px}
.hb-header nav li.is-btn>a::after{display:none}
.hb-header nav li.is-btn>a:hover{color:#fff}
.hb-header .hb-nav a{min-height:44px}
@media (max-width:860px){.hb-header nav ul li.is-btn{margin-top:8px}}

/* Buttons block: the look sits on the link inside */
:is(.hb,.editor-styles-wrapper) .wp-block-buttons{display:flex;gap:14px;flex-wrap:wrap}
:is(.hb,.editor-styles-wrapper) .is-btn>a{display:inline-flex;align-items:center;gap:10px;min-height:48px;background:var(--primary);color:#fff;padding:0 28px;border-radius:999px;font-weight:700;font-size:14px;letter-spacing:.05em;text-decoration:none;border:2px solid var(--primary);cursor:pointer;font-family:inherit;transition:background .25s,border-color .25s,transform .25s var(--ease),box-shadow .25s}
:is(.hb,.editor-styles-wrapper) .is-btn>a:hover{background:var(--accent);border-color:var(--accent);box-shadow:0 12px 24px -14px rgba(0,113,122,.8)}
:is(.hb,.editor-styles-wrapper) .is-btn>a:active{transform:translateY(1px)}
:is(.hb,.editor-styles-wrapper) .is-btn:not(.is-ghost)>a:focus-visible{outline-color:#fff;box-shadow:0 0 0 6px var(--accent)}
:is(.hb,.editor-styles-wrapper) .is-btn.is-ghost>a{background:transparent;color:var(--primary)}
:is(.hb,.editor-styles-wrapper) .is-btn.is-ghost>a:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
:is(.hb,.editor-styles-wrapper) .is-btn.is-light>a{background:#fff;color:var(--primary);border-color:#fff}
:is(.hb,.editor-styles-wrapper) .is-btn.is-light>a:hover{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--primary);box-shadow:none}
:is(.hb,.editor-styles-wrapper) .has-arrow>a::after,:is(.hb,.editor-styles-wrapper) .is-more>a::after{content:"";width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:var(--arr) center/contain no-repeat;mask:var(--arr) center/contain no-repeat;transition:transform .3s var(--ease)}
:is(.hb,.editor-styles-wrapper) .has-arrow>a:hover::after,:is(.hb,.editor-styles-wrapper) .is-more>a:hover::after{transform:translateX(5px)}

/* "See all ..." links */
:is(.hb,.editor-styles-wrapper) .is-more>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;font-size:14px;letter-spacing:.05em;text-decoration:none;color:var(--primary);border-bottom:2px solid var(--accent)}
:is(.hb,.editor-styles-wrapper) .is-more>a:hover{color:var(--accent)}
:is(.hb,.editor-styles-wrapper) .sec-head .is-more{margin-bottom:4px}
:is(.hb,.editor-styles-wrapper) .why .is-more>a{color:#fff;border-color:var(--accent-soft)}
:is(.hb,.editor-styles-wrapper) .why .is-more>a:hover{color:var(--accent-soft)}

/* Hero photo */
:is(.hb,.editor-styles-wrapper) .hero-img figure{height:100%;transform:none;will-change:auto}
:is(.hb,.editor-styles-wrapper) .hero-img img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 12.1%;transform:translate3d(0,var(--py,0px),0) scale(var(--sc,1.04));will-change:transform}

/* Photos that fill their card */
:is(.hb,.editor-styles-wrapper) figure.bgimg{position:absolute;inset:0}
:is(.hb,.editor-styles-wrapper) figure.bgimg img{display:block;width:100%;height:100%;object-fit:cover}
:is(.hb,.editor-styles-wrapper) figure.pos-cottage img{object-position:50% 55%}
:is(.hb,.editor-styles-wrapper) .card .cap p+p{display:block;font-weight:500;color:var(--muted);font-size:13px}

/* Why Hubbard cards */
:is(.hb,.editor-styles-wrapper) .stat .stat-t{display:block;margin-top:0;font-size:20px;font-weight:700;color:var(--accent-soft)}

/* Block editor: show the design while editing */
.editor-styles-wrapper .hb-h1 .hl,.editor-styles-wrapper .reveal{opacity:1!important;transform:none!important}

/* Page not found */
:is(.hb,.editor-styles-wrapper) .notfound h1{font-size:clamp(36px,5.2vw,64px);font-weight:800;line-height:1.05}
:is(.hb,.editor-styles-wrapper) .notfound .wp-block-buttons{margin-top:28px}

/* Numbers, tags and labels that used to be <span>s are paragraphs now:
   keep the "every paragraph in here" rules from restyling them. */
:is(.hb,.editor-styles-wrapper) .step p.n,:is(.hb,.editor-styles-wrapper) .row-item p.n{margin-top:0;font-size:14px;font-weight:800;letter-spacing:.2em;color:var(--accent)}
:is(.hb,.editor-styles-wrapper) .work .chip{margin-top:0}

/* Footer legal links (Privacy, Cookies, Terms, Accessibility, Disclaimer) */
:is(.hb,.editor-styles-wrapper) .hb-footer .legal-links ul{display:flex;flex-wrap:wrap;gap:4px 20px;list-style:none}
:is(.hb,.editor-styles-wrapper) .hb-footer .legal-links a,:is(.hb,.editor-styles-wrapper) .hb-footer .legal-links button{display:inline-flex;align-items:center;min-height:32px;color:#fff;font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px}
:is(.hb,.editor-styles-wrapper) .hb-footer .legal-links button{background:none;border:0;padding:0;cursor:pointer}
:is(.hb,.editor-styles-wrapper) .hb-footer .legal-links button[hidden]{display:none}
:is(.hb,.editor-styles-wrapper) .hb-footer .legal-links a:hover,:is(.hb,.editor-styles-wrapper) .hb-footer .legal-links button:hover{color:var(--accent-soft)}

/* Policy pages: long text set in the class "doc" */
:is(.hb,.editor-styles-wrapper) .doc{max-width:72ch;padding:8px 0 96px}
:is(.hb,.editor-styles-wrapper) .doc .updated{font-size:14px;color:var(--muted);margin-bottom:24px}
:is(.hb,.editor-styles-wrapper) .doc h2{font-size:clamp(22px,2.4vw,28px);line-height:1.2;margin:40px 0 12px}
:is(.hb,.editor-styles-wrapper) .doc h3{font-size:18px;line-height:1.3;margin:24px 0 8px}
:is(.hb,.editor-styles-wrapper) .doc p,:is(.hb,.editor-styles-wrapper) .doc li{color:var(--text)}
:is(.hb,.editor-styles-wrapper) .doc p{margin:0 0 14px}
:is(.hb,.editor-styles-wrapper) .doc ul{list-style:disc;padding-left:1.3em;margin:0 0 14px}
:is(.hb,.editor-styles-wrapper) .doc li{margin:0 0 6px}
:is(.hb,.editor-styles-wrapper) .doc a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
:is(.hb,.editor-styles-wrapper) .doc a:hover{color:var(--primary)}
:is(.hb,.editor-styles-wrapper) .doc table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:15px}
:is(.hb,.editor-styles-wrapper) .doc th,:is(.hb,.editor-styles-wrapper) .doc td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--line)}
:is(.hb,.editor-styles-wrapper) .doc th{font-weight:700}
@media (max-width:600px){:is(.hb,.editor-styles-wrapper) .doc table,:is(.hb,.editor-styles-wrapper) .doc tbody,:is(.hb,.editor-styles-wrapper) .doc tr,:is(.hb,.editor-styles-wrapper) .doc th,:is(.hb,.editor-styles-wrapper) .doc td{display:block}:is(.hb,.editor-styles-wrapper) .doc thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}:is(.hb,.editor-styles-wrapper) .doc td{border:0;padding:4px 0}:is(.hb,.editor-styles-wrapper) .doc tr{border-bottom:1px solid var(--line);padding:10px 0}}
