/* ==========================================================================
   TECNOFLORA — Folha de estilos (versão 2)
   Índice:
    1. Variáveis          9. Vídeo institucional
    2. Base e reset      10. Sustentabilidade e setores
    3. Utilitários       11. Galeria e lightbox
    4. Barra superior    12. Trabalhe conosco
    5. Cabeçalho e menu  13. Contato, formulário e mapa
    6. Hero              14. Rodapé           
    7. Destaques         15. WhatsApp flutuante
    8. Quem somos e      16. Animações (scroll reveal)
       soluções          17. Responsivo
   ========================================================================== */

/* 1. VARIÁVEIS ------------------------------------------------------------ */
:root {
  /* Paleta: verde da marca, preto e branco */
  --verde:        #2E9B3A;   /* verde do logotipo: botões e destaques */
  --verde-escuro: #14421A;   /* fundos fortes */
  --verde-medio:  #1F6B2A;   /* hover */
  --verde-claro:  #8BC34A;   /* realces sobre fundo escuro */
  --verde-suave:  #EEF5EB;   /* fundos de seção claros */
  --preto:        #0F1410;
  --grafite:      #1A211B;   /* seção do vídeo */
  --cinza:        #556055;
  --borda:        #DCE5D8;
  --branco:       #FFFFFF;
  --erro:         #C62828;

  --fonte: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 84px;
  --raio: 14px;
  --sombra: 0 10px 30px rgba(15, 20, 16, .08);
  --sombra-forte: 0 20px 45px rgba(15, 20, 16, .18);
  --transicao: .3s ease;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px); /* âncoras não ficam sob o cabeçalho */
}

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--preto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p, figure, blockquote { margin: 0; }
button { font-family: inherit; }

:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--verde-escuro); color: var(--branco);
  padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* 3. UTILITÁRIOS ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(64px, 9vw, 112px); }

.section__head {
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
  display: grid;
  gap: 12px;
}
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.015em; }
.section__lead { color: var(--cinza); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--verde);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section__head .eyebrow { justify-content: center; }
.eyebrow--light { color: var(--verde-claro); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-size: .98rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--transicao), background var(--transicao), color var(--transicao), border-color var(--transicao);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--verde); color: var(--branco); box-shadow: 0 10px 24px rgba(46, 155, 58, .32); }
.btn--primary:hover { background: var(--verde-medio); }
.btn--glass { background: rgba(255, 255, 255, .12); color: var(--branco); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); padding-left: 10px; }
.btn--glass:hover { background: var(--branco); color: var(--preto); }
.btn--video { padding-left: 10px; }
.btn__play { width: 34px; height: 34px; border-radius: 50%; background: var(--branco); color: var(--verde-escuro); display: grid; place-items: center; }
.btn__play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.btn--light { background: var(--branco); color: var(--verde-escuro); }
.btn--light:hover { background: var(--verde-claro); color: var(--preto); }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--verde); }
.link-arrow::after { content: "→"; transition: transform var(--transicao); }
.link-arrow:hover::after { transform: translateX(4px); }

