/* =========================================================
   PLANTAR — Consultoria Agronômica
   ========================================================= */
/* Fonte hospedada no próprio site (mais rápido e sem enviar dados ao Google) */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --green-900: #06241a;
  --green-800: #0b2e21;
  --green-700: #0f3d2c;
  --green-600: #17563d;
  --green-500: #1f7a45;
  --lime: #6fd13f;
  --lime-600: #4fb52a;
  --ink: #102219;
  --muted: #5b6b63;
  --line: #e2e9e4;
  --bg-soft: #f3f7f2;
  --white: #ffffff;
  /* cores que mudam com o tema (claro/escuro) */
  --surface: #ffffff;
  --brand-ink: #0f3d2c;
  --brand-ink-2: #17563d;
  --header-bg: rgba(255, 255, 255, .92);
  --glass: rgba(255, 255, 255, .92);
  --link: #2c7a17;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(6, 36, 26, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

/* ---------- Tema escuro ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --surface: #0b1712;
  --bg-soft: #10211a;
  --ink: #e6efe9;
  --muted: #9fb3a8;
  --line: #21392e;
  --brand-ink: #b9e79f;
  --brand-ink-2: #6fd13f;
  --header-bg: rgba(9, 20, 15, .88);
  --glass: rgba(12, 26, 20, .9);
  --link: #8fe06a;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --surface: #0b1712;
  --bg-soft: #10211a;
  --ink: #e6efe9;
  --muted: #9fb3a8;
  --line: #21392e;
  --brand-ink: #b9e79f;
  --brand-ink-2: #6fd13f;
  --header-bg: rgba(9, 20, 15, .88);
  --glass: rgba(12, 26, 20, .9);
  --link: #8fe06a;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  transition: background-color .4s ease, color .4s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--lime-600); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--lime); }

.section__title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; max-width: 20ch; }
.section__title em, .hero__title em { font-style: normal; color: var(--lime-600); }
.section__title--light { color: var(--white); }
.section__title--light em { color: var(--lime); }
.section__head { margin-bottom: 48px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--lime); color: var(--green-900); box-shadow: 0 10px 30px -10px rgba(111, 209, 63, .7); }
.btn--primary:hover { background: #82e052; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 18px 0; transition: background .35s, padding .35s, box-shadow .35s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { position: relative; display: block; height: 44px; }
.logo { height: 100%; width: auto; transition: opacity .3s; }
.logo--dark { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; gap: 30px; }
.nav a { color: rgba(255, 255, 255, .85); font-size: .92rem; font-weight: 600; position: relative; transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover, .nav a.active { color: var(--white); }
.nav__cta-mobile { display: none; }
.nav-backdrop { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }

.header.scrolled { padding: 10px 0; }
/* O fundo desfocado fica num pseudo-elemento: se o blur ficasse no próprio header,
   o menu do celular (position: fixed) passaria a ter a altura do header e ficaria "transparente". */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(6, 36, 26, .4); opacity: 0; transition: opacity .35s;
}
.header.scrolled::before { opacity: 1; }
.header.scrolled .logo--light { opacity: 0; }
.header.scrolled .logo--dark { opacity: 1; }
.header.scrolled .nav a { color: var(--ink); }
.header.scrolled .nav a:hover, .header.scrolled .nav a.active { color: var(--lime-600); }
.header.scrolled .menu-toggle span { background: var(--ink); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; padding: 140px 0 100px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 36, 26, .94) 0%, rgba(6, 36, 26, .72) 45%, rgba(6, 36, 26, .2) 100%),
    linear-gradient(0deg, rgba(6, 36, 26, .7) 0%, transparent 40%),
    url("img/hero-1600.webp") center / cover no-repeat;
  transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { max-width: var(--container); }
