/*
 * =====================================================================
 * ESTILOS · Helena Della Torre | DNA Agro
 * ---------------------------------------------------------------------
 * Produção: Aliança Produtora & Marketing · https://www.aliancamkt.com.br/
 * Usado por: index.html e obrigado.html
 *
 * Sumário
 *   01. Tokens do design system
 *   02. Base e utilitários
 *   03. Componentes (botões, links)
 *   04. Cabeçalho
 *   05. LP · Hero
 *   06. LP · Credenciais
 *   07. LP · Sobre
 *   08. LP · Temas
 *   09. LP · Lista DNA Agro (formulário)
 *   10. Página de obrigado
 *   11. Rodapé
 *   12. Animação de entrada
 *   13. Responsivo · tablet (até 960px)
 *   14. Responsivo · celular (até 600px)
 * =====================================================================
 */


/* ---------------------------------------------------------------------
 * 01. TOKENS DO DESIGN SYSTEM
 * ------------------------------------------------------------------- */
:root {
  /* Cores */
  --verde-escuro: #0C251F;   /* fundo principal */
  --verde-vivo: #00553C;     /* blocos de destaque */
  --verde-salvia: #80A058;   /* faixa de credenciais, rótulos */
  --cinza-claro: #F2F2F2;    /* fundo claro alternativo */
  --dourado: #D8B058;        /* acento pontual */
  --branco: #FFFFFF;
  --tinta-suave: #4A5A55;    /* texto secundário em fundo claro */
  --rodape: #081A16;
  --erro: #B4442F;
  --linha-escura: rgba(255, 255, 255, .12);
  --linha-clara: rgba(12, 37, 31, .12);

  /* Forma e grade */
  --r-md: 16px;
  --r-full: 999px;
  --max: 1180px;
  --margem-lateral: max(24px, calc((100vw - var(--max)) / 2 + 24px));

  /* Textura de grão (ruído SVG) aplicada sobre fundos escuros */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ---------------------------------------------------------------------
 * 02. BASE E UTILITÁRIOS
 * ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--branco);
  background: var(--verde-escuro);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }

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

/* Rótulo pequeno em caixa alta acima dos títulos */
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
/* Variante com filete dourado à esquerda */
.eyebrow--filete { display: flex; align-items: center; gap: 14px; line-height: 1.4; margin-bottom: 22px; color: var(--verde-salvia); }
.eyebrow--filete::before { content: ""; flex: 0 0 auto; width: 36px; height: 1px; background: var(--dourado); }

/* Fundo com grão sutil */
.textured { position: relative; isolation: isolate; }
.textured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: .07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Texto só para leitores de tela */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { font-weight: 800; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 26px; }
h1 em { font-style: normal; color: var(--dourado); }
h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 16px 0 24px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: rgba(255, 255, 255, .82); max-width: 46ch; }
.lead strong { color: var(--branco); font-weight: 700; }


/* ---------------------------------------------------------------------
 * 03. COMPONENTES
 * ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  border: 0;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-ouro { background: var(--dourado); color: var(--verde-escuro); }
.btn-ouro:hover { transform: translateY(-2px); background: #E2BD6B; }
.btn-contorno { border: 1px solid rgba(255, 255, 255, .28); color: var(--branco); }
.btn-contorno:hover { border-color: var(--dourado); background: rgba(255, 255, 255, .04); }

.link-sutil {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding-bottom: 2px;
}
.link-sutil:hover { color: var(--branco); border-color: var(--dourado); }

.acoes { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 38px; }

:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }


/* ---------------------------------------------------------------------
 * 04. CABEÇALHO
 * ------------------------------------------------------------------- */
.topo { position: absolute; top: 0; left: 0; z-index: 10; width: 50%; }
.topo-inner { display: flex; align-items: center; height: 88px; padding-left: var(--margem-lateral); }
.marca { text-decoration: none; line-height: 1.1; }
.marca strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.marca span { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--dourado); }


/* ---------------------------------------------------------------------
 * 05. LP · HERO (duas colunas: texto + foto)
 * ------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.split-texto {
  display: flex;
  align-items: center;
  padding: 120px 64px 80px var(--margem-lateral);
  background: radial-gradient(110% 80% at 0% 100%, #123A30 0%, var(--verde-escuro) 65%);
}
.split-inner { max-width: 560px; }
.split-foto { position: relative; overflow: hidden; background: #D9D9D9; }
.split-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Sombra suave na emenda com o texto */
.split-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 37, 31, .35) 0%, rgba(12, 37, 31, 0) 22%); pointer-events: none; }
/* Filete dourado vertical */
.split-foto::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; z-index: 2; width: 3px; background: var(--dourado); }


/* ---------------------------------------------------------------------
 * 06. LP · CREDENCIAIS (faixa verde-salvia)
 * ------------------------------------------------------------------- */
