/* Fattori Soluções Ambientais — folha de estilo única */
:root {
  --ink: #17281f;
  --ink-soft: #46584d;
  --brand-900: #0b2f22;
  --brand-800: #114131;
  --brand-700: #1c5a3b;
  --leaf: #5aa469;
  --leaf-soft: #e6f1e8;
  --steel: #6b7378;
  --bg: #ffffff;
  --bg-soft: #f4f8f3;
  --line: #dce6dc;
  --wa: #0f8a48;
  --wa-hover: #0b7139;
  --radius: 16px;
  --shadow: 0 18px 46px -24px rgba(11, 47, 34, 0.38);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-900); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand-900); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; color: var(--brand-900); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--brand-900); color: #e7f0e9; position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--leaf); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #a9d6b2; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--brand-700); color: var(--brand-800); }
.btn--outline:hover { background: var(--brand-800); color: #fff; }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(11,47,34,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 10px 14px; border-radius: 999px;
}
.nav a.nav-link:hover { background: var(--leaf-soft); color: var(--brand-800); }
.nav a.nav-link[aria-current="page"] { color: var(--brand-700); background: var(--leaf-soft); }
.nav .btn { margin-left: 10px; padding: 11px 20px; min-height: 44px; font-size: 0.92rem; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--brand-800); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* Hero */
.hero {
  position: relative; color: #fff; isolation: isolate;
  background:
    linear-gradient(100deg, rgba(7,34,25,.97) 0%, rgba(7,34,25,.91) 43%, rgba(7,34,25,.44) 100%),
    url("../img/hero-planta.jpg") center 40% / cover no-repeat;
  min-height: min(78vh, 720px); display: flex; align-items: center;
  padding: clamp(72px, 9vw, 112px) 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(7,34,25,.22));
}
.hero-content { max-width: 760px; }
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(2.35rem, 5.5vw, 4.35rem); }
.hero h1 em { font-style: normal; color: #9fd6a9; }
.hero .lead { color: #e2eee5; margin-bottom: 30px; max-width: 650px; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 16px 0 0; color: #cfe3d3; font-size: .92rem; }

.page-hero {
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700)); color: #fff;
  padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .4em; }
.page-hero .lead { color: #d8e9dc; margin: 0; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(159,214,169,.28), transparent 65%); pointer-events: none;
}

/* Trust strip */
.trust { background: var(--brand-800); color: #e7f0e9; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 16px; padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { width: 34px; height: 34px; color: #9fd6a9; flex: none; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #fff; line-height: 1.25; }
.trust-item span { font-size: 0.92rem; color: #b9d2bf; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column;
  box-shadow: 0 12px 34px -30px rgba(11,47,34,.55);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf); }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .more { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--brand-700); display: inline-flex; align-items: center; gap: 8px; }
.card .more svg { width: 18px; height: 18px; transition: transform .2s; }
a.card:hover .more svg { transform: translateX(4px); }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; background: var(--leaf-soft); color: var(--brand-700);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon-badge svg { width: 28px; height: 28px; }
.section--dark .icon-badge { background: rgba(159,214,169,.14); color: #9fd6a9; }
.diff { padding: 8px 4px; }
.diff p { color: #bcd3c2; font-size: 0.98rem; margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev { grid-template-columns: 1.1fr 1fr; }
.split--rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: 24px; width: 100%; box-shadow: var(--shadow); object-fit: cover; }
.split-media img[src*="arara"] { max-width: 400px; }
.split-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; background: var(--leaf-soft); z-index: -1;
}
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c5a3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.person {
  display: flex; gap: 18px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 26px 0;
}
.person .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand-800); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; flex: none;
}
.person strong { display: block; font-family: var(--font-head); color: var(--brand-900); }
.person span { font-size: 0.95rem; color: var(--ink-soft); }
.person a { font-size: 0.92rem; font-weight: 600; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-800); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 16px;
}
.step p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-800), var(--brand-700)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: #d5e8d9; max-width: 56ch; margin: 0 auto 30px; font-size: 1.1rem; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05); pointer-events: none;
}
.cta-band::before { left: -120px; bottom: -160px; }
.cta-band::after { right: -100px; top: -140px; }
.cta-band .container { position: relative; z-index: 1; }

/* Service detail */
.service { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 64px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
.service-side .icon-badge { width: 72px; height: 72px; border-radius: 20px; }
.service-side .icon-badge svg { width: 36px; height: 36px; }
.service-side h2 { font-size: 1.6rem; }
.service-body .check-list { margin-bottom: 26px; }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.contact-number { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--brand-900); margin: 6px 0 22px; letter-spacing: -0.02em; }
.qr { text-align: center; }
.qr img { width: 100%; max-width: 240px; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; }
.qr p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list svg { width: 26px; height: 26px; color: var(--brand-700); flex: none; margin-top: 2px; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--brand-900); }
.info-list span { color: var(--ink-soft); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--brand-900); color: #c3d8c8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 72px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer p { font-size: 0.95rem; margin-bottom: 10px; }
.site-footer a { color: #c3d8c8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: 0.86rem; color: #93b09a; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  transition: transform .15s ease, background .2s;
}
.wa-float:hover { background: var(--wa-hover); color: #fff; transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .trust-item:first-child { border-top: 0; }
  .split, .split--rev, .contact-card { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .split-media { max-width: 460px; }
  .service { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px var(--gutter) 22px;
    box-shadow: 0 20px 30px -20px rgba(11,47,34,.4); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a.nav-link { padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  .header-inner { min-height: 72px; }
  .hero { min-height: auto; background-position: 58% 40%; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.25rem); }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .split-media::before { inset: 12px -8px -12px 12px; }
  .person { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
}