.hero__title { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 800; max-width: 13ch; margin-bottom: 24px; letter-spacing: -.035em; }
.hero__title em { color: var(--lime); }
.hero__text { max-width: 560px; font-size: clamp(1rem, 1.4vw, 1.12rem); color: rgba(255, 255, 255, .82); margin-bottom: 36px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero__badges li { display: flex; align-items: center; gap: 10px; }
.check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(111, 209, 63, .18); color: var(--lime); font-size: .75rem; font-weight: 800; border: 1px solid rgba(111, 209, 63, .4); }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--lime); border-radius: 4px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Serviços / Carrossel ---------- */
.services { background: var(--surface); overflow: hidden; }
.services__hint { font-size: .85rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.services__hint::after { content: "↓"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--brand-ink-2); animation: hintBob 1.6s ease-in-out infinite; }
@keyframes hintBob { 50% { transform: translateY(4px); } }

/* Modo "fixado": a seção para e os cartões andam para o lado conforme o scroll */
.services.is-pinned { padding: 0; overflow: visible; }
.services.is-pinned .services__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
  padding: calc(clamp(96px, 14vh, 130px) + env(safe-area-inset-top, 0px)) 0 20px;
}
/* O cartão ocupa o espaço que sobra na tela: nada é cortado, em qualquer altura de tela */
.services.is-pinned .section__head { margin-bottom: clamp(14px, 2.5vh, 28px); }
.services.is-pinned .section__title { font-size: clamp(1.6rem, min(4.2vw, 5.4vh), 3.1rem); }
.services.is-pinned .eyebrow { margin-bottom: clamp(6px, 1.4vh, 16px); }
.services.is-pinned .carousel { flex: 1; min-height: 0; overflow: visible; scroll-snap-type: none; display: flex; flex-direction: column; }
.services.is-pinned .carousel__track { flex: 1; min-height: 0; padding-top: 0; padding-bottom: 14px; will-change: transform; }
.services.is-pinned .service-card { height: 100%; max-height: 520px; width: min(1000px, calc(100vw - 40px), 190vh); }
.services.is-pinned .service-card__media { min-height: 0; }
.services.is-pinned .service-card__body { padding: clamp(18px, 3.5vh, 48px) clamp(24px, 3.5vw, 48px); overflow: hidden; }
.services.is-pinned .service-card__icon { width: clamp(40px, 6.5vh, 60px); height: clamp(40px, 6.5vh, 60px); margin-bottom: clamp(10px, 2.2vh, 22px); }
.services.is-pinned .service-card h3 { font-size: clamp(1.2rem, min(2.4vw, 3.6vh), 1.9rem); margin-bottom: clamp(6px, 1.2vh, 12px); }
.services.is-pinned .service-card p { margin-bottom: clamp(10px, 2.2vh, 22px); font-size: clamp(.85rem, 2vh, 1rem); }
.services.is-pinned .service-card li { font-size: clamp(.78rem, 1.8vh, .9rem); }
.services.is-pinned .carousel__dots { margin-top: 0; }

/* Celular/tablet no modo fixado: imagem em cima, texto embaixo, tudo cabendo na tela */
@media (max-width: 960px) {
  .services.is-pinned .services__pin { height: 100svh; padding-top: calc(76px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
  .services.is-pinned .section__head { margin-bottom: 14px; }
  .services.is-pinned .carousel__track { gap: 14px; padding-left: 20px; padding-right: 20px; }
  .services.is-pinned .service-card {
    width: min(560px, calc(100vw - 40px)); max-height: 640px;
    grid-template-columns: 1fr; grid-template-rows: minmax(0, 38%) minmax(0, 1fr);
  }
  .services.is-pinned .service-card__body { padding: 16px 20px; justify-content: flex-start; }
  .services.is-pinned .service-card__icon { display: none; }
  .services.is-pinned .service-card h3 { font-size: 1.2rem; }
  .services.is-pinned .service-card p { font-size: .88rem; margin-bottom: 12px; }
  .services.is-pinned .service-card ul { gap: 6px 14px; }
  .services.is-pinned .service-card li { font-size: .8rem; }
}
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 1.1rem; cursor: pointer; color: var(--green-700); transition: all .25s var(--ease);
}
.round-btn:hover:not(:disabled) { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.round-btn:disabled { opacity: .35; cursor: default; }

.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel__track {
  display: flex; gap: 24px;
  padding: 10px max(20px, calc((100vw - var(--container)) / 2)) 30px;
  width: max-content;
}
.service-card {
  scroll-snap-align: center;
  width: min(1000px, calc(100vw - 40px));
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .4s var(--ease);
}
.service-card__media { position: relative; min-height: 380px; overflow: hidden; }
.service-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.service-card__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 22px; }
.service-card__icon img { width: 40px; height: 40px; object-fit: contain; }
.service-card__icon--svg { color: var(--brand-ink-2); }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: 12px; }
.service-card p { color: var(--muted); margin-bottom: 22px; }
.service-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.service-card li { position: relative; padding-left: 20px; font-size: .9rem; font-weight: 600; color: var(--brand-ink); }
.service-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
.carousel__dots button.active { width: 28px; background: var(--lime-600); }