.cred { background: var(--verde-salvia); color: var(--verde-escuro); }
.cred .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.cred-item { padding: 44px 28px; border-left: 1px solid rgba(12, 37, 31, .22); }
.cred-item:first-child { border-left: 0; padding-left: 0; }
.cred-item strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cred-item sup { font-size: .5em; color: var(--branco); vertical-align: super; margin-left: 2px; }
.cred-item p { margin-top: 8px; font-size: 15px; color: rgba(12, 37, 31, .86); }


/* ---------------------------------------------------------------------
 * 07. LP · SOBRE
 * ------------------------------------------------------------------- */
.sobre { padding: 110px 0 120px; background: var(--cinza-claro); color: var(--verde-escuro); }
.sobre .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sobre .eyebrow { color: var(--verde-vivo); }
.sobre p { max-width: 58ch; margin-bottom: 18px; color: #2F3D39; }
.sobre p strong { font-weight: 700; color: var(--verde-escuro); }
.sobre-foto { position: relative; }
/* Moldura dourada deslocada */
.sobre-foto::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: 0; border: 1.5px solid var(--dourado); border-radius: var(--r-md); }
.sobre-foto img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(12, 37, 31, .18);
}
.citacao {
  position: relative;
  margin-top: 30px;
  padding: 22px 26px;
  border: 1px solid var(--linha-clara);
  border-radius: var(--r-md);
  background: var(--branco);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}
.citacao::before { content: "\201C"; position: absolute; top: -22px; left: 20px; font-size: 64px; font-weight: 800; line-height: 1; color: var(--dourado); }
.sobre .citacao p { margin: 0; max-width: none; color: var(--verde-escuro); }


/* ---------------------------------------------------------------------
 * 08. LP · TEMAS
 * ------------------------------------------------------------------- */
.temas { padding: 110px 0; background: var(--verde-escuro); }
.temas .eyebrow { color: var(--verde-salvia); }
.temas h2 { max-width: 18ch; margin-bottom: 0; }
.temas-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.temas-topo p { max-width: 40ch; color: rgba(255, 255, 255, .72); }
.grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  list-style: none;
  overflow: hidden;
  background: var(--linha-escura);
  border: 1px solid var(--linha-escura);
  border-radius: var(--r-md);
}
.tema { padding: 34px 30px 38px; background: var(--verde-escuro); transition: background .25s ease; }
.tema:hover { background: #0F2D26; }
.tema h3 { margin: 22px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.tema p { font-size: 15.5px; color: rgba(255, 255, 255, .68); }
.tema-icone {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(216, 176, 88, .5);
  border-radius: 50%;
  color: var(--dourado);
  transition: background .25s ease, border-color .25s ease;
}
.tema-icone svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tema:hover .tema-icone { background: rgba(216, 176, 88, .1); border-color: var(--dourado); }


/* ---------------------------------------------------------------------
 * 09. LP · LISTA DNA AGRO (formulário)
 * ------------------------------------------------------------------- */
.lista { padding: 110px 0; background: linear-gradient(160deg, var(--verde-vivo) 0%, #063F2F 55%, var(--verde-escuro) 100%); }
.lista .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.lista .eyebrow { color: var(--dourado); }
.lista h2 { max-width: 16ch; }
.lista-texto > p { max-width: 46ch; color: rgba(255, 255, 255, .82); }

.beneficios { display: grid; gap: 14px; margin-top: 28px; list-style: none; }
.beneficios li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: rgba(255, 255, 255, .88); }
.beneficios li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--dourado);
  border-radius: 50%;
  background: radial-gradient(circle, var(--dourado) 0 3px, transparent 4px);
}

/* Botão do Instagram */
.social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 12px 22px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.social:hover { border-color: var(--dourado); background: rgba(255, 255, 255, .04); }
.social-icone { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--dourado); color: var(--verde-escuro); }
.social-icone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-rotulo { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.social-usuario { display: block; font-size: 16px; font-weight: 700; color: var(--branco); }

/* Cartão do formulário */
.form-card { position: relative; padding: 40px 36px; border-radius: 20px; background: var(--branco); color: var(--verde-escuro); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.form-card::before { content: ""; position: absolute; top: 0; left: 36px; right: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--dourado); }
.form-titulo { margin-bottom: 6px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.form-sub { margin-bottom: 26px; font-size: 15px; color: var(--tinta-suave); }

.campo { margin-bottom: 16px; }
.campo label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.campo label span { font-weight: 500; letter-spacing: 0; color: #6B7874; }
.campo input,
.campo select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #D6DCDA;
  border-radius: 10px;
  background: #FAFBFA;
  font-family: inherit;
  font-size: 16px;
  color: var(--verde-escuro);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.campo select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230C251F' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.campo input:focus,
.campo select:focus { border-color: var(--verde-vivo); box-shadow: 0 0 0 3px rgba(0, 85, 60, .15); background: var(--branco); }
.campo input:user-invalid { border-color: var(--erro); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lgpd { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 22px; font-size: 13px; line-height: 1.45; color: var(--tinta-suave); }
.lgpd input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--verde-vivo); }

.form-card .btn { width: 100%; padding: 19px; background: var(--verde-escuro); color: var(--branco); }
.form-card .btn:hover { background: var(--verde-vivo); transform: translateY(-1px); }
.form-card .btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Antispam: campo escondido que só robôs preenchem */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg-erro { display: none; margin-top: 12px; font-size: 14px; text-align: center; color: var(--erro); }
.msg-erro.visivel { display: block; }


/* ---------------------------------------------------------------------
 * 10. PÁGINA DE OBRIGADO
 * ------------------------------------------------------------------- */
.pagina-obrigado .split-inner { max-width: 540px; }
.pagina-obrigado h1 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.05; margin-bottom: 22px; }
.pagina-obrigado .split-foto img { object-position: 45% 30%; }
.selo-ok { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 28px; border: 1.5px solid var(--dourado); border-radius: 50%; }
.selo-ok svg { width: 26px; height: 20px; fill: none; stroke: var(--dourado); stroke-width: 2.4; }

.passos { display: grid; gap: 16px; margin: 34px 0 36px; list-style: none; counter-reset: passo; }
.passos li { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; color: rgba(255, 255, 255, .88); counter-increment: passo; }
.passos li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  margin-top: -2px;
  border: 1px solid rgba(216, 176, 88, .6);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--dourado);
}
.passos strong { font-weight: 700; color: var(--branco); }
.pagina-obrigado .acoes { gap: 14px; margin-top: 0; }
.pagina-obrigado .btn { padding: 17px 26px; letter-spacing: .05em; }
.pagina-obrigado .link-sutil { display: inline-block; margin-top: 30px; }


