:root {
  --cm-ink: #101827;
  --cm-muted: #536272;
  --cm-teal: #0f9c9b;
  --cm-blue: #2f80ed;
  --cm-coral: #ef5b45;
  --cm-line: rgba(16, 24, 39, .1);
  --cm-paper: #fff;
  --cm-footer: #071018;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cm-ink);
  background: #f8fbfa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(16, 24, 39, .07);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 30px rgba(16, 24, 39, .045);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-logo { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.site-logo img { display: block; width: 220px; height: auto; }
.site-navigation { margin-left: auto; }
.site-navigation ul { margin: 0; padding: 0; list-style: none; }
.site-navigation > ul { display: flex; align-items: center; gap: 8px; }
.site-navigation a,
.services-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: var(--cm-ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.site-navigation a:hover,
.site-navigation a[aria-current="page"],
.services-toggle:hover { color: #087f92; background: #eef8f7; }
.nav-services { position: relative; }
.nav-chevron { color: #7b8796; font-size: 17px; line-height: 1; transform: translateY(-1px); }
.service-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 224px;
  padding: 9px !important;
  border: 1px solid var(--cm-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(16, 24, 39, .14);
}
.service-menu a { width: 100%; min-height: 40px; padding: 0 11px; font-size: 14px; }
.nav-services:not(.is-open) .service-menu { display: none; }
.header-quote {
  color: #fff !important;
  background: linear-gradient(135deg, var(--cm-teal), var(--cm-blue)) !important;
  box-shadow: 0 10px 24px rgba(47, 128, 237, .2);
}
.header-quote:hover { transform: translateY(-1px); }
.mobile-toggle {
  width: 44px;
  height: 44px;
  display: none;
  margin-left: auto;
  padding: 9px;
  border: 1px solid var(--cm-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.mobile-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--cm-ink); }

#content.site-main { width: 100%; min-height: 48vh; }
.page-shell { width: min(900px, calc(100% - 40px)); margin: 48px auto 72px; padding: clamp(28px, 5vw, 62px); border: 1px solid var(--cm-line); border-radius: 14px; background: #fff; box-shadow: 0 22px 60px rgba(16, 24, 39, .08); }

.single-post #content.site-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; }
.single-post article { width: min(900px, 100%); margin: 0 auto; }
.post-hero { margin: 26px 0 36px; overflow: hidden; border: 1px solid rgba(15, 156, 155, .15); border-radius: 14px; background: #eef7ff; box-shadow: 0 16px 40px rgba(16, 24, 39, .09); }
.post-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.cm-blog-query .wp-block-post-template,
.blog-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 22px !important; }
.blog-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--cm-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(16, 24, 39, .07); }
.blog-card-image { display: block; overflow: hidden; background: #eef7ff; }
.blog-card-image img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform 180ms ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.025); }
.blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.blog-card-meta { margin: 0 0 8px; color: #087f92; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.blog-card h2 { margin: 0 0 10px; color: var(--cm-ink); font-size: 21px; line-height: 1.25; }
.blog-card h2 a { text-decoration: none; }
.blog-card h2 a:hover { color: #087f92; }
.blog-card p { margin: 0; color: var(--cm-muted); font-size: 15px; line-height: 1.62; }

/* Homepage sections whose original styles were injected after the WordPress footer. */
.cmx-proof-band { padding: 58px 0; color: #fff; background: #101827; }
.cmx-proof-band-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.cmx-proof-band h2 { margin: 0 0 14px; color: #fff; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; }
.cmx-proof-band p { margin: 0; color: #c8d8df; }
.cmx-proof-band .cmx-eyebrow { color: #7debd8; }
.cmx-evidence-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cmx-evidence { min-height: 150px; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.07); }
.cmx-evidence > span { width: 38px; height: 38px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--cm-teal), var(--cm-blue)); font-size: 20px; font-weight: 950; }
.cmx-evidence strong { display: block; color: #fff; font-size: 16px; }
.cmx-evidence small { display: block; margin-top: 7px; color: #b9cbd4; line-height: 1.5; }

.cmx-quote { padding: 74px 0; color: #fff; background: linear-gradient(135deg, #101827, #073b37 55%, #17446f); }
.cmx-quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.cmx-quote h2 { margin: 0 0 14px; color: #fff; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.cmx-quote-copy > p { color: #d8e6ea; font-size: 18px; }
.cmx-quote-copy ul { margin: 24px 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.cmx-quote-copy li::before { content: "\2713"; margin-right: 10px; color: #7debd8; font-weight: 950; }
.cmx-quote-copy small { display: block; max-width: 460px; color: #a9bec9; line-height: 1.55; }
.cmx-contact-address { margin-top: 18px; color: #c8d8df; font-size: 14px; }
.cmx-quote-form { position: relative; padding: 26px; display: grid; gap: 15px; border-radius: 9px; color: var(--cm-ink); background: #fff; box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.cmx-quote-form label { display: grid; gap: 7px; color: var(--cm-ink); font-size: 14px; font-weight: 850; }
.cmx-quote-form input,
.cmx-quote-form select,
.cmx-quote-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #cad9d6; border-radius: 7px; color: var(--cm-ink); background: #fbfdfd; font: inherit; }
.cmx-quote-form textarea { resize: vertical; }
.cmx-quote-form input:focus,
.cmx-quote-form select:focus,
.cmx-quote-form textarea:focus { outline: 3px solid rgba(47,128,237,.18); border-color: var(--cm-blue); }
.cmx-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cmx-quote-form .cmx-btn { width: fit-content; border: 0; cursor: pointer; }
.cmx-quote-form .cmx-honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.cmx-quote-form button[disabled] { cursor: wait !important; opacity: .72; }
.cmx-form-status { min-height: 20px; margin: 0; color: var(--cm-muted); font-size: 13px; }
.cmx-form-success { color: #087f68 !important; font-weight: 750; }
.cmx-form-error { color: #b53a28 !important; font-weight: 750; }

.cmx-footer { margin: 0; padding: 52px 0; color: #cbd8df; background: var(--cm-footer); }
.cmx-footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.cmx-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 30px; }
.cmx-footer-brand img { display: block; width: 220px; height: auto; padding: 7px; border-radius: 9px; background: #fff; }
.cmx-footer p { color: #cbd8df; }
.cmx-footer .brand-copy { max-width: 390px; margin: 18px 0 0; }
.cmx-footer h2 { margin: 0 0 14px; color: #fff; font-size: 16px; }
.cmx-footer a { display: block; margin: 9px 0; color: #cbd8df; text-decoration: none; }
.cmx-footer a:hover { color: #fff; }
.cmx-company-name { margin: 18px 0 2px !important; color: #fff !important; font-size: 15px; font-weight: 900; }
.cmx-address { max-width: 360px; margin: 2px 0 0 !important; color: #9fb5c0 !important; font-size: 14px; }
.cmx-small { margin: 19px 0 0 !important; color: #91a5ad !important; font-size: 14px; }

.skip-link { position: fixed; z-index: 2000; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; color: #fff; background: #101827; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 1020px) {
  .header-inner { gap: 14px; }
  .site-logo img { width: 210px; }
  .site-navigation a, .services-toggle { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 860px) {
  .mobile-toggle { display: block; }
  .site-navigation { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; margin: 0; padding: 13px 20px 20px; border-bottom: 1px solid var(--cm-line); background: #fff; box-shadow: 0 22px 40px rgba(16, 24, 39, .12); }
  .site-navigation.is-open { display: block; }
  .site-navigation > ul { align-items: stretch; flex-direction: column; gap: 2px; }
  .site-navigation a, .services-toggle { width: 100%; justify-content: space-between; padding: 0 12px; }
  .service-menu { position: static; margin: 2px 0 8px !important; box-shadow: none; }
  .header-quote { justify-content: center !important; margin-top: 8px; }
  .cmx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmx-footer-brand { grid-column: 1 / -1; }
  .cm-blog-query .wp-block-post-template, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cmx-proof-band-grid, .cmx-quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-inner { width: min(100% - 28px, 1180px); min-height: 66px; }
  .site-logo img { width: 194px; }
  .single-post #content.site-main { width: min(100% - 28px, 900px); padding: 28px 0 48px; }
  .cmx-footer { padding: 44px 0; }
  .cmx-footer-inner { width: min(100% - 28px, 1180px); }
  .cmx-footer-grid { gap: 24px 18px; }
  .cm-blog-query .wp-block-post-template, .blog-grid { grid-template-columns: 1fr !important; }
  .blog-card-image img { height: 205px; }
  .cmx-proof-band, .cmx-quote { padding: 50px 0; }
  .cmx-evidence-list { grid-template-columns: 1fr; }
  .cmx-evidence { min-height: 0; display: flex; gap: 14px; align-items: center; }
  .cmx-evidence > span { flex: 0 0 38px; margin: 0; }
  .cmx-quote-copy { margin-bottom: 28px; }
  .cmx-form-row { grid-template-columns: 1fr; }
  .cmx-quote-form { padding: 20px; }
  .cmx-quote-form .cmx-btn { width: 100%; }
}