/* ---------- Crédito rural ---------- */
.credit { color: rgba(255, 255, 255, .8); overflow: hidden; isolation: isolate; }
.credit__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 20%, rgba(111, 209, 63, .15), transparent 45%),
    linear-gradient(135deg, rgba(6, 36, 26, .97), rgba(11, 46, 33, .92)),
    url("img/territorial-1000.webp") center / cover;
}
.credit__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.credit__intro .section__title { margin-bottom: 24px; }
.credit__intro > p { margin-bottom: 32px; }
.credit__note { border-left: 3px solid var(--lime); padding: 20px 24px; background: rgba(255, 255, 255, .05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.credit__note strong { color: var(--white); display: block; margin-bottom: 6px; }
.credit__note p { font-size: .92rem; }
.credit__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.step {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.step:hover { background: rgba(111, 209, 63, .08); border-color: rgba(111, 209, 63, .35); transform: translateY(-4px); }
.step__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--green-900); font-weight: 800; font-size: .85rem; }
.step h3 { color: var(--white); font-size: 1rem; margin-bottom: 6px; letter-spacing: -.01em; }
.step p { font-size: .86rem; line-height: 1.55; }
.credit__disclaimer { grid-column: 1 / -1; font-size: .78rem; color: rgba(255, 255, 255, .55); padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .15); }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); }
.about__media { position: relative; min-height: 560px; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__floating {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 48px);
  background: var(--glass); backdrop-filter: blur(10px); padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 260px;
}
.about__floating strong { display: block; font-size: 1.6rem; color: var(--lime-600); line-height: 1.1; }
.about__floating span { font-size: .88rem; color: var(--muted); }
.about__content { padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 90px); align-self: center; }
.about__content .section__title { margin-bottom: 20px; }
.about__content > p { color: var(--muted); margin-bottom: 36px; max-width: 520px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { background: var(--surface); padding: 20px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature h3 { font-size: 1rem; margin-bottom: 4px; letter-spacing: -.01em; }
.feature p { font-size: .87rem; color: var(--muted); }

/* ---------- Como funciona ---------- */
.how { background: var(--surface); }
.how__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.how__item {
  position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid transparent; transition: all .35s var(--ease);
}
.how__item:hover { background: var(--green-800); color: var(--white); transform: translateY(-6px); }
.how__item:hover p { color: rgba(255, 255, 255, .7); }
.how__item:hover .how__num { color: var(--lime); }
.how__num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--brand-ink-2); margin-bottom: 18px; letter-spacing: -.04em; transition: color .3s; }
.how__item h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -.01em; }
.how__item p { font-size: .9rem; color: var(--muted); transition: color .3s; }

/* ---------- Resultados ---------- */
.results { color: var(--white); overflow: hidden; isolation: isolate; }
.results__bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(6, 36, 26, .96) 20%, rgba(15, 61, 44, .85)), url("img/campo-1600.webp") center / cover fixed;
}
.results .section__title { max-width: none; margin-bottom: 14px; }
.results__lead { color: rgba(255, 255, 255, .75); margin-bottom: 48px; font-size: 1.05rem; }
.results__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.result { padding: 36px 20px; text-align: center; }
.result + .result { border-left: 1px solid rgba(255, 255, 255, .14); }
.result strong { display: block; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--lime); margin-bottom: 4px; letter-spacing: -.02em; }
.result span { font-size: .9rem; color: rgba(255, 255, 255, .8); }

