/* ==========================================================================
   NuVention Solutions — design system
   Brand green is taken from the company's own logo (#015b02 family); the
   neutral is a warm sand so the green reads as industrial rather than
   eco-cliché. No web fonts: the site is fully self-contained and must render
   identically from a file:// path with no network.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  --green-950: #04240d;
  --green-900: #06361a;
  --green-800: #07481f;
  --green-700: #0a5c26;
  --green-600: #0f7027;
  --green-500: #178a33;
  --green-300: #6fb886;
  --green-100: #e4f2e7;
  --green-050: #f1f8f2;
  --lime: #a9d93c;
  --lime-dark: #8dbd26;

  --ink: #10201a;
  --ink-soft: #3c4f47;
  --ink-mute: #6b7d75;
  --line: #dde5e0;
  --line-soft: #eef3f0;
  --sand: #f7f6f2;
  --sand-dark: #efece4;
  --white: #fff;

  --maxw: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 26, .06), 0 1px 3px rgba(16, 32, 26, .05);
  --shadow: 0 4px 12px rgba(16, 32, 26, .07), 0 12px 32px rgba(16, 32, 26, .06);
  --shadow-lg: 0 18px 48px rgba(6, 54, 26, .16);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.14; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.16rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.03rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: clamp(3.4rem, 7vw, 6.2rem) 0; }
.section-sand { background: var(--sand); }
.section-green { background: var(--green-900); color: #e8f3ea; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green a { color: var(--lime); }
.section-tight { padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.split { display: grid; gap: clamp(1.8rem, 4.5vw, 3.6rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split-wide { grid-template-columns: 1.15fr .85fr; } .split-narrow { grid-template-columns: .85fr 1.15fr; } }
.stack-sm > * + * { margin-top: .6rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* -------------------------------------------------------------- type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime); border-radius: 2px; }
.section-green .eyebrow { color: var(--lime); }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink-soft); line-height: 1.6; }
.section-green .lede { color: #c3dcc9; }
.muted { color: var(--ink-mute); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); font-size: .86rem; letter-spacing: -.01em; }
.section-head { max-width: 760px; margin-bottom: clamp(1.9rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.4rem; border-radius: 100px; border: 1px solid transparent;
  font-weight: 650; font-size: .96rem; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); color: #fff; box-shadow: var(--shadow); }
.btn-lime { background: var(--lime); color: var(--green-950); }
.btn-lime:hover { background: var(--lime-dark); color: var(--green-950); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--green-300); color: var(--green-700); }
.section-green .btn-ghost { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.section-green .btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------- header */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--green-800); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-scrolled { box-shadow: 0 1px 14px rgba(16,32,26,.07); }
.header-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 158px; height: auto; }
.brand-tag { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); border-left: 1px solid var(--line); padding-left: .65rem; line-height: 1.25; }
@media (max-width: 720px) { .brand-tag { display: none; } }
.nav { margin-left: auto; display: none; }
@media (min-width: 940px) { .nav { display: block; } }
.nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px; text-decoration: none;
  color: var(--ink-soft); font-weight: 550; font-size: .95rem;
}
.nav a:hover { background: var(--green-050); color: var(--green-800); }
.nav a[aria-current="page"] { color: var(--green-800); font-weight: 700; box-shadow: inset 0 -2px 0 var(--lime); border-radius: 8px 8px 0 0; }
.header-cta { display: none; margin-left: .5rem; }
@media (min-width: 940px) { .header-cta { display: inline-flex; } }
.nav-toggle {
  margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
@media (min-width: 940px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer {
  position: fixed; inset: 72px 0 0; z-index: 45; background: var(--white);
  padding: 1.2rem var(--gutter) 2.5rem; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
@media (min-width: 940px) { .drawer { display: none; } }
.drawer ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.drawer a { display: block; padding: .95rem .2rem; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.drawer a[aria-current="page"] { color: var(--green-700); }
body.no-scroll { overflow: hidden; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: var(--green-950); color: #eef6f0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(4,36,13,.96) 0%, rgba(4,36,13,.86) 42%, rgba(6,54,26,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(3.6rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lede { color: #cbe2d1; max-width: 60ch; }
.hero .eyebrow { color: var(--lime); }
.hero-actions { margin-top: 1.9rem; }
.hero-facts {
  position: relative; z-index: 2; display: grid; gap: 1px; background: rgba(255,255,255,.14);
  border-top: 1px solid rgba(255,255,255,.14);
}
@media (min-width: 760px) { .hero-facts { grid-template-columns: repeat(3, 1fr); } }
.hero-fact { background: rgba(4,36,13,.62); padding: 1.35rem var(--gutter); }
.hero-fact b { display: block; font-size: clamp(1.5rem, 3vw, 2.05rem); color: var(--lime); line-height: 1.1; letter-spacing: -.02em; }
.hero-fact span { display: block; font-size: .86rem; color: #a9c7b3; margin-top: .3rem; }

/* --------------------------------------------------------------- surfaces */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-300); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card-flat { background: var(--sand); border-color: transparent; box-shadow: none; }
.pill {
  display: inline-block; padding: .28rem .7rem; border-radius: 100px; background: var(--green-100);
  color: var(--green-800); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.section-green .pill { background: rgba(169,217,60,.16); color: var(--lime); }
.rule-num {
  font-family: var(--mono); font-size: .8rem; color: var(--green-600); font-weight: 700;
  display: block; margin-bottom: .5rem; letter-spacing: .08em;
}

/* --------------------------------------------------------------- figures */
figure { margin: 0; }
.fig-frame {
  background: linear-gradient(160deg, var(--green-050), var(--sand-dark));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem);
}
.fig-frame svg { width: 100%; height: auto; }
figcaption { font-size: .85rem; color: var(--ink-mute); margin-top: .9rem; }
.diagram-dark { background: linear-gradient(160deg, var(--green-900), var(--green-950)); border-color: rgba(255,255,255,.12); }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.step { position: relative; padding-left: 3.6rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--green-700); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: .84rem; font-weight: 700;
}
.step h4 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.section-green .step::before { background: var(--lime); color: var(--green-950); }
.section-green .step p { color: #bcd6c4; }

/* -------------------------------------------------------------- spec list */
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 1rem; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.specs dt, .specs .k { color: var(--ink-mute); font-size: .93rem; }
.specs .v { font-weight: 700; text-align: right; }
.section-green .specs, .section-green .specs li { border-color: rgba(255,255,255,.14); }
.section-green .specs .k { color: #9dbca8; }

/* ----------------------------------------------------------------- stats */
.stat b { display: block; font-size: clamp(1.9rem, 4.2vw, 2.85rem); line-height: 1; letter-spacing: -.03em; color: var(--green-800); }
.section-green .stat b { color: var(--lime); }
.stat span { display: block; margin-top: .45rem; color: var(--ink-soft); font-size: .93rem; }
.section-green .stat span { color: #b6d2bf; }

/* ------------------------------------------------------------------ tabs */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: .2rem; overflow-x: auto; margin-bottom: 1.9rem; }
.tab {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .8rem 1rem; cursor: pointer; font-weight: 650; color: var(--ink-mute);
  white-space: nowrap; transition: color .16s var(--ease), border-color .16s var(--ease);
}
.tab:hover { color: var(--green-700); }
.tab[aria-selected="true"] { color: var(--green-800); border-bottom-color: var(--lime); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fade .28s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; padding: 1.15rem .2rem; cursor: pointer; text-align: left;
  font-weight: 650; font-size: 1.03rem; color: var(--ink);
}
.acc-btn:hover { color: var(--green-700); }
.acc-btn .chev { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.acc-btn .chev::before, .acc-btn .chev::after {
  content: ""; position: absolute; top: 10px; left: 3px; width: 16px; height: 2px;
  background: var(--green-700); border-radius: 2px; transition: transform .22s var(--ease);
}
.acc-btn .chev::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .chev::after { transform: rotate(0); }
.acc-panel { overflow: hidden; }
.acc-panel > div { padding: 0 .2rem 1.25rem; color: var(--ink-soft); }
.acc-panel[hidden] { display: none; }

/* -------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 1.7rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.6rem; top: .45rem; width: 11px; height: 11px;
  border-radius: 50%; background: var(--green-600); transform: translateX(-5.5px);
  box-shadow: 0 0 0 4px var(--white);
}
.timeline .yr { font-family: var(--mono); font-weight: 700; color: var(--green-700); font-size: .9rem; }
.timeline h4 { margin: .1rem 0 .2rem; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* --------------------------------------------------------- callout/quote */
.callout {
  border-left: 4px solid var(--lime); background: var(--green-050);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p:last-child { margin-bottom: 0; }
.quote { font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.45; letter-spacing: -.015em; }
.quote cite { display: block; margin-top: 1rem; font-size: .9rem; font-style: normal; color: var(--ink-mute); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .38rem; }
.field label { font-size: .9rem; font-weight: 650; }
.field .req { color: var(--green-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: .78rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--white);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(23,138,51,.14);
}
.field .err { font-size: .84rem; color: #b42318; min-height: 1.05em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d92d20; }
.form-note { font-size: .85rem; color: var(--ink-mute); }
.form-status { border-radius: var(--radius-sm); padding: .9rem 1.05rem; font-size: .94rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-300); }
.form-status.bad { background: #fef3f2; color: #912018; border: 1px solid #fda29b; }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.checkline input { width: auto; margin-top: .28rem; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--green-950); color: #b9d3c1; padding: clamp(2.6rem, 5vw, 4rem) 0 1.6rem; font-size: .94rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: #cfe4d5; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand img { width: 172px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .84rem; color: #8fae9a;
}

/* -------------------------------------------------------------- utilities */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.94);
  color: var(--green-800); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.breadcrumb { font-size: .84rem; color: var(--ink-mute); padding: 1.1rem 0 0; }
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb span { margin: 0 .4rem; }
.page-hero { background: linear-gradient(150deg, var(--green-900), var(--green-800)); color: #e9f4ec; padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lede { color: #c6ddcd; max-width: 62ch; }
.page-hero .eyebrow { color: var(--lime); }
.notice { background: var(--sand); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: .92rem; color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.tag-list li { margin: 0; }
.tag-list span { display: inline-block; padding: .3rem .7rem; background: var(--white); border: 1px solid var(--line); border-radius: 100px; font-size: .82rem; color: var(--ink-soft); }

@media print {
  .site-header, .drawer, .to-top, .site-footer { display: none; }
  body { font-size: 12pt; }
  .hero, .page-hero, .section-green { background: none !important; color: #000 !important; }
  .hero h1, .page-hero h1 { color: #000; }
}