/* 4. BARRA SUPERIOR ------------------------------------------------------- */
.topbar { background: var(--verde-escuro); color: rgba(255, 255, 255, .85); font-size: .82rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-block: 8px; }
.topbar__item { display: flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; fill: none; stroke: var(--verde-claro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topbar a:hover { color: var(--verde-claro); }
.topbar__sep { opacity: .4; }

/* 5. CABEÇALHO ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transicao);
}
.header.is-scrolled { box-shadow: 0 4px 24px rgba(15, 20, 16, .1); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo img { height: 64px; width: auto; }

.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-weight: 500; font-size: .9rem; color: var(--preto);
  transition: color var(--transicao), background var(--transicao);
}
.nav__link:hover, .nav__link.is-active { color: var(--verde); }
.nav__cta { background: var(--verde); color: var(--branco); padding-inline: 20px; margin-left: 8px; }
.nav__cta:hover, .nav__cta.is-active { background: var(--verde-medio); color: var(--branco); }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 11px 10px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--preto); border-radius: 2px; transition: transform var(--transicao), opacity var(--transicao); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* 6. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(720px, calc(100vh - var(--header-h) - 36px));
  display: flex;
  align-items: center;
  padding-block: 56px 112px;
  color: var(--branco);
  overflow: hidden;
  background: var(--preto) url("../img/colheita-aerea.jpg") center / cover no-repeat;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 10, .9) 0%, rgba(8, 18, 10, .62) 50%, rgba(8, 18, 10, .2) 100%),
    linear-gradient(0deg, rgba(8, 18, 10, .7) 0%, transparent 35%);
}
.hero__content { position: relative; z-index: 1; display: grid; gap: 22px; }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; max-width: 19ch; }
.hero__title span { color: var(--verde-claro); }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 56ch; color: rgba(255, 255, 255, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* Faixa com os três valores do vídeo */
.hero__values {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  background: rgba(8, 18, 10, .35);
  backdrop-filter: blur(4px);
}
.hero__values li {
  padding: 18px clamp(16px, 4vw, 48px);
  font-weight: 800; font-size: clamp(.85rem, 1.6vw, 1.05rem);
  letter-spacing: .14em; text-transform: uppercase;
}
.hero__values li + li { border-left: 1px solid rgba(255, 255, 255, .15); }

.hero__pause {
  position: absolute; z-index: 2; right: max(20px, env(safe-area-inset-right, 0px)); top: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .3); color: var(--branco);
  display: grid; place-items: center; cursor: pointer;
}
.hero__pause svg { width: 16px; height: 16px; fill: currentColor; }
.hero__pause .i-play { display: none; }
.hero__pause.is-paused .i-play { display: block; }
.hero__pause.is-paused .i-pause { display: none; }

/* 7. DESTAQUES ------------------------------------------------------------ */
.highlights { background: var(--branco); border-bottom: 1px solid var(--borda); }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.highlight { padding: 32px 24px; display: grid; gap: 4px; align-content: start; }
.highlight + .highlight { border-left: 1px solid var(--borda); }
.highlight strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--verde-escuro); line-height: 1.1; font-variant-numeric: tabular-nums; }
.highlight p { color: var(--cinza); font-size: .92rem; }

/* 8. QUEM SOMOS ----------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__media { position: relative; padding-bottom: 28px; }
.about__media > img:first-child { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--raio); box-shadow: var(--sombra-forte); }
.about__badge {
  position: absolute; left: -12px; bottom: 36px;
  background: var(--verde-escuro); color: var(--branco);
  padding: 16px 22px; border-radius: var(--raio); box-shadow: var(--sombra-forte);
  display: grid; max-width: 240px;
}
.about__badge strong { font-size: 1.05rem; }
.about__badge span { font-size: .85rem; opacity: .85; line-height: 1.4; }

.about__text { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.about__text > p { color: var(--cinza); }
.about__text > p strong { color: var(--preto); }
.about__subtitle { font-size: 1.1rem; font-weight: 700; margin-top: 8px; }

.check-list { display: grid; gap: 12px; margin-bottom: 8px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--cinza); font-size: .95rem; }
.check-list strong { color: var(--preto); font-weight: 600; }
.check-list li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: var(--verde-suave); color: var(--verde); margin-top: 1px;
}

/* SOLUÇÕES */
.solutions { background: var(--verde-suave); }

.steps-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 auto clamp(40px, 5vw, 64px); counter-reset: etapa;
}
.steps-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--branco); border: 1px solid var(--borda);
  font-size: .88rem; font-weight: 500;
  transition: border-color var(--transicao), color var(--transicao);
}
.steps-nav a::before {
  counter-increment: etapa; content: counter(etapa, decimal-leading-zero);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verde-escuro); color: var(--branco); font-size: .72rem; font-weight: 700;
}
.steps-nav a:hover { border-color: var(--verde); color: var(--verde); }

.solutions__list { display: grid; gap: clamp(48px, 7vw, 88px); }
.solution { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.solution--reverse .solution__media { order: 2; }
.solution__media { position: relative; min-width: 0; }
.solution__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--raio); box-shadow: var(--sombra); }
.solution__num {
  position: absolute; top: 16px; left: 16px;
  font-weight: 800; font-size: .9rem; letter-spacing: .08em;
  background: var(--branco); color: var(--verde-escuro);
  padding: 6px 12px; border-radius: 999px;
}
.solution__body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.solution__body h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
.solution__body p { color: var(--cinza); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--branco); border: 1px solid var(--borda); }