/* ---------- Contato ---------- */
.contact { background: var(--bg-soft); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact__grid .section__title { margin-bottom: 20px; }
.contact__grid > div > p { color: var(--muted); margin-bottom: 28px; }
.contact__info { display: grid; gap: 14px; font-weight: 600; font-size: .95rem; }
.contact__info li { display: flex; align-items: center; gap: 14px; }
.contact__info a:hover { color: var(--lime-600); }
.contact__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); color: var(--lime-600); border: 1px solid var(--line); }
.contact__form { background: var(--surface); padding: clamp(24px, 4vw, 40px); border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--brand-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime-600); box-shadow: 0 0 0 4px rgba(111, 209, 63, .18); }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255, 255, 255, .7); padding: 80px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 56px; }
.footer__logo { height: 48px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 300px; }
.footer h4, .footer .footer__title { color: var(--white); font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--lime); }
.footer__company { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 24px; }
.footer__company strong { color: var(--white); display: block; margin-bottom: 8px; font-size: .9rem; }
.footer__company p { margin-bottom: 6px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.whatsapp-float {
  position: relative; width: 66px; height: 66px; border: 0; padding: 0; background: transparent; box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none; border-radius: 50%; cursor: pointer;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .3)); transition: transform .3s var(--ease);
  animation: floaty 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(-6deg); }
