/* Northgate Technology — site styles.
 * Page layout + component styles, all built on the vendored design tokens
 * (css/tokens/). The DS React components (Button, SectionLabel, Stat, Input)
 * are reproduced here as plain CSS classes so the site needs no runtime. */

/* ───────────────── Reset & base ───────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ngt-font-body);
  font-size: var(--ngt-body-size);
  line-height: var(--ngt-body-line-height);
  color: var(--ngt-text-default);
  background: var(--ngt-surface-subtle);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--ngt-font-heading);
  letter-spacing: var(--ngt-heading-letter-spacing);
  margin: 0;
}

a { color: var(--ngt-text-link); }

:focus-visible {
  outline: 3px solid var(--ngt-interactive-focus-ring);
  outline-offset: 2px;
  border-radius: var(--ngt-radius-sm);
}

@keyframes ngtFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ───────────────── Layout primitives ───────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding-top: 88px; padding-bottom: 88px; }
.section--tight { padding-top: 64px; padding-bottom: 64px; }
.section--muted {
  background: var(--ngt-surface-muted);
  border-top: 1px solid var(--ngt-border-default);
  border-bottom: 1px solid var(--ngt-border-default);
}
.section--surface {
  background: var(--ngt-surface-default);
  border-bottom: 1px solid var(--ngt-border-default);
}
.section--inverse {
  background: var(--ngt-surface-inverse);
  color: var(--ngt-text-inverse);
}
section[id] { scroll-margin-top: 64px; }

/* ───────────────── SectionLabel ───────────────── */
.section-label {
  display: inline-block;
  font-family: var(--ngt-label-family);
  font-weight: var(--ngt-label-weight);
  font-size: var(--ngt-label-size);
  letter-spacing: var(--ngt-label-letter-spacing);
  text-transform: uppercase;
  padding-bottom: var(--ngt-space-2);
  border-bottom: var(--ngt-border-width-rule) solid;
}
.section-label--accent  { color: var(--ngt-brand-accent);  border-color: var(--ngt-border-accent); }
.section-label--primary { color: var(--ngt-brand-primary); border-color: var(--ngt-border-rule); }
.section-label--inverse { color: var(--ngt-text-on-inverse-muted); border-color: var(--ngt-brand-accent); }

/* ───────────────── Button ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ngt-font-heading);
  font-weight: var(--ngt-weight-semibold);
  line-height: 1;
  border-radius: var(--ngt-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, opacity 140ms ease;
  /* default size: md */
  padding: 12px 24px;
  font-size: var(--ngt-font-size-base);
}
.btn--sm { padding: 8px 16px;  font-size: var(--ngt-font-size-sm); }
.btn--lg { padding: 16px 28px; font-size: var(--ngt-font-size-lg); }

.btn--primary {
  background: var(--ngt-interactive-default);
  color: var(--ngt-interactive-on-accent);
}
.btn--primary:hover  { background: var(--ngt-interactive-hover); }
.btn--primary:active { background: var(--ngt-interactive-active); }

.btn--secondary {
  background: transparent;
  color: var(--ngt-brand-accent);
  border-color: var(--ngt-border-accent);
}
.btn--secondary:hover { color: var(--ngt-text-link-hover); border-color: var(--ngt-text-link-hover); }

.btn--block { width: 100%; }

