/* ==========================================================
   energyfrombiomass.com — Innovative Energy Ventures, LLC
   Built on the IEV design system (forest green + steel slate
   on warm paper; Archivo / Saira Condensed / Spline Sans Mono).
   ========================================================== */

:root {
  --green-900: #0A2614;
  --green-800: #0E361F;
  --green-700: #123D24;
  --green-600: #1C5132;
  --green-500: #2E6B43;
  --green-400: #3E8455;
  --green-300: #6BA683;

  --slate-900: #232B33;
  --slate-800: #303A44;
  --slate-600: #555F69;
  --slate-500: #6C7682;
  --slate-300: #AEB4BB;

  --paper: #ECECE8;
  --paper-2: #F4F4F0;
  --paper-3: #F9F9F6;
  --white: #FFFFFF;
  --ink: #171D23;
  --border: #D9DAD4;
  --border-2: #C6C8C1;
  --sunken: #E2E2DC;

  --feedstock: #2E6B43;
  --diesel: #C0762A;
  --diesel-soft: #E8C79A;
  --power: #3F6075;
  --power-soft: #B4C4CE;

  --text-body: #333C44;
  --text-muted: #5E6772;
  --on-dark: #E7E9E4;
  --on-dark-muted: rgba(231, 233, 228, 0.66);
  --on-accent: #F1F4EF;
  --focus-ring: rgba(46, 107, 67, 0.45);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-condensed: "Saira Condensed", "Archivo Narrow", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-sm: 0 1px 2px rgba(35, 43, 51, 0.06), 0 1px 3px rgba(35, 43, 51, 0.05);
  --shadow-md: 0 2px 4px rgba(35, 43, 51, 0.06), 0 6px 16px rgba(35, 43, 51, 0.08);

  --wrap: 1180px;
  --pad-x: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-underline-offset: 2px; }
a:hover { color: var(--green-500); }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--border); }
.section--paper3 { background: var(--paper-3); }
.section--forest { background: var(--green-800); color: var(--on-dark); border-bottom: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-700); color: var(--on-accent);
  padding: 12px 18px; border-radius: 0 0 var(--radius-md) 0;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--ink); margin: 0; text-wrap: pretty; }
h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; }
h3 { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0 0 20px; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: 16px;
}
.section--forest .eyebrow { color: var(--green-300); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: #fff; }
.section--forest p { color: var(--on-dark-muted); }

.lede { font-size: 18px; color: var(--on-dark); }

.pull {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.45;
  letter-spacing: -0.01em; color: var(--green-700);
  border-left: 3px solid var(--green-600); padding-left: 18px; margin: 0 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, transform 80ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-700); border-color: var(--green-700); color: var(--on-accent); }
.btn--primary:hover { background: var(--green-600); border-color: var(--green-600); color: var(--on-accent); }
.btn--secondary { background: transparent; border-color: var(--border-2); color: var(--slate-800); }
.btn--secondary:hover { border-color: var(--slate-600); color: var(--slate-900); }
.btn--sm { padding: 13px 24px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(236, 236, 232, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; color: var(--slate-900); line-height: 1.1; }
.brand span em { font-style: normal; color: var(--slate-500); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); text-decoration: none;
}
.site-nav a:hover { color: var(--green-700); }
.site-nav .btn {
  padding: 9px 16px; font-size: 13px; text-transform: none;
  font-family: var(--font-display); letter-spacing: 0.01em; color: var(--on-accent);
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--paper-3), var(--paper)); border-bottom: 1px solid var(--border); }
.hero .wrap {
  padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(44px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green-600); display: block; }
.hero h1 { margin-bottom: 22px; }
.hero p { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: 100%; max-width: 430px; }

