/* Northward theme styles
   Brand: Ink black #0B0D10, Electric blue #0057FF, Blue on dark #3D8BFF, Slate #4A5260, Cloud #F4F6F9, accent Amber #FFB020
   Type: Inter (self-hosted). Logo: SVG files.
*/

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-semibold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-bold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-extrabold.woff") format("woff"); }

:root {
  --ink: #0b0d10;
  --ink-2: #1b2028;
  --blue: #0057ff;
  --blue-hover: #0046cc;
  --blue-dark: #3d8bff;
  --blue-soft: #e5edff;
  --amber: #ffb020;          /* Third colour: shapes and fills only, never text on white */
  --amber-soft: #fff1d6;
  --slate: #4a5260;
  --cloud: #f4f6f9;
  --paper: #ffffff;
  --rule: #dde2ea;
  --on-ink: #f4f6f9;
  --on-ink-muted: #aeb6c2;
  --ok: #1e7a4c;
  --error: #b42318;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.55rem;
  --step-3: clamp(1.85rem, 1.4rem + 1.6vw, 2.45rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.6rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --radius: 8px;
  --radius-lg: 12px;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cloud); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.6; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 1rem; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; color: inherit; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }
p, li { max-width: 68ch; }

.nw-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.nw-skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--blue); color: #fff; padding: 0.6rem 1rem; font-weight: 700; }
.nw-skip:focus { top: 1rem; color: #fff; }

/* Sections: full-width bands; padding keeps content to the page width */
.nw-section {
  margin: 0;
  padding-block: var(--space-section);
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}
.nw-section--paper { background: var(--paper); }
.nw-section--ink { background: var(--ink); color: var(--on-ink); }
.nw-section--ink :is(h1, h2, h3) { color: #fff; }
.nw-section--ink a:not(.wp-block-button__link) { color: #fff; }
.nw-section--ink .muted, .nw-section--ink .nw-package__for { color: var(--on-ink-muted); }
.nw-section--ink :focus-visible { outline-color: var(--blue-dark); }
.nw-content > .nw-section + .nw-section { margin-top: 0; }

/* WordPress classic themes wrap group contents; let them flow as if unwrapped */
[class*="nw-"] > .wp-block-group__inner-container { display: contents; }

/* Vertical rhythm inside sections (specific enough to win over WordPress's default block gaps) */
body .nw-section :where(h1, h2, h3, h4, p, ul, ol, dl, figure, .wp-block-buttons, .wp-block-columns, .wp-block-group, .nw-check, .nw-form-wrap, .nw-details) { margin-top: 0; margin-bottom: 0; }
body .nw-section :is(h1, h2) { margin-bottom: 0.45em; }
body .nw-section h3 { margin-bottom: 0.4em; }
body .nw-section :is(p, ul, ol) { margin-bottom: 1em; }
body .nw-section :is(p, ul, ol):last-child { margin-bottom: 0; }
body .nw-section .lede { margin-bottom: 0.9em; }
body .nw-section .wp-block-buttons { margin-top: 1.75rem; }
body .nw-section .wp-block-buttons:first-child { margin-top: 0; }
body .nw-section .wp-block-columns + *, body .nw-section .wp-block-group + .wp-block-buttons { margin-top: 2rem; }
.nw-section ul:not([class*="nw-"]), .nw-section ol:not([class*="nw-"]) { padding-left: 1.2rem; }
.nw-section li::marker { color: var(--blue); }
.nw-section--ink li::marker { color: var(--blue-dark); }
body .nw-section li + li { margin-top: 0.3rem; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.nw-section--ink .lede { color: var(--on-ink); }
.muted { color: var(--slate); }
.has-text-align-center { text-align: center; }

/* Brand palette classes (editor colour picker) */
.has-ink-color { color: var(--ink); } .has-ink-background-color { background-color: var(--ink); }
.has-blue-color { color: var(--blue); } .has-blue-background-color { background-color: var(--blue); }
.has-blue-dark-color { color: var(--blue-dark); } .has-blue-dark-background-color { background-color: var(--blue-dark); }
.has-slate-color { color: var(--slate); } .has-slate-background-color { background-color: var(--slate); }
.has-cloud-color { color: var(--cloud); } .has-cloud-background-color { background-color: var(--cloud); }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-button__link.wp-block-button__link, .nw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border: 2px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: #fff;
  font: 700 1rem/1.2 var(--font); letter-spacing: 0; text-decoration: none; text-align: center; cursor: pointer;
}
.wp-block-button__link.wp-block-button__link:hover, .nw-btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link.wp-block-button__link { background: transparent; border-color: currentColor; color: var(--ink); padding: 0.7rem 1.35rem; }
.wp-block-button.is-style-outline > .wp-block-button__link.wp-block-button__link:hover { background: rgba(11, 13, 16, 0.06); color: var(--ink); }
.nw-section--ink .wp-block-button.is-style-outline > .wp-block-button__link.wp-block-button__link { color: #fff; }
.nw-section--ink .wp-block-button.is-style-outline > .wp-block-button__link.wp-block-button__link:hover { background: rgba(255, 255, 255, 0.08); }

/* Columns (independent of WordPress's block library CSS) */
.nw-section .wp-block-columns { display: flex; gap: clamp(2rem, 5vw, 4.5rem); align-items: flex-start; }
.nw-section .wp-block-columns > .wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) {
  .nw-section .wp-block-columns { flex-direction: column; gap: 2rem; }
  .nw-section .wp-block-columns > .wp-block-column { flex-basis: auto; width: 100%; }
}

/* Header */
.nw-header { background: var(--paper); position: relative; z-index: 10; }
.nw-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.nw-logo { display: inline-block; line-height: 0; }
.nw-logo img { height: 36px; width: auto; }
.nw-nav { display: flex; align-items: center; gap: 1.75rem; }
.nw-menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nw-menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nw-menu a:hover, .nw-menu a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.nw-nav-toggle { display: none; }
@media (max-width: 960px) {
  .nw-nav-toggle { display: inline-flex; align-items: center; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.5rem 0.9rem; font: 700 0.95rem var(--font); color: var(--ink); cursor: pointer; min-height: 2.75rem; }
  .nw-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 0.5rem var(--gutter) 1.25rem; box-shadow: 0 16px 32px -24px rgba(11, 13, 16, 0.4); }
  .nw-nav.is-open { display: flex; }
  .nw-menu { flex-direction: column; gap: 0; }
  .nw-menu a { display: block; padding: 0.85rem 0; border-bottom: 0; }
  .nw-menu a:hover, .nw-menu a[aria-current="page"] { color: var(--blue); }
  .nw-nav .nw-btn { margin-top: 1rem; }
}

/* Hero (home) */
.nw-hero { padding-top: clamp(3rem, 6vw, 5.5rem); }
.nw-section .nw-cols-hero > .wp-block-column:first-child { flex-grow: 1.2; }
.nw-hero h1 { max-width: 18ch; }
.nw-hero .lede { max-width: 60ch; }
.nw-hero { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
body .nw-section .nw-place { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--slate); margin-bottom: 1.25rem; }
.nw-place::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--pin) center / contain no-repeat; mask: var(--pin) center / contain no-repeat; }