/* ───────────────── Header / nav ───────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--ngt-surface-inverse);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: flex; align-items: center; flex: none; }
.site-header__logo img { height: 22px; width: auto; display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  font-family: var(--ngt-font-heading);
  font-weight: 500;
  font-size: var(--ngt-font-size-sm);
  color: var(--ngt-text-on-inverse-subtle);
  text-decoration: none;
  transition: color 140ms ease;
}
.site-nav a:hover { color: var(--ngt-text-inverse); }
.header-spacer { height: 64px; }

/* ───────────────── Hero (editorial) ───────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ngt-surface-inverse);
  color: var(--ngt-text-inverse);
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: 0; pointer-events: none;
  filter: brightness(1.45) contrast(0.96);
}
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__scrim--h { background: linear-gradient(90deg, rgba(15,28,20,0.90) 0%, rgba(15,28,20,0.66) 42%, rgba(15,28,20,0.28) 72%, rgba(15,28,20,0.12) 100%); }
.hero__scrim--v { background: linear-gradient(180deg, rgba(15,28,20,0.62) 0%, rgba(15,28,20,0) 28%, rgba(15,28,20,0) 70%, rgba(15,28,20,0.55) 100%); }
.hero__scrim--r { background: radial-gradient(120% 120% at 35% 45%, rgba(15,28,20,0) 45%, rgba(15,28,20,0.55) 100%); }
.hero__inner {
  position: relative; z-index: 2;
  padding-top: 124px; padding-bottom: 108px;
}
.hero__content { position: relative; max-width: 760px; }
.hero__label { margin-bottom: 24px; }
.hero h1 {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.04;
  color: var(--ngt-text-inverse);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hero__lede {
  font-size: var(--ngt-font-size-xl);
  line-height: 1.6;
  color: var(--ngt-text-on-inverse-subtle);
  margin: 28px 0 0;
  max-width: 60ch;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ───────────────── Stat band ───────────────── */
.stat-band__lede {
  font-family: var(--ngt-font-heading);
  font-weight: 600;
  font-size: var(--ngt-font-size-lg);
  line-height: 1.45;
  color: var(--ngt-text-muted);
  margin: 0 0 40px;
  max-width: 64ch;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  border-top: var(--ngt-border-width-rule) solid var(--ngt-brand-highlight);
  padding-top: 20px;
}
.stat__value {
  font-family: var(--ngt-font-heading);
  font-weight: var(--ngt-weight-extrabold);
  font-size: var(--ngt-font-size-5xl);
  line-height: 1;
  letter-spacing: var(--ngt-tracking-tight);
  color: var(--ngt-text-default);
}
.stat__caption {
  margin-top: var(--ngt-space-2);
  font-size: var(--ngt-font-size-sm);
  line-height: var(--ngt-leading-snug);
  color: var(--ngt-text-muted);
}

/* ───────────────── Section heads ───────────────── */
.section-head { margin-bottom: 16px; }
.section-title {
  font-weight: 700;
  font-size: var(--ngt-font-size-4xl);
  line-height: 1.12;
  margin: 0 0 44px;
  max-width: 22ch;
}
.section-title--narrow-gap { margin-bottom: 12px; }
.section-intro {
  font-size: var(--ngt-font-size-base);
  line-height: 1.6;
  color: var(--ngt-text-muted);
  margin: 0 0 48px;
  max-width: 64ch;
}

/* ───────────────── Who we serve ───────────────── */
.bg-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* The compass is a child of the section (not the inner content container) so it
   can span the full padded height — N reaches up into the top padding, S down
   into the bottom — and bleed off the right edge, matching the design. */
#serve { position: relative; overflow: hidden; }
.bg-decor--compass-right {
  right: -150px; top: 50%;
  transform: translateY(-50%);
  height: 102%; width: auto;
  mix-blend-mode: multiply;
  opacity: 0.09;
}
.section__body { position: relative; z-index: 1; }

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.engager-card {
  background: var(--ngt-surface-default);
  border: 1px solid var(--ngt-border-default);
  border-radius: var(--ngt-radius-lg);
  padding: 28px;
  box-shadow: var(--ngt-shadow-sm);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.engager-card:hover {
  box-shadow: var(--ngt-shadow-md);
  transform: translateY(-2px);
}
.engager-card h3 {
  font-weight: 700;
  font-size: var(--ngt-font-size-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ngt-text-default);
}
.engager-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ngt-text-muted);
  margin: 0;
}

/* ───────────────── AI readiness ───────────────── */
.ai-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.ai-grid h2 {
  font-weight: 800;
  font-size: var(--ngt-font-size-4xl);
  line-height: 1.08;
  margin: 0 0 24px;
  color: var(--ngt-text-default);
  text-wrap: balance;
}
.ai-grid p { font-size: var(--ngt-font-size-base); line-height: 1.65; margin: 0 0 16px; }
.ai-grid p.muted { color: var(--ngt-text-muted); margin-bottom: 28px; }

