/* =========================================================
   AGROXYZ — Folha de Estilos
   -------------------------------------------------------
   Como editar rápido:
   - Cores gerais: mexa nas variáveis dentro de :root abaixo.
   - Fontes: trocam nas variáveis --font-heading / --font-body.
   - Espaçamento entre seções: variável --section-padding.
========================================================= */

:root{
  /* Paleta - agro (verde/terra) + tech (azul de dados) */
  --color-bg: #F7FAF4;
  --color-bg-alt: #EFF6EC;
  --color-surface: #FFFFFF;

  --color-primary: #1F6E43;
  --color-primary-dark: #000;
  --color-primary-light: #4CA771;

  --color-accent: #5BDB06;   /* dourado / colheita */
  --color-accent-2: #2B6CB0; /* azul / dados */

  --color-text: #182B20;
  --color-muted: #5B6B60;
  --color-border: #E1E9DC;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(18, 59, 37, .06);
  --shadow-md: 0 12px 32px rgba(18, 59, 37, .12);
  --shadow-lg: 0 24px 60px rgba(18, 59, 37, .18);

  --section-padding: clamp(64px, 8vw, 120px);
  --container-width: 1180px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea{ font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4{ font-family: var(--font-heading); color: var(--color-primary-dark); line-height: 1.2; margin: 0 0 .5em; }
p{ margin: 0 0 1em; color: var(--color-muted); }

.container{
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display: inline-block;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.center{ text-align: center; }
.section-lead{
  max-width: 640px;
  font-size: 1.05rem;
}
.section-lead.center{ margin-left: auto; margin-right: auto; }
h2.center{ margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 14px 28px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-sm{ padding: 10px 20px; font-size: .9rem; }
.btn-lg{ padding: 16px 32px; font-size: 1rem; }
.btn-block{ width: 100%; }

.btn-primary{ background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-accent{ background: var(--color-accent); color: var(--color-primary-dark); box-shadow: var(--shadow-sm); }
.btn-accent:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.04); }

.btn-ghost{ background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover{ background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(247, 250, 244, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo{ display: flex; align-items: center; gap: 10px; }
.logo-img{ height: 42px; width: auto; display: block; }
.logo-mark{ color: var(--color-primary); display: inline-flex; }
.logo-text{ font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; color: var(--color-primary-dark); display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong{ font-weight: 800; }
.logo-text.light{ color: #fff; font-size: 1.35rem; }
.logo-sub{ font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent); font-weight: 700; }

.main-nav ul{ display: flex; gap: 28px; }
.main-nav a{ font-weight: 600; font-size: .95rem; color: var(--color-text); position: relative; padding: 4px 0; }
.main-nav a::after{
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--color-accent); transition: width .25s ease;
}
.main-nav a:hover::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 16px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  padding: 0;
}
.nav-toggle span{ display: block; height: 2.5px; width: 100%; background: var(--color-primary-dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity: 0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh; /* usa a altura "estável" em navegadores mobile, sem pular quando a barra de endereço soma/some */
  padding: 96px 0 80px; /* espaço pro header fixo no topo e pro scroll-cue embaixo */
  background: var(--color-primary-dark);
  color: #fff;
}
.hero-bg-img{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg-overlay{
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(18,59,37,.92) 0%, rgba(18,59,37,.82) 32%, rgba(18,59,37,.45) 62%, rgba(18,59,37,.35) 100%),
    linear-gradient(0deg, rgba(10,30,18,.55), rgba(10,30,18,.55));
}
.hero-inner{
  position: relative; z-index: 1;
  width: 100%;
}
.hero-copy{ max-width: 640px; }
.hero-copy h1{ color: #fff; font-size: clamp(2rem, 3.6vw, 2.85rem); font-weight: 700; letter-spacing: -.01em; }
.hero .eyebrow{ color: var(--color-accent); }
.hero-lead{ color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 560px; }
.hero-cta{ display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.hero-badges{ display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 12px; }
.hero-badges li{ font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.75); position: relative; padding-left: 18px; }
.hero-badges li::before{ content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }

.scroll-cue{
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  animation: bounce 2s infinite;
}
@keyframes bounce{ 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Seções genéricas ---------- */
section{ padding: var(--section-padding) 0; }
.about{ background: var(--color-surface); }
.about-block{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-block + .about-block{ margin-top: 72px; }
.about-block--reverse .about-art{ order: 2; }
.about-block--reverse .about-copy{ order: 1; }
.about-art img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-highlights{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.highlight-item{ padding: 18px 20px; background: var(--color-bg-alt); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.highlight-item strong{ display: block; font-family: var(--font-heading); color: var(--color-primary-dark); margin-bottom: 4px; }
.highlight-item span{ font-size: .92rem; color: var(--color-muted); }

.cards-grid{ display: grid; gap: 24px; margin-top: 48px; }
.services-grid{ grid-template-columns: repeat(3, 1fr); }

.service-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0 0 32px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card > *:not(.service-photo){ margin-left: 26px; margin-right: 26px; }
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.service-photo{
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 22px;
}
.service-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-photo img{ transform: scale(1.05); }

.service-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff; margin-bottom: 18px;
}
.service-icon svg{ width: 28px; height: 28px; }
.service-card:nth-child(3n-1) .service-icon{ background: linear-gradient(135deg, var(--color-accent), #d98f1e); }
.service-card:nth-child(3n) .service-icon{ background: linear-gradient(135deg, var(--color-accent-2), #1c4d80); }

.service-card h3{ font-size: 1.1rem; margin-bottom: 8px; }
.service-card p{ font-size: .95rem; margin-bottom: 0; }
.service-card:last-child{ margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats{
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 64px 0;
}
.stats-bg-img{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.stats-bg-overlay{
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(18,59,37,.94) 0%, rgba(18,59,37,.88) 45%, rgba(18,59,37,.75) 100%);
}
.stats .container{ position: relative; z-index: 1; }
.stats-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number{ display: block; font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--color-accent); }
.stat-label{ display: block; margin-top: 8px; font-size: .88rem; color: rgba(255,255,255,.8); max-width: 220px; margin-inline: auto; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--color-accent), #5BDB06);
  padding: 56px 0;
}
.cta-banner-inner{ display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2{ color: var(--color-primary-dark); margin-bottom: 6px; font-size: 1.6rem; }
.cta-banner p{ color: #4a3410; margin: 0; }
.cta-banner .btn-accent{ background: var(--color-primary-dark); color: #fff; }

/* ---------- Contato ---------- */
.contact{ background: var(--color-surface); }
.contact-inner{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-inner--single{ grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; text-align: left; }
.contact-details{ margin: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.contact-details li{ display: flex; align-items: center; gap: 12px; color: var(--color-text); font-weight: 500; }
.contact-details svg{ color: var(--color-primary); flex: none; }
.contact-details address{ font-style: normal; }

.map-embed{ border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.map-embed iframe{ width: 100%; height: 260px; border: 0; }

.contact-form{
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form h3{ margin-bottom: 20px; }
.form-row{ margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label{ font-size: .85rem; font-weight: 600; color: var(--color-primary-dark); }
.form-row input, .form-row textarea{
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: #fff; color: var(--color-text); resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{ outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31,110,67,.15); }
.form-note{ font-size: .8rem; text-align: center; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--color-primary-dark); color: rgba(255,255,255,.85); }
.footer-inner{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 64px 0 40px;
}
.footer-brand p{ color: rgba(255,255,255,.65); margin-top: 12px; max-width: 260px; }
.footer-social{ display: flex; gap: 12px; margin-top: 18px; }
.footer-social a{
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); transition: background .2s ease;
}
.footer-social a:hover{ background: var(--color-accent); color: var(--color-primary-dark); }
.footer-col h4{ color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-col a:hover{ color: var(--color-accent); }
.footer-col li{ color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner{ padding: 20px 0; font-size: .82rem; text-align: center; color: rgba(255,255,255,.55); }

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-widget{ position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.whatsapp-fab{
  width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  animation: pulse 2.6s infinite;
}
.whatsapp-fab:hover{ filter: brightness(1.05); }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-panel{
  width: min(320px, 86vw);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.whatsapp-panel[hidden]{ display: none; }
.whatsapp-panel-header{
  background: #075E54; color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; position: relative;
}
.whatsapp-panel-header div{ display: flex; flex-direction: column; line-height: 1.25; }
.whatsapp-panel-header strong{ font-size: .95rem; }
.whatsapp-panel-header span{ font-size: .75rem; color: rgba(255,255,255,.75); }
.whatsapp-panel-header button{
  position: absolute; right: 10px; top: 8px; background: none; border: none; color: #fff; font-size: 1.4rem; line-height: 1;
}
.whatsapp-panel-body{ padding: 16px 18px 18px; background: #ECE5DD; }
.whatsapp-greeting{ background: #fff; padding: 10px 12px; border-radius: 10px; font-size: .85rem; margin-bottom: 14px; color: var(--color-text); }
#whatsappForm{ display: flex; flex-direction: column; gap: 10px; }
#whatsappForm input, #whatsappForm textarea{
  border: 1px solid #d8d2c8; border-radius: 8px; padding: 10px 12px; background: #fff; resize: vertical;
}
#whatsappForm .btn-primary{ background: #25D366; color: #073b32; }
#whatsappForm .btn-primary:hover{ background: #1ebe5b; }

/* ---------- Reveal on scroll ---------- */
[data-reveal]{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 980px){
  .hero-copy{ text-align: center; margin: 0 auto; }
  .hero-cta{ justify-content: center; }
  .hero-badges{ justify-content: center; }
  .about-block, .about-block--reverse{ grid-template-columns: 1fr; }
  .about-block--reverse .about-art, .about-block--reverse .about-copy{ order: 0; }
  .about-art{ max-width: 420px; margin: 0 auto; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-inner{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  /* Remove o backdrop-filter no mobile: com ele ativo, o header vira o
     "containing block" do menu fixo (bug conhecido de filter/backdrop-filter
     em navegadores) e o menu não ocupa a tela inteira. Sem o blur, o menu
     fixo volta a se posicionar em relação à janela normalmente. */
  .site-header{ backdrop-filter: none; background: var(--color-bg); }

  .main-nav{
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 24px;
    overflow-y: auto;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 4px; }
  .main-nav a{ display: block; padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--color-border); }
  .nav-toggle{ display: flex; }
  .header-actions .btn-sm{ display: none; }

  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .services-grid{ max-width: 420px; margin-left: auto; margin-right: auto; }
  .about-highlights{ grid-template-columns: 1fr; }
  .about-block + .about-block{ margin-top: 48px; }
  .cta-banner-inner{ text-align: center; justify-content: center; }
  .footer-inner{ grid-template-columns: 1fr; text-align: center; }
  .footer-social{ justify-content: center; }
  .contact-form{ padding: 24px; }
  .whatsapp-widget{ right: 14px; bottom: 14px; }
}

@media (max-width: 420px){
  .btn-lg{ padding: 14px 24px; font-size: .92rem; }
  .stats-grid{ grid-template-columns: 1fr 1fr; gap: 24px; }
}
