/* Northgate Enterprises. One stylesheet, system fonts, no external requests. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #526077;
  --border: #e2e7ef;
  --brand: #1d4ed8;
  --brand-ink: #ffffff;
  --brand-soft: #e8efff;
  --mark: #0f1b2d;
  --mark-line: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f182a;
    --surface: #121d31;
    --text: #e7ecf4;
    --muted: #9aa8bd;
    --border: #22304a;
    --brand: #7aa2ff;
    --brand-ink: #0b1220;
    --brand-soft: #16254a;
    --mark: #e7ecf4;
    --mark-line: #0b1220;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow {
  color: var(--brand); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.mark { width: 34px; height: 34px; flex: none; }
.mark-bg { fill: var(--mark); }
.mark-line { fill: none; stroke: var(--mark-line); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 750; font-size: 1.05rem; letter-spacing: -0.01em; display: flex; flex-direction: column; line-height: 1.05; }
.brand-sub { font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--text); background: var(--brand-soft); }

/* Sections */
.hero { padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 96px); background:
  radial-gradient(900px 400px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero h1 { max-width: 16em; }
.page-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 36px; }
.spaced { margin-top: 56px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.button.primary:hover { filter: brightness(1.08); }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.compact { gap: 16px; margin: 8px 0 32px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--brand-soft);
  fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.icon.large { width: 64px; height: 64px; padding: 14px; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding: 16px 18px 16px 50px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand);
}
.checklist li::after {
  /* The tick is drawn in --brand-ink so it keeps contrast on --brand in both themes. */
  content: ""; position: absolute; left: 24.5px; top: 23.5px; width: 5px; height: 9px;
  border: solid var(--brand-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.plain { padding-left: 1.2em; margin: 0 0 1em; }
.plain li { margin: .25em 0; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px; border-radius: 20px; background: var(--brand-soft); border: 1px solid var(--border); }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; }

.empty-state { text-align: center; padding: 56px 32px; border: 1px dashed var(--border); border-radius: 20px; background: var(--bg-alt); }
.empty-state .icon { margin: 0 auto 20px; display: block; }
.empty-state p { max-width: 36em; margin-left: auto; margin-right: auto; }

.prose { max-width: 70ch; }
.wrap.narrow .prose, .wrap.narrow.prose { max-width: none; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 550; }

.contact-email { font-size: 1.25rem; font-weight: 650; word-break: break-all; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-brand { font-weight: 700; margin-bottom: .2em; }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .grid.three, .grid.two, .split { grid-template-columns: 1fr; }
  .split { gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { padding: 10px 16px; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
  .card, .cta { padding: 22px; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
}
