/* =========================================================
   PÁGINAS INTERNAS · mesmo design do site atual + motion
   (depende das variáveis e componentes de style.css)
   ========================================================= */

/* Topo interno: foto + título em faixa, primeira palavra sobre o verde (como no site atual) */
.hero-interno { position: relative; height: clamp(380px, 52vh, 480px); overflow: hidden; background: var(--texto); color: var(--branco); display: flex; align-items: flex-end; }
.hero-interno-fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: aproximar 9s linear both; }
.hero-interno::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,26,20,.55) 0%, rgba(17,26,20,.15) 40%, rgba(17,26,20,.55) 100%); }
.hero-interno-texto { position: relative; z-index: 2; padding-bottom: 64px; }
.titulo-faixa { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .28em; margin: 0; padding: 6px 18px 6px 0; background: rgba(17,26,20,.35); font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.titulo-faixa .realce { position: relative; display: inline-block; padding: 2px 14px; }
.titulo-faixa .realce::before { content: ""; position: absolute; inset: 0; background: var(--destaque); transform-origin: 0 50%; }
.titulo-faixa .realce > span, .titulo-faixa .resto { position: relative; display: inline-block; }
.hero-interno-texto p { margin: 16px 0 0; max-width: 560px; font-size: clamp(1rem, 1.3vw, 1.12rem); color: rgba(255,255,255,.88); text-shadow: 0 2px 14px rgba(0,0,0,.4); }

/* Abas (pílulas) */
.secao-abas { padding-top: 56px; }
.abas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 56px; }
.aba { display: inline-flex; align-items: center; gap: 6px; padding: 11px 14px; white-space: nowrap; border: 0; border-radius: 10px; background: var(--branco); color: var(--destaque); font-family: var(--f-titulo); font-weight: 600; font-size: .94rem; cursor: pointer; box-shadow: 0 8px 20px -14px rgba(17,26,20,.35); transition: background .35s, color .35s, transform .35s var(--ease), box-shadow .35s; }
.aba svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.aba:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(17,26,20,.45); }
.aba.ativa { background: var(--destaque); color: var(--branco); }
.aba.ativa svg { transform: rotate(180deg); }
.painel { display: none; }
.painel.ativo { display: block; animation: painel-entra .7s var(--ease); }
@keyframes painel-entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Produto / solução: texto + benefícios à esquerda, foto com cantos em diagonal à direita */
.produto { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 80px); align-items: start; scroll-margin-top: 110px; }
.produto + .produto { margin-top: clamp(70px, 9vw, 110px); }
.titulo-produto { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.3rem); text-transform: uppercase; color: var(--primaria); margin: 0 0 16px; }
.produto .texto p { margin: 0 0 12px; }
.produto-acoes { margin: 24px 0 30px; }
.prefere { margin: 12px 0 0; font-size: .9rem; color: #3d463f; }
.prefere a { color: var(--primaria); text-decoration: underline; text-underline-offset: 3px; }
.produto .midia { position: sticky; top: 100px; }
.destaque-sub { margin: 22px 0 6px; padding: 20px 22px; background: var(--branco); border-radius: 20px 0 20px 0; border-left: 4px solid var(--destaque); scroll-margin-top: 120px; }
.destaque-sub h3 { font-family: var(--f-titulo); font-weight: 600; font-size: 1.25rem; color: var(--primaria); margin: 2px 0 6px; }
.destaque-sub p { margin: 0; font-size: .97rem; }
.destaque-sub .etiqueta { margin-bottom: 4px; font-size: .74rem; }

/* Cards de benefícios com a curva verde em cima e embaixo (bg-vetor do site atual) */
.beneficios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.beneficio { position: relative; overflow: hidden; background: var(--branco); border-radius: 20px 0 20px 0; padding: 40px 16px 36px; text-align: center; box-shadow: 0 14px 30px -24px rgba(17,26,20,.5); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.beneficio::before, .beneficio::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; background-repeat: no-repeat; background-size: 100% 100%; transition: clip-path 1s var(--ease); transition-delay: calc(.3s + var(--i, 0) * .1s); }
.beneficio::before { top: 0; background-image: url("../img/bg-vetor-cima.svg"); }
.beneficio::after { bottom: 0; background-image: url("../img/bg-vetor-baixo.svg"); }
.beneficio:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -26px rgba(17,26,20,.6); }
.beneficio h4 { margin: 0 0 10px; font-family: var(--f-titulo); font-weight: 600; font-size: 1.15rem; color: var(--destaque); }
.beneficio p { margin: 0; font-size: .9rem; line-height: 1.5; color: #333; }
.beneficio p b { font-weight: 600; color: var(--texto); }
.proposta .icone { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(118,171,61,.12); color: var(--destaque); margin-bottom: 12px; }
.proposta .icone svg { width: 24px; height: 24px; }
.proposta-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; gap: 22px; }

