/* ============================================================
   NORTHVANE — production site styles
   Plain CSS on the design-system tokens. No framework.
   ============================================================ */

@import "../styles.css";

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }
.section--sm { padding: var(--section-y-sm) 0; }
.section--subtle { background: var(--bg-subtle); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section--dark { background: var(--navy-900); color: var(--text-on-inverse); }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-body); max-width: 680px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.h-hero { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.02em; }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  font-weight: var(--fw-medium); color: var(--accent); margin: 0 0 14px; }
.eyebrow--inverse { color: var(--accent-on-dark); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow.no-line::before { display: none; }

/* ---------- Buttons ---------- */
.btn { --_h: var(--control-h); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--_h); padding: 0 var(--control-pad-x); font-family: var(--font-body); font-size: var(--fs-sm);
  font-weight: var(--fw-semibold); letter-spacing: var(--ls-snug); line-height: 1; white-space: nowrap;
  border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: var(--transition-control); -webkit-tap-highlight-color: transparent; }
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn--lg { --_h: var(--control-h-lg); font-size: var(--fs-body); padding: 0 24px; }
.btn--sm { --_h: var(--control-h-sm); font-size: var(--fs-xs); padding: 0 14px; }
.btn--primary { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--text-on-accent); }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary { background: var(--surface-card); color: var(--text-strong); border-color: var(--border-default); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { border-color: var(--ink-400); background: var(--ink-50); color: var(--text-strong); }
.btn--secondary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text-body); }
.btn--ghost:hover { background: var(--ink-100); color: var(--text-strong); }
.btn--inverse { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--inverse:hover { background: var(--ink-150); color: var(--navy-900); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Cards ---------- */
.card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition-control); }
.card--flat { box-shadow: none; }
.card--interactive { cursor: pointer; }
.card--interactive:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-border); transform: translateY(-2px); }
.card--inverse { background: var(--surface-inverse-card); border-color: var(--border-inverse); box-shadow: none; color: var(--text-on-inverse); }
.card--inverse h1, .card--inverse h2, .card--inverse h3, .card--inverse h4 { color: var(--text-on-inverse); }
.card--dashed { border-style: dashed; box-shadow: none; }
a.card { text-decoration: none; color: inherit; display: block; }

/* ---------- Badge & Tag ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; }
.badge--neutral { background: var(--ink-100); color: var(--ink-700); border-color: var(--ink-200); }
.badge--accent { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--teal-100); }
.badge--success { background: var(--success-soft); color: var(--success); border-color: #CFEBE0; }
.badge--warning { background: var(--warning-soft); color: var(--warning); border-color: #F2E2C0; }
.badge--inverse { background: rgba(255,255,255,.08); color: var(--text-on-inverse); border-color: var(--border-inverse); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; font-family: var(--font-mono);
  font-size: 12px; font-weight: var(--fw-medium); line-height: 1; color: var(--ink-700); white-space: nowrap;
  background: var(--ink-50); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.tag--accent { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--teal-100); }
.tag--inverse { color: var(--text-on-inverse-muted); background: rgba(255,255,255,.05); border-color: var(--border-inverse); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Stat ---------- */
.stat__value { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h2);
  line-height: 1; letter-spacing: var(--ls-tight); color: var(--text-strong); }
.stat__value .u { color: var(--accent); }
.stat__label { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.4; margin-top: 6px; }
.section--subtle .stat__value, .section--dark .stat__value { color: var(--text-strong); }
.section--dark .stat__value { color: var(--text-on-inverse); }
.section--dark .stat__value .u { color: var(--accent-on-dark); }
.section--dark .stat__label { color: var(--text-on-inverse-muted); }

/* ---------- Icon well ---------- */
.icon-well { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--accent-soft);
  color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-well svg { width: 22px; height: 22px; }
[data-lucide] { stroke-width: 2; }

