/* Wilson Management — CRO / UX enhancement layer.
   Own stylesheet (NOT the purged theme CSS), so these rules are safe from
   Tailwind purge. Brand: navy #012F4C, accent #4788B1. */

/* ---- Sticky header polish -------------------------------------------------
   The theme already toggles #topNav.scrolled (position:fixed) on scroll via
   script.js, but it pins at top:36px leaving a gap. Sit it flush at the top,
   and make sure the always-visible "Contact Us" CTA stays prominent. */
#topNav.scrolled {
  top: 0 !important;
}
#topNav.scrolled .nav-cta,
#topNav.scrolled a[href="/contact-us"] {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ---- Persistent mobile click-to-call bar ---------------------------------- */
.wm-callbar {
  display: none;
}
@media (max-width: 1023px) {
  .wm-callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.18);
  }
  .wm-callbar a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 8px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    color: #fff !important;
    text-decoration: none;
  }
  .wm-callbar .wm-call {
    background: #012f4c;
  }
  .wm-callbar .wm-quote {
    background: #4788b1;
  }
  .wm-callbar svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
  }
  /* Keep the bar from covering the last of the footer. */
  body {
    padding-bottom: 54px;
  }
}

/* ---- Homepage trust strip ------------------------------------------------- */
.wm-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  max-width: 1000px;
  margin: 34px auto 0;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(3px);
}
.wm-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.wm-trust__stars {
  color: #f5b301;
  font-size: 17px;
  letter-spacing: 1px;
}
.wm-trust a.wm-trust__item:hover {
  text-decoration: underline;
}
.wm-trust__sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
}
@media (max-width: 640px) {
  .wm-trust {
    gap: 8px 16px;
    padding: 14px 16px;
  }
  .wm-trust__item {
    font-size: 13.5px;
  }
  .wm-trust__sep {
    display: none;
  }
}

/* ---- Blog author byline + author bio box (E-E-A-T) ------------------------ */
.wm-byline {
  color: #4788b1;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 20px;
}
.wm-byline a {
  color: #012f4c;
  text-decoration: none;
}
.wm-byline a:hover {
  text-decoration: underline;
}
.wm-authorbox {
  margin: 40px 0 8px;
  padding: 20px 24px;
  background: #f5f8fb;
  border-left: 4px solid #4788b1;
  border-radius: 8px;
}
.wm-authorbox h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #012f4c;
}
.wm-authorbox p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #33414f;
}
.wm-authorbox p:last-child {
  margin-bottom: 0;
}
.wm-authorbox a {
  color: #4788b1;
  font-weight: 600;
  text-decoration: none;
}
.wm-authorbox a:hover {
  text-decoration: underline;
}

/* ---- Mobile overflow guards ---------------------------------------------- */
/* Embedded iframes (Google Maps, etc.) must never exceed the viewport width. */
iframe {
  max-width: 100%;
}
/* Long source URLs / citations in article + page content must wrap, not push
   the whole page wider than the screen. */
.default-page,
.inner-pages-main-content {
  overflow-wrap: break-word;
}
.default-page a,
.inner-pages-main-content a,
.wm-authorbox a,
.wm-byline a {
  overflow-wrap: anywhere;
}

/* ---- Mobile hero: keep the heading + subtitle from overflowing ----------- */
@media (max-width: 767px) {
  .wm-hero-h1 {
    font-size: clamp(24px, 8vw, 34px) !important;
    line-height: 1.18 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .wm-hero-sub {
    font-size: clamp(15px, 4.4vw, 19px) !important;
    line-height: 1.4 !important;
    overflow-wrap: break-word;
  }
  /* Safety net for inner-page banner headings on very small screens. */
  h1.banner-heading {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ---- Blog index: category card grids (rows of 3) ------------------------- */
.wm-bloggrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0 36px;
}
.wm-blogcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 118px;
  padding: 20px 22px;
  background: #f5f8fb;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.wm-blogcard:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(1, 47, 76, 0.1);
  transform: translateY(-2px);
}
.wm-blogcard__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #012f4c;
}
.wm-blogcard__more {
  font-size: 13px;
  font-weight: 600;
  color: #4788b1;
}
@media (max-width: 1023px) {
  .wm-bloggrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .wm-bloggrid {
    grid-template-columns: 1fr;
  }
}

/* ---- About-page experience / credentials band ---------------------------- */
.wm-exp {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 30px;
}
.wm-exp__item {
  flex: 1 1 150px;
  background: #f5f8fb;
  border: 1px solid #e6eef5;
  border-radius: 10px;
  padding: 16px 18px;
  text-align: center;
}
.wm-exp__big {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #012f4c;
  line-height: 1.15;
}
.wm-exp__lbl {
  font-size: 13px;
  color: #4a5a6a;
}