/* A Máxima: soluções */
.grade-solucoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.card-solucao { display: block; }
.card-solucao-foto { aspect-ratio: 16 / 10; border-radius: 30px 0 30px 0; overflow: hidden; box-shadow: var(--sombra); background: var(--branco); }
.card-solucao-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card-solucao:hover .card-solucao-foto img { transform: scale(1.06); }
.card-solucao h3 { font-family: var(--f-titulo); font-weight: 600; font-size: 1.25rem; color: var(--primaria); margin: 20px 0 8px; }
.card-solucao p { margin: 0 0 12px; font-size: .95rem; color: #333; }
.saiba-mais { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-titulo); font-weight: 600; color: var(--destaque); transition: gap .3s var(--ease); }
.saiba-mais svg { width: 16px; height: 16px; }
.card-solucao:hover .saiba-mais { gap: 14px; }

/* A Máxima: linha do tempo */
.linha-tempo-wrap { padding-bottom: 10px; }
.linha-tempo { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.linha-tempo .trilho { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(40,59,47,.15); }
.linha-tempo .trilho i { position: absolute; inset: 0; background: var(--destaque); transform-origin: 0 50%; }
.marco { position: relative; text-align: center; }
.marco .ponto { display: block; width: 18px; height: 18px; margin: 0 auto 12px; border-radius: 50%; background: var(--primaria); border: 4px solid var(--fundo); box-shadow: 0 0 0 2px var(--primaria); position: relative; }
.marco strong { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 1.3rem; color: var(--destaque); margin-bottom: 10px; }
.marco-foto { aspect-ratio: 400 / 278; border-radius: 20px 0 20px 0; overflow: hidden; background: var(--branco); }
.marco-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.marco:hover .marco-foto img { transform: scale(1.06); }
.marco p { margin: 10px 0 0; font-size: .9rem; color: #333; }

/* Radar Agro: posts */
.grade-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post { background: var(--branco); border-radius: 20px 0 20px 0; overflow: hidden; box-shadow: 0 18px 36px -28px rgba(17,26,20,.55); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: 0 28px 44px -28px rgba(17,26,20,.6); }
.post-capa { aspect-ratio: 16 / 10; overflow: hidden; }
.post-capa img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post-capa img { transform: scale(1.05); }
.post-corpo { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-corpo h3 { font-family: var(--f-titulo); font-weight: 600; font-size: 1.12rem; line-height: 1.3; color: var(--primaria); margin: 0; }
.post-corpo p { margin: 0; font-size: .9rem; color: #444; flex: 1; }
.botao-pequeno { align-self: flex-start; padding: 9px 22px; font-size: .9rem; }
.paginacao { display: flex; justify-content: center; gap: 8px; margin-top: 44px; font-family: var(--f-titulo); }
.paginacao > * { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--branco); color: var(--primaria); transition: background .3s, color .3s; }
.paginacao .atual, .paginacao a:hover { background: var(--destaque); color: var(--branco); }
.paginacao svg { width: 14px; height: 14px; }

/* Fale Conosco: formulário em caixa degradê (cantos em diagonal, como no site atual) */
.caixa-form { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: 50px 0 50px 0; background: linear-gradient(135deg, #283B2F 0%, #4f7a33 60%, #76AB3D 100%); background-size: 180% 180%; animation: degrade 9s ease-in-out infinite alternate; color: var(--branco); }
.caixa-form .m { position: absolute; right: -30px; bottom: -50px; width: 220px; opacity: .18; pointer-events: none; animation: flutuar 7s ease-in-out infinite; }
.caixa-form .arquivo { display: grid; gap: 6px; font-size: .9rem; color: rgba(255,255,255,.9); }
.caixa-form .arquivo input { background: rgba(255,255,255,.95); }

/* ---------- Motion das páginas internas ---------- */
.js .titulo-faixa .realce::before { transform: scaleX(0); transition: transform .9s var(--ease) .15s; }
.js .titulo-faixa .realce > span, .js .titulo-faixa .resto { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .titulo-faixa .realce > span { transition-delay: .45s; }
.js .titulo-faixa .resto { transition-delay: .6s; }
.js .hero-interno-texto p { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .85s, transform 1s var(--ease) .85s; }
.js .hero-interno.pronto .titulo-faixa .realce::before { transform: none; }
.js .hero-interno.pronto .titulo-faixa .realce > span, .js .hero-interno.pronto .titulo-faixa .resto, .js .hero-interno.pronto .hero-interno-texto p { opacity: 1; transform: none; }
.js .produto .produto-texto > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .produto .produto-texto > *:nth-child(2) { transition-delay: .1s; }
.js .produto .produto-texto > *:nth-child(3) { transition-delay: .2s; }
.js .produto .produto-texto > *:nth-child(4) { transition-delay: .3s; }
.js .produto.visivel .produto-texto > * { opacity: 1; transform: none; }
.js .beneficio { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .45s var(--ease); transition-delay: calc(.35s + var(--i, 0) * .1s), calc(.35s + var(--i, 0) * .1s), 0s; }
.js .visivel .beneficio { opacity: 1; transform: none; }
.js .visivel .beneficio:hover { transform: translateY(-6px); transition-delay: 0s; }
.js .beneficio::before { clip-path: inset(0 100% 0 0); }
.js .beneficio::after { clip-path: inset(0 0 0 100%); }
.js .visivel .beneficio::before, .js .visivel .beneficio::after { clip-path: inset(0 0 0 0); }
.js .linha-tempo .trilho i { transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.js .linha-tempo-wrap.visivel .trilho i { transform: none; }
.js .marco { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.3s + var(--i) * .18s); }
.js .linha-tempo-wrap.visivel .marco { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .titulo-faixa .realce::before, .js .titulo-faixa .realce > span, .js .titulo-faixa .resto, .js .hero-interno-texto p,
  .js .produto .produto-texto > *, .js .beneficio, .js .marco, .js .linha-tempo .trilho i { opacity: 1 !important; transform: none !important; }
  .js .beneficio::before, .js .beneficio::after { clip-path: none !important; }
}

@media (max-width: 980px) {
  .linha-tempo-wrap { overflow-x: auto; margin-inline: -24px; padding: 0 24px 12px; scrollbar-width: thin; }
  .linha-tempo { grid-template-columns: repeat(6, 170px); }
  .produto { grid-template-columns: minmax(0, 1fr); }
  .produto .midia { position: relative; top: auto; order: -1; max-width: 520px; }
  .beneficios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-solucoes, .grade-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-interno { height: 360px; }
  .hero-interno-texto { padding-bottom: 40px; }
  .abas { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -24px; padding: 4px 24px 10px; scrollbar-width: none; }
  .aba { flex: none; }
  .grade-solucoes, .grade-posts, .proposta-grade { grid-template-columns: minmax(0, 1fr); }
  .beneficio { padding: 34px 12px 30px; }
  .produto .midia { margin-right: 18px; }
}