/* Inner page header */
.nw-page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.nw-page-hero h1 { max-width: 20ch; }
.nw-page-hero .lede { max-width: 60ch; }
.nw-page-hero--simple { padding-bottom: 1.5rem; }

/* Self-check */
.nw-check { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 24px 48px -28px rgba(11, 13, 16, 0.6); }
body .nw-check h2 { font-size: var(--step-2); color: #fff; margin: 0 0 0.35rem; }
body .nw-check__intro { color: var(--on-ink-muted); font-size: 0.98rem; margin: 0 0 1.25rem; }
.nw-check fieldset { border: 0; margin: 0; padding: 0.85rem 0; min-width: 0; }
.nw-check legend { float: left; width: 100%; padding: 0; margin-bottom: 0.7rem; font-weight: 600; line-height: 1.4; }
.nw-check legend + * { clear: left; }
.nw-choices { display: flex; gap: 0.4rem; }
.nw-choices label { position: relative; flex: 1; }
.nw-choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nw-choices span { display: block; text-align: center; padding: 0.55rem 0.5rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.92rem; cursor: pointer; }
.nw-choices input:hover + span { border-color: rgba(255, 255, 255, 0.6); }
.nw-choices input:focus-visible + span { outline: 3px solid var(--blue-dark); outline-offset: 2px; }
.nw-choices input:checked + span { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); font-weight: 700; }
.nw-check__result { margin-top: 0.75rem; padding: 1.1rem; border-radius: var(--radius); background: var(--ink-2); }
body .nw-check__score { font-weight: 800; font-size: var(--step-2); line-height: 1.1; margin: 0 0 0.35rem; color: #fff; }
body .nw-check__msg { color: #d3d9e2; margin: 0 0 1.1rem; font-size: 0.98rem; }
.nw-check .nw-btn { width: 100%; }
.nw-check :focus-visible { outline-color: var(--blue-dark); }

/* Two-column text + list */
.nw-section .nw-cols-split > .wp-block-column:first-child { flex-grow: 0.9; }
.nw-section .nw-cols-split > .wp-block-column:last-child { flex-grow: 1.1; }

/* Covers list (Health Check) */
.nw-section .nw-covers { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.nw-covers li { position: relative; max-width: none; margin: 0 !important; padding: 1.1rem 1.25rem 1.1rem 3.25rem; background: var(--cloud); border-radius: var(--radius-lg); color: var(--slate); }
.nw-covers li::before { content: ""; position: absolute; left: 1.15rem; top: 1.3rem; width: 22px; height: 22px; background: var(--blue); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.nw-covers strong { display: block; color: var(--ink); font-size: 1.1rem; }

/* Ticked list */
.nw-section .nw-ticks { list-style: none; padding: 0; }
.nw-ticks li { position: relative; padding-left: 2rem; }
.nw-ticks li + li { margin-top: 0.6rem; }
.nw-ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.2em; height: 1.2em; background: var(--blue); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.nw-section--ink .nw-ticks li::before { background: var(--blue-dark); }

/* Section intro */
body .nw-section .nw-intro { margin-bottom: 2.25rem; }
.nw-intro h2 { margin-bottom: 0.3em; }
@media (min-width: 782px) {
  .nw-intro--split, .nw-intro--split > .wp-block-group__inner-container { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
  .nw-intro--split > .wp-block-group__inner-container { display: flex !important; width: 100%; }
  .nw-intro--split p { max-width: 36ch; margin: 0; }
}

/* Feature grid */
.nw-section .nw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(2rem, 4vw, 3.5rem); }
.nw-section .nw-feature { background: var(--paper); border-radius: var(--radius-lg); padding: 1.5rem; }
.nw-section--paper .nw-feature { background: var(--cloud); }
.nw-section--ink .nw-feature { background: var(--ink-2); }
.nw-feature p { color: var(--slate); }
.nw-section--ink .nw-feature p { color: var(--on-ink-muted); }
@media (max-width: 700px) { .nw-section .nw-grid { grid-template-columns: 1fr; } }

/* Service rows (home) */
body .nw-section .nw-service { padding: 2rem; background: var(--paper); border-radius: var(--radius-lg); margin: 0; }
body .nw-section .nw-service + .nw-service { margin-top: 1rem; }
.nw-section .nw-service > .wp-block-column:nth-child(2) { flex-grow: 1.2; }
.nw-section .nw-service > .wp-block-column:last-child { flex: 0 0 auto; }
.nw-service h3 { font-size: var(--step-2); }
.nw-service h3 a { color: var(--ink); text-decoration: none; }
.nw-service h3 a:hover { text-decoration: underline; }
.nw-service .wp-block-button__link { white-space: nowrap; }

/* Packages */
.nw-section .nw-packages { gap: 1.25rem; align-items: stretch; }
.nw-section .nw-packages > .wp-block-column { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; }
.nw-packages h3 { font-size: var(--step-2); }
.nw-package__for { font-weight: 600; }
.nw-package__plus { font-weight: 600; color: #fff; margin-bottom: 0.5em !important; }
.nw-packages .wp-block-buttons { margin-top: auto !important; padding-top: 1.5rem; }

/* Numbered steps (a real sequence) */
body .nw-section .nw-steps { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.nw-steps li { counter-increment: step; margin: 0 !important; color: var(--slate); }
.nw-steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-bottom: 0.9rem; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.nw-steps strong { display: block; color: var(--ink); font-size: var(--step-1); line-height: 1.25; margin-bottom: 0.3rem; }
@media (max-width: 900px) { body .nw-section .nw-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { body .nw-section .nw-steps { grid-template-columns: 1fr; } }

/* Area box */
.nw-section .nw-cols-about > .wp-block-column:first-child { flex-grow: 1.4; }
.nw-section .nw-area { background: var(--cloud); border-radius: var(--radius-lg); padding: 1.5rem; }
.nw-section--ink .nw-area { background: var(--ink-2); }
body .nw-section .nw-area__list { list-style: none; padding: 0; margin-bottom: 1rem; }
.nw-area__list li { padding: 0.3rem 0; margin: 0 !important; font-weight: 600; }
.nw-area p { font-size: 0.98rem; }

/* Contact band */
.nw-section .nw-cols-cta { align-items: center; }
.nw-section .nw-cols-cta > .wp-block-column:last-child { flex: 0 0 auto; }
@media (min-width: 782px) { .nw-cols-cta .wp-block-buttons { justify-content: flex-end; } }

/* Contact page */
.nw-section .nw-cols-contact > .wp-block-column:first-child { flex-grow: 1.5; }
.nw-cols-contact .nw-area { margin-top: 1.5rem !important; }
.nw-details { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: 1.5rem; }
body .nw-details h2 { font-size: var(--step-1); color: #fff; margin: 0 0 1rem; }
.nw-details dl { margin: 0; }
.nw-details dt { font-size: 0.9rem; color: var(--on-ink-muted); }
body .nw-details dd { margin: 0.1rem 0 1rem; font-weight: 600; }
body .nw-details dd:last-child { margin-bottom: 0; }
.nw-details a { color: #fff; }

/* Enquiry form */
.nw-form { display: grid; gap: 1.1rem; }
.nw-form p { margin: 0 !important; max-width: none; }
.nw-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .nw-field-row { grid-template-columns: 1fr; } }
.nw-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.nw-req { font-weight: 400; color: var(--slate); font-size: 0.9rem; }
.nw-field :is(input, select, textarea) { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c1cc; border-radius: var(--radius); padding: 0.7rem 0.85rem; min-height: 3rem; }
.nw-field textarea { resize: vertical; min-height: 9rem; }
.nw-field :is(input, select, textarea):focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.nw-form__privacy { font-size: 0.92rem; color: var(--slate); }
.nw-form .nw-btn { justify-self: start; }
.nw-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nw-notice { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; border: 1.5px solid; }
.nw-notice p { margin: 0 !important; }
.nw-notice--ok { background: #ecf7f1; border-color: var(--ok); color: #0f4d2f; }
.nw-notice--error { background: #fdf0ef; border-color: var(--error); color: #7a1a12; }

/* Long-form text (privacy, terms) */
.nw-section .nw-prose { max-width: 46rem; }
.nw-prose h2 { font-size: var(--step-2); margin-top: 2.25rem !important; }
.nw-prose h2:first-child { margin-top: 0 !important; }

/* Footer */
.nw-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 3rem 2rem; font-size: 0.95rem; }
.nw-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.nw-footer .nw-logo { margin-bottom: 1rem; }
.nw-footer .nw-logo img { height: 40px; }
.nw-footer h2 { font-size: 1rem; letter-spacing: 0; color: #fff; margin: 0 0 0.75rem; }
.nw-footer p { margin: 0; }
.nw-footer__menu { list-style: none; margin: 0; padding: 0; }
.nw-footer__menu li + li { margin-top: 0.45rem; }
.nw-footer a { color: #fff; }
.nw-footer a:hover { color: var(--blue-dark); }
.nw-footer :focus-visible { outline-color: var(--blue-dark); }
.nw-footer__legal { grid-column: 1 / -1; padding-top: 1rem; margin-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.nw-footer__legal a + a { margin-left: 1rem; }
@media (max-width: 800px) { .nw-footer__grid { grid-template-columns: 1fr; } }

/* Icons (generated): set with a class such as nw-icon-laptop */
.nw-icon-laptop { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3C/svg%3E"); }
.nw-icon-wifi { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a15 15 0 0 1 20 0'/%3E%3Cpath d='M5.5 12.5a10 10 0 0 1 13 0'/%3E%3Cpath d='M9 16a5 5 0 0 1 6 0'/%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a15 15 0 0 1 20 0'/%3E%3Cpath d='M5.5 12.5a10 10 0 0 1 13 0'/%3E%3Cpath d='M9 16a5 5 0 0 1 6 0'/%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3C/svg%3E"); }
.nw-icon-backup { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4.5 4.5 0 0 1-.5-9A6 6 0 0 1 18 8.5a4 4 0 0 1-.5 9.5'/%3E%3Cpath d='M12 11v8'/%3E%3Cpath d='M9 16l3 3 3-3'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4.5 4.5 0 0 1-.5-9A6 6 0 0 1 18 8.5a4 4 0 0 1-.5 9.5'/%3E%3Cpath d='M12 11v8'/%3E%3Cpath d='M9 16l3 3 3-3'/%3E%3C/svg%3E"); }
.nw-icon-support { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='13' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='13' width='4' height='6' rx='1.5'/%3E%3Cpath d='M20 19a3 3 0 0 1-3 3h-3'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='13' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='13' width='4' height='6' rx='1.5'/%3E%3Cpath d='M20 19a3 3 0 0 1-3 3h-3'/%3E%3C/svg%3E"); }
.nw-icon-roadmap { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4L3 6v14l6-2 6 2 6-2V4l-6 2-6-2z'/%3E%3Cpath d='M9 4v14'/%3E%3Cpath d='M15 6v14'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4L3 6v14l6-2 6 2 6-2V4l-6 2-6-2z'/%3E%3Cpath d='M9 4v14'/%3E%3Cpath d='M15 6v14'/%3E%3C/svg%3E"); }
.nw-icon-apps { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.nw-icon-tag { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.nw-icon-globe { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18'/%3E%3Cpath d='M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18'/%3E%3Cpath d='M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.nw-icon-key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9'/%3E%3Cpath d='M17 6l3 3'/%3E%3Cpath d='M14.5 8.5l2 2'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9'/%3E%3Cpath d='M17 6l3 3'/%3E%3Cpath d='M14.5 8.5l2 2'/%3E%3C/svg%3E"); }
.nw-icon-lock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.nw-icon-admin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.nw-icon-policy { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M10 13h6'/%3E%3Cpath d='M10 17h6'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M10 13h6'/%3E%3Cpath d='M10 17h6'/%3E%3C/svg%3E"); }
.nw-icon-pen { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4-1 11-11-3-3L5 16z'/%3E%3Cpath d='M14 7l3 3'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4-1 11-11-3-3L5 16z'/%3E%3Cpath d='M14 7l3 3'/%3E%3C/svg%3E"); }
.nw-icon-server { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='16' height='7' rx='1.5'/%3E%3Cpath d='M8 7.5h.01'/%3E%3Cpath d='M8 16.5h.01'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='16' height='7' rx='1.5'/%3E%3Cpath d='M8 7.5h.01'/%3E%3Cpath d='M8 16.5h.01'/%3E%3C/svg%3E"); }
.nw-icon-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.nw-icon-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); }
.nw-icon-browser { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M6.5 6.5h.01'/%3E%3Cpath d='M9 6.5h.01'/%3E%3C/svg%3E"); --iw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M6.5 6.5h.01'/%3E%3Cpath d='M9 6.5h.01'/%3E%3C/svg%3E"); }

/* Icon tiles on features (alternating blue and amber) */
.nw-section .nw-feature[class*="nw-icon-"]::before { content: ""; display: block; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 12px; background: var(--blue-soft) var(--i) center / 1.6rem no-repeat; }
.nw-section .nw-grid > .nw-feature:nth-child(even)::before,
.nw-section .nw-grid > .wp-block-group__inner-container > .nw-feature:nth-child(even)::before { background-color: var(--amber-soft); }

/* Service rows: solid icon tile */
.nw-section .nw-service[class*="nw-icon-"] > .wp-block-column:first-child::before { content: ""; display: block; width: 3.5rem; height: 3.5rem; margin-bottom: 1.1rem; border-radius: 14px; background: var(--blue) var(--iw) center / 1.8rem no-repeat; }
.nw-section .nw-service.nw-icon-shield > .wp-block-column:first-child::before { background-color: var(--amber); background-image: var(--i); }

/* Illustrations (line-art style from the original Northward site), shown on dark panels */
.nw-hero { position: relative; overflow: hidden; }
.nw-hero::after { content: ""; display: block; width: 100%; max-width: 470px; aspect-ratio: 5 / 4; margin-top: 2.5rem; border-radius: 28px; background: url("../img/illus-roadmap.svg") center / 84% no-repeat, var(--ink); }
@media (min-width: 1100px) {
  .nw-hero::before { content: ""; position: absolute; top: 50%; margin-top: -230px; right: calc(max(var(--gutter), (100% - var(--wrap)) / 2) - 30px); width: 150px; height: 150px; border-radius: 50%; background: var(--amber); }
  .nw-hero::after { position: absolute; margin-top: 0; max-width: none; top: 50%; right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); transform: translateY(-50%); width: clamp(360px, 34vw, 470px); box-shadow: 0 30px 60px -30px rgba(11, 13, 16, 0.6); }
  .nw-hero .lede { max-width: 34rem; }
  .nw-hero h1 { max-width: 13ch; }
}

.nw-page-hero--art { position: relative; overflow: hidden; }
.nw-page-hero--art.nw-icon-laptop { --illus: url("../img/illus-laptop.svg"); }
.nw-page-hero--art.nw-icon-shield { --illus: url("../img/illus-security.svg"); }
.nw-page-hero--art.nw-icon-browser { --illus: url("../img/illus-web.svg"); }
.nw-page-hero--art.nw-icon-mail { --illus: url("../img/illus-contact.svg"); }
@media (min-width: 960px) {
  .nw-page-hero--art::before, .nw-page-hero--art::after { content: ""; position: absolute; top: 50%; }
  .nw-page-hero--art::before { right: calc(max(var(--gutter), (100% - var(--wrap)) / 2) - 24px); width: 120px; height: 120px; margin-top: -170px; border-radius: 50%; background: var(--amber); }
  .nw-page-hero--art::after { right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); width: clamp(280px, 27vw, 380px); aspect-ratio: 4 / 3; transform: translateY(-50%); border-radius: 28px; background: var(--illus) center / 86% no-repeat, var(--ink); box-shadow: 0 30px 60px -30px rgba(11, 13, 16, 0.6); }
  .nw-page-hero--art h1 { max-width: min(18ch, 100% - 420px); }
  .nw-page-hero--art .lede { max-width: min(36rem, 100% - 420px); }
}

/* Contact band in brand blue, with an amber button */
.nw-section.nw-cta { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.nw-cta::before { content: ""; position: absolute; right: -70px; top: -100px; width: 200px; height: 200px; border-radius: 50%; background: var(--amber); }
.nw-cta .wp-block-columns { position: relative; z-index: 1; }
.nw-cta :is(h2, h3) { color: #fff; }
.nw-cta .muted { color: rgba(255, 255, 255, 0.86); }
.nw-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link.wp-block-button__link { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.nw-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link.wp-block-button__link:hover { background: #ffc24d; border-color: #ffc24d; color: var(--ink); }
.nw-cta .wp-block-button.is-style-outline > .wp-block-button__link.wp-block-button__link { color: #fff; }
.nw-cta .wp-block-button.is-style-outline > .wp-block-button__link.wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nw-cta :focus-visible { outline-color: #fff; }
@media (max-width: 781px) { .nw-cta::before { width: 120px; height: 120px; right: -50px; top: -60px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