/* ---------------------------------------------------------------------
 * 11. RODAPÉ
 * ------------------------------------------------------------------- */
.rodape { padding: 44px 0; font-size: 14px; color: rgba(255, 255, 255, .6); background: var(--rodape); }
.rodape .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.rodape a { font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, .85); border-bottom: 1px solid rgba(216, 176, 88, .5); padding-bottom: 1px; }
.rodape a:hover { color: var(--dourado); }


/* ---------------------------------------------------------------------
 * 12. ANIMAÇÃO DE ENTRADA (ativada por main.js ao rolar)
 * ------------------------------------------------------------------- */
.js .rev { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .rev.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rev { opacity: 1; transform: none; transition: none; }
}


/* ---------------------------------------------------------------------
 * 13. RESPONSIVO · TABLET (até 960px)
 * ------------------------------------------------------------------- */
@media (max-width: 960px) {
  .topo { width: 100%; }
  .topo-inner { height: 76px; padding-left: 24px; }

  /* Duas colunas viram uma: foto em cima, texto embaixo */
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-foto { order: -1; height: 72svh; min-height: 420px; max-height: 720px; }
  .split-foto img { object-position: 50% 25%; }
  .split-foto::before { display: none; }
  .split-foto::after { background: linear-gradient(180deg, rgba(12, 37, 31, .55) 0%, rgba(12, 37, 31, 0) 22%, rgba(12, 37, 31, 0) 70%, var(--verde-escuro) 100%); }
  .split-texto { position: relative; margin-top: -40px; padding: 8px 24px 72px; background: var(--verde-escuro); }
  .pagina-obrigado .split-foto { height: 56svh; min-height: 360px; max-height: 600px; }

  .cred .wrap { grid-template-columns: 1fr; }
  .cred-item { padding: 24px 0; border-left: 0; border-top: 1px solid rgba(12, 37, 31, .22); }
  .cred-item:first-child { border-top: 0; }

  .sobre { padding: 72px 0 90px; }
  .sobre .wrap,
  .lista .wrap { grid-template-columns: 1fr; gap: 56px; }
  .sobre-foto { max-width: 440px; margin-right: 22px; }

  .grade { grid-template-columns: 1fr 1fr; }
  .temas,
  .lista { padding: 80px 0; }
}


/* ---------------------------------------------------------------------
 * 14. RESPONSIVO · CELULAR (até 600px)
 * ------------------------------------------------------------------- */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topo-inner { padding-left: 16px; }
  .marca strong { font-size: 16px; }
  .split-texto { padding: 8px 16px 64px; }

  .grade { grid-template-columns: 1fr; }
  .duas { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 34px 22px; }
  .form-card::before { left: 22px; right: 22px; }
  .acoes .btn { width: 100%; }

  .sobre-foto { margin-right: 14px; }
  .sobre-foto::before { inset: 14px -14px -14px 14px; }
}