.proof-strip {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--ngt-surface-default);
  border: 1px solid var(--ngt-border-default);
  border-radius: var(--ngt-radius-lg);
}
.proof-strip__value {
  font-family: var(--ngt-font-heading);
  font-weight: 800;
  font-size: var(--ngt-font-size-3xl);
  line-height: 1;
  letter-spacing: var(--ngt-tracking-tight);
  color: var(--ngt-brand-primary);
}
.proof-strip__caption {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ngt-text-muted);
  margin-top: 8px;
}
.ai-grid p.proof-sources {
  position: relative; z-index: 1;
  font-size: var(--ngt-font-size-xs);
  line-height: 1.5;
  color: var(--ngt-text-subtle);
  margin: 12px 0 0;
}
.proof-decor {
  position: relative; z-index: 0;
  display: block;
  width: 539px; max-width: 100%; height: auto;
  margin: -90px 0 0 -20px;
  mix-blend-mode: multiply;
  opacity: 0.08;
  pointer-events: none;
}

.assessment-card {
  background: var(--ngt-surface-default);
  border: 1px solid var(--ngt-border-default);
  border-radius: var(--ngt-radius-lg);
  padding: 32px;
  box-shadow: var(--ngt-shadow-md);
}
.assessment-card__eyebrow {
  font-family: var(--ngt-font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ngt-text-muted);
  margin: 0 0 4px;
}
.assessment-list { display: flex; flex-direction: column; }
.assessment-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ngt-border-default);
}
.assessment-item__marker {
  flex: none;
  width: 7px; height: 7px;
  margin-top: 7px;
  background: var(--ngt-brand-highlight);
  border-radius: var(--ngt-radius-sm);
}
.assessment-item__term {
  font-family: var(--ngt-font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ngt-text-default);
}
.assessment-item__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ngt-text-muted);
  margin-top: 4px;
}
.assessment-card__output {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ngt-text-muted);
  margin: 20px 0 0;
}

/* ───────────────── Services ───────────────── */
.section--decor { position: relative; overflow: hidden; }
.bg-decor--lantern {
  top: 10px;
  left: calc((100% - 1080px) / 2 + 462px);
  width: 847px; height: 471px;
  mix-blend-mode: multiply;
  opacity: 0.08;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}
.service {
  border-top: var(--ngt-border-width-rule) solid var(--ngt-brand-highlight);
  padding-top: 24px;
}
.service h3 {
  font-weight: 700;
  font-size: var(--ngt-font-size-2xl);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ngt-text-default);
}
.service ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ngt-text-muted);
}
.service li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  margin-top: 8px;
  background: var(--ngt-brand-accent);
  border-radius: 50%;
}

/* ───────────────── About ───────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
}
.about-portrait {
  border-radius: var(--ngt-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ngt-border-default);
  box-shadow: var(--ngt-shadow-md);
  background: var(--ngt-surface-default);
}
.about-portrait img { width: 100%; height: auto; display: block; }
.about h2 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 4px;
  color: var(--ngt-text-default);
}
.about p.about__role {
  font-family: var(--ngt-font-heading);
  font-weight: 600;
  font-size: var(--ngt-font-size-base);
  color: var(--ngt-brand-accent);
  margin: 0 0 24px;
}
.about p {
  font-size: var(--ngt-font-size-lg);
  line-height: 1.65;
  color: var(--ngt-text-default);
  margin: 0 0 18px;
}
.about p.muted { color: var(--ngt-text-muted); margin-bottom: 28px; }
.about__link {
  font-family: var(--ngt-font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--ngt-text-link);
  text-decoration: none;
  border-bottom: var(--ngt-border-width-rule) solid var(--ngt-border-accent);
  padding-bottom: 2px;
  transition: color 140ms ease;
}
.about__link:hover { color: var(--ngt-text-link-hover); }

/* ───────────────── Contact ───────────────── */
.contact { position: relative; overflow: hidden; }
.bg-decor--compass-contact {
  left: calc((100% - 1080px) / 2 - 100px);
  bottom: -100px;
  width: 1200px; height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.06;
}
.contact__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact h2 {
  font-weight: 800;
  font-size: 42px;
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--ngt-text-inverse);
  text-wrap: balance;
}
.contact__lede {
  font-size: var(--ngt-font-size-lg);
  line-height: 1.6;
  color: var(--ngt-text-on-inverse-subtle);
  margin: 0;
  max-width: 46ch;
}
.contact-card {
  background: var(--ngt-surface-default);
  border-radius: var(--ngt-radius-lg);
  padding: 32px;
  box-shadow: var(--ngt-shadow-lg);
}