/* 9. VÍDEO INSTITUCIONAL ------------------------------------------------- */
.video-section { background: var(--grafite); color: var(--branco); }
.video-section .section__lead { color: rgba(255, 255, 255, .7); }
.video-frame {
  max-width: 1000px; margin: 0 auto;
  border-radius: calc(var(--raio) + 4px); overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  background: #000;
}
.video-frame video { width: 100%; height: auto; aspect-ratio: 1280 / 562; }
.video-quote { max-width: 760px; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center; display: grid; gap: 10px; }
.video-quote p { font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.video-quote cite { font-style: normal; color: var(--verde-claro); font-size: .9rem; font-weight: 500; letter-spacing: .06em; }

/* 10. SUSTENTABILIDADE E SETORES ----------------------------------------- */
.sustain__grid { display: grid; grid-template-columns: .9fr 1.6fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.sustain__text { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.sustain__text p { color: var(--cinza); }
.sustain__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sustain-card {
  background: var(--verde-suave); border-radius: var(--raio);
  padding: 28px 24px; display: grid; gap: 10px; align-content: start;
  transition: transform var(--transicao), background var(--transicao), color var(--transicao);
}
.sustain-card:hover { transform: translateY(-6px); background: var(--verde-escuro); color: var(--branco); }
.sustain-card:hover p { color: rgba(255, 255, 255, .8); }
.sustain-card__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--branco); color: var(--verde); display: grid; place-items: center; }
.sustain-card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sustain-card h3 { font-size: 1.08rem; font-weight: 700; }
.sustain-card p { color: var(--cinza); font-size: .92rem; transition: color var(--transicao); }

.sectors { background: var(--verde-escuro); color: var(--branco); }
.sectors__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px; }
.sectors__title { font-size: 1.15rem; font-weight: 700; }
.sectors__list { display: flex; flex-wrap: wrap; gap: 10px; }
.sectors__list li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .88rem; }

/* 11. GALERIA ------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--borda);
  background: var(--branco); font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: background var(--transicao), color var(--transicao), border-color var(--transicao);
}
.filter:hover { border-color: var(--verde); color: var(--verde); }
.filter.is-active { background: var(--verde-escuro); border-color: var(--verde-escuro); color: var(--branco); }

.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.gallery__item { position: relative; border-radius: var(--raio); overflow: hidden; cursor: zoom-in; background: var(--verde-suave); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item[hidden] { display: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px;
  color: var(--branco); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(8, 18, 10, .85));
  transform: translateY(100%); transition: transform var(--transicao);
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.08); filter: saturate(1.15); }
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(6, 10, 7, .94);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { display: grid; gap: 12px; justify-items: center; min-width: 0; }
.lightbox__img { max-height: 78vh; max-width: min(1100px, 100%); border-radius: var(--raio); }
.lightbox__caption { color: var(--branco); font-weight: 500; }
.lightbox__close, .lightbox__nav {
  border: 0; background: rgba(255, 255, 255, .12); color: var(--branco);
  border-radius: 50%; cursor: pointer; line-height: 1;
  transition: background var(--transicao);
}
.lightbox__close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; font-size: 2rem; }
.lightbox__nav { flex: none; width: 52px; height: 52px; font-size: 2.2rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--verde); }
@keyframes fade { from { opacity: 0; } }

/* 12. TRABALHE CONOSCO --------------------------------------------------- */
.careers { position: relative; overflow: hidden; color: var(--branco); background: var(--verde-escuro); }
.careers__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.careers__inner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 48px; padding-block: clamp(56px, 7vw, 88px);
}
.careers__inner > div { display: grid; gap: 12px; max-width: 640px; }
.careers__inner p:not(.eyebrow) { color: rgba(255, 255, 255, .85); }

/* 13. CONTATO ------------------------------------------------------------- */
.contact { background: var(--verde-suave); }
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact__info { display: grid; gap: 16px; min-width: 0; }
.contact__info > p { color: var(--cinza); }

