/* layout.css - site header (sticky nav + mobile drawer) and footer. Loaded on every page. */

:root {
  --pb-red: #C4242C;
  --pb-red-dark: #a51d24;
  --pb-ink: #24262b;
  --pb-muted: #6b6e75;
  --pb-line: #ececec;
  --pb-night: #15171c;
  --pb-top-h: 92px;
  --pb-nav-h: 56px;
}

/* Foundation sets html/body height:100%, which stops position:sticky after one screen */
html, body { height: auto; min-height: 100%; }
body.nav-open { overflow: hidden; }

/* ================= HEADER ================= */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: calc(-1 * var(--pb-top-h));   /* top row scrolls away, nav row stays pinned */
  z-index: 1000;
  background: #fff;
  font-family: 'Open Sans', sans-serif;
}
.site-header ul { list-style: none; margin: 0; padding: 0; }
.site-header li { margin: 0; padding: 0; }
.site-header a { text-decoration: none; }
.site-header button,
.site-header button:hover,
.site-header button:focus {
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none;
  font: inherit; color: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.site-header svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.site-header :focus-visible,
.footer-cta :focus-visible,
footer :focus-visible { outline: 2px solid var(--pb-red); outline-offset: 3px; }

.sh-top { border-bottom: 1px solid var(--pb-line); }
.sh-inner {
  max-width: 1180px;
  height: var(--pb-top-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.sh-logo { display: block; line-height: 0; }
.sh-logo img { width: auto; height: 58px; max-width: none; }

.sh-phone {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pb-ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
}
.sh-phone svg {
  box-sizing: content-box;
  width: 16px; height: 16px;
  padding: 10px;
  border-radius: 50%;
  color: var(--pb-red);
  background: rgba(196,36,44,.09);
  transition: background-color .25s ease, color .25s ease;
}
.sh-phone:hover, .sh-phone:focus { color: var(--pb-red); }
.sh-phone:hover svg { background: var(--pb-red); color: #fff; }

.sh-cta {
  order: 3;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  height: 46px;
  border-radius: 6px;
  background: var(--pb-red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(196,36,44,.25);
  transition: background-color .25s ease, transform .25s ease;
}
.sh-cta:hover, .sh-cta:focus { color: #fff; background: var(--pb-red-dark); transform: translateY(-1px); }
.sh-cta-short { display: none; }

.sh-burger { order: 4; display: none !important; }

/* --- Nav row --- */
.sh-nav {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--pb-line);
  transition: box-shadow .3s ease;
}
.site-header.is-stuck .sh-nav { box-shadow: 0 8px 24px rgba(20,22,28,.08); }

.sh-nav-inner {
  max-width: 1180px;
  height: var(--pb-nav-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

/* Mini logo + CTA slide in when the nav is floating */
.sh-mini-logo, .sh-mini-cta {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition: max-width .4s ease, opacity .3s ease, margin .4s ease;
}
.sh-mini-logo { line-height: 0; }
.sh-mini-logo img { height: 34px; width: auto; max-width: none; }
.site-header.is-stuck .sh-mini-logo { max-width: 160px; opacity: 1; margin-right: 24px; }
.sh-mini-cta {
  display: inline-block;
  padding: 0;
  border-radius: 6px;
  background: var(--pb-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 36px;
}
.site-header.is-stuck .sh-mini-cta { max-width: 160px; opacity: 1; margin-left: 24px; padding: 0 18px; }
.sh-mini-cta:hover, .sh-mini-cta:focus { color: #fff; background: var(--pb-red-dark); }

.sh-menu { flex: 1; display: flex; justify-content: center; align-items: center; gap: 30px; }
.sh-menu > li { position: relative; }
.sh-menu > li > a,
.sh-sub-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--pb-nav-h);
  color: #3a3c42 !important;
  font-size: 13px;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.sh-menu > li > a::after,
.sh-sub-toggle::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 2px;
  background: var(--pb-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.sh-menu > li > a:hover, .sh-menu > li.selected > a,
.has-sub:hover > .sh-sub-toggle, .has-sub.selected > .sh-sub-toggle { color: var(--pb-red) !important; }
.sh-menu > li > a:hover::after, .sh-menu > li.selected > a::after,
.has-sub:hover > .sh-sub-toggle::after, .has-sub.selected > .sh-sub-toggle::after { transform: scaleX(1); }

/* chevron */
.sh-sub-toggle { padding-right: 16px !important; }
.sh-sub-toggle::before {
  content: "";
  position: absolute;
  right: 2px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.sh-sub-toggle::after { right: 16px; }

.sh-sub {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  min-width: 210px;
  padding: 8px !important;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(20,22,28,.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover > .sh-sub,
.has-sub:focus-within > .sh-sub,
.has-sub.open > .sh-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: #3a3c42;
  font-size: 14px;
  font-weight: 600;
}
.sh-sub a:hover, .sh-sub li.selected a { background: #f6f5f3; color: var(--pb-red); }

.sh-drawer-head, .sh-drawer-foot { display: none; }
.sh-overlay { display: none; }

@media (min-width: 1200px) and (max-width: 1199px) {
  .sh-menu { gap: 22px; }
  .sh-menu > li > a, .sh-sub-toggle { font-size: 12.5px; letter-spacing: .04em; }
  .site-header.is-stuck .sh-mini-cta { display: none; }
}

/* ================= MOBILE / TABLET HEADER ================= */
@media (max-width: 1199px) {
  :root { --pb-top-h: 68px; }

  .site-header { top: 0; box-shadow: 0 1px 0 var(--pb-line); transition: box-shadow .3s ease; }
  .site-header.is-stuck { box-shadow: 0 8px 22px rgba(20,22,28,.09); }
  .sh-top { border-bottom: 0; }
  .sh-inner { gap: 10px; padding: 0 16px; }

  .sh-logo img { height: 40px; max-width: 40vw; object-fit: contain; object-position: left center; }

  .sh-cta { order: 1; margin: 0 auto; height: 40px; padding: 0 18px; font-size: 13px; box-shadow: none; }
  .sh-cta-long { display: none; }
  .sh-cta-short { display: inline; }

  .sh-phone { order: 2; margin-left: 0; }
  .sh-phone span { display: none; }
  .sh-phone svg { padding: 12px; }

  .sh-burger {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px !important; height: 42px !important;
    border-radius: 50% !important;
    background: var(--pb-ink) !important;
  }
  .sh-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: width .25s ease; }
  .sh-burger span:nth-child(2) { width: 12px; margin-left: 6px; }
  .sh-burger:hover span:nth-child(2) { width: 18px; margin-left: 0; }

  /* Drawer */
  .sh-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 1100;
    width: min(86vw, 380px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 0;
    box-shadow: -20px 0 50px rgba(0,0,0,.18);
    transform: translateX(105%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s;
  }
  body.nav-open .sh-nav { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s; }

  .sh-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15,16,20,.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  body.nav-open .sh-overlay { opacity: 1; pointer-events: auto; }

  .sh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 14px 24px;
    border-bottom: 1px solid var(--pb-line);
  }
  .sh-drawer-logo img { height: 36px; width: auto; max-width: none; }
  .sh-close {
    position: relative;
    width: 42px !important; height: 42px !important;
    border-radius: 50% !important;
    background: #f3f2f0 !important;
    transition: transform .3s ease, background-color .3s ease;
  }
  .sh-close:hover { background: #e9e7e4 !important; transform: rotate(90deg); }
  .sh-close span { position: absolute; left: 12px; top: 20px; width: 18px; height: 2px; border-radius: 2px; background: var(--pb-ink); transform: rotate(45deg); }
  .sh-close span + span { transform: rotate(-45deg); }

  .sh-nav-inner { display: block; height: auto; max-width: none; padding: 10px 0; }
  .sh-mini-logo, .sh-mini-cta { display: none !important; }

  .sh-menu { display: block; }
  .sh-menu > li {
    border-bottom: 1px solid #f1f0ee;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
  }
  body.nav-open .sh-menu > li { opacity: 1; transform: none; }
  body.nav-open .sh-menu > li:nth-child(1) { transition-delay: .10s; }
  body.nav-open .sh-menu > li:nth-child(2) { transition-delay: .15s; }
  body.nav-open .sh-menu > li:nth-child(3) { transition-delay: .20s; }
  body.nav-open .sh-menu > li:nth-child(4) { transition-delay: .25s; }
  body.nav-open .sh-menu > li:nth-child(5) { transition-delay: .30s; }
  body.nav-open .sh-menu > li:nth-child(6) { transition-delay: .35s; }

  .sh-menu > li > a,
  .sh-sub-toggle {
    display: flex;
    width: 100%;
    height: auto;
    padding: 17px 24px !important;
    font-size: 15px;
    letter-spacing: .05em;
  }
  .sh-menu > li > a::after, .sh-sub-toggle::after {
    left: 0; right: auto; top: 14px; bottom: 14px;
    width: 3px; height: auto;
    transform: scaleY(0);
  }
  .sh-menu > li.selected > a::after, .has-sub.selected > .sh-sub-toggle::after { transform: scaleY(1); }
  .sh-menu > li > a:hover::after, .has-sub:hover > .sh-sub-toggle::after { transform: scaleY(1); }
  .sh-sub-toggle::before { right: 28px; }
  .has-sub.open > .sh-sub-toggle::before { transform: rotate(225deg); margin-top: -1px; }

  .sh-sub {
    position: static;
    min-width: 0;
    padding: 0 16px !important;
    border-radius: 0;
    box-shadow: none;
    background: #faf9f7;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }
  .has-sub:hover > .sh-sub, .has-sub:focus-within > .sh-sub { transform: none; }
  .has-sub:not(.open) > .sh-sub { max-height: 0; }
  .has-sub.open > .sh-sub { max-height: 200px; padding: 8px 16px !important; transform: none; }
  .sh-sub a { padding: 12px 16px; font-size: 15px; }

  .sh-drawer-foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 20px 24px 28px;
    background: #f6f5f3;
  }
  .sh-drawer-foot a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
  }
  .sh-drawer-call { background: #fff; color: var(--pb-ink); border: 1px solid #e3e1dd; }
  .sh-drawer-call svg { color: var(--pb-red); }
  .sh-drawer-contact { background: var(--pb-red); color: #fff; }
  .sh-drawer-contact:hover, .sh-drawer-contact:focus { color: #fff; background: var(--pb-red-dark); }

  /* the old floating quick-nav duplicates the new header buttons */
  .quick-nav-wrap { display: none !important; }
}

@media (max-width: 380px) {
  .sh-inner { gap: 8px; padding: 0 12px; }
  .sh-logo img { height: 34px; }
  .sh-cta { padding: 0 14px; }
}

/* Theme rules that pulled content up under the old header */
.slider, .top-bar-section { margin-top: 0 !important; }

/* ================= FOOTER CTA BAND ================= */

.footer-cta {
  clear: both;
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background: var(--pb-red);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.14) 0, rgba(255,255,255,0) 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
  color: #fff;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0 15px;
}
.footer-cta-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.footer-cta h2 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.2; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-btn, .footer-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.footer-cta-btn { background: #fff; color: var(--pb-red); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.footer-cta-btn:hover, .footer-cta-btn:focus { color: var(--pb-red-dark); transform: translateY(-2px); }
.footer-cta-call { color: #fff; border: 1px solid rgba(255,255,255,.6); }
.footer-cta-call svg { width: 18px; height: 18px; fill: currentColor; }
.footer-cta-call:hover, .footer-cta-call:focus { color: var(--pb-red); background: #fff; }

/* ================= FOOTER ================= */

footer {
  float: none;
  clear: both;
  padding: 72px 0 40px;
  background: var(--pb-night);
  color: rgba(255,255,255,.7);
}
footer .row > .column { padding-left: 15px; padding-right: 15px; text-align: left; }

footer .column > h3 {
  position: relative;
  margin: 6px 0 26px;
  padding-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #fff;
}
footer .column > h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--pb-red);
}

/* Logo: the PNG has a white background, so invert it and screen it onto the dark footer */
.footer-logo { display: inline-block; margin-bottom: 18px; line-height: 0; }
.footer-logo img {
  width: 210px;
  max-width: 100%;
  margin: 0 !important;
  filter: grayscale(1) invert(1) brightness(1.4);
  mix-blend-mode: screen;
}
.footer-tagline { max-width: 320px; font-size: 14px !important; line-height: 1.7; color: rgba(255,255,255,.6) !important; }

footer .address p { padding-top: 0 !important; margin-bottom: 16px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.75); }
footer .address a { color: #fff; font-weight: 600; }
footer .address a:hover { color: #fff; text-decoration: underline; }

footer #social-list { margin: 22px 0 0; padding: 0; }
footer #social-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  transition: background-color .25s ease, border-color .25s ease;
}
footer #social-list a:hover { background: #1877f2; border-color: #1877f2; font-weight: inherit; }
footer #social-list .fa-facebook {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

/* Downloads */
footer p.literature-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
footer p.literature-container span.icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px;
  margin: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
footer p.literature-container span.name a {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  transition: color .2s ease;
}
footer p.literature-container span.name a:hover { color: #fff; }
footer p.literature-container:hover span.icon { background: var(--pb-red); }

/* Market news */
footer .blog-post-list-item {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  transition: background-color .25s ease;
}
footer .blog-post-list-item:hover { background: rgba(255,255,255,.08); }
footer .blog-title { margin: 0 0 6px; font-size: 15px; line-height: 1.4; text-transform: none; font-weight: 600; letter-spacing: 0; }
footer .blog-title a { color: #fff; }
footer .blog-post .sml-text { font-size: 12px; color: rgba(255,255,255,.5); }
footer .post-preview { display: none; }
footer a.read-more {
  display: inline-block;
  width: auto; height: auto;
  margin: 8px 0 0;
  padding: 0;
  background: none;
  border-radius: 0;
  line-height: 1.4;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--pb-red);
  filter: brightness(1.35);
}
footer a.read-more::after { content: " →"; transition: margin .2s ease; }
footer a.read-more:hover { background: none; color: #fff; filter: none; }

/* Copyright bar */
.copyright {
  float: none;
  clear: both;
  padding: 18px 0;
  background: #0f1014;
  border-top: 1px solid rgba(255,255,255,.06);
}
.copyright .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 15px;
}
.copyright p, .copyright p a, .copyright ul li a { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
.copyright ul { display: flex; gap: 22px; margin: 0; padding: 0; }
.copyright ul li { float: none; padding: 0; }
.copyright a:hover, .copyright ul li a:hover { color: #fff; text-decoration: none; }

@media (max-width: 640px) {
  .footer-cta { padding: 44px 0; }
  .footer-cta-actions, .footer-cta-btn, .footer-cta-call { width: 100%; justify-content: center; }
  footer { padding: 52px 0 24px; }
  footer .row > .column { margin-bottom: 34px; }
  .copyright .row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .sh-overlay { transition: none !important; }
}

/* ---- Full-width header ---- */
.sh-inner,
.sh-nav-inner { max-width: none; padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); }
.sh-menu { gap: clamp(18px, 2.2vw, 40px); }
.sh-menu > li > a,
.sh-sub-toggle { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1199px) {
  .sh-menu { gap: 18px; }
  .site-header.is-stuck .sh-mini-logo { margin-right: 16px; }
}

/* ---- Keep every nav item on one line ---- */
.sh-menu { flex-wrap: nowrap; min-width: 0; }
.sh-menu > li { flex: 0 0 auto; white-space: nowrap; }
.sh-menu > li > a,
.sh-sub-toggle,
.sh-sub a,
.sh-mini-cta,
.sh-cta { white-space: nowrap !important; }
.sh-mini-logo, .sh-mini-cta { flex: 0 0 auto; }

/* ---- Agency credit ---- */
.copyright li.credit { font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .02em; }
.copyright li.credit a { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); transition: color .2s ease; }
.copyright li.credit a:hover { color: #fff; }

/* ---- Mobile drawer fix: theme's *{margin:0 auto} made every drawer block shrink & centre ---- */
@media (max-width: 1199px) {
  .sh-nav > *,
  .sh-nav-inner > *,
  .sh-menu > li,
  .sh-sub > li,
  .sh-drawer-foot > a { width: 100%; margin-left: 0; margin-right: 0; }
  .sh-drawer-head { margin: 0; flex: none; }
  .sh-drawer-logo { margin: 0; }
  .sh-close { margin: 0; flex: none; }
  .sh-nav-inner { margin: 0; flex: none; }
  .sh-drawer-foot { margin: auto 0 0; flex: none; }
  .sh-sub-toggle { justify-content: flex-start; text-align: left; }
  .sh-menu > li > a, .sh-sub-toggle { box-sizing: border-box; }
  .sh-drawer-foot a { box-sizing: border-box; white-space: nowrap; }
}

/* ---- Burger: no circle, dark lines (red on hover) ---- */
@media (max-width: 1199px) {
  .site-header .sh-burger,
  .site-header .sh-burger:hover,
  .site-header .sh-burger:focus { background: transparent !important; border-radius: 0 !important; width: 40px !important; }
  .sh-burger { align-items: flex-end !important; padding-right: 2px !important; }
  .sh-burger span { width: 24px; height: 2.5px; background: var(--pb-ink); transition: width .25s ease, background-color .25s ease; }
  .sh-burger span:nth-child(2) { width: 16px; margin-left: 0; }
  .sh-burger:hover span { background: var(--pb-red); }
  .sh-burger:hover span:nth-child(2) { width: 24px; }
}

/* ================= INNER PAGE BANNER ================= */
@keyframes pb-hero-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes pb-hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  clear: both;
  display: flex;
  align-items: flex-end;
  min-height: clamp(240px, 24vw, 340px);
  background: #18191e;
  color: #fff;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(.35);
  animation: pb-hero-zoom 14s ease-out both;
}
.page-hero::before {            /* dark-to-red wash for legibility */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(100deg, rgba(14,15,19,.94) 0%, rgba(14,15,19,.82) 42%, rgba(14,15,19,.45) 70%, rgba(150,22,30,.55) 100%);
}
.page-hero::after {             /* thin red line along the bottom */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  z-index: -1;
  background: linear-gradient(90deg, var(--pb-red) 0%, #e8545b 50%, rgba(196,36,44,0) 100%);
}
.page-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px 56px;
}
.page-hero-inner::after {       /* dot grid, top right */
  content: "";
  position: absolute;
  right: 20px; top: 34px;
  width: 140px; height: 90px;
  background-image: radial-gradient(rgba(255,255,255,.28) 1.5px, transparent 1.7px);
  background-size: 14px 14px;
  pointer-events: none;
}

/* Breadcrumbs */
.crumbs { margin: 0 0 20px; animation: pb-hero-rise .7s .1s ease-out both; }
.crumbs ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  max-width: 100%;
  margin: 0;
  padding: 6px 16px 6px 12px;
  list-style: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.crumbs li { display: inline-flex; align-items: center; margin: 0; font-size: 13px; line-height: 1.4; min-width: 0; }
.crumbs li + li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin: 0 12px 0 10px;
  border-top: 1.5px solid rgba(255,255,255,.45);
  border-right: 1.5px solid rgba(255,255,255,.45);
  transform: rotate(45deg);
}
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.72); transition: color .2s ease; }
.crumbs a:hover, .crumbs a:focus { color: #fff; }
.crumbs svg { width: 15px; height: 15px; fill: currentColor; }
.crumbs .crumb-home { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.crumbs li[aria-current] span {
  display: block;
  max-width: 46ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: 600;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: none;
  color: #fff;
  animation: pb-hero-rise .8s .2s ease-out both;
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-top: 20px;
  border-radius: 2px;
  background: var(--pb-red);
}
.page-hero.is-post h1 { max-width: 920px; font-size: clamp(26px, 3.4vw, 42px); }
.page-hero-lead,
.page-hero-meta {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.78);
  animation: pb-hero-rise .8s .3s ease-out both;
}
.page-hero-lead { font-size: 17px; line-height: 1.7; }
.page-hero-meta { font-size: 14px; font-weight: 600; letter-spacing: .02em; }

/* Blog posts: title + date now live in the banner */
.page-hero.is-post ~ .interior_content #catblogoutput > .blog-post > .post-title,
.page-hero.is-post ~ .interior_content #catblogoutput > .blog-post > .post-details { display: none; }

@media (max-width: 641px) {
  .page-hero { min-height: 0; }
  .page-hero-inner { padding: 40px 16px 38px; }
  .page-hero-inner::after { display: none; }
  .crumbs { margin-bottom: 16px; }
  .crumbs ol { padding: 5px 12px 5px 10px; }
  .crumbs li { font-size: 12px; }
  .crumbs li[aria-current] span { max-width: 22ch; }
  .page-hero h1::after { width: 44px; margin-top: 16px; }
  .page-hero-lead { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-bg, .crumbs, .page-hero h1, .page-hero-lead, .page-hero-meta { animation: none; }
}

/* ================= SERVICE-PAGE SIDEBAR ================= */
.sb {
  position: sticky;
  top: calc(var(--pb-nav-h) + 24px);
  margin: 0 0 30px;
  padding: 22px;
  background: #fff;
  border: 1px solid #eeeae5;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(20,22,28,.03), 0 20px 44px rgba(20,22,28,.07);
}
.sb-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px 4px;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pb-red) !important;
}
.sb-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.sb-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.sb-list li { margin: 0; padding: 0; list-style: none; }
.sb-list a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 14px 14px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #faf9f7;
  color: var(--pb-ink);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.sb-list a:hover, .sb-list a:focus {
  background: #fff;
  border-color: #efe9e2;
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(20,22,28,.08);
  color: var(--pb-ink);
}
.sb-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(196,36,44,.09);
  color: var(--pb-red);
  transition: background-color .25s ease, color .25s ease;
}
.sb-ico svg { width: 19px; height: 19px; fill: currentColor; }
.sb-list a:hover .sb-ico { background: var(--pb-red); color: #fff; }
.sb-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; padding-top: 1px; }
.sb-txt strong { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--pb-ink); }
.sb-txt small { font-size: 13px; line-height: 1.5; color: var(--pb-muted); }
.sb-go { flex: none; align-self: center; color: #cbc5be; font-size: 16px; transition: color .25s ease, transform .25s ease; }
.sb-list a:hover .sb-go { color: var(--pb-red); transform: translateX(3px); }

.sb-call {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background-color: var(--pb-red);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 12px);
  color: #fff;
  box-shadow: 0 14px 30px rgba(196,36,44,.32);
  transition: transform .25s ease, background-color .25s ease;
}
.sb-call:hover, .sb-call:focus { color: #fff; background-color: var(--pb-red-dark); transform: translateY(-2px); }
.sb-call-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.sb-call-ico svg { width: 20px; height: 20px; fill: #fff; }
@keyframes pb-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }
.sb-call:hover .sb-call-ico svg { animation: pb-ring 1s ease-in-out; }
.sb-call-txt { display: flex; flex-direction: column; gap: 1px; }
.sb-call-txt small { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.sb-call-txt strong { font-size: 20px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }

@media (max-width: 1023px) {
  .sb { padding: 16px; }
  .sb-call-txt strong { font-size: 17px; }
}
@media (max-width: 640px) {
  .sb { position: static; }
}

/* ================= BLOG LISTING ================= */
.interior_content:has(.bi) {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, #faf8f5 0%, #fff 60%);
}
.blog-container .description:empty { display: none; }
#catblogoutput { display: grid; gap: 18px; }
#catblogoutput > .wrapper, #catblogoutput .clear { display: contents; }

.bi {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 26px 28px 24px 24px;
  background: #fff;
  border: 1px solid #eeeae5;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20,22,28,.03);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .3s ease;
}
.bi::after {                    /* red edge that grows on hover */
  content: "";
  position: absolute;
  left: -1px; top: 22px; bottom: 22px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pb-red);
  transform: scaleY(0);
  transition: transform .35s ease;
}
.bi:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 22px 44px rgba(20,22,28,.09); }
.bi:hover::after { transform: scaleY(1); }

.bi-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 84px;
  height: 92px;
  border-radius: 14px;
  background: #faf6f3;
  border: 1px solid #f0e8e1;
  text-align: center;
  line-height: 1;
  transition: background-color .3s ease, border-color .3s ease;
}
.bi-date strong { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--pb-ink); }
.bi-date span { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pb-red); }
.bi-date em { margin-top: 4px; font-size: 11.5px; font-style: normal; color: #9a9ca3; }
.bi-date-none span { margin: 0; }
.bi:hover .bi-date { background: var(--pb-red); border-color: var(--pb-red); }
.bi:hover .bi-date strong, .bi:hover .bi-date span, .bi:hover .bi-date em { color: #fff; }

.bi-body { min-width: 0; }
.bi h5 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.bi h5 a { color: var(--pb-ink); transition: color .2s ease; }
.bi h5 a:hover { color: var(--pb-red); }
.bi-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; font-size: 13px !important; color: #9a9ca3 !important; }
.bi-meta > * + *::before { content: "•"; margin-right: 14px; color: #d4cec7; }
.bi-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
  font-size: 15px !important;
  line-height: 1.7;
  color: var(--pb-muted) !important;
}
.bi .readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--pb-red);
  transition: gap .25s ease;
}
.bi .readmore:hover { gap: 12px; color: var(--pb-red-dark); }
/* the whole card is clickable */
.bi h5 a::before { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.bi .readmore { position: relative; z-index: 1; }

/* Featured: newest post on the first page */
.bi.is-featured {
  grid-template-columns: 1fr;
  padding: 40px 40px 36px;
  border: 0;
  background: var(--pb-night);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(196,36,44,.55) 0, rgba(196,36,44,0) 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px);
  color: #fff;
}
.bi.is-featured::before {
  content: "Latest";
  position: absolute;
  top: 40px; right: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.bi.is-featured .bi-date {
  flex-direction: row;
  gap: 8px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--pb-red);
}
.bi.is-featured .bi-date strong { font-size: 15px; color: #fff; }
.bi.is-featured .bi-date span, .bi.is-featured .bi-date em { margin: 0; font-size: 13px; color: #fff; }
.bi.is-featured h5 { font-size: clamp(24px, 2.6vw, 32px); }
.bi.is-featured h5 a { color: #fff; }
.bi.is-featured .bi-meta { display: none; }
.bi.is-featured .bi-excerpt { -webkit-line-clamp: 4; color: rgba(255,255,255,.75) !important; font-size: 16px !important; }
.bi.is-featured .readmore { color: #fff; padding: 12px 22px; border-radius: 10px; background: var(--pb-red); }
.bi.is-featured .readmore:hover { color: #fff; background: var(--pb-red-dark); }

/* Pager */
.next-previous-blogs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
}
.bi-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid #e3ded7;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--pb-ink) !important;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
a.bi-pager-btn:hover { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff !important; }
.bi-pager-btn.is-disabled { opacity: .35; }
.bi-pageinfo { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #9a9ca3; }

/* ================= BLOG SIDE PANEL (listings + posts) ================= */
.side-panel { padding-left: 34px; }
.side-panel h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pb-red);
}
.side-panel h4::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.side-panel .BlogRecentPost,
.side-panel .BlogPostArchive {
  margin: 0 0 30px;
  padding: 10px;
  background: #fff;
  border: 1px solid #eeeae5;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(20,22,28,.05);
}
.side-panel ul { margin: 0; padding: 0; list-style: none; }
.side-panel li { margin: 0; padding: 0; list-style: none; border: 0; }
.side-panel .BlogRecentPost li + li { border-top: 1px solid #f2eee9; }
.side-panel .BlogRecentPost a {
  position: relative;
  display: block;
  padding: 12px 30px 12px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--pb-ink);
  transition: background-color .2s ease, color .2s ease;
}
.side-panel .BlogRecentPost a::after { content: "→"; position: absolute; right: 12px; top: 12px; color: #d1cbc4; transition: color .2s ease, transform .2s ease; }
.side-panel .BlogRecentPost a:hover { background: #faf8f5; color: var(--pb-red); }
.side-panel .BlogRecentPost a:hover::after { color: var(--pb-red); transform: translateX(3px); }

.side-panel .BlogPostArchive ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; }
.side-panel .BlogPostArchive a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid #ebe5de;
  border-radius: 999px;
  background: #faf8f5;
  font-size: 13px;
  font-weight: 600;
  color: #4a4c52;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.side-panel .BlogPostArchive a:hover { background: var(--pb-red); border-color: var(--pb-red); color: #fff; }

@media (max-width: 640px) {
  .interior_content:has(.bi) { padding: 44px 0 60px; }
  .bi { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .bi-date { flex-direction: row; gap: 6px; width: auto; height: auto; padding: 6px 12px; justify-self: start; border-radius: 999px; }
  .bi-date strong { font-size: 14px; }
  .bi-date span, .bi-date em { margin: 0; font-size: 12px; }
  .bi.is-featured { padding: 26px 22px; }
  .bi.is-featured::before { top: 26px; right: 22px; }
  .bi h5 { font-size: 18px; }
  .side-panel { padding-left: 15px; margin-top: 40px; }
  .bi-pager-btn { padding: 0 14px; }
}

/* ================= SCROLL TO TOP ================= */
.to-top-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pb-ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20,22,28,.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .25s ease;
}
.to-top-fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top-fab:hover, .to-top-fab:focus { background: var(--pb-red); color: #fff; }
.to-top-fab:focus-visible { outline: 2px solid var(--pb-red); outline-offset: 3px; }
.to-top-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.to-top-fab:hover svg { transform: translateY(-2px); }
.to-top-fab .ring { position: absolute; inset: -4px; width: 58px; height: 58px; transform: rotate(-90deg); pointer-events: none; }
.to-top-fab .ring circle { fill: none; stroke: var(--pb-red); stroke-width: 3; stroke-linecap: round; }
body.nav-open .to-top-fab { opacity: 0; visibility: hidden; }
@media (max-width: 640px) { .to-top-fab { right: 16px; bottom: 16px; width: 46px; height: 46px; } .to-top-fab .ring { width: 54px; height: 54px; } }

/* ================= BLOG POST (article) ================= */
.page-hero.is-post ~ .interior_content {
  padding: 64px 0 90px;
  background: linear-gradient(180deg, #faf8f5 0%, #fff 50%);
}
.page-hero.is-post ~ .interior_content .blog-post {
  padding: 40px 44px 36px;
  background: #fff;
  border: 1px solid #eeeae5;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(20,22,28,.03), 0 24px 50px rgba(20,22,28,.06);
}
.page-hero.is-post ~ .interior_content .post-body {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: #3a3c42;
  overflow-wrap: break-word;
}
.page-hero.is-post ~ .interior_content .post-body p,
.page-hero.is-post ~ .interior_content .post-body li,
.page-hero.is-post ~ .interior_content .post-body span,
.page-hero.is-post ~ .interior_content .post-body div {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 17px !important;
  line-height: 1.85 !important;
  color: #3a3c42 !important;
}
.page-hero.is-post ~ .interior_content .post-body p { margin: 0 0 1.1em; }
.page-hero.is-post ~ .interior_content .post-body strong,
.page-hero.is-post ~ .interior_content .post-body b { color: var(--pb-ink); font-weight: 700; }
.page-hero.is-post ~ .interior_content .post-body h1,
.page-hero.is-post ~ .interior_content .post-body h2,
.page-hero.is-post ~ .interior_content .post-body h3,
.page-hero.is-post ~ .interior_content .post-body h4 {
  margin: 1.6em 0 .6em;
  font-size: 22px !important;
  line-height: 1.3;
  color: var(--pb-ink) !important;
}
.page-hero.is-post ~ .interior_content .post-body a { color: var(--pb-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-hero.is-post ~ .interior_content .post-body ul,
.page-hero.is-post ~ .interior_content .post-body ol { margin: 0 0 1.2em 1.3em; }
.page-hero.is-post ~ .interior_content .post-body blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--pb-red);
  font-style: italic;
}

/* Images: undo the fixed pixel sizes from the old CMS, round them, give them room */
.page-hero.is-post ~ .interior_content .post-body img[class],
.page-hero.is-post ~ .interior_content .post-body img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 8px 0 28px;
  border-radius: 14px;
  float: none !important;
}
/* first image becomes a wide lead image */
.page-hero.is-post ~ .interior_content .post-body > img:first-child,
.page-hero.is-post ~ .interior_content .post-body > p:first-child img,
.page-hero.is-post ~ .interior_content .post-body > p:first-child > a > img {
  width: 100% !important;
  max-height: 440px !important;
  object-fit: cover;
  margin: 0 0 30px;
  box-shadow: 0 18px 40px rgba(20,22,28,.12);
}
.page-hero.is-post ~ .interior_content .post-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.4em; }
.page-hero.is-post ~ .interior_content .post-body td,
.page-hero.is-post ~ .interior_content .post-body th { padding: 8px 12px !important; border: 1px solid #ece7e0 !important; width: auto !important; font-size: 15px !important; }
.page-hero.is-post ~ .interior_content .post-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }

/* Talk-to-Ann box at the end of every post */
.post-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin: 36px 0 0;
  padding: 30px 32px;
  border-radius: 18px;
  background-color: var(--pb-night);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(196,36,44,.5) 0, rgba(196,36,44,0) 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px);
  color: #fff;
}
.post-cta-copy { flex: 1 1 280px; min-width: 0; }
.post-cta-eyebrow { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ff7a80; }
.post-cta h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.3; color: #fff; }
.post-cta p { margin: 0; font-size: 15px !important; line-height: 1.6; color: rgba(255,255,255,.72) !important; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-cta-call, .post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.post-cta-call { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.post-cta-call svg { width: 17px; height: 17px; fill: currentColor; }
.post-cta-call:hover, .post-cta-call:focus { background: #fff; color: var(--pb-ink); }
.post-cta-btn { background: var(--pb-red); color: #fff; }
.post-cta-btn:hover, .post-cta-btn:focus { background: var(--pb-red-dark); color: #fff; transform: translateY(-1px); }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pb-ink);
  transition: gap .25s ease, color .2s ease;
}
.post-back:hover { gap: 12px; color: var(--pb-red); }

@media (max-width: 640px) {
  .page-hero.is-post ~ .interior_content { padding: 36px 0 60px; }
  .page-hero.is-post ~ .interior_content .blog-post { padding: 24px 20px; border-radius: 16px; }
  .page-hero.is-post ~ .interior_content .post-body,
  .page-hero.is-post ~ .interior_content .post-body p,
  .page-hero.is-post ~ .interior_content .post-body li,
  .page-hero.is-post ~ .interior_content .post-body span,
  .page-hero.is-post ~ .interior_content .post-body div { font-size: 16px !important; }
  .post-cta { padding: 24px 20px; }
  .post-cta-actions, .post-cta-call, .post-cta-btn { width: 100%; justify-content: center; }
}

/* ================= RESOURCE LIBRARY (features/downloads) ================= */
.lib {
  position: relative;
  overflow: hidden;
  padding: 72px 0 100px;
  background: linear-gradient(180deg, #faf8f5 0%, #fff 70%);
}
.lib::before {                        /* soft red glow */
  content: "";
  position: absolute;
  top: -160px; right: -180px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,36,44,.09) 0%, rgba(196,36,44,0) 70%);
  pointer-events: none;
}
.lib .row { position: relative; padding: 0 15px; }

/* Intro + stats */
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 28px 48px; margin-bottom: 36px; }
.lib-intro { flex: 1 1 420px; max-width: 620px; }
.lib-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pb-red); }
.lib-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lib-intro h2 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--pb-ink); }
.lib-intro p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--pb-muted); }

.lib-stats { display: flex; gap: 10px; }
.lib-stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 108px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #eeeae5;
  border-radius: 16px;
}
.lib-stats strong { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--pb-ink); }
.lib-stats > div:first-child strong { color: var(--pb-red); }
.lib-stats span { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #9a9ca3; }

/* Toolbar: filter chips + search (sticks under the floating nav) */
.lib-tools {
  position: sticky;
  top: calc(var(--pb-nav-h) + 10px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 40px;
  padding: 10px;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid #eeeae5;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20,22,28,.06);
}
.lib-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lib .lib-chip,
.lib .lib-chip:hover,
.lib .lib-chip:focus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #4a4c52;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lib .lib-chip:hover { background: #f4f1ed; color: var(--pb-ink); }
.lib .lib-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #efebe6;
  font-size: 12px;
  color: #6b6e75;
  transition: background-color .2s ease, color .2s ease;
}
.lib .lib-chip.is-active { background: var(--pb-ink); color: #fff; }
.lib .lib-chip.is-active span { background: var(--pb-red); color: #fff; }
.lib .lib-chip:focus-visible { outline: 2px solid var(--pb-red); outline-offset: 2px; }

.lib-search { position: relative; display: block; flex: 0 1 280px; margin: 0; }
.lib-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #9a9ca3; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.lib .lib-search input {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 14px 0 40px;
  border: 1px solid #e4e0da;
  border-radius: 12px;
  background: #faf9f7;
  box-shadow: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--pb-ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.lib .lib-search input:focus { outline: none; border-color: var(--pb-red); background: #fff; box-shadow: 0 0 0 3px rgba(196,36,44,.12); }

/* Groups */
.lib-group { margin: 0 0 52px; }
.lib-group[hidden] { display: none; }
.lib-group-head { display: flex; align-items: flex-start; gap: 18px; margin: 0 0 20px; }
.lib-group-num {
  flex: none;
  font-size: 44px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px #e0d9d1;
}
.lib-group-head h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--pb-ink); text-transform: none; }
.lib-group-head p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--pb-muted); }

.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lib-item { margin: 0; padding: 0; list-style: none; }
.lib-item[hidden] { display: none; }

.lib-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 18px 18px 16px;
  background: #fff;
  border: 1px solid #eeeae5;
  border-radius: 16px;
  color: var(--pb-ink);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.lib-card:hover, .lib-card:focus { transform: translateY(-3px); border-color: transparent; box-shadow: 0 18px 38px rgba(20,22,28,.10); color: var(--pb-ink); }
.lib-card:focus-visible { outline: 2px solid var(--pb-red); outline-offset: 3px; }

/* File icon: a page with a folded corner and a coloured type tab */
.lib-file {
  --c: var(--pb-red);
  position: relative;
  flex: none;
  width: 46px;
  height: 56px;
  border-radius: 6px 14px 6px 6px;
  background: #f6f3ef;
  clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.lib-file::before {             /* folded corner */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 32%; height: 26%;
  background: linear-gradient(225deg, transparent 50%, rgba(0,0,0,.10) 50%);
}
.lib-file::after {              /* text lines */
  content: "";
  position: absolute;
  left: 9px; right: 11px; top: 14px;
  height: 14px;
  background: repeating-linear-gradient(180deg, #ddd6ce 0 2px, transparent 2px 6px);
}
.lib-file span {
  position: absolute;
  left: -4px; bottom: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--c);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}
.lib-doc .lib-file { --c: #2b5fb5; }
.lib-img .lib-file { --c: #1f8a5b; }
.lib-pdf .lib-file { --c: var(--pb-red); }
.lib-card:hover .lib-file { transform: rotate(-6deg) translateY(-2px); }
/* clip-path hides the tab's overhang, so draw the tab outside the clipped box */
.lib-file { clip-path: none; }
.lib-file::before { border-radius: 0 14px 0 0; }

.lib-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.lib-body strong { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--pb-ink); }
.lib-body small { font-size: 12.5px; color: #9a9ca3; }

.lib-action {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f4f1ed;
  color: var(--pb-ink);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.lib-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lib-action-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lib-card:hover .lib-action { background: var(--pb-red); color: #fff; }
@keyframes pb-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.lib-doc:hover .lib-action svg { animation: pb-nudge .8s ease-in-out infinite; }

/* Buyer guides get a warmer, featured treatment */
.lib-group[data-cat="guides"] .lib-card { background: linear-gradient(135deg, #fff 0%, #fdf7f6 100%); border-color: #f3e3e1; }

.lib-empty { padding: 40px 0; text-align: center; font-size: 16px; color: var(--pb-muted); }
.lib-empty[hidden] { display: none; }

@media (max-width: 1023px) {
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lib { padding: 44px 0 70px; }
  .lib-stats { width: 100%; }
  .lib-stats > div { flex: 1; min-width: 0; padding: 12px 14px; }
  .lib-stats strong { font-size: 24px; }
  .lib-tools { position: static; padding: 8px; }
  .lib-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .lib-chips::-webkit-scrollbar { display: none; }
  .lib .lib-chip { flex: none; }
  .lib-search { flex: 1 1 100%; }
  .lib-grid { grid-template-columns: 1fr; }
  .lib-group-num { font-size: 34px; }
}

/* ---- Footer Facebook button: clean hover (no underline / bold jump) ---- */
footer #social-list a,
footer #social-list a:hover,
footer #social-list a:focus {
  text-decoration: none !important;
  font-weight: 600 !important;
  color: #fff;
}
footer #social-list a { transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
footer #social-list a:hover,
footer #social-list a:focus { background: rgba(24,119,242,.16); border-color: #1877f2; transform: translateY(-1px); }
footer #social-list .fa-facebook { transition: background-color .25s ease, color .25s ease; }
footer #social-list a:hover .fa-facebook,
footer #social-list a:focus .fa-facebook { background: #1877f2; color: #fff; }

/* ================= HEADER v2: ONE ROW, FULL WIDTH (desktop >= 1200px) =================
   Logo | menu (centred in the free space) | phone | Get in Touch.
   Below 1200px the burger/drawer header takes over, so nothing can collide. */
@media (min-width: 1200px) {
  :root { --pb-nav-h: 84px; }
  .site-header {
    top: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--pb-nav-h);
    padding: 0 clamp(20px, 3vw, 48px);
    border-bottom: 1px solid var(--pb-line);
    transition: height .3s ease, box-shadow .3s ease;
  }
  .site-header.is-stuck { --pb-nav-h: 70px; box-shadow: 0 8px 24px rgba(20,22,28,.08); }
  .sh-top, .sh-inner { display: contents; }

  .sh-logo { order: 1; flex: 0 0 auto; }
  .sh-logo img { height: 52px; transition: height .3s ease; }
  .site-header.is-stuck .sh-logo img { height: 44px; }

  .sh-nav { order: 2; flex: 1 1 auto; min-width: 0; background: none; border: 0; box-shadow: none !important; }
  .site-header.is-stuck .sh-nav { box-shadow: none; }
  .sh-nav-inner { height: auto; max-width: none; margin: 0; padding: 0; justify-content: center; }
  .sh-mini-logo, .sh-mini-cta { display: none !important; }
  .sh-menu { flex: 0 1 auto; gap: 26px; }
  .sh-menu > li > a, .sh-sub-toggle { height: var(--pb-nav-h); font-size: 13px; letter-spacing: .05em; transition: color .2s ease, height .3s ease; }
  .sh-menu > li > a::after, .sh-sub-toggle::after { bottom: calc(var(--pb-nav-h) / 2 - 18px); }

  .sh-phone { order: 3; flex: 0 0 auto; margin-left: 0; font-size: 16px; }
  .sh-phone span { display: none; }            /* icon only until there is room for the number */
  .sh-cta { order: 4; flex: 0 0 auto; height: 44px; padding: 0 22px; }
  .site-header.is-stuck .sh-cta { height: 40px; }
}
/* Tighter menu between 1200 and 1359px */
@media (min-width: 1200px) and (max-width: 1359px) {
  .site-header { gap: 20px; }
  .sh-logo img { height: 46px; }
  .site-header.is-stuck .sh-logo img { height: 40px; }
  .sh-menu { gap: 18px; }
  .sh-menu > li > a, .sh-sub-toggle { font-size: 12.5px; letter-spacing: .03em; }
  .sh-cta { padding: 0 18px; font-size: 13px; }
}
/* Wide screens: show the phone number next to its icon */
@media (min-width: 1580px) {
  .sh-phone span { display: inline; }
  .sh-menu { gap: 34px; }
}
@media (min-width: 1200px) and (max-width: 1359px) {
  .sh-menu { gap: 15px; }
  .sh-menu > li > a, .sh-sub-toggle { font-size: 12px; letter-spacing: .02em; }
}

/* ================= HEADER SEARCH BUTTON ================= */
.site-header .sh-search,
.site-header .sh-search:hover,
.site-header .sh-search:focus {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #f4f1ed !important;
  color: var(--pb-ink) !important;
  transition: background-color .25s ease, color .25s ease;
}
.site-header .sh-search:hover,
.site-header .sh-search:focus-visible { background: var(--pb-ink) !important; color: #fff !important; }
.site-header .sh-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (min-width: 1200px) { .sh-search { order: 3; } .sh-phone { order: 4; } .sh-cta { order: 5; } }
@media (max-width: 1199px) { .sh-search { order: 2; } .sh-phone { order: 3; } .sh-burger { order: 4; } }
/* small phones: keep everything on one row */
@media (max-width: 420px) {
  .sh-inner { gap: 6px; padding: 0 10px; }
  .sh-logo img { max-width: 30vw; height: 36px; }
  .sh-cta { padding: 0 12px; height: 38px; font-size: 12.5px; }
  .site-header .sh-search, .site-header .sh-search:hover, .site-header .sh-search:focus { width: 36px !important; height: 36px !important; }
  .sh-phone svg { padding: 10px; width: 16px; height: 16px; }
  .sh-burger { width: 34px !important; }
}

/* ================= SEARCH MODAL ================= */
body.sx-open { overflow: hidden; }
.sx { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.sx[hidden] { display: none; }
.sx-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,15,19,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease;
}
.sx-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(-12px) scale(.98);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  font-family: 'Open Sans', sans-serif;
}
.sx.is-open .sx-backdrop { opacity: 1; }
.sx.is-open .sx-panel { opacity: 1; transform: none; }

.sx-bar { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; border-bottom: 1px solid #efebe6; }
.sx-bar > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--pb-red); stroke-width: 2.2; stroke-linecap: round; }
.sx .sx-input,
.sx .sx-input:focus {
  flex: 1;
  min-width: 0;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 18px;
  color: var(--pb-ink);
}
.sx .sx-input::placeholder { color: #a3a5ab; }
.sx .sx-input::-webkit-search-cancel-button { display: none; }
.sx .sx-close,
.sx .sx-close:hover,
.sx .sx-close:focus {
  flex: none;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e3ded7;
  border-radius: 8px;
  background: #faf8f5;
  box-shadow: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #6b6e75;
  cursor: pointer;
}
.sx .sx-close:hover { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }

.sx-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 12px; }
.sx-group { padding: 6px 0; }
.sx-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a9ca3;
}
.sx-label span { padding: 1px 7px; border-radius: 999px; background: #f2eee9; font-size: 11px; letter-spacing: 0; color: #6b6e75; }

.sx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--pb-ink);
  text-decoration: none;
}
.sx-item:hover, .sx-item:focus, .sx-item.is-active { background: #faf6f3; color: var(--pb-ink); outline: none; }
.sx-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #f4f1ed;
  color: #6b6e75;
  transition: background-color .15s ease, color .15s ease;
}
.sx-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-page .sx-ico svg { fill: currentColor; stroke: none; }
.sx-item.is-active .sx-ico { background: var(--pb-red); color: #fff; }
.sx-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sx-txt strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 700; }
.sx-txt small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: #8a8d94; }
.sx-item mark { padding: 0 1px; border-radius: 3px; background: rgba(196,36,44,.14); color: inherit; }
.sx-go { flex: none; color: #d1cbc4; opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.sx-item.is-active .sx-go { opacity: 1; transform: none; color: var(--pb-red); }

.sx-empty { display: flex; flex-direction: column; gap: 6px; padding: 40px 20px; text-align: center; }
.sx-empty strong { font-size: 16px; color: var(--pb-ink); }
.sx-empty span { font-size: 14px; color: #8a8d94; }
.sx-empty a { color: var(--pb-red); font-weight: 700; }

@keyframes sx-dot { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.sx-loading { display: flex; justify-content: center; gap: 6px; padding: 40px; }
.sx-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--pb-red); animation: sx-dot 1s infinite; }
.sx-loading span:nth-child(2) { animation-delay: .15s; }
.sx-loading span:nth-child(3) { animation-delay: .3s; }

.sx-foot { display: flex; align-items: center; gap: 18px; padding: 10px 20px; border-top: 1px solid #efebe6; background: #faf9f7; font-size: 12px; color: #8a8d94; }
.sx-foot .sx-count { margin-left: auto; font-weight: 600; }
.sx-foot kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-right: 4px;
  padding: 0 4px;
  border: 1px solid #e3ded7;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font-family: inherit;
  font-size: 11px;
  color: #4a4c52;
}

@media (max-width: 640px) {
  .sx { padding: 0; align-items: stretch; }
  .sx-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .sx .sx-input { height: 58px; font-size: 16px; }
  .sx-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-backdrop, .sx-panel { transition: none; }
}

/* ---- Search modal fix: theme's *{margin:0 auto} centred everything inside it ---- */
.sx *, .sx *::before, .sx *::after { margin: 0; }
.sx-panel { margin: 0 auto; text-align: left; }
.sx-bar, .sx-body, .sx-foot, .sx-group, .sx-label, .sx-item { width: 100%; }
.sx-txt { text-align: left; align-items: flex-start; }
.sx-txt strong, .sx-txt small { display: block; max-width: 100%; }
.sx-label { justify-content: flex-start; }
.sx-foot .sx-count { margin-left: auto; }
.sx-foot kbd { margin-right: 4px; }
.sx-foot > span { display: inline-flex; align-items: center; }

/* ---- Search modal: round X close button on the far right ---- */
.sx-bar { padding: 0 12px 0 20px; }
.sx .sx-input { flex: 1 1 auto; width: 100%; }
.sx .sx-close,
.sx .sx-close:hover,
.sx .sx-close:focus {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f1ed;
  color: var(--pb-ink);
  transition: background-color .2s ease, color .2s ease, transform .25s ease;
}
.sx .sx-close:hover,
.sx .sx-close:focus-visible { background: var(--pb-ink); color: #fff; transform: rotate(90deg); }
.sx .sx-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---- Header v3: bigger logo at the same height; slimmer bar once scrolled ---- */
.sh-logo img { transition: height .3s ease, max-width .3s ease; }
@media (min-width: 1200px) {
  .sh-logo img { height: 64px; }
  .site-header.is-stuck { --pb-nav-h: 60px; }
  .site-header.is-stuck .sh-logo img { height: 46px; }
  .site-header.is-stuck .sh-cta { height: 38px; }
  .site-header.is-stuck .sh-search { width: 36px !important; height: 36px !important; }
  .site-header.is-stuck .sh-phone svg { padding: 8px; }
}
@media (min-width: 1200px) and (max-width: 1359px) {
  .sh-logo img { height: 58px; }
  .site-header.is-stuck .sh-logo img { height: 42px; }
}
@media (max-width: 1199px) {
  .sh-inner { transition: height .3s ease; }
  .sh-logo img { height: 50px; max-width: 46vw; }
  .site-header.is-stuck .sh-inner { height: 56px; }
  .site-header.is-stuck .sh-logo img { height: 38px; }
}
@media (max-width: 420px) {
  .sh-logo img { height: 42px; max-width: 34vw; }
  .site-header.is-stuck .sh-logo img { height: 34px; }
}