/* ---------- Avatar ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden;
  background: var(--navy-700); color: var(--text-on-inverse); font-family: var(--font-display); font-weight: var(--fw-semibold);
  border: 2px solid var(--white); box-shadow: var(--shadow-sm); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border-subtle); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { height: 30px; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--text-body); border-radius: var(--radius-sm);
  text-decoration: none; transition: var(--transition-control); }
.nav a:hover { color: var(--text-strong); background: var(--ink-50); }
.nav a[aria-current="page"] { color: var(--text-strong); background: var(--ink-100); }
.header-cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: none; color: var(--text-strong); cursor: pointer; padding: 6px; }
.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 16px; border-top: 1px solid var(--border-subtle); background: var(--white); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 16px; font-weight: 500; color: var(--text-body); text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% -10%, rgba(43,196,181,.16), transparent 55%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; padding: 92px 0 96px; }
.id-panel { padding: 0; overflow: hidden; }
.id-panel__photo { aspect-ratio: 4/3; background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--border-inverse); }
.id-panel__tag { position: absolute; bottom: 12px; right: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-on-inverse-muted); }
.id-panel__body { padding: 22px; }

/* ---------- Feature row ---------- */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature h3, .feature h4 { margin: 0; }

/* ---------- Project (problem/solution/impact) ---------- */
.proj__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--border-subtle); padding-top: 18px; margin-top: 16px; }
.proj__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.proj__k.is-impact { color: var(--accent); }
.proj__v { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.proj__v.is-impact { color: var(--text-strong); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--text-on-inverse); }
.site-footer__inner { padding: 64px 24px 28px; max-width: var(--container-max); margin: 0 auto; }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--border-inverse); }
.site-footer__blurb { font-size: 15px; line-height: 1.6; color: var(--text-on-inverse-muted); margin: 0 0 16px; max-width: 320px; }
.ir35 { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-on-inverse); }
.ir35 svg { color: var(--accent-on-dark); width: 15px; height: 15px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: var(--text-on-inverse-muted); padding: 5px 0; text-decoration: none; }
.footer-col a:hover { color: var(--text-on-inverse); }
.site-footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: 13px; color: var(--text-on-inverse-muted); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.field label .req { color: var(--accent); }
.input, .textarea { width: 100%; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--text-strong);
  background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); transition: var(--transition-control); }
.input { height: var(--control-h); padding: 0 14px; }
.textarea { min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring-focus); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 32px; }
.tab { padding: 12px 2px; background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600;
  font-family: var(--font-body); color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--text-strong); border-bottom-color: var(--accent); }

/* ---------- Pills (industries) ---------- */
.pill { display: inline-block; padding: 10px 16px; background: var(--white); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill); font-size: 15px; font-weight: 500; color: var(--text-body); box-shadow: var(--shadow-xs); }

/* ---------- Info rows (company details) ---------- */
.info__row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border-subtle); }
.info__row:first-of-type { border-top: none; padding-top: 0; }
.info__k { font-size: 14px; color: var(--text-muted); flex: none; }
.info__v { font-size: 15px; font-weight: 600; color: var(--text-strong); text-align: right; }
.card--inverse .info__row { border-top-color: var(--border-inverse); }
.card--inverse .info__k { color: var(--text-on-inverse-muted); }
.card--inverse .info__v { color: var(--text-on-inverse); }

/* ---------- Checklist (standards / assurances) ---------- */
.checklist { display: grid; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check > div { display: flex; flex-direction: column; }
.check > svg, .check > i { color: var(--accent); width: 20px; height: 20px; flex: none; margin-top: 1px; }
.check__t { font-weight: 600; color: var(--text-strong); font-size: 15.5px; line-height: 1.3; }
.check__d { color: var(--text-muted); font-size: 14.5px; line-height: 1.45; margin-top: 3px; }

/* ---------- Doc list ---------- */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.doc-row > i { color: var(--accent-strong); width: 18px; height: 18px; flex: none; }
.doc-row span { font-size: 15px; color: var(--text-body); }

/* ---------- Scroll reveal (visible by default; armed only as enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal.armed { opacity: 0; transform: translateY(16px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .reveal.armed.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 72px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .proj__cols { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
  :root { --fs-display: 40px; --fs-h1: 34px; --fs-h2: 28px; }
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .split { grid-template-columns: 1fr !important; }
}

.split { display: grid; gap: 48px; }