.partners { display: grid; gap: 12px; }
.partner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 14px 16px; transition: border-color var(--transicao), box-shadow var(--transicao), transform var(--transicao);
}
.partner:hover { border-color: var(--verde); box-shadow: var(--sombra); }
.partner__avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--branco);
}
.partner__avatar svg { width: 24px; height: 24px; }
.partner:hover { transform: translateY(-2px); }
.partner__cta { font-size: .8rem; font-weight: 600; color: var(--verde); }
.partner__phone { font-weight: 700; font-size: 1.1rem; color: var(--preto); font-variant-numeric: tabular-nums; white-space: nowrap; }
.partner:hover .partner__phone { color: var(--verde-escuro); }

.contact__list { display: grid; gap: 16px; margin-top: 8px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list small { display: block; color: var(--cinza); font-size: .8rem; }
.contact__list a, .contact__list span:not(.contact__icon) { font-weight: 600; }
.contact__list a:hover { color: var(--verde); }
.contact__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--branco); color: var(--verde);
  display: grid; place-items: center; box-shadow: var(--sombra);
}
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form {
  background: var(--branco); padding: clamp(24px, 4vw, 40px);
  border-radius: calc(var(--raio) + 4px); box-shadow: var(--sombra);
  display: grid; gap: 16px; min-width: 0;
}
.form__title { font-size: 1.3rem; font-weight: 700; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: grid; gap: 6px; min-width: 0; }
.form__field label { font-weight: 500; font-size: .88rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--preto);
  background: #FAFCF9; border: 1.5px solid var(--borda); border-radius: 10px; padding: 12px 14px;
  transition: border-color var(--transicao), box-shadow var(--transicao);
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(46, 155, 58, .15); }
.form__field.is-invalid input, .form__field.is-invalid select, .form__field.is-invalid textarea { border-color: var(--erro); }
.form__field.is-valid input, .form__field.is-valid select, .form__field.is-valid textarea { border-color: var(--verde); }
.form__field.is-highlight select { box-shadow: 0 0 0 4px rgba(46, 155, 58, .25); border-color: var(--verde); }
.form__error { color: var(--erro); font-size: .8rem; min-height: 1.1em; }
.form__status { text-align: center; font-weight: 500; min-height: 1.4em; }
.form__status.is-success { color: var(--verde-escuro); }
.form__status.is-error { color: var(--erro); }

.map { margin-top: clamp(40px, 5vw, 64px); position: relative; border-radius: calc(var(--raio) + 4px); overflow: hidden; box-shadow: var(--sombra); background: var(--branco); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.map__link {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--branco); color: var(--verde-escuro); font-weight: 600; font-size: .88rem;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--sombra);
}
.map__link:hover { background: var(--verde); color: var(--branco); }

/* 14. RODAPÉ ----------------------------------------------------------- */

.footer { background: var(--preto); color: rgba(255, 255, 255, .72); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand img { width: 170px; height: auto; }
.footer__brand p { font-size: .92rem; max-width: 34ch; }
.footer__col h3 { color: var(--branco); font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; font-size: .92rem; }
.footer__col a:hover { color: var(--verde-claro); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px; font-size: .84rem; }
.footer__cnpj { display: inline-block; margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); color: var(--branco); font-variant-numeric: tabular-nums; }
.to-top:hover { color: var(--verde-claro); }

/* 15. WHATSAPP FLUTUANTE ------------------------------------------------- */
.wa-widget {
  position: fixed; z-index: 90;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid; justify-items: end; gap: 12px;
}
.whatsapp-float {
  width: 60px; height: 60px; border: 0; border-radius: 50%;
  background: #25D366; color: var(--branco); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform var(--transicao);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }
.wa-menu {
  width: min(280px, calc(100vw - 40px)); background: var(--branco);
  border-radius: var(--raio); box-shadow: var(--sombra-forte); padding: 10px;
  display: grid; gap: 4px; animation: wa-in .2s ease;
}
.wa-menu[hidden] { display: none; }
.wa-menu__title { font-weight: 600; font-size: .9rem; padding: 6px 10px 8px; border-bottom: 1px solid var(--borda); margin-bottom: 4px; }
.wa-menu a { display: grid; padding: 10px 12px; border-radius: 10px; transition: background var(--transicao); }
.wa-menu a:hover, .wa-menu a:focus-visible { background: var(--verde-suave); }
.wa-menu strong { font-weight: 600; font-size: .95rem; }
.wa-menu span { color: var(--cinza); font-size: .85rem; font-variant-numeric: tabular-nums; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px); } }