/* ---------- Image placeholders ---------- */
.imgslot {
  border: 1px dashed var(--border-2); background: var(--sunken);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 24px;
}
.imgslot b {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 500;
}
.imgslot span { font-size: 14px; color: var(--text-muted); max-width: 46ch; line-height: 1.5; }
.imgslot--band { aspect-ratio: 32 / 9; }
.imgslot--43 { aspect-ratio: 4 / 3; }
.imgslot--169 { aspect-ratio: 16 / 9; }
.section--forest .imgslot { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.section--forest .imgslot b { color: var(--green-300); }
.section--forest .imgslot span { color: var(--on-dark-muted); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 24px; padding: 32px 0; margin-bottom: 44px;
  border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2);
}
.stat { border-left: 3px solid var(--feedstock); padding-left: 16px; padding-right: 14px; }
.stat--slate { border-left-color: var(--slate-600); }
.stat .num {
  font-family: var(--font-condensed); font-weight: 700;
  font-size: clamp(40px, 4.4vw, 58px); line-height: 0.9;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
/* Unit label sits on its own line. The numerals scale with viewport but the column
   stops growing at the 1180px content width, so an inline suffix overruns the cell
   on wide screens. Block keeps the oversized numerals and fits at every width. */
.stat .num i { font-style: normal; display: block; font-size: 0.40em; color: var(--feedstock); margin-top: 7px; letter-spacing: 0.01em; }
.stat .num u { text-decoration: none; color: var(--feedstock); }
.stat--slate .num i, .stat--slate .num u { color: var(--slate-600); }
.stat .cap {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 10px; line-height: 1.5;
}

/* ---------- Generic split ---------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.split--center { align-items: center; }
.split--wide { gap: clamp(28px, 4vw, 64px); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 48px 0; }
.step {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid var(--green-400); border-radius: var(--radius-md); padding: 20px 20px 24px;
}
/* Accent maps to the product each stage yields: 04 Refine -> diesel, 05 Generate -> electricity. */
.step:nth-child(4) { border-top-color: var(--diesel); }
.step:nth-child(5) { border-top-color: var(--power); }
.step .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--green-300); margin-bottom: 12px; }
.step:nth-child(4) .n { color: var(--diesel-soft); }
.step:nth-child(5) .n { color: var(--power-soft); }
.step .t { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: #fff; margin-bottom: 8px; }
.step .d { font-size: 14.5px; line-height: 1.5; color: var(--on-dark-muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 36px; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.card .rule { width: 34px; height: 3px; background: var(--feedstock); }
.card--diesel .rule { background: var(--diesel); }
.card--power .rule { background: var(--power); }
.card--slate .rule { background: var(--slate-600); }
.card h3 { font-size: 21px; font-weight: 800; }
.card p { font-size: 15.5px; line-height: 1.65; margin: 0; }

/* ---------- Supplier lists ---------- */
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.list {
  background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--green-600);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 28px;
}
.list--no { background: var(--sunken); border-color: var(--border-2); border-left-color: var(--slate-600); box-shadow: none; }
.list h3 {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: 20px;
}
.list--no h3 { color: var(--slate-600); }
.list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.5; color: var(--text-body); }
.list li::before { content: "+"; color: var(--green-600); font-weight: 700; flex: none; }
.list--no li { color: var(--text-muted); }
.list--no li::before { content: "\00d7"; color: var(--slate-500); }

.claim { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 24px); line-height: 1.35; letter-spacing: -0.015em; color: var(--green-700); max-width: 30ch; margin-bottom: 40px; }

/* ---------- Context columns ---------- */
.cols { columns: 2 340px; column-gap: clamp(28px, 4vw, 56px); }
.cols p { break-inside: avoid; max-width: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--border-2); }
.faq details { border-bottom: 1px solid var(--border-2); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--green-600); font-size: 20px; line-height: 1; flex: none; transition: transform 140ms ease; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { font-size: 16px; margin: 0 0 22px; max-width: 68ch; }

/* ---------- Contact ---------- */
.contact-meta {
  border-left: 3px solid var(--green-600); padding-left: 18px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9;
  letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase;
}
.form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--paper-3); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text-body); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--green-700); width: 16px; height: 16px; flex: none; }
.form .help { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.6; }
.form-note--ok { background: #EEF3EE; border: 1px solid var(--green-300); color: var(--green-700); }
.form-note--err { background: #F6EDE3; border: 1px solid var(--diesel-soft); color: #8A5316; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-800); color: var(--on-dark); }
.site-footer .wrap { padding-top: clamp(44px, 5vw, 64px); padding-bottom: clamp(28px, 3vw, 40px); }
.footer-top {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px); padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: #fff; margin-bottom: 16px; }
.footer-addr { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; letter-spacing: 0.04em; color: var(--on-dark-muted); text-transform: uppercase; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-nav a { color: var(--on-dark-muted); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.footer-bottom p { font-size: 13.5px; line-height: 1.65; color: var(--on-dark-muted); margin: 0; max-width: 62ch; }
.footer-legal { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --pad-x: 20px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .site-nav { width: 100%; gap: 14px 18px; justify-content: flex-start; order: 3; }
  .site-nav a { font-size: 11px; }
  .site-nav .btn { margin-left: auto; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 260px; }
  .hero-actions .btn { width: 100%; }
  .imgslot--band { aspect-ratio: 16 / 9; }
  .cols { columns: 1; }
  .stats { gap: 24px 20px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand span { font-size: 13.5px; }
  .brand img { width: 40px; height: 40px; }
  .section { padding: 48px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
}

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

@media print {
  .site-header, .hero-actions, .form { display: none; }
  .faq details { display: block; }
}
