/* ===========================================================
   Ecosafety — Design System (tokens do Pencil design.pen)
   =========================================================== */
:root {
  /* Neutros */
  --ink: #111815;
  --ink-80: #3a433d;
  --text: #2b3a31;
  --text-muted: #5e6e64;
  --surface: #ffffff;
  --surface-2: #f6f9f7;
  --surface-3: #eef3f0;
  --paper: #fafaf8;
  --line: #e1e8e3;
  /* Verde (marca) */
  --green-50: #f1f8f3;
  --green-100: #e3f1e8;
  --green-200: #bfe0cc;
  --green-500: #1e9e63;
  --green-600: #15814f;
  --green-700: #0f6b43;
  --green-800: #0c4f36;
  --green-900: #0a3d2a;
  /* Acento */
  --gold: #c9a24a;
  --gold-soft: #e7d9b4;
  --amber-500: #e0a33b;
  /* Bandas escuras */
  --dark: #0b1612;
  --dark-2: #0a1310;
  /* Fontes */
  --font-heading: "Geist", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  /* Layout */
  --wrap: 1200px;
  --pad-x: clamp(20px, 6vw, 120px);
}

/* ============================= Reset ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; border-radius: 2px; }
dl, dd { margin: 0; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ============================= Layout =================== */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(64px, 9vw, 104px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.2px;
  color: var(--green-700);
  text-transform: uppercase;
}

/* ============================= Botões =================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 8px;
  transition: background-color .18s ease, transform .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-50); }

/* ============================= Header ================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 29px; height: 35px; }
.brand__name {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 19px; letter-spacing: 1.5px; color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; font-size: 14.5px; color: var(--ink); }
.nav a:hover { color: var(--green-700); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; }

/* Drawer mobile */
.m-nav { display: none; }
.m-nav.is-open {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; inset: 70px 0 auto 0; z-index: 45;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 18px var(--pad-x) 28px;
  box-shadow: 0 24px 40px -24px rgba(0,0,0,.25);
  animation: drawer .2s ease;
}
@keyframes drawer { from { opacity: 0; transform: translateY(-8px); } }
.m-nav a { padding: 13px 4px; font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.m-nav__cta { justify-content: center; border: 0; margin-top: 14px; color: #fff; }

/* ============================= Hero =================== */
.hero { text-align: center; background: var(--surface); position: relative; overflow: hidden; }
.hero .wrap { padding-top: clamp(56px, 8vw, 88px); padding-bottom: 54px; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 2.4px;
  color: var(--text-muted); text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(34px, 6.2vw, 62px); line-height: 1.06; letter-spacing: -1.9px;
  color: var(--ink); max-width: 15ch; margin: 22px auto 0;
}
.hero__sub {
  font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6;
  color: var(--text-muted); max-width: 56ch; margin: 22px auto 0;
}
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero__stats {
  display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px);
  margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line);
}
.stat { text-align: left; }
.stat__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.4px; color: var(--text-muted); }
.stat__v { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--ink); margin-top: 4px; }

/* ===================== Títulos / Section head ========== */
.h-serif {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.12; letter-spacing: -1.2px;
  color: var(--ink); max-width: 18ch;
}
.h-serif--light { color: #fff; }
.eyebrow--gold { color: var(--gold); }
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 60px; margin-bottom: 54px;
}
.sec-head__l { display: flex; flex-direction: column; gap: 16px; max-width: 660px; }
.sec-head__intro { max-width: 392px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.sec-head__intro--light { color: rgba(255,255,255,.7); }
.link-arrow { display: inline-block; margin-top: 16px; color: var(--green-700); font-weight: 600; font-size: 15px; }
.link-arrow:hover { color: var(--green-800); }

/* ===================== Faixa segmentos ================= */
.seg-strip { background: var(--paper); border-bottom: 1px solid var(--line); padding: 26px 0 30px; }
.seg-strip__lbl { text-align: center; color: var(--text-muted); font-size: 11.5px; margin-bottom: 16px; }
.seg-strip__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  color: var(--ink); font-family: var(--font-heading); font-weight: 600; font-size: 16px;
}
.seg-strip__list li { position: relative; }
.seg-strip__list li:not(:last-child)::after {
  content: "·"; position: absolute; right: -16px; color: var(--green-500);
}

/* ===================== Problema ======================== */
.problema { background: var(--dark); color: #fff; }
.prob-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.prob-grid li { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.prob-ic { color: var(--green-200); display: inline-flex; }
.prob-ic svg { width: 22px; height: 22px; }
.prob-grid h3 { font-family: var(--font-heading); font-size: 16.5px; font-weight: 600; margin-top: 14px; }
.prob-grid p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.5); margin-top: 8px; }

