/* ==========================================================================
   Johnson Global Enterprises — Bio Solutions
   Design system: "Field & Foundry" — biology meets industry.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* Palette — named tokens */
  --forest:      #0F3D66;   /* primary dark ground: deep blue, from the Johnson Global logo */
  --forest-deep: #061B38;   /* darker still, for depth/gradients */
  --paper:       #F3F1E7;   /* warm, unbleached paper — not cream/terracotta */
  --paper-dim:   #E9E5D4;   /* recessed paper panels */
  --bio:         #7CB143;   /* living green — growth, action, "the solution" */
  --bio-deep:    #4F7A2A;   /* darker bio-green for text on paper */
  --rust:        #B1541F;   /* literal rust/corrosion — "the problem" */
  --rust-deep:   #8C4118;
  --steel:       #46545B;   /* industrial steel-grey-blue */
  --ink:         #17211D;   /* near-black text on paper */
  --ink-soft:    #4A5650;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --max-w: 1160px;
  --edge: clamp(20px, 5vw, 64px);

  --radius-s: 3px;
  --radius-m: 6px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ---------- Typography ---------- */
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 600; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.85rem); font-weight: 600; }
h3{ font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 600; }
h4{ font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bio-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before{
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.on-dark .eyebrow{ color: var(--bio); }

p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
p:last-child{ margin-bottom: 0; }
.lede{ font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

.on-dark{ color: var(--paper); }
.on-dark p{ color: rgba(243,241,231,0.72); }
.on-dark h1, .on-dark h2, .on-dark h3{ color: var(--paper); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95em 1.5em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--bio); color: var(--forest-deep); }
.btn-primary:hover{ background: #8FC358; }
.btn-outline{ border-color: currentColor; color: inherit; }
.btn-outline:hover{ background: rgba(255,255,255,0.08); }
.on-light .btn-outline{ border-color: var(--ink); }
.on-light .btn-outline:hover{ background: rgba(15,61,102,0.06); }
.btn-arrow{ transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow{ transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,61,102,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(243,241,231,0.1);
}
.site-header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ height: 52px; width: auto; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--paper);
  line-height: 1.15;
}
.brand-name span{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bio);
  font-weight: 400;
  margin-top: 2px;
}
.main-nav ul{ display: flex; gap: 2.1rem; align-items: center; }
.main-nav a{
  font-size: 0.88rem;
  color: rgba(243,241,231,0.82);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover, .main-nav a.active{ color: var(--paper); }
.main-nav a.active::after{
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--bio);
}
.nav-cta{
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.55em 1.1em; border: 1px solid rgba(243,241,231,0.35); border-radius: var(--radius-s);
  color: var(--paper);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover{ border-color: var(--bio); background: rgba(124,177,67,0.12); }

.nav-toggle{
  display: none;
  background: none; border: none; color: var(--paper); cursor: pointer;
  padding: 8px;
}
.nav-toggle svg{ width: 22px; height: 22px; }

@media (max-width: 860px){
  .main-nav{
    position: fixed; inset: 84px 0 0 0;
    background: var(--forest);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    padding: 2rem var(--edge);
  }
  .main-nav.open{ opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav ul{ flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .main-nav a{ font-size: 1.1rem; }
  .nav-toggle{ display: block; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: radial-gradient(ellipse 120% 90% at 75% 0%, #1B5FA0 0%, var(--forest) 46%, var(--forest-deep) 100%);
  color: var(--paper);
  overflow: hidden;
  padding: 6.5rem 0 5.5rem;
}
.hero-field{
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.55;
}
.hero .wrap{ position: relative; z-index: 1; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
}
.hero h1{ margin: 0.5rem 0 1.3rem; }
.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(243,241,231,0.16);
}
.hero-stat b{
  display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--bio); font-weight: 600;
}
.hero-stat span{ font-size: 0.8rem; color: rgba(243,241,231,0.65); }
.hero-actions{ display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-panel{
  background: rgba(243,241,231,0.06);
  border: 1px solid rgba(243,241,231,0.14);
  border-radius: var(--radius-m);
  padding: 1.8rem;
}
.hero-panel .eyebrow{ margin-bottom: 0.9rem; }
.hero-panel p{ font-size: 0.94rem; }
.hero-panel-row{
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(243,241,231,0.12);
  font-size: 0.85rem;
}
.hero-panel-row:first-of-type{ border-top: none; }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

/* ---------- Section scaffolding ---------- */
section{ padding: 5.5rem 0; }
.section-tight{ padding: 3.5rem 0; }
.section-head{
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-bottom: 3rem;
}
.section-head h2{ margin-top: 0.6rem; }
.section-head p{ margin-top: 0.8rem; }
@media (max-width: 700px){
  .section-head{ flex-direction: column; align-items: flex-start; }
}

.bg-paper{ background: var(--paper); }
.bg-dim{ background: var(--paper-dim); }
.bg-forest{ background: var(--forest); }

/* Divider bar — literal rust-to-bio gradient, the site's signature motif */
.transform-bar{
  height: 5px;
  background: linear-gradient(90deg, var(--rust) 0%, var(--rust) 38%, var(--bio) 62%, var(--bio) 100%);
}
.transform-bar.reverse{ background: linear-gradient(90deg, var(--bio) 0%, var(--bio) 38%, var(--rust) 62%, var(--rust) 100%); }

/* ---------- Two-up "thesis" split ---------- */
.thesis-split{
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(15,61,102,0.14);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.thesis-col{ padding: 2.6rem; position: relative; }
.thesis-col + .thesis-col{ border-left: 1px solid rgba(15,61,102,0.14); }
.thesis-col.is-rust{ background: #FBF3EC; }
.thesis-col.is-bio{ background: #F1F6E9; }
.thesis-tag{
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3em 0.7em; border-radius: 2px; display: inline-block; margin-bottom: 1.2rem;
}
.is-rust .thesis-tag{ background: var(--rust); color: #FBF3EC; }
.is-bio .thesis-tag{ background: var(--bio); color: var(--forest-deep); }
.thesis-col h3{ margin-bottom: 0.7rem; }
.thesis-arrow{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); border: 1px solid rgba(15,61,102,0.14);
  align-items: center; justify-content: center; display: none;
  z-index: 2; font-family: var(--font-mono); font-size: 0.75rem;
}
@media (min-width: 701px){ .thesis-arrow{ display: flex; } }
@media (max-width: 700px){
  .thesis-split{ grid-template-columns: 1fr; }
  .thesis-col + .thesis-col{ border-left: none; border-top: 1px solid rgba(15,61,102,0.14); }
}

/* ---------- Cards ---------- */
.card-grid{ display: grid; gap: 1.4rem; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-4{ grid-template-columns: repeat(2,1fr); } .grid-3{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: #fff;
  border: 1px solid rgba(15,61,102,0.12);
  border-radius: var(--radius-m);
  padding: 1.8rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover{ border-color: var(--bio); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,61,102,0.08); }
.card .num{
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--bio-deep); letter-spacing: 0.06em;
  margin-bottom: 0.9rem; display: block;
}
.card h4{ margin-bottom: 0.5rem; }
.card p{ font-size: 0.92rem; margin-bottom: 0; }
.card-link{
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.76rem; margin-top: 1.1rem; color: var(--forest);
}

/* Sector card variant (icon-led) */
.sector-card{ background: var(--paper-dim); border: 1px solid transparent; }
.sector-card:hover{ background: #fff; }
.sector-icon{
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--forest); color: var(--bio);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.sector-icon svg{ width: 20px; height: 20px; }
.sector-card ul{ margin-top: 0.9rem; }
.sector-card li{
  font-size: 0.86rem; color: var(--ink-soft); padding: 0.3em 0;
  position: relative; padding-left: 1.1em;
}
.sector-card li::before{
  content: '·'; position: absolute; left: 0; color: var(--bio-deep); font-weight: 700;
}

/* ---------- Feature product band ---------- */
.product-feature{
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
  border: 1px solid rgba(15,61,102,0.14); border-radius: var(--radius-m); overflow: hidden; background: #fff;
}
.product-feature.reverse{ grid-template-columns: 1.1fr 0.9fr; }
.product-feature.reverse .pf-visual{ order: 2; }
.pf-visual{
  padding: 2.6rem; display: flex; flex-direction: column; justify-content: center;
  color: var(--paper); position: relative; min-height: 320px;
}
.pf-visual.rust-visual{ background: linear-gradient(160deg, var(--rust-deep), var(--rust)); }
.pf-visual.bio-visual{ background: linear-gradient(160deg, var(--forest-deep), var(--forest)); }
.pf-body{ padding: 2.8rem; display: flex; flex-direction: column; justify-content: center; }
.pf-chips{ display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.3rem 0; }
.pf-chip{
  font-family: var(--font-mono); font-size: 0.72rem; padding: 0.4em 0.75em; border-radius: 20px;
  background: var(--paper-dim); color: var(--ink-soft); border: 1px solid rgba(15,61,102,0.1);
}
@media (max-width: 860px){
  .product-feature, .product-feature.reverse{ grid-template-columns: 1fr; }
  .product-feature.reverse .pf-visual{ order: 0; }
}

/* ---------- Steps ---------- */
.steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step{ padding: 0 1.6rem 0 0; position: relative; }
.step:not(:last-child)::after{
  content: ''; position: absolute; top: 20px; right: -0.2rem; width: calc(100% - 2rem);
  border-top: 1px dashed rgba(15,61,102,0.25);
  display: none;
}
@media (min-width: 861px){ .step:not(:last-child)::after{ display: block; } }
.step-index{
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--bio-deep);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bio-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
  background: var(--paper); position: relative; z-index: 1;
}
.step h4{ margin-bottom: 0.5rem; font-size: 1rem; }
.step p{ font-size: 0.88rem; }
@media (max-width: 860px){ .steps{ grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Tables ---------- */
.table-wrap{ overflow-x: auto; border: 1px solid rgba(15,61,102,0.14); border-radius: var(--radius-m); }
table{ width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
thead th{
  text-align: left; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--forest); color: var(--paper); padding: 0.9em 1.1em; font-weight: 500;
}
tbody td{ padding: 0.85em 1.1em; border-top: 1px solid rgba(15,61,102,0.1); color: var(--ink-soft); }
tbody tr:nth-child(even){ background: rgba(124,177,67,0.05); }
tbody tr.highlight td{ background: rgba(124,177,67,0.14); font-weight: 600; color: var(--ink); }
td.good{ color: var(--bio-deep); font-weight: 600; }
td.bad{ color: var(--rust-deep); }

/* ---------- Checklist ---------- */
.check-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 0.7rem 1.6rem; }
.check-item{ display: flex; gap: 0.7em; font-size: 0.92rem; color: var(--ink-soft); align-items: flex-start; }
.check-item svg{ flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--bio-deep); }
@media (max-width: 620px){ .check-grid{ grid-template-columns: 1fr; } }

/* ---------- Quote / people ---------- */
.people-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.person-card{ background: #fff; border: 1px solid rgba(15,61,102,0.12); border-radius: var(--radius-m); padding: 2rem; }
.person-card .role{ font-family: var(--font-mono); font-size: 0.74rem; color: var(--bio-deep); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; display:block; }
.person-card h3{ margin-bottom: 0.8rem; }
@media (max-width: 700px){ .people-grid{ grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius-m);
  padding: 3.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2{ max-width: 20ch; }
@media (max-width: 700px){ .cta-band{ padding: 2.4rem; } }

/* ---------- Footer ---------- */
.site-footer{ background: var(--forest-deep); color: rgba(243,241,231,0.7); padding: 4rem 0 2rem; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand{ display: flex; gap: 12px; align-items: center; margin-bottom: 1.1rem; }
.footer-brand img{ height: 44px; width: auto; }
.footer-brand span{ font-family: var(--font-display); color: var(--paper); font-size: 1rem; }
.footer-col h4{ color: var(--paper); font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; font-weight: 500; }
.footer-col ul{ display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a{ font-size: 0.88rem; transition: color 0.2s var(--ease); }
.footer-col a:hover{ color: var(--bio); }
.footer-bottom{
  border-top: 1px solid rgba(243,241,231,0.1); padding-top: 1.6rem;
  display: flex; justify-content: space-between; font-size: 0.78rem; flex-wrap: wrap; gap: 0.8rem;
}
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  background: var(--forest); color: var(--paper);
  padding: 3.6rem 0 3rem;
}
.page-hero h1{ margin-top: 0.6rem; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.breadcrumb{ font-family: var(--font-mono); font-size: 0.76rem; color: rgba(243,241,231,0.55); margin-bottom: 1rem; }
.breadcrumb a{ color: rgba(243,241,231,0.8); }
.breadcrumb a:hover{ color: var(--bio); }

/* ---------- Utility ---------- */
.mt-0{ margin-top: 0; }
.center-copy{ max-width: 640px; margin: 0 auto; text-align: center; }
.center-copy p{ margin-left: auto; margin-right: auto; }
.reveal{ opacity: 1; }

.note-box{
  border-left: 3px solid var(--bio-deep); background: var(--paper-dim);
  padding: 1rem 1.3rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 0.88rem; color: var(--ink-soft);
}
.warn-box{ border-left-color: var(--rust); }

.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 800px){ .contact-grid{ grid-template-columns: 1fr; } }
.field{ margin-bottom: 1.3rem; }
.field label{ display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5em; color: var(--ink-soft); }
.field input, .field textarea, .field select{
  width: 100%; padding: 0.85em 1em; border: 1px solid rgba(15,61,102,0.22); border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 0.94rem; background: #fff; color: var(--ink);
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus{ outline: 2px solid var(--bio); outline-offset: 1px; }
:focus-visible{ outline: 2px solid var(--bio); outline-offset: 2px; }