/* 15b. JANELA DE CANDIDATURA (Trabalhe conosco) --------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(6, 10, 7, .7); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  overflow-y: auto; animation: fade .2s ease;
}
.modal[hidden] { display: none; }
.modal__box {
  width: 100%; max-width: 720px; background: var(--branco);
  border-radius: calc(var(--raio) + 4px); box-shadow: var(--sombra-forte);
  animation: wa-in .25s ease;
}
.modal__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px clamp(20px, 4vw, 36px) 0;
}
.modal__head h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; margin-top: 6px; }
.modal__close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--verde-suave); color: var(--preto); font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background var(--transicao), color var(--transicao);
}
.modal__close:hover { background: var(--verde); color: var(--branco); }
.form--modal { box-shadow: none; padding-top: 20px; border-radius: 0 0 calc(var(--raio) + 4px) calc(var(--raio) + 4px); }

.form__group { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.form__group + .form__group { padding-top: 16px; border-top: 1px solid var(--borda); }
.form__group legend { font-weight: 700; font-size: .95rem; margin-bottom: 12px; padding: 0; }

/* Campo-armadilha anti-spam: fora da tela */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Área de anexos */
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop {
  display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 28px 20px; border: 2px dashed var(--borda); border-radius: var(--raio);
  background: #FAFCF9; transition: border-color var(--transicao), background var(--transicao);
}
.drop svg { width: 34px; height: 34px; fill: none; stroke: var(--verde); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop__title { font-weight: 600; }
.drop__hint { color: var(--cinza); font-size: .82rem; max-width: 46ch; }
.drop:hover, .drop.is-over, .drop__input:focus-visible + .drop { border-color: var(--verde); background: var(--verde-suave); }
.drop__input:focus-visible ~ .drop { outline: 3px solid var(--verde-claro); }
.form__field.is-invalid .drop { border-color: var(--erro); }

.files { display: grid; gap: 8px; }
.files li {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--borda); border-radius: 10px; font-size: .88rem;
}
.files__ext {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--verde-escuro); color: var(--branco); padding: 4px 6px; border-radius: 6px;
}
.files__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files__size { color: var(--cinza); font-size: .8rem; font-variant-numeric: tabular-nums; }
.files__remove {
  border: 0; background: transparent; color: var(--cinza); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; line-height: 1;
}
.files__remove:hover { background: #FDECEC; color: var(--erro); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--cinza); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--verde); }
#consentErro { margin-top: -10px; }

.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.careers .btn { border: 0; }

/* 16. ANIMAÇÕES — SCROLL REVEAL -----------------------------------------
   Só esconde os elementos quando o JS está ativo (classe .js no <html>). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* 17. RESPONSIVO ---------------------------------------------------------- */
@media (max-width: 1140px) {
  .nav__link { padding: 8px 9px; font-size: .86rem; }
}

@media (max-width: 1024px) {
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(3) { border-left: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid var(--borda); }
  .sustain__grid { grid-template-columns: 1fr; }
  .sustain__text { position: static; max-width: 640px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .header__logo img { height: 52px; }
  .topbar__inner > .topbar__item:first-child { display: none; }

  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--branco); box-shadow: 0 20px 30px rgba(15, 20, 16, .12);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--transicao), transform var(--transicao), visibility var(--transicao);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 13px 14px; border-radius: 10px; font-size: .98rem; }
  .nav__cta { margin: 8px 0 0; text-align: center; }

  .about__grid, .contact__grid, .solution { grid-template-columns: 1fr; }
  .solution--reverse .solution__media { order: 0; }
  .about__media { max-width: 600px; }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .hero { padding-block: 64px 110px; min-height: 0; }
  .hero__actions .btn { width: 100%; }
  .hero__values li { padding: 14px 12px; letter-spacing: .08em; }
  .sustain__cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal__box { border-radius: 0; min-height: 100%; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item figcaption { transform: none; } /* no toque não há hover */
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
  .partner { gap: 12px; padding: 12px 14px; }
  .partner__avatar { width: 40px; height: 40px; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__badge { left: 8px; bottom: 16px; }
}

@media (max-width: 420px) {
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid var(--borda); }
}