/* ===================== Solução ========================= */
.solucao__body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.sol-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  align-content: start;
}
.sol-list li {
  position: relative; padding-left: 26px; font-size: 16px; color: var(--ink); font-weight: 500;
}
.sol-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green-100);
  box-shadow: inset 0 0 0 4px var(--green-600);
}
.sol-card { background: var(--green-800); color: #fff; border-radius: 14px; padding: 40px; }
.sol-card__eb { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 2px; color: var(--gold-soft); text-transform: uppercase; display: block; margin-bottom: 14px; }
.sol-card h3 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; letter-spacing: -.6px; }
.sol-card p { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.82); }
.sol-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sol-tags li {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: #fff;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12);
}

/* ===================== Áreas / cards =================== */
.areas { background: var(--paper); border-block: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.area-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(15,107,67,.32); border-color: var(--green-200); }
.ic-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; background: var(--green-50); color: var(--green-700);
}
.ic-box svg { width: 22px; height: 22px; }
.area-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.area-card p { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

/* ===================== Segmentos ====================== */
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.seg-grid li { display: flex; flex-direction: column; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line); }
.seg-ic { color: var(--green-600); }
.seg-ic svg { width: 22px; height: 22px; }
.seg-grid h3 { font-family: var(--font-heading); font-size: 16.5px; font-weight: 600; line-height: 1.2; color: var(--ink); margin-top: 2px; }
.seg-grid p { font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* ===================== Diferenciais =================== */
.difs { background: var(--green-50); }
.dif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.dif-grid li { padding-top: 22px; border-top: 2px solid var(--green-200); }
.dif-n { font-family: var(--font-heading); font-size: 30px; font-weight: 500; letter-spacing: -.5px; color: var(--green-600); }
.dif-grid li { border-top-width: 1px; }
.dif-grid h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--ink); margin-top: 12px; }
.dif-grid p { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin-top: 8px; }

/* ===================== Produtos ======================= */
.prod-row {
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.prod-row:last-child { border-bottom: 1px solid var(--line); }
.prod-row__main { max-width: 760px; }
.prod-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .8px; color: var(--green-800); text-transform: uppercase; }
.prod-row h3 { font-family: var(--font-heading); font-size: 25px; font-weight: 600; letter-spacing: -.5px; color: var(--ink); margin-top: 8px; }
.prod-row p { font-size: 15.5px; line-height: 1.55; color: var(--text-muted); margin-top: 8px; }
.prod-row .link-arrow { margin-top: 0; white-space: nowrap; }

/* ===================== Autoridade ===================== */
.autoridade { background: var(--dark); color: #fff; }
.auth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.auth-grid li { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.auth-ic { color: var(--green-200); display: inline-flex; }
.auth-ic svg { width: 22px; height: 22px; }
.auth-grid h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; margin-top: 14px; }
.auth-grid p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.5); margin-top: 8px; }
.auth-locs { display: flex; gap: 44px; margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.auth-locs li { display: flex; flex-direction: column; gap: 3px; }
.auth-locs strong { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.auth-locs span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; color: #7fb89a; }
.auth-locs strong { font-size: 16px; }

/* ===================== CTA final ====================== */
.cta-final {
  background: var(--green-700);
  color: #fff; text-align: center;
  padding-block: clamp(64px, 9vw, 96px);
}
.cta-final__eb { display: inline-block; color: var(--gold-soft); letter-spacing: 2.4px; }
.cta-final__title {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(28px, 4.8vw, 46px); line-height: 1.08; letter-spacing: -1.4px;
  max-width: 18ch; margin: 18px auto 0;
}
.cta-final__sub { max-width: 56ch; margin: 18px auto 0; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.85); }
.cta-final__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn-outline-light { color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ===================== Footer ========================= */
.site-footer { background: var(--dark-2); color: #fff; padding: 76px 0 38px; }
.foot-top { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.brand--light .brand__name { color: #fff; }
.brand__wm { display: flex; flex-direction: column; line-height: 1.1; }
.brand__tag { font-family: var(--font-mono); font-size: 8px; letter-spacing: 2px; color: rgba(255,255,255,.5); text-transform: uppercase; margin-top: 2px; }
.foot-desc { margin-top: 18px; max-width: 340px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.foot-col h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #7fb89a; margin-bottom: 14px; }
.foot-col li { margin-bottom: 10px; }
.foot-col a, .foot-col li { font-size: 14px; color: rgba(255,255,255,.65); }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,.45);
}
.foot-legal a:hover { color: #fff; }

/* ============================= Responsivo ============== */
@media (max-width: 980px) {
  .sec-head { flex-direction: column; gap: 22px; margin-bottom: 40px; }
  .prob-grid, .card-grid, .seg-grid, .dif-grid, .auth-grid { grid-template-columns: repeat(2, 1fr); }
  .solucao__body { grid-template-columns: 1fr; gap: 36px; }
  .prod-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-top { grid-template-columns: 1fr; gap: 40px; }
  .auth-locs { gap: 32px; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line);
  }
  .hero__stats { flex-wrap: wrap; gap: 22px 36px; }
}
@media (max-width: 560px) {
  .prob-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .card-grid, .dif-grid { grid-template-columns: 1fr; }
  .sol-list { grid-template-columns: 1fr; }
  .sol-card { padding: 28px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
