/* Knockout redesign — design system.
   The approved design carries its visual layer as inline style attributes on every element
   (it was authored as a React prototype). Those are lifted here into classes so the markup
   stays small and the CSS caches once across the site. Values are taken from the design
   verbatim; nothing is invented.
   Fonts are the 6 self-hosted latin woff2 at /assets/fonts/ — never Google-hosted. */

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy: #0b2234;
  --orange: #ea4824;      /* CTA fill, focus ring */
  --orange-ink: #c33a16;  /* text-on-white orange — darker for contrast */
  --green: #5bbd59;
  --ink: #333333;
  --ink-2: #555555;
  --pale: #d8e0e6;
  --rule: #949494;
  --white: #ffffff;
  --wrap: 1200px;
  --measure: 68ch;
}

/* ── base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Open Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: Archivo, system-ui, sans-serif; margin: 0; text-wrap: pretty; }
p { margin: 0 0 1.15em; }
a { color: var(--orange-ink); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
summary::-webkit-details-marker { display: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible { outline-color: var(--green); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 14px 20px;
  font-weight: 700; font-family: Archivo;
}
.skip:focus { left: 0; }

/* shared button shapes */
.btn-call, .btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  text-decoration: none; border-radius: 4px;
  font-family: Archivo; font-weight: 700;
}
.btn-call { padding: 9px 14px; background: var(--orange); color: #fff; font-size: 19px; white-space: nowrap; }
.btn-solid { padding: 11px 20px; background: var(--orange); color: #fff; font-size: 17px; }
.btn-ghost { padding: 14px 26px; background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-call:hover, .btn-solid:hover { color: #fff; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header { border-bottom: 3px solid var(--orange); }
#util-bar { display: none; background: var(--navy); color: var(--pale); font-size: 14px; }
#util-bar .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; align-items: center; gap: 20px; width: 100%; }
#util-bar .u-area { display: flex; align-items: center; gap: 7px; }
#util-bar .u-mark { color: var(--green); }
#util-bar .u-login { margin-left: auto; color: var(--pale); text-decoration: underline; }
#util-bar .u-login:hover { color: var(--green); }

.head-row { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.head-logo { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; }
.head-logo img { height: 46px; width: auto; }
.head-row .btn-call { margin-left: auto; }

#nav-mobile-btn {
  width: 48px; height: 48px; flex: 0 0 auto; position: relative;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: #fff; border: 2px solid var(--navy); border-radius: 4px; cursor: pointer;
}
#nav-mobile-btn span.bar { display: block; width: 22px; height: 2px; background: var(--navy); }

#nav-desktop { display: none; background: var(--navy); }
#nav-desktop ul { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; list-style: none; display: flex; align-items: stretch; gap: 2px; }
#nav-desktop a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  color: #fff; text-decoration: none; font-family: Archivo; font-weight: 600; font-size: 16px;
}
#nav-desktop a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--green); }
#nav-desktop a:hover { color: var(--green); }

#nav-panel { background: var(--navy); padding: 8px 16px 20px; }
#nav-panel[hidden] { display: none; }
#nav-panel ul { list-style: none; margin: 0; padding: 0; }
#nav-panel a, #nav-panel summary {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: #fff; text-decoration: none; font-family: Archivo; font-weight: 600; font-size: 17px;
  border-bottom: 1px solid rgba(216, 224, 230, .25); cursor: pointer;
}
#nav-panel summary .plus { margin-left: auto; color: var(--green); font-size: 20px; }
#nav-panel details[open] summary .plus { transform: rotate(45deg); }
#nav-panel details ul a { padding-left: 18px; font-weight: 400; font-size: 16px; color: var(--pale); }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { background-color: var(--navy); background-size: cover; background-position: center; }
.hero .crumbs { padding-top: 14px; }
.hero ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--pale); }
.hero ol a { color: var(--pale); }
.hero ol .sep { color: var(--green); }
.hero ol [aria-current] { color: #fff; }
/* min-height gives short-H1 pages presence without inventing kicker/lede copy.
   No flex here: making .hero a flex column shrank .hero-body to content width (536px
   instead of 1200px). Padding stays at the design's values. */
.hero { min-height: 300px; }
.hero-body { padding: 26px 20px 40px; }
.hero .kicker { font-family: Oswald; font-weight: 500; font-size: 14px; letter-spacing: .14em; color: var(--green); margin: 0 0 12px; }
.hero h1 {
  color: #fff; font-weight: 700; font-size: clamp(30px, 6.2vw, 52px); line-height: 1.1;
  letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 16px; max-width: 16ch;
}
.hero .lede { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.55; color: var(--pale); max-width: 52ch; margin: 0; }

/* Hero call-to-action, present only where the source hero carried one (home, /thank-you/). */
.hero .hero-cta { margin: 20px 0 0; }

/* Inline SVG icons replacing the U+260E / U+2192 characters, which fall outside the
   self-hosted latin subset. Sized in em so they track the button's font-size. */
.ico { display: inline-block; vertical-align: -0.14em; flex: none; }
.btn-solid .ico, .btn-call .ico, .inline-cta .ico { margin-right: .1em; }
.inline-cta .ico { margin-right: 0; margin-left: .3em; vertical-align: -0.16em; }

/* ── promo bar ──────────────────────────────────────────────────────────── */
.promo-outer { background: var(--pale); border-bottom: 1px solid var(--rule); }
#promo { padding: 16px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
#promo .promo-txt { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: center; }
#promo .promo-pct { font-family: 'Allerta Stencil'; font-size: 30px; line-height: 1; color: var(--orange-ink); }
#promo .promo-who { font-family: Oswald; font-weight: 500; font-size: 15px; letter-spacing: .07em; color: var(--navy); }
#promo .btn-solid { padding: 10px 20px; }
#promo-badge { display: flex; align-items: center; gap: 10px; }
#promo-badge img { height: 42px; width: auto; background: #fff; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--rule); }
#promo-badge span { font-family: Abel; font-size: 15px; line-height: 1.3; color: var(--navy); max-width: 14ch; text-align: left; }

/* ── intro ──────────────────────────────────────────────────────────────── */
.intro { padding: 44px 20px 40px; }
#intro-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
#intro-grid h2 { font-weight: 700; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 16px; }
#intro-grid p { color: var(--ink); max-width: 62ch; }
#intro-grid img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); }
.inline-cta {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-family: Archivo; font-weight: 700; font-size: 18px;
  color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px;
}

/* ── body prose ─────────────────────────────────────────────────────────── */
.prose { max-width: var(--measure); margin: 0 auto 40px; padding: 0 20px; }
.prose .kicker { font-family: Oswald; font-weight: 500; font-size: 13px; letter-spacing: .14em; color: var(--orange-ink); margin: 0 0 8px; }
.prose h2 { font-weight: 700; font-size: clamp(23px, 3.2vw, 30px); line-height: 1.25; margin: 0 0 18px; }
.prose h3 { font-weight: 600; font-size: 20px; line-height: 1.35; margin: 26px 0 10px; }
.prose h4 { font-weight: 700; font-size: 18.5px; line-height: 1.35; margin: 26px 0 8px; letter-spacing: .01em; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
/* responsive embed (the contact page's office map) */
.embed { position: relative; margin: 18px 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); }
.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }

/* in-body images (some pages carry an icon/photo grid inside the prose flow) */
.prose img { max-width: 100%; width: auto; height: auto; margin: 14px 0 18px;
             border-radius: 6px; border: 1px solid var(--rule); }
/* An SVG carrying only a viewBox has a known ratio but no intrinsic size, so `width:auto`
   resolves to the full column — a 150px review badge rendered at 640px. Cap it to its own
   natural size so no body image is ever upscaled. */
.prose img[src$=".svg"] { max-width: 150px; }


/* ── callout ────────────────────────────────────────────────────────────── */
.callout { max-width: var(--measure); margin: 0 auto 40px; padding: 0 20px; }
.callout-box { background: var(--navy); color: #fff; border-radius: 6px; padding: 26px 24px; }
.callout-box .kicker { font-family: Oswald; font-weight: 500; font-size: 13px; letter-spacing: .14em; color: var(--green); margin: 0 0 10px; }
.callout-box p { font-size: 19px; line-height: 1.6; color: #fff; margin: 0 0 16px; }

/* ── closing CTA ────────────────────────────────────────────────────────── */
#cta-band { padding: 40px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
#cta-band h2 { font-weight: 700; font-size: clamp(23px, 3.2vw, 32px); line-height: 1.2; margin: 0 0 8px; }
#cta-band p { margin: 0; color: var(--ink-2); max-width: 56ch; }
#cta-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; }
#cta-actions a { justify-content: center; min-height: 52px; padding: 14px 26px; font-size: 18px; }

/* ── form ───────────────────────────────────────────────────────────────── */
.form-sec { background: var(--navy); color: #fff; }
.form-sec .wrap { padding-top: 46px; padding-bottom: 46px; }
.form-sec h2 { color: #fff; font-weight: 700; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 14px; }
.form-sec .form-intro p { color: var(--pale); max-width: 60ch; }
.form-sec .form-intro a { color: #fff; }
form.ko-form { max-width: 760px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-row { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
.field { margin-bottom: 20px; }
.ko-form label { display: block; font-family: Archivo; font-weight: 600; font-size: 16px; margin-bottom: 6px; color: #fff; }
.ko-form label .req { color: var(--green); font-weight: 400; font-size: 14px; }
.ko-form input, .ko-form select, .ko-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-size: 17px;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--ink); background: #fff; border: 2px solid var(--ink-2); border-radius: 4px;
}
.ko-form textarea { min-height: 120px; line-height: 1.6; }
.ko-form .hint { margin: 6px 0 0; font-size: 14px; color: var(--pale); }
/* error state: border weight + icon + text, never colour alone */
.ko-form [aria-invalid="true"] { border-color: #ffb4a2; border-width: 3px; }
.ko-form .err { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: #ffd9d0; display: flex; gap: 7px; align-items: flex-start; }
.ko-form .err::before { content: "!"; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #ffd9d0; color: #7a1f0c; font-size: 14px; line-height: 20px; text-align: center; }
.ko-form button[type="submit"] {
  min-height: 52px; padding: 14px 28px; background: var(--orange); color: #fff;
  border: 0; border-radius: 4px; font-family: Archivo; font-weight: 700; font-size: 18px; cursor: pointer;
}
.ko-form .fallback { margin: 14px 0 0; font-size: 15px; color: var(--pale); }
.ko-form .fallback a { color: #fff; }
.form-status { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--navy); background: var(--green); border-radius: 4px; padding: 12px 14px; }
.form-status:empty { display: none; padding: 0; }

/* ── rating band ────────────────────────────────────────────────────────────
   Not emitted while the real figure is unresolved (RATING is null in
   scripts/redesign-service.mjs). Kept here so switching it back on needs no CSS work. */
#rating-band {
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center;
  text-align: center; padding: 24px; margin-bottom: 32px;
  background: var(--pale); border-radius: 6px;
}
#rating-band .rating-value { font-family: Archivo; font-weight: 700; font-size: 44px; line-height: 1; color: var(--navy); margin: 0; }
#rating-band p { margin: 0; color: var(--navy); }
#rating-band blockquote { margin: 0; text-align: left; }
#rating-band blockquote p { font-size: 17px; line-height: 1.6; margin: 0 0 10px; }
#rating-band cite { font-style: normal; font-weight: 700; }

/* ── article tables (51 blog posts carry comparison tables) ─────────────── */
.table-wrap { overflow-x: auto; margin: 20px 0 24px; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
.table-wrap caption { text-align: left; font-family: Archivo; font-weight: 700; padding-bottom: 8px; }
.table-wrap th, .table-wrap td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.table-wrap th { background: var(--pale); font-family: Archivo; font-weight: 700; color: var(--navy); }
.table-wrap tr:nth-child(even) td { background: #fafbfc; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--pale); padding: 1px 5px; border-radius: 3px; }
.prose ol { margin: 0 0 1.15em; padding-left: 1.35em; }

/* ── blog listing ───────────────────────────────────────────────────────── */
.blog-wrap { display: grid; grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 40px; }
.post-list { display: grid; grid-template-columns: 1fr; gap: 28px; }
.post-card { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.post-card:last-child { border-bottom: 0; }
.post-thumb { display: block; }
.post-thumb img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); }
.post-card h2 { font-weight: 700; font-size: clamp(20px, 2.6vw, 25px); line-height: 1.25; margin: 0 0 6px; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.post-date { margin: 0 0 8px; font-family: Oswald; font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.post-excerpt { margin: 0; color: var(--ink); }

.post-pagination { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.post-pagination a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: 4px;
  text-decoration: none; font-family: Archivo; font-weight: 700; font-size: 16px;
}
.post-pagination a:hover { background: var(--navy); color: #fff; }

.blog-side .widget { margin-bottom: 28px; }
.blog-side h2 { font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.blog-side ul { list-style: none; margin: 0; padding: 0; }
.blog-side li { margin-bottom: 10px; line-height: 1.45; }

@media (min-width: 640px) {
  .post-card { grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
}
@media (min-width: 1024px) {
  .blog-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
  .post-list { grid-column: 1; }
  .post-pagination { grid-column: 1; }
  .blog-side { grid-column: 2; grid-row: 1 / span 2; }
}

/* ── trust / accreditations ─────────────────────────────────────────────── */
.trust { background: var(--white); }
.trust .wrap { padding-top: 44px; padding-bottom: 44px; }
#trust-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
#trust-grid h2 { font-weight: 700; font-size: 22px; margin: 0 0 16px; }
#trust-grid h3 { font-weight: 600; font-size: 17px; margin: 20px 0 10px; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.badges img { height: 58px; width: auto; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--pale); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 32px; }
#foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-family: Archivo; font-weight: 700; font-size: 18px; margin: 0 0 14px; }
.site-footer a { color: var(--pale); }
.site-footer a:hover { color: var(--green); }
.site-footer img.foot-logo { height: 54px; width: auto; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
#areas-list, #kw-list { columns: 1; }
.foot-social { display: flex; gap: 16px; margin-top: 16px; }
.kw-details { margin-top: 28px; border-top: 1px solid rgba(216, 224, 230, .25); padding-top: 16px; }
.kw-details summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-family: Archivo; font-weight: 600; color: var(--pale); }
.kw-details summary .plus { color: var(--green); }
#kw-list li { font-size: 14px; color: #b8c4cd; margin-bottom: 6px; }
.foot-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(216, 224, 230, .25); display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }

/* ── sticky mobile call bar ─────────────────────────────────────────────── */
#call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; gap: 2px; background: var(--navy); border-top: 3px solid var(--orange);
}
#call-bar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; color: #fff; text-decoration: none; font-family: Archivo; font-weight: 700; font-size: 17px;
}
#call-bar a:first-child { background: var(--orange); }
body { padding-bottom: 56px; }

/* ── breakpoints: the design is mobile-first; these are the step-ups ────── */
@media (min-width: 768px) {
  #util-bar { display: flex; }
  #intro-grid, #form-row, #trust-grid { grid-template-columns: 1fr 1fr; }
  #promo { flex-direction: row; align-items: center; text-align: left; }
  #promo-badge { margin-left: auto; }
  #areas-list, #kw-list { columns: 3; }
  #foot-grid { grid-template-columns: 1.2fr 1fr; }
  #rating-band { grid-template-columns: auto 1fr; text-align: left; }
}
@media (min-width: 1024px) {
  /* One left rail: .intro begins where .prose begins ((100% - 680px)/2), and runs
     wider to the right. .prose keeps its 68ch measure. */
  .intro { margin-inline-start: calc((100% - 680px) / 2); margin-inline-end: 120px; max-width: none; }
  .hero { min-height: 380px; }
  .hero-body { padding: 40px 20px 56px; }
  #nav-desktop { display: block; }
  #nav-mobile-btn, #nav-panel { display: none; }
  #intro-grid { grid-template-columns: 1.15fr 1fr; }
  #trust-grid { grid-template-columns: 1.4fr 1fr; }
  #foot-grid { grid-template-columns: 1fr 1fr 1.3fr; }
  #areas-list { columns: 2; }
  #kw-list { columns: 4; }
  #cta-band { flex-direction: row; text-align: left; }
  #cta-actions { margin-left: auto; flex-direction: row; max-width: none; }
  #call-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Image tiles — short labelled thumbnails from the source, laid out as a grid rather than one
   per row. Single column on small screens, 2 up from 600px, 3 up from 1024px. */
.prose .tiles { list-style: none; margin: 18px 0 26px; padding: 0;
                display: grid; grid-template-columns: 1fr; gap: 20px 22px; }
.prose .tiles .tile { margin: 0; }
.prose .tiles .tile img { width: 100%; max-width: 210px; height: auto; margin: 0 0 8px;
                          border-radius: 6px; border: 1px solid var(--rule); }
.prose .tiles .tile h2, .prose .tiles .tile h3, .prose .tiles .tile h4,
.prose .tiles .tile h5, .prose .tiles .tile h6 {
  margin: 0; font-size: 15px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; }
@media (min-width: 600px)  { .prose .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prose .tiles { grid-template-columns: repeat(3, 1fr); } }


/* Rating band stars — inline SVG, not U+2605, which is outside the self-hosted latin subset. */
#rating-band .stars { display: inline-flex; gap: 2px; color: var(--orange); line-height: 1; margin: 4px 0; }
#rating-band .stars .star { width: 1.05em; height: 1.05em; }
