/* ============================================================
   brand.css — harmony layer for legacy markup
   Loaded AFTER style.css / ui.css on every page that still
   carries inline-styled content (1,444 blog posts, service
   pages, city template). It does not lay out; it re-skins.
   ============================================================ */

:root{
  --ink:#0A1628;
  --ink-soft:#1B2A44;
  --paper:#F6F4EF;
  --paper-2:#EFEBE2;
  --brass:#C2A24C;
  --ash:#5B6472;
  --rule:rgba(10,22,40,.14);
  --serif:"Fraunces","Playfair Display",Georgia,serif;
  --sans:"Instrument Sans","Inter",system-ui,sans-serif;
}

/* ---------- page canvas ---------- */
body{background:var(--paper);color:var(--ink);font-family:var(--sans)}

/* ---------- display type on legacy content ---------- */
.entry-content h1,.post h1,article h1,main h1,
.ps-nav ~ * h1{font-family:var(--serif);font-variation-settings:"SOFT" 20,"WONK" 1;letter-spacing:-.02em;line-height:1.1;color:var(--ink)}

.entry-content h2,.post h2,article h2,main h2,
.entry-content h3,.post h3,article h3,main h3{
  font-family:var(--serif);color:var(--ink);letter-spacing:-.01em;line-height:1.2;
  font-variation-settings:"SOFT" 20
}
.entry-content h2,.post h2,article h2,main h2{
  margin-top:2.6em;padding-top:1.1em;border-top:1px solid var(--rule)
}
.entry-content h3,.post h3,article h3,main h3{margin-top:1.9em;font-size:1.22rem}

/* ---------- body copy ---------- */
.entry-content p,.post p,article p,main p{
  font-family:var(--sans);color:var(--ink-soft);
  font-size:1.0625rem;line-height:1.78;letter-spacing:-.005em
}
.entry-content li,.post li,article li,main li{color:var(--ink-soft);line-height:1.75;font-size:1.0625rem}
.entry-content strong,.post strong,article strong{color:var(--ink);font-weight:600}

/* kill the old inline dark-blue used throughout */
[style*="#1e3a5f"]{color:var(--ink)!important}
[style*="#c9a84c"]{color:#8A6C2A!important}

/* ---------- links ---------- */
.entry-content a,.post a,article a,main a{color:var(--ink);text-decoration:underline;text-decoration-color:rgba(194,162,76,.55);text-underline-offset:3px;text-decoration-thickness:1px}
.entry-content a:hover,.post a:hover,article a:hover,main a:hover{color:#8A6C2A;text-decoration-color:#8A6C2A}

/* ---------- tables ---------- */
.entry-content table,.post table,article table,main table{border-collapse:collapse;width:100%;margin:1.6em 0;font-size:.95rem}
.entry-content th,.post th,article th,main th{background:transparent;border-bottom:1px solid var(--ink);text-align:left;font-family:var(--sans);font-weight:600;letter-spacing:.02em;text-transform:uppercase;font-size:.72rem;padding:.7rem .6rem;color:var(--ink)}
.entry-content td,.post td,article td,main td{border-bottom:1px solid var(--rule);padding:.75rem .6rem;color:var(--ink-soft);vertical-align:top}

/* ---------- blockquote ---------- */
.entry-content blockquote,.post blockquote,article blockquote,main blockquote{
  margin:2em 0;padding:.2em 0 .2em 1.4em;border-left:2px solid var(--brass);
  font-family:var(--serif);font-size:1.2rem;line-height:1.55;color:var(--ink)
}

/* ---------- legacy callouts / boxes ---------- */
.entry-content .box,.post .box,.highlight-box,div[style*="border-left:4px solid #c9a84c"]{
  background:#FBFAF6!important;border-left:2px solid var(--brass)!important;border-radius:0!important;padding:1.5rem 1.6rem!important;margin:2em 0!important
}
div[style*="border-left:4px solid #c9a84c"] h2{font-family:var(--serif)!important;color:var(--ink)!important;font-size:1.35rem!important}
div[style*="border-left:4px solid #c9a84c"] p{color:var(--ash)!important}

/* ---------- FAQ details blocks that survived ---------- */
details{border:1px solid var(--rule)!important;border-radius:2px!important;background:#fff!important;padding:1rem 1.15rem!important;margin:1rem 0!important}
summary{font-family:var(--serif)!important;font-size:1.05rem!important;color:var(--ink)!important;font-weight:500!important}
summary::marker{color:var(--brass)}
details p{color:var(--ash)!important;font-size:.98rem!important}

/* ---------- old buttons / CTAs ---------- */
a[style*="background:#1e3a5f"],a[style*="background: #1e3a5f"],a.cta,.btn-primary{
  background:var(--ink)!important;color:#fff!important;border-radius:2px!important;
  padding:.85rem 1.4rem!important;font-family:var(--sans)!important;font-weight:500!important;
  letter-spacing:.01em!important;text-decoration:none!important;display:inline-block
}

/* ---------- hide legacy chrome (posts get the new header/footer) ---------- */
header.ps-header,.ps-nav,.ps-footer,footer.ps-footer,#sticky-cta,#main-nav,.top-bar,.mobile-bar{
  /* only on legacy post pages, scoped by the .pslegacy class injected with the chrome */
}
body.pslegacy header.ps-header,
body.pslegacy .ps-nav,
body.pslegacy nav.ps-nav,
body.pslegacy footer:not(.site-foot),
body.pslegacy .site-footer{display:none!important}

/* reading measure for legacy articles */
body.pslegacy .entry-content,body.pslegacy article,body.pslegacy main{max-width:760px;margin-inline:auto;padding-inline:clamp(1.1rem,4vw,2rem)}
body.pslegacy img{max-width:100%;height:auto;border-radius:2px}

/* ---------- focus + motion ---------- */
:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* ---------- legacy floating CTAs duplicate the sticky bar ---------- */
@media (max-width:1000px){
  .fixed.bottom-6.right-6,
  .fixed.bottom-4.right-4,
  .whatsapp-float,.wa-float{display:none!important}
}

/* ---------- burger must be visible over legacy button styles ---------- */
.burger{background:transparent!important;border:1px solid var(--rule)!important}
.burger span{background:var(--ink)!important;height:1px!important;width:20px!important;display:block!important}