/* ============================================================
   Deplastech — shared design system
   Palette: brand green, cream, biodiesel gold/amber, ink
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
   ============================================================ */

:root{
  --ink:      #14251C;
  --brand:    #1A4230;
  --brand-2:  #234f39;
  --cream:    #F7F3EC;
  --paper:    #FBF8F2;
  --gold:     #E5A934;
  --amber:    #8A5714;
  --line:     #DCD3C1;
  --line-soft: rgba(20,37,28,0.10);

  --display: 'Space Grotesk', sans-serif;
  --body:    'IBM Plex Sans', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --wrap: 1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:var(--display);
  font-weight:600;
  line-height:1.05;
  margin:0;
  letter-spacing:-0.01em;
}
a{ color:inherit; }
img,svg{ max-width:100%; }
.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 32px; }
section{ padding:104px 0; }
@media (max-width:760px){
  section{ padding:64px 0; }
  .wrap{ padding:0 22px; }
}

.eyebrow{
  font-family:var(--mono);
  font-weight:500;
  font-size:14px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--amber);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.eyebrow .mark{ width:12px; height:auto; flex:none; }
.eyebrow.on-dark{ color:var(--gold); }

/* reveal-on-scroll */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ===== nav ===== */
header.site{
  position:sticky; top:16px; z-index:50;
  padding:0 16px;
  margin-bottom:28px; /* guarantees visible cream space between the pill and whatever section follows,
                          even when that section is the same green as the pill itself */
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:9px 9px 9px 22px;
  max-width:900px; margin:0 auto;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:0 10px 30px rgba(20,37,28,0.10);
  transition:background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* once scrolled past the threshold, the pill turns to frosted glass instead of solid paper */
header.site.is-scrolled .nav{
  background:rgba(251,248,242,0.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 10px 30px rgba(20,37,28,0.12);
}

/* full lockup: teardrop | divider | wordmark + tagline — geometry verified against the
   original business card path; icon height is pinned to exactly match the divider height */
.logo-lockup{ display:flex; align-items:center; gap:8px; text-decoration:none; }
.logo-lockup .lockup-icon{ height:32px; width:auto; flex:none; color:var(--cream); }
.logo-lockup .lockup-divider{ width:1.5px; height:32px; background:rgba(247,243,236,0.4); flex:none; }
.logo-lockup .lockup-text{ display:flex; flex-direction:column; justify-content:center; line-height:1.15; margin-left:10px; }
.logo-lockup .lockup-name{ font-family:var(--display); font-weight:700; font-size:16px; letter-spacing:-0.01em; color:var(--cream); }
.logo-lockup .lockup-tag{
  font-family:var(--mono); font-size:8.5px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--cream); margin-top:3px; white-space:nowrap;
}
/* light variant — matches the original logo file exactly: green icon/divider/wordmark, gray tagline. No deviation. */
.logo-lockup.on-light .lockup-icon{ color:var(--brand); }
.logo-lockup.on-light .lockup-divider{ background:var(--brand); opacity:1; }
.logo-lockup.on-light .lockup-name{ color:var(--brand); }
.logo-lockup.on-light .lockup-tag{ color:#6B6F6A; }

/* nav now matches Plastic Energy's pattern: logo on the left, a single menu button
   on the right, at every screen width — no inline link list ever shown */
nav.links{ display:flex; align-items:center; }

.nav-toggle{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  border:none; background:rgba(26,66,48,0.08); cursor:pointer;
}
.nav-toggle svg{ width:16px; height:16px; color:var(--brand); }
.mobile-menu{
  display:none; flex-direction:column; gap:2px;
  max-width:900px; margin:8px auto 0;
  background:var(--paper); border-radius:16px;
  box-shadow:0 10px 30px rgba(20,37,28,0.18);
  overflow:hidden;
}
.mobile-menu.open{ display:flex; }
.mobile-menu a{
  padding:14px 22px; text-decoration:none; color:var(--ink);
  font-size:15px; border-bottom:1px solid var(--line-soft);
}
.mobile-menu a:last-child{ border-bottom:none; }
.mobile-menu a.current{ font-weight:600; color:var(--brand); }

/* nav now shows inline links on desktop — a visible link list reads as more
   established/scannable for enterprise visitors than an always-hidden hamburger.
   Below 900px it collapses back to the single toggle button, same as before. */
nav.links{ display:flex; align-items:center; gap:30px; }
.nav-inline{ display:flex; align-items:center; gap:26px; }
.nav-inline a{
  text-decoration:none; font-size:14px; color:rgba(20,37,28,0.72);
  padding:6px 2px; border-bottom:2px solid transparent; transition:color .2s ease, border-color .2s ease;
}
.nav-inline a:hover{ color:var(--brand); }
.nav-inline a.current{ color:var(--brand); font-weight:600; border-color:var(--gold); }
@media (max-width:900px){ .nav-inline{ display:none; } }
@media (min-width:901px){ .nav-toggle{ display:none; } }

/* ===== breadcrumb (subpages) ===== */
.breadcrumb{
  font-family:var(--mono); font-size:12px; letter-spacing:0.04em;
  color:rgba(247,243,236,0.6); margin-bottom:14px; display:flex; align-items:center; gap:8px;
}
.breadcrumb a{ text-decoration:none; color:rgba(247,243,236,0.75); transition:color .2s ease; }
.breadcrumb a:hover{ color:var(--gold); }
.breadcrumb .sep{ opacity:0.5; }
.breadcrumb .current{ color:var(--gold); }

/* ===== contact segmentation (pill radio group) ===== */
.segment-group{ display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.segment-group input{ position:absolute; opacity:0; pointer-events:none; }
.segment-group label{
  display:inline-flex; align-items:center; cursor:pointer;
  font-family:var(--body); font-size:13.5px; font-weight:500; color:var(--brand);
  padding:10px 18px; border-radius:999px; border:1.5px solid var(--line);
  background:var(--paper); transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.segment-group input:checked + label{
  background:var(--brand); border-color:var(--brand); color:var(--cream);
}
.segment-group label:hover{ border-color:var(--gold); }
.segment-note{
  margin-top:14px; font-size:13.5px; color:rgba(20,37,28,0.65);
  background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:12px 16px;
}

/* ===== page banner ===== */
.page-banner{
  background:var(--brand); color:var(--cream);
  padding:88px 0 68px;
}
.page-banner .eyebrow{ color:var(--gold); }
.page-banner h1{ font-size:clamp(34px,5vw,54px); color:var(--cream); max-width:16ch; }
.page-banner p{ margin-top:16px; font-size:17px; color:rgba(247,243,236,0.75); max-width:56ch; }

/* ===== buttons ===== */
.btn{
  display:inline-block; text-decoration:none; font-family:var(--body);
  font-weight:500; font-size:15px; padding:13px 24px; border-radius:3px;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
  border:1.5px solid transparent;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--brand); color:var(--cream); }
.btn-primary:hover{ background:var(--brand-2); }
.btn-ghost{ background:transparent; color:var(--brand); border-color:var(--brand); }
.btn-ghost:hover{ background:rgba(26,66,48,0.06); }
.btn-ghost.on-dark{ color:var(--cream); border-color:rgba(247,243,236,0.5); }
.btn-ghost.on-dark:hover{ background:rgba(247,243,236,0.08); }

/* ===== section headers ===== */
.sec-head{ max-width:640px; margin-bottom:52px; }
.sec-head h2{ font-size:clamp(28px,3.6vw,40px); color:var(--brand); }
.sec-head p{ margin-top:14px; font-size:16.5px; color:rgba(20,37,28,0.72); }
.sec-head.on-dark h2{ color:var(--cream); }
.sec-head.on-dark p{ color:rgba(247,243,236,0.72); }

/* ===== stat band ===== */
.stats{ background:var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
@media (max-width:760px){ .stats-grid{ grid-template-columns:1fr 1fr; row-gap:36px; } }
.stat{ padding:0 24px; border-right:1px solid var(--line); }
.stat:last-child{ border-right:none; }
@media (max-width:760px){
  .stat{ border-right:none; padding:0 12px; }
  .stat:nth-child(odd){ border-right:1px solid var(--line); }
}
.stat .num{ font-family:var(--display); font-size:clamp(30px,4vw,44px); color:var(--brand); font-weight:700; }
.stat .lbl{ margin-top:8px; font-size:13.5px; color:rgba(20,37,28,0.68); line-height:1.4; }
.stats-source{ margin-top:36px; font-family:var(--mono); font-size:13px; letter-spacing:0.02em; color:rgba(20,37,28,0.55); }

/* ===== process steps ===== */
.process-list{ display:flex; flex-direction:column; }
.process-step{
  display:grid; grid-template-columns:120px 1fr; gap:32px;
  padding:36px 0; border-top:1px solid var(--line);
}
.process-step:last-child{ border-bottom:1px solid var(--line); }
@media (max-width:640px){ .process-step{ grid-template-columns:56px 1fr; gap:18px; } }
.process-step .step-num{
  font-family:var(--mono); font-size:15px; color:var(--gold); padding-top:4px;
}
.process-step h3{ font-size:21px; color:var(--brand); margin-bottom:10px; }
.process-step p{ font-size:15px; color:rgba(20,37,28,0.72); max-width:60ch; margin:0; }

.loop-note{
  margin-top:44px; display:flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:13px; color:var(--amber);
}
.loop-note svg{ width:16px; height:16px; flex:none; }

/* ===== card grids (products / offerings) ===== */
.card-grid{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
@media (max-width:760px){ .card-grid{ grid-template-columns:1fr; } }
.card{
  background:var(--paper); border:1px solid var(--line); border-radius:6px;
  padding:36px 34px;
}
.card .drop-icon{ width:26px; height:auto; margin-bottom:20px; }
.card h3{ font-size:22px; color:var(--brand); margin-bottom:12px; }
.card p{ font-size:15px; color:rgba(20,37,28,0.72); margin:0; }

/* ===== operations / project cards ===== */
.project-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:760px){ .project-grid{ grid-template-columns:1fr; } }
.project-card{
  border:1px solid var(--line); border-radius:6px; overflow:hidden; background:var(--paper);
}
.project-media{
  height:160px; background:linear-gradient(135deg,var(--brand) 0%, var(--brand-2) 60%, var(--gold) 160%);
  position:relative;
}
.project-media .status{
  position:absolute; top:14px; left:14px;
  font-family:var(--mono); font-size:10.5px; letter-spacing:0.1em; text-transform:uppercase;
  background:rgba(20,37,28,0.55); color:var(--cream); padding:5px 10px; border-radius:20px;
}
.project-body{ padding:26px 26px 28px; }
.project-body .fac-label{
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--amber); margin-bottom:10px;
}
.project-body h3{ font-size:20px; color:var(--brand); margin-bottom:10px; }
.project-body p{ font-size:14.5px; color:rgba(20,37,28,0.72); margin:0 0 14px; }
.project-body address{ font-style:normal; font-family:var(--mono); font-size:13.5px; color:rgba(20,37,28,0.68); line-height:1.7; }

/* ===== dark band (facilities highlight / cta) ===== */
.band-dark{ background:var(--brand); color:var(--cream); }
.band-dark .sec-head h2{ color:var(--cream); }
.band-dark .sec-head p{ color:rgba(247,243,236,0.72); }

/* ===== leadership ===== */
.lead-card{
  display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:start;
  max-width:760px;
}
@media (max-width:600px){ .lead-card{ grid-template-columns:1fr; } }
.lead-mark{
  width:56px; height:56px; border-radius:50%; background:var(--paper);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center; flex:none;
}
.lead-mark svg{ width:22px; height:auto; }
.lead-card h3{ font-size:22px; color:var(--brand); }
.lead-card .role{ font-family:var(--mono); font-size:13px; color:var(--amber); margin-top:4px; display:block; }
.lead-card p.bio{ margin-top:16px; font-size:15.5px; color:rgba(20,37,28,0.75); max-width:56ch; }

/* ===== contact ===== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
@media (max-width:800px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.contact-list a, .contact-list .row{
  text-decoration:none; display:flex; align-items:baseline; gap:12px;
  font-family:var(--mono); font-size:15px; color:inherit;
  border-bottom:1px solid var(--line-soft); padding-bottom:14px;
  transition:border-color .2s ease, color .2s ease;
}
.contact-list a:hover{ border-color:var(--gold); color:var(--amber); }
.contact-list .lbl{
  font-family:var(--body); font-size:11px; letter-spacing:0.1em; text-transform:uppercase;
  color:rgba(20,37,28,0.5); min-width:64px; flex:none;
}
.on-dark .contact-list .lbl{ color:rgba(247,243,236,0.5); }
.on-dark .contact-list a, .on-dark .contact-list .row{ color:var(--cream); border-color:rgba(247,243,236,0.18); }
.on-dark .contact-list a:hover{ border-color:var(--gold); color:var(--gold); }

.contact-form{ display:flex; flex-direction:column; gap:16px; }
.contact-form label{ font-size:13px; color:rgba(20,37,28,0.65); margin-bottom:6px; display:block; }
.contact-form input, .contact-form textarea{
  width:100%; font-family:var(--body); font-size:15px; padding:12px 14px;
  border:1px solid var(--line); border-radius:4px; background:var(--paper); color:var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus{
  outline:2px solid var(--gold); outline-offset:1px; border-color:var(--gold);
}
.contact-form textarea{ min-height:120px; resize:vertical; }
.contact-form button{ align-self:flex-start; border:none; cursor:pointer; }
.form-note{ font-size:12.5px; color:rgba(20,37,28,0.5); margin-top:4px; }

/* ===== footer ===== */
footer.site{ background:var(--paper); padding-top:64px; }
footer.site .foot-grid{
  display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:36px;
  padding-bottom:40px;
}
@media (max-width:800px){
  footer.site .foot-grid{ grid-template-columns:1fr 1fr; row-gap:32px; }
}
.foot-mark{ margin-bottom:16px; }
.foot-col p{ font-size:13.5px; color:rgba(20,37,28,0.65); max-width:32ch; }
.foot-col h4{
  font-family:var(--mono); font-size:11px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--amber); margin-bottom:16px; font-weight:600;
}
.foot-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.foot-col a{ text-decoration:none; font-size:14px; color:var(--ink); opacity:0.82; }
.foot-col a:hover{ color:var(--amber); opacity:1; }
.foot-col address{ font-style:normal; font-family:var(--mono); font-size:13px; color:rgba(20,37,28,0.65); line-height:1.7; }
.foot-bottom-band{ background:var(--brand); }
footer .foot-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:20px 32px;
  font-family:var(--mono); font-size:11.5px; color:rgba(247,243,236,0.75);
}

