/* Nrthlogic — shared styles */

:root{
  --ink: #1A3C46;
  --ink-raised: #21454F;
  --paper: #EEF3F1;
  --paper-dim: #AFC2C0;
  --mint: #E0FECA;
  --mint-dim: #B9D9A6;
  --slate: #729697;
  --graphite: #7C9394;
  --line: #33565F;
  --line-soft: #24484F;

  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3{
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow{
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

p{ margin: 0 0 1em; color: var(--paper); }
p.dim, .dim{ color: var(--paper-dim); }

/* ---------- Header ---------- */

header.site{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 60, 70, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

header.site .bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo img{
  height: 32px;
  width: auto;
  display: block;
}

nav.primary{
  display: flex;
  gap: 36px;
  font-size: 14.5px;
  font-weight: 500;
}
nav.primary a{
  color: var(--paper-dim);
  transition: color 0.15s ease;
  position: relative;
}
nav.primary a:hover, nav.primary a:focus-visible{ color: var(--paper); }
nav.primary a.active{ color: var(--paper); }
nav.primary a.active::after{
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--mint);
}

.nav-cta{
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper) !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-cta:hover{ border-color: var(--mint); background: rgba(224,254,202,0.08); }

/* mobile nav toggle */
.nav-toggle{ display: none; }

@media (max-width: 780px){
  nav.primary{ display: none; }
  header.site .bar{ padding: 14px 20px; }
  .wrap{ padding: 0 20px; }
}

/* ---------- Bearing line (signature element) ---------- */

.bearing{
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0;
}
.bearing .marker{
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(224,254,202,0.14);
}
.bearing .tick-label{
  position: absolute;
  top: -26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--graphite);
  white-space: nowrap;
}
.bearing .tick-label.right{ text-align: right; }

/* ---------- Hero ---------- */

.hero{
  padding: 96px 0 64px;
}
.hero .kicker{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero .kicker .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
}
.hero h1{
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  max-width: 15ch;
}
.hero h1 em{
  font-style: normal;
  color: var(--mint);
}
.hero .lede{
  margin-top: 26px;
  font-size: 19px;
  color: var(--paper-dim);
  max-width: 46ch;
  line-height: 1.65;
}
.hero .cta-row{
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: var(--body);
}
.btn-primary{
  background: var(--mint);
  color: #0F2229;
}
.btn-primary:hover{ background: #EAFFDC; transform: translateY(-1px); }
.btn-primary:disabled{ opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-ghost{
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--paper-dim); }

.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible, select:focus-visible{
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- Bearing strip w/ two labels (used on home hero) ---------- */

.bearing-strip{
  margin-top: 72px;
  position: relative;
  padding-top: 30px;
}

/* ---------- Sections ---------- */

section{
  padding: 88px 0;
  border-top: 1px solid var(--line-soft);
}
section .head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
section .head h2{
  font-size: clamp(26px, 3vw, 34px);
  max-width: 20ch;
}
section .head .sub{
  color: var(--paper-dim);
  max-width: 42ch;
  font-size: 15.5px;
}

/* Coordinate-style numbered list (used only where order is real: services delivered in sequence) */

.route{
  display: flex;
  flex-direction: column;
}
.route-item{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
}
.route-item:last-child{ border-bottom: 1px solid var(--line-soft); }
.route-item .coord{
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--graphite);
  padding-top: 4px;
}
.route-item h3{
  font-size: 20px;
  margin-bottom: 10px;
}
.route-item p{
  color: var(--paper-dim);
  max-width: 62ch;
  margin: 0;
  font-size: 15.5px;
}

@media (max-width: 620px){
  .route-item{ grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Cards (no numbering — not a sequence) ---------- */

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.card{
  background: var(--ink);
  padding: 32px;
}
.card h3{ font-size: 17px; margin-bottom: 12px; }
.card p{ color: var(--paper-dim); font-size: 14.5px; margin: 0; }

@media (max-width: 820px){
  .grid-3{ grid-template-columns: 1fr; }
}

/* ---------- Pull quote ---------- */

.pull{
  padding: 88px 0;
  border-top: 1px solid var(--line-soft);
}
.pull blockquote{
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  font-weight: 500;
  max-width: 26ch;
  color: var(--paper);
}
.pull cite{
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 14px;
  color: var(--graphite);
}

/* ---------- Readiness questionnaire promo block ---------- */

.readiness{
  border-top: 1px solid var(--line-soft);
  padding: 88px 0;
}
.readiness-box{
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.readiness-box h2{ font-size: 26px; margin-bottom: 14px; }
.readiness-box p{ color: var(--paper-dim); font-size: 15px; }
.readiness-box .btn-primary{ align-self: start; }

@media (max-width: 780px){
  .readiness-box{ grid-template-columns: 1fr; padding: 32px; }
}

/* ---------- Newsletter block ---------- */

.newsletter{
  border-top: 1px solid var(--line-soft);
  padding: 88px 0;
}
.newsletter-box{
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter-box h2{ font-size: 26px; margin-bottom: 14px; }
.newsletter-box p{ color: var(--paper-dim); font-size: 15px; }

.substack-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.substack-form label{
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}
.substack-row{ display: flex; gap: 10px; }
.substack-form input[type=email]{
  flex: 1;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--paper);
  font-size: 15px;
  font-family: var(--body);
}
.substack-form input[type=email]::placeholder{ color: var(--graphite); }
.substack-form input[type=email]:focus{
  outline: none;
  border-color: var(--mint);
}
.substack-form button{
  border: none;
  cursor: pointer;
  font-family: var(--body);
}
.form-note{ font-size: 12.5px; color: var(--graphite); margin: 0; }

@media (max-width: 780px){
  .newsletter-box{ grid-template-columns: 1fr; padding: 32px; }
}

/* ---------- Footer ---------- */

footer.site{
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 56px;
}
footer.site .foot-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer.site .logo img{ height: 26px; }
footer.site .foot-links{
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--paper-dim);
}
footer.site .foot-links a:hover{ color: var(--paper); }
footer.site .copyright{
  font-size: 13px;
  color: var(--graphite);
}

/* ---------- Page header (non-home pages) ---------- */

.page-head{
  padding: 72px 0 56px;
}
.page-head .eyebrow{ margin-bottom: 18px; }
.page-head h1{
  font-size: clamp(32px, 4.5vw, 46px);
  max-width: 18ch;
  line-height: 1.1;
}
.page-head .lede{
  margin-top: 22px;
  font-size: 17.5px;
  color: var(--paper-dim);
  max-width: 56ch;
}

/* ---------- About page specifics ---------- */

.credentials{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.credentials .stat{
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.credentials .stat .num{
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  color: var(--paper);
}
.credentials .stat .label{
  font-size: 13px;
  color: var(--graphite);
  margin-top: 6px;
}
@media (max-width: 620px){
  .credentials{ grid-template-columns: 1fr 1fr; }
}

.prose{
  max-width: 66ch;
  font-size: 16.5px;
  color: var(--paper-dim);
}
.prose p{ color: var(--paper-dim); }
.prose strong{ color: var(--paper); font-weight: 600; }

/* ---------- Blog (post list) ---------- */

.post-list{
  display: flex;
  flex-direction: column;
}
.post-item{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
}
.post-item:last-child{ border-bottom: 1px solid var(--line-soft); }
.post-item .date{
  font-size: 13px;
  color: var(--graphite);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.post-item h3{
  font-size: 19px;
  margin-bottom: 8px;
}
.post-item h3 a:hover{ color: var(--mint); }
.post-item p{
  color: var(--paper-dim);
  font-size: 15px;
  margin: 0;
}
.post-item .tag{
  display: inline-block;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}
@media (max-width: 620px){
  .post-item{ grid-template-columns: 1fr; gap: 8px; }
}

.post-empty{
  padding: 40px 0;
  color: var(--paper-dim);
  font-size: 15.5px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Single article page ---------- */

.article-head{ padding: 64px 0 40px; }
.article-head .date{
  font-size: 13px;
  color: var(--graphite);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: block;
}
.article-head h1{
  font-size: clamp(28px, 4vw, 42px);
  max-width: 20ch;
  line-height: 1.15;
}
.article-body{
  max-width: 68ch;
  font-size: 17px;
  color: var(--paper-dim);
  padding-bottom: 64px;
}
.article-body p{ color: var(--paper-dim); margin: 0 0 1.3em; }
.article-body h2{ color: var(--paper); font-size: 24px; margin: 1.6em 0 0.6em; }
.article-body strong{ color: var(--paper); }
.article-body a{ color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact page ---------- */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px){
  .contact-grid{ grid-template-columns: 1fr; gap: 48px; }
}

.enquiry-form{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label{
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}
.field input, .field select, .field textarea{
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--paper);
  font-size: 15px;
  font-family: var(--body);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--mint);
}
.field textarea{ min-height: 130px; }

.contact-details{
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-details .item{
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.contact-details .item .eyebrow{ margin-bottom: 8px; display:block; }
.contact-details .item a{ color: var(--paper); }
.contact-details .item a:hover{ color: var(--mint); }

/* ---------- Questionnaire (CFO Readiness Review) ---------- */

.q-shell{
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.q-progress{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
}
.q-progress .seg{
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.q-progress .seg .fill{
  height: 100%;
  width: 0%;
  background: var(--mint);
  transition: width 0.25s ease;
}
.q-progress .seg.done .fill{ width: 100%; }
.q-progress .seg.current .fill{ width: 50%; }
.q-count{
  font-size: 12.5px;
  color: var(--graphite);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.q-card h2{
  font-size: clamp(22px, 3vw, 28px);
  max-width: 22ch;
  line-height: 1.25;
  margin-bottom: 28px;
}
.q-options{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.q-option{
  display: block;
  width: 100%;
  text-align: left;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 20px;
  color: var(--paper);
  font-size: 15.5px;
  font-family: var(--body);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.q-option:hover{ border-color: var(--mint-dim); }
.q-option.selected{
  border-color: var(--mint);
  background: rgba(224,254,202,0.08);
}

.q-slider-wrap{ padding: 12px 4px 4px; }
.q-slider-value{
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 18px;
}
.q-slider-wrap input[type=range]{
  width: 100%;
  accent-color: var(--mint);
}

.q-textarea{
  width: 100%;
  min-height: 130px;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--paper);
  font-size: 15.5px;
  font-family: var(--body);
  resize: vertical;
}
.q-textarea:focus{ outline: none; border-color: var(--mint); }

.q-nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
}
.q-nav .q-back{
  color: var(--paper-dim);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--body);
  padding: 8px 0;
}
.q-nav .q-back:hover{ color: var(--paper); }
.q-nav .q-back:disabled{ visibility: hidden; }

.q-email{
  width: 100%;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--paper);
  font-size: 16px;
  font-family: var(--body);
  margin-bottom: 20px;
}
.q-email:focus{ outline: none; border-color: var(--mint); }

.q-done{
  text-align: center;
  padding: 40px 0;
}
.q-done .eyebrow{ display:block; margin-bottom: 18px; }
.q-done h2{ font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 18px; }
.q-done p{ color: var(--paper-dim); font-size: 16.5px; max-width: 52ch; margin: 0 auto; }

@media (max-width: 620px){
  .q-shell{ padding: 44px 20px 72px; }
}