/* Form fields (reproduces DS Input) */
.contact-form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: var(--ngt-space-2); }
.field label {
  font-family: var(--ngt-font-heading);
  font-weight: var(--ngt-weight-semibold);
  font-size: var(--ngt-font-size-sm);
  color: var(--ngt-text-default);
}
.field input,
.field textarea {
  font-family: var(--ngt-font-body);
  font-size: var(--ngt-font-size-base);
  color: var(--ngt-text-default);
  background: var(--ngt-surface-default);
  border: 1px solid var(--ngt-border-strong);
  border-radius: var(--ngt-radius-md);
  padding: 10px 12px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--ngt-brand-accent);
  box-shadow: 0 0 0 3px var(--ngt-interactive-focus-ring);
}

/* Thank-you confirmation */
.form-thanks { text-align: center; padding: 28px 8px; }
.form-thanks__check {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ngt-color-moss-50);
  border: var(--ngt-border-width-rule) solid var(--ngt-brand-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ngt-color-moss-600);
  font-family: var(--ngt-font-heading);
  font-weight: 700;
  font-size: var(--ngt-font-size-2xl);
}
.form-thanks h3 {
  font-weight: 700;
  font-size: var(--ngt-font-size-2xl);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ngt-text-default);
}
.form-thanks p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ngt-text-muted);
  margin: 0;
}

/* ───────────────── Footer ───────────────── */
.site-footer {
  background: var(--ngt-surface-inverse-strong);
  color: var(--ngt-text-on-inverse-subtle);
}
.site-footer__inner { padding-top: 56px; padding-bottom: 40px; }
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__brand { max-width: 320px; }
.site-footer__brand img { height: 22px; width: auto; display: block; margin-bottom: 18px; }
.site-footer__brand p {
  font-size: var(--ngt-font-size-sm);
  line-height: 1.6;
  color: var(--ngt-text-on-inverse-muted);
  margin: 0;
}
.site-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer__col-title {
  font-family: var(--ngt-font-heading);
  font-weight: 700;
  font-size: var(--ngt-font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ngt-text-on-inverse-muted);
  margin: 0 0 16px;
}
.site-footer__links { display: flex; flex-direction: column; gap: 12px; }
.site-footer__links a {
  font-family: var(--ngt-font-body);
  font-size: var(--ngt-font-size-sm);
  color: var(--ngt-text-on-inverse-subtle);
  text-decoration: none;
  transition: color 140ms ease;
}
.site-footer__links a:hover { color: var(--ngt-text-inverse); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.site-footer__bottom p {
  font-size: var(--ngt-font-size-xs);
  line-height: 1.6;
  color: var(--ngt-text-on-inverse-muted);
  margin: 0;
}
.site-footer__bottom p:first-child { max-width: 60ch; }

/* ───────────────── Responsive ───────────────── */
@media (max-width: 960px) {
  .ai-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; max-width: 560px; }
  .about-portrait { max-width: 360px; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
}

@media (max-width: 720px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .site-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__inner { padding-top: 96px; padding-bottom: 80px; }
  .hero h1 { font-size: 40px; }
  .hero__lede { font-size: var(--ngt-font-size-lg); }
  .section-title, .ai-grid h2 { font-size: var(--ngt-font-size-3xl); }
  .contact h2 { font-size: var(--ngt-font-size-4xl); }
  .proof-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr; }
}