.whatsapp-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Troca suave entre o grão de milho e o grão de soja a cada 4 segundos */
.whatsapp-float .wa-milho { animation: waSwapOut 8s ease-in-out infinite; }
.whatsapp-float .wa-soja { opacity: 0; animation: waSwapIn 8s ease-in-out infinite; }
@keyframes waSwapIn {
  0%, 40% { opacity: 0; transform: scale(.85) rotate(-8deg); }
  50%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(.85) rotate(-8deg); }
}
@keyframes waSwapOut {
  0%, 40% { opacity: 1; transform: none; }
  50%, 90% { opacity: 0; transform: scale(.85) rotate(8deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes floaty { 50% { translate: 0 -6px; } }
.whatsapp-float:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 50%; }

.wa__panel {
  width: min(290px, calc(100vw - 32px)); background: var(--surface); border-radius: 18px; padding: 16px;
  box-shadow: 0 24px 60px -18px rgba(6, 36, 26, .45); border: 1px solid var(--line);
  display: grid; gap: 4px; transform-origin: bottom right; animation: waPop .28s var(--ease);
}
@keyframes waPop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.wa__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.wa__head strong { display: block; font-size: .95rem; color: var(--brand-ink); }
.wa__head span { font-size: .75rem; color: var(--muted); }
.wa__close { border: 0; background: var(--bg-soft); width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--brand-ink); }
.wa__close:hover { background: var(--line); }
.wa__panel label { font-size: .72rem; font-weight: 700; color: var(--brand-ink); margin-top: 6px; }
.wa__panel input, .wa__panel select {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  font: inherit; font-size: .88rem; color: var(--ink); background: var(--surface);
}
.wa__panel input:focus, .wa__panel select:focus { outline: none; border-color: var(--lime-600); box-shadow: 0 0 0 3px rgba(111, 209, 63, .18); }
.wa__send {
  margin-top: 12px; border: 0; border-radius: 999px; padding: 11px; font: inherit; font-weight: 700; font-size: .88rem;
  background: #25d366; color: #06301a; cursor: pointer; transition: background .2s, transform .2s;
}
.wa__send:hover { background: #3ee07a; transform: translateY(-1px); }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .how__list { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; gap: 6px;
    padding: 100px 28px 28px; background: var(--green-900); transform: translateX(100%);
    transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, .3);
  }
  .nav a, .header.scrolled .nav a { color: rgba(255, 255, 255, .85); font-size: 1.05rem; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav__cta-mobile { display: inline-flex; margin-top: 20px; border: 0; color: var(--green-900) !important; }
  .nav.open { transform: none; }
  .nav { height: 100vh; height: 100dvh; overflow-y: auto; z-index: 1; }
  .menu-toggle { z-index: 2; }
  /* fundo escurecido atrás do menu aberto */
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(3, 15, 10, .55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 0; }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .menu-toggle { position: relative; z-index: 2; }
  .menu-toggle.open span { background: var(--white) !important; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .credit__grid, .contact__grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__media { min-height: 360px; }
  .service-card { grid-template-columns: 1fr; width: min(560px, calc(100vw - 40px)); }
  .service-card__media { min-height: 240px; }
  .results__grid { grid-template-columns: 1fr 1fr; }
  .result:nth-child(3) { border-left: 0; }
  .result:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .results__bg { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .header__logo { height: 36px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .services__hint { display: none; }
  .credit__steps, .features, .how__list, .field-row, .footer__grid { grid-template-columns: 1fr; }
  .service-card ul { grid-template-columns: 1fr; }
  .hero__buttons .btn { width: 100%; }
  .hero__bg { background: linear-gradient(180deg, rgba(6, 36, 26, .75), rgba(6, 36, 26, .92)), url("img/hero-1024.webp") 70% center / cover no-repeat; }
  .whatsapp-float { width: 58px; height: 58px; }
  .wa { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.wa__panel[hidden] { display: none; }

/* No escuro, o topo rolado usa o logo claro */
:root[data-theme="dark"] .header.scrolled .logo--light { opacity: 1; }
:root[data-theme="dark"] .header.scrolled .logo--dark { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header.scrolled .logo--light { opacity: 1; }
  :root:not([data-theme="light"]) .header.scrolled .logo--dark { opacity: 0; }
}
:root[data-theme="dark"] .how__item:hover { background: var(--green-700); }

/* ---------- Botão de tema (sol ↔ lua) ---------- */
.theme-toggle {
  --size: 42px;
  position: relative; width: var(--size); height: var(--size); flex: none;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer; padding: 0;
  color: var(--white); background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.theme-toggle:hover { background: rgba(255, 255, 255, .18); transform: rotate(-12deg); }
.theme-toggle:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.header.scrolled .theme-toggle { color: var(--ink); background: var(--bg-soft); border-color: var(--line); }
.theme-toggle svg { width: 20px; height: 20px; overflow: visible; }
.theme-toggle .sun { transition: r .5s var(--ease); }
.theme-toggle .moon-mask { transition: transform .5s var(--ease); }
.theme-toggle .rays { transform-origin: center; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .ray { transform-origin: center; }
/* estado escuro: o sol cresce, a sombra desliza e vira lua, os raios somem girando */
:root[data-theme="dark"] .theme-toggle .sun { r: 8px; }
:root[data-theme="dark"] .theme-toggle .moon-mask { transform: translate(-9px, 5px); }
:root[data-theme="dark"] .theme-toggle .rays { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="dark"] .theme-toggle { color: var(--lime); }
:root[data-theme="dark"] .header.scrolled .theme-toggle { color: var(--lime); }
@media (max-width: 960px) and (max-height: 700px) {
  .services.is-pinned .service-card { grid-template-rows: minmax(0, 30%) minmax(0, 1fr); }
  .services.is-pinned .section__title { font-size: 1.45rem; }
  .services.is-pinned .service-card p { font-size: .82rem; line-height: 1.45; }
  .services.is-pinned .service-card li { font-size: .76rem; }
}

/* =========================================================
   AVISO DE COOKIES (LGPD)
   ========================================================= */
.ck-banner {
  position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  width: min(400px, calc(100vw - 110px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; box-shadow: 0 24px 60px -20px rgba(6, 36, 26, .45);
  font-size: .82rem; line-height: 1.5; animation: ckIn .45s var(--ease);
}
.ck-banner[hidden], .ck-modal[hidden] { display: none; }
@keyframes ckIn { from { opacity: 0; transform: translateY(12px); } }
.ck-banner p { color: var(--muted); }
.ck-banner strong { color: var(--ink); margin-right: 4px; }
.ck-banner a, .ck-modal a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ck-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ck-btn {
  border: 1.5px solid var(--lime); background: var(--lime); color: var(--green-900);
  font: inherit; font-size: .8rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.ck-btn:hover { background: #82e052; border-color: #82e052; }
.ck-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ck-btn--ghost:hover { background: var(--bg-soft); border-color: var(--line); }
.ck-link { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; margin-right: auto; padding: 8px 0; text-decoration: underline; text-underline-offset: 2px; }
.ck-link:hover { color: var(--ink); }
.ck-btn:focus-visible, .ck-link:focus-visible, .ck-close:focus-visible, .ck-switch:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.ck-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(3, 15, 10, .55); backdrop-filter: blur(3px); animation: ckFade .25s ease; }
@keyframes ckFade { from { opacity: 0; } }
.ck-modal__box {
  width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border-radius: 20px; padding: 24px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: ckIn .35s var(--ease);
}
.ck-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ck-modal__head h2 { font-size: 1.2rem; }
.ck-close { border: 0; background: var(--bg-soft); color: var(--ink); width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.ck-modal__intro { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.ck-cat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ck-cat strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.ck-cat span { font-size: .8rem; color: var(--muted); }
.ck-always { flex: none; font-size: .72rem !important; font-weight: 700; color: var(--link) !important; white-space: nowrap; }
.ck-switch {
  flex: none; appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px;
  background: var(--line); position: relative; cursor: pointer; transition: background .25s; margin: 0;
}
.ck-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.ck-switch:checked { background: var(--lime-600); }
.ck-switch:checked::after { transform: translateX(18px); }
.ck-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
body.ck-lock { overflow: hidden; }

.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a, .footer__legal button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--lime); }

@media (max-width: 600px) {
  .ck-banner { left: 12px; right: 12px; width: auto; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .ck-modal__actions .ck-btn { flex: 1 1 100%; }
}

/* ---------- Página de política ---------- */
.legal { padding: calc(120px + env(safe-area-inset-top, 0px)) 0 90px; background: var(--surface); }
.legal__wrap { width: min(760px, 100% - 40px); margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.legal__updated { color: var(--muted); font-size: .88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; padding-top: 8px; }
.legal h3 { font-size: 1rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: .98rem; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.legal li { margin: 4px 0; }
.legal strong { color: var(--ink); }
.legal a { color: var(--link); font-weight: 600; text-decoration: underline; }
.legal__table { overflow-x: auto; margin: 14px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal th { color: var(--ink); background: var(--bg-soft); }
.legal__box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 14px 0; }
.header--solid::before { opacity: 1; }
.header--solid .logo--light { opacity: 0; }
.header--solid .logo--dark { opacity: 1; }
:root[data-theme="dark"] .header--solid .logo--light { opacity: 1; }
:root[data-theme="dark"] .header--solid .logo--dark { opacity: 0; }
.header--solid .theme-toggle { color: var(--ink); background: var(--bg-soft); border-color: var(--line); }
:root[data-theme="dark"] .header--solid .theme-toggle { color: var(--lime); }
.header--solid .nav a { color: var(--ink); }
.header--solid .nav a:hover { color: var(--lime-600); }
.header--solid .menu-toggle span { background: var(--ink); }
@media (max-width: 960px) { .header--solid .nav a { color: rgba(255, 255, 255, .85); } }

/* Imagens de fundo menores em telas pequenas (carregamento mais rápido) */
@media (max-width: 600px) {
  .hero__bg { background-image: linear-gradient(180deg, rgba(6, 36, 26, .75), rgba(6, 36, 26, .92)), url("img/hero-640.webp"); }
  .credit__bg { background-image: radial-gradient(circle at 85% 20%, rgba(111, 209, 63, .15), transparent 45%), linear-gradient(135deg, rgba(6, 36, 26, .97), rgba(11, 46, 33, .92)), url("img/territorial-600.webp"); }
  .results__bg { background-image: linear-gradient(100deg, rgba(6, 36, 26, .96) 20%, rgba(15, 61, 44, .85)), url("img/campo-1000.webp"); }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .hero__bg { background-image: linear-gradient(90deg, rgba(6, 36, 26, .94) 0%, rgba(6, 36, 26, .72) 45%, rgba(6, 36, 26, .2) 100%), linear-gradient(0deg, rgba(6, 36, 26, .7) 0%, transparent 40%), url("img/hero-1024.webp"); }
}

/* Desempenho: o texto principal aparece na hora (melhora o LCP do Google) */
.hero .reveal { opacity: 1; transform: none; transition: none; }

/* Crédito do desenvolvedor (discreto) */
.footer__dev { opacity: .6; }
.footer__dev a { text-decoration: none; transition: color .2s, opacity .2s; }
.footer__dev a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
