/* ------------------------------------------------------------------
   HF Agro — post-migration UI overrides (not part of the original site)
   ------------------------------------------------------------------ */

/* Instagram feed (Elfsight) "Carregar mais" button.
   The widget renders in light DOM, so we can restyle its load-more button:
   was a wide, bright-blue button clashing with the brand and going
   full-width on narrow screens. Make it an on-brand green pill, centered
   and width-constrained at every breakpoint. */
.eapps-instagram-feed-posts-grid-load-more-container {
  text-align: center !important;
}
.eapps-instagram-feed-posts-grid-load-more.es-load-more-button,
.eapps-instagram-feed .es-load-more-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: auto !important;      /* Elfsight forces height:32px -> with padding the text was squished */
  min-height: 0 !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 280px !important;
  margin: 18px auto !important;
  padding: 13px 34px !important;
  background-color: #39b54a !important;   /* HF Agro brand green */
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: 0 4px 12px rgba(57, 181, 74, .25) !important;
  transition: background-color .2s ease, transform .08s ease !important;
}
.eapps-instagram-feed-posts-grid-load-more.es-load-more-button:hover,
.eapps-instagram-feed .es-load-more-button:hover {
  background-color: #2f9d3f !important;
  transform: translateY(-1px) !important;
}

/* ------------------------------------------------------------------
   Farmview CTA (home) — faixa verde do produto cortando o site escuro.
   Markup em src/html/home.html, logo antes da seção "Vamos bater um papo".

   Paleta vinda do próprio Farmview (#399429 -> #4DBD74) sobre o #011D08
   do site; botão no âmbar da HF Agro (#F7AC06), mas com texto escuro —
   branco sobre âmbar dá contraste 2:1 e some ao sol, no celular, no campo.

   Todos os seletores internos são prefixados com .fv-cta de propósito:
   o kit do Elementor tem regras como `.elementor-kit-10 a` e
   `.elementor-kit-10 h2` (0,1,1) que, sem o prefixo, ganham das classes
   soltas e pintam o botão de âmbar sobre âmbar (texto invisível).
   ------------------------------------------------------------------ */
.fv-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #2c7a1f 0%, #399429 38%, #4dbd74 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .2);
}

/* Brilho diagonal + véu escuro por cima da coluna de texto.
   O véu não é enfeite: branco sobre o verde claro do degradê fica em 2,4:1,
   que reprova em AA. Com o véu a mesma tipografia passa de 4,5:1 e o verde
   vivo do Farmview continua aparecendo do lado do print, onde não há texto. */
.fv-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(72% 82% at 88% 16%, rgba(255, 255, 255, .2), transparent 60%),
    linear-gradient(90deg, rgba(1, 29, 8, .46) 0%, rgba(1, 29, 8, .42) 50%, rgba(1, 29, 8, 0) 74%);
}

.fv-cta .fv-cta__inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(56px, 7.5vw, 112px) 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.fv-cta .fv-cta__eyebrow {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}

.fv-cta .fv-cta__title {
  margin: 0 0 20px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: #fff;
  text-wrap: balance;
}

.fv-cta .fv-cta__lead {
  margin: 0 0 28px;
  max-width: 46ch;
  font-family: "Roboto", sans-serif;
  font-size: clamp(16.5px, 1.5vw, 19.5px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, .93);
}

.fv-cta .fv-cta__features {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fv-cta .fv-cta__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(1, 29, 8, .22);
  font-family: "Roboto", sans-serif;
  font-size: 14.5px;
  line-height: 1.3;
  color: #fff;
}

.fv-cta .fv-cta__features li::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
}

.fv-cta .fv-cta__action {
  margin: 0 0 16px;
}

.fv-cta a.fv-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 32px;
  border-radius: 3px;
  background-color: #f7ac06;
  color: #10240b;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(1, 29, 8, .28);
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.fv-cta a.fv-cta__button:hover,
.fv-cta a.fv-cta__button:focus-visible {
  background-color: #ffbb1f;
  color: #10240b;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(1, 29, 8, .34);
}

.fv-cta a.fv-cta__button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(1, 29, 8, .28);
}

.fv-cta a.fv-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.fv-cta .fv-cta__button-arrow {
  transition: transform .2s ease;
}

.fv-cta a.fv-cta__button:hover .fv-cta__button-arrow,
.fv-cta a.fv-cta__button:focus-visible .fv-cta__button-arrow {
  transform: translateX(4px);
}

.fv-cta .fv-cta__note {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

/* mockup do painel: moldura de navegador com leve perspectiva */
.fv-cta .fv-cta__frame {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .3),
    0 34px 64px -22px rgba(1, 29, 8, .55);
  transform: perspective(1600px) rotateY(-7deg) rotateX(1.5deg);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.fv-cta .fv-cta__media:hover .fv-cta__frame,
.fv-cta .fv-cta__frame:focus-within {
  transform: perspective(1600px) rotateY(0) rotateX(0);
}

/* o print termina no meio de um gráfico; o fade transforma o corte em acabamento */
.fv-cta .fv-cta__frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 92%);
}

.fv-cta .fv-cta__frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  background: #f0f3f5;
  border-bottom: 1px solid #e1e6ea;
}

.fv-cta .fv-cta__frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3dade;
}

.fv-cta .fv-cta__frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  /* empilhado, o texto ocupa a largura toda: o véu passa a ser vertical */
  .fv-cta::before {
    background:
      radial-gradient(84% 40% at 78% 94%, rgba(255, 255, 255, .16), transparent 62%),
      linear-gradient(180deg, rgba(1, 29, 8, .46) 0%, rgba(1, 29, 8, .42) 74%, rgba(1, 29, 8, 0) 96%);
  }
  .fv-cta .fv-cta__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .fv-cta .fv-cta__frame {
    transform: none;
  }
  .fv-cta .fv-cta__lead {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .fv-cta a.fv-cta__button {
    width: 100%;
    justify-content: center;
  }
}

/* entrada suave ao rolar, sem JS (navegador que não suporta simplesmente ignora) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fv-cta .fv-cta__copy,
    .fv-cta .fv-cta__media {
      animation: fv-cta-rise linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 26%;
    }
  }
}

@keyframes fv-cta-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fv-cta a.fv-cta__button,
  .fv-cta .fv-cta__button-arrow,
  .fv-cta .fv-cta__frame {
    transition: none;
  }
}
