/* ============================================================
   ADAGRO — STYLES v2
   Fonte arredondada (Nunito) + animações bi-direcionais
   + scroll suave + alinhamento sistemático
   ============================================================ */

/* ============ FONTES (Nunito Variable — cantos arredondados) ============ */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-latin-ext.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============ RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button { font: inherit; cursor: pointer; }

/* ============ TOKENS ============ */
:root {
  /* Paleta */
  --verde-escuro: #2d4a1f;
  --verde-medio:  #4a6b2a;
  --verde-claro:  #8bc34a;
  --verde-lima:   #a8d055;
  --bege:         #f5f1e8;
  --branco:       #ffffff;
  --surface:      #fbfcf7;
  --surface-2:    #f7f3ea;
  --ink:          #1d2614;
  --ink-soft:     #5a6b4f;
  --line:         rgba(45, 74, 31, 0.12);

  /* Raios arredondados */
  --rad-sm:   8px;
  --rad-md:   14px;
  --rad-lg:   22px;
  --rad-pill: 999px;

  /* Sombras em escala */
  --shadow-1: 0 4px 18px rgba(20, 35, 12, 0.08);
  --shadow-2: 0 18px 48px rgba(20, 35, 12, 0.18);
  --shadow-3: 0 32px 80px rgba(20, 35, 12, 0.28);

  /* Easings */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emph:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Durações */
  --dur-1: 200ms;
  --dur-2: 380ms;
  --dur-3: 680ms;
  --dur-4: 980ms;
  --dur-5: 1400ms;

  /* Layout */
  --header-h: 84px;
  --section-pad-y: clamp(72px, 9vw, 120px);
  --section-pad-x: clamp(22px, 5vw, 80px);
  --container-max: 1280px;
  --container-narrow: 880px;
}

/* ============ BASE TIPOGRÁFICA ============ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'kern', 'liga', 'calt';
  font-variation-settings: 'wght' 400;
  color: var(--ink);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

body.menu-open,
html.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-variation-settings: 'wght' 800;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  color: inherit;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.85rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.3vw, 1.1rem); }

p {
  max-width: 65ch;
  text-wrap: pretty;
}

::selection {
  background: rgba(168, 208, 85, 0.42);
  color: var(--verde-escuro);
}

:focus-visible {
  outline: 3px solid rgba(139, 195, 74, 0.55);
  outline-offset: 3px;
  border-radius: var(--rad-sm);
}

/* ============ UTILIDADES ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--verde-escuro);
  color: var(--branco);
  padding: 10px 18px;
  border-radius: var(--rad-sm);
  z-index: 10001;
  font-weight: 700;
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  color: var(--verde-claro);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

/* ============ LOADER ============ */
#loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background:
    radial-gradient(circle at 50% 38%, rgba(168, 208, 85, 0.22), transparent 42%),
    linear-gradient(135deg, #1a2b10 0%, var(--verde-escuro) 52%, #0f1b08 100%);
  color: var(--branco);
  transition:
    opacity 560ms var(--ease-out),
    visibility 560ms var(--ease-out);
}
.js body.loader-active #loader { display: flex; }
.js body.loader-active { overflow: hidden; }

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  opacity: 0;
  transform: translateY(14px);
  animation: loaderMarkIn 720ms var(--ease-emph) 80ms forwards;
}

.loader-bar {
  width: min(220px, 46vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--verde-lima), transparent);
  transform: scaleX(0);
  transform-origin: center;
  animation: loaderBarGrow 1100ms var(--ease-emph) 240ms forwards;
}

@keyframes loaderMarkIn { to { opacity: 1; transform: translateY(0); } }
@keyframes loaderBarGrow { to { transform: scaleX(1); } }

/* ============ HEADER (apenas o do site, no nível raiz) ============ */
body > header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 14px clamp(20px, 4vw, 56px);
  z-index: 1000;
  background: transparent;
  isolation: isolate;
  transition:
    background var(--dur-2) var(--ease-out),
    padding var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    backdrop-filter var(--dur-2) var(--ease-out);
}

body > header::before {
  content: '';
  position: absolute;
  inset: 0 0 -44px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.62) 54%, transparent 100%);
  opacity: 1;
  transform: translateZ(0);
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}

body > header.scrolled {
  padding: 10px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 32px rgba(20, 35, 12, 0.10);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}

body > header.scrolled::before {
  opacity: 0;
  transform: translateY(-18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.logo img {
  width: clamp(132px, 15vw, 176px);
  height: auto;
}

body > header nav {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

body > header nav ul {
  display: flex;
  gap: 30px;
}

body > header nav ul li a {
  color: var(--verde-escuro);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 2px;
  transition: color var(--dur-1) var(--ease-out);
}

body > header nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--verde-claro);
  border-radius: var(--rad-pill);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-2) var(--ease-emph);
}

body > header nav ul li a:hover,
body > header nav ul li a:focus-visible { color: var(--verde-claro); }

body > header nav ul li a:hover::after,
body > header nav ul li a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============ MENU MOBILE TOGGLE ============ */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  z-index: 1001;
  border-radius: var(--rad-sm);
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--verde-escuro);
  margin: 5px 0;
  border-radius: 2px;
  transition:
    transform var(--dur-1) var(--ease-emph),
    opacity var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: var(--header-h) clamp(24px, 6vw, 80px) 40px;
  overflow: hidden;
  background: #cfd6c4;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--hero-y, 0), 0) scale(var(--hero-scale, 1.04));
  transition: transform 100ms linear;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.55) 38%, rgba(255,255,255,0.08) 72%),
    radial-gradient(circle at 22% 50%, rgba(168, 208, 85, 0.18), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(660px, 100%);
  color: var(--verde-escuro);
  transform: translate3d(0, calc(var(--hero-content-y, 0) * -1), 0);
}

.hero-content h1 {
  color: var(--verde-escuro);
  max-width: 13ch;
  margin-bottom: 22px;
  text-shadow: 0 14px 36px rgba(255,255,255,0.36);
}

.hero-content p {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  max-width: 54ch;
  margin-bottom: 32px;
  color: var(--ink);
  text-shadow: 0 14px 36px rgba(255,255,255,0.36);
}

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--verde-claro);
  color: var(--branco);
  padding: 15px 34px;
  border-radius: var(--rad-pill);
  font-weight: 700;
  font-variation-settings: 'wght' 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(139, 195, 74, 0.32);
  transform: translateZ(0);
  transition:
    background var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-spring),
    box-shadow var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.32) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 900ms var(--ease-emph);
}

.btn:hover { background: var(--verde-medio); box-shadow: 0 12px 30px rgba(74, 107, 42, 0.42); transform: translateY(-3px); }
.btn:hover::before { transform: translateX(130%); }
.btn:active { transform: translateY(-1px) scale(0.985); }

.btn-outline {
  background: transparent;
  color: var(--verde-escuro);
  border: 1.5px solid rgba(45, 74, 31, 0.32);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(45, 74, 31, 0.06);
  color: var(--verde-escuro);
  border-color: rgba(45, 74, 31, 0.45);
  box-shadow: 0 10px 28px rgba(45, 74, 31, 0.10);
}

/* ============ SOBRE ============ */
.sobre {
  padding-block: var(--section-pad-y);
  background: var(--branco);
  text-align: center;
}

.sobre .eyebrow { display: block; }

.sobre h2 {
  color: var(--verde-escuro);
  margin-bottom: 22px;
}

.sobre p {
  max-width: 720px;
  margin: 0 auto 22px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.sobre .btn {
  margin-top: 18px;
}

/* ============ PRODUTOS ============ */
.produtos {
  padding-block: var(--section-pad-y);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.produtos-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(38px, 5vw, 64px);
}

.produtos-header .eyebrow { display: block; }

.produtos-header h2 {
  color: var(--verde-escuro);
  margin-bottom: 18px;
}

.produtos-header p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 28px);
  max-width: 1400px;
  margin: 0 auto;
}

.produto-card {
  position: relative;
  height: clamp(320px, 34vw, 420px);
  border-radius: var(--rad-lg);
  overflow: hidden;
  isolation: isolate;
  background: #162911;
  box-shadow: var(--shadow-1);
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.produto-card-link {
  display: block;
  color: inherit;
  cursor: pointer;
}

.produto-card:hover,
.produto-card:focus-within {
  transform: translateY(-8px) scale(1.012);
  box-shadow: var(--shadow-2);
}

.produto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 900ms var(--ease-emph);
}

.produto-card:hover img,
.produto-card:focus-within img {
  transform: scale(1.06);
}

.produto-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,74,31,0) 0%, rgba(45,74,31,0.20) 52%, rgba(21,31,16,0.68) 100%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity var(--dur-2) var(--ease-out);
}

.produto-card:hover::after,
.produto-card:focus-within::after {
  opacity: 1;
}

.produto-card .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(20px, 2.4vw, 32px);
  color: var(--branco);
  z-index: 1;
}

.produto-card .overlay::before {
  content: '';
  position: absolute;
  left: clamp(20px, 2.4vw, 32px);
  top: 16px;
  width: 52px;
  height: 3px;
  border-radius: var(--rad-pill);
  background: var(--verde-lima);
  opacity: 0.95;
}

.produto-card .overlay h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.produto-card .overlay p {
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 100%;
  margin: 0;
  opacity: 0.95;
}

.produto-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: var(--rad-pill);
  color: var(--branco);
  font-size: 0.8125rem;
  font-variation-settings: 'wght' 850;
  line-height: 1;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}

.linhas-sementes {
  margin-top: clamp(42px, 5vw, 72px);
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.linhas-sementes-hero {
  position: relative;
  min-height: clamp(260px, 27vw, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rad-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--branco);
  background: var(--verde-escuro);
  box-shadow: var(--shadow-2);
}

.linhas-sementes-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linhas-sementes-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(10,41,12,0.84), rgba(10,41,12,0.62));
}

.linhas-sementes-hero-copy {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 58px);
  text-align: center;
}

.linhas-sementes-hero-copy .eyebrow {
  display: block;
  color: var(--verde-lima);
}

.linhas-sementes-hero-copy h3 {
  color: var(--branco);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.linhas-sementes-hero-copy p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
  font-size: 1.0625rem;
}

.linhas-sementes-body {
  padding-top: clamp(28px, 4vw, 48px);
}

.linhas-sementes-header {
  max-width: 760px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.linhas-sementes-header h4 {
  color: var(--verde-escuro);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.linhas-sementes-header p {
  color: var(--ink-soft);
  margin: 0;
}

.linhas-marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
}

.linha-marca-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: 146px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  overflow: hidden;
  color: var(--verde-escuro);
  text-align: center;
  background: var(--branco);
  box-shadow: 0 8px 20px rgba(20, 35, 12, 0.06);
  transition:
    transform var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.linha-marca-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--verde-medio), var(--verde-lima));
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.linha-marca-card:hover,
.linha-marca-card:focus-visible,
.linha-marca-card.active {
  transform: translateY(-4px);
  border-color: rgba(116, 177, 0, 0.42);
  box-shadow: var(--shadow-1);
}

.linha-marca-card:focus-visible {
  outline: 3px solid rgba(168, 208, 85, 0.45);
  outline-offset: 3px;
}

.linha-marca-card.active::before { opacity: 1; }

.linha-marca-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;
  padding: 10px;
  border-radius: var(--rad-sm);
  background: var(--branco);
}

.linha-marca-logo img {
  width: auto;
  max-height: 72px;
  object-fit: contain;
}

.linha-marca-card > span:last-child {
  align-self: end;
  margin-top: 10px;
  font-size: 0.95rem;
  font-variation-settings: 'wght' 850;
  line-height: 1.2;
}

.linhas-produtos {
  margin-top: clamp(22px, 3vw, 36px);
}

.linhas-produtos-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,243,234,0.9));
  box-shadow: 0 12px 34px rgba(20, 35, 12, 0.08);
}

.linhas-produtos-panel[hidden] { display: none; }

.linhas-produtos-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  background: var(--branco);
}

.linhas-produtos-logo img {
  width: auto;
  max-height: 126px;
  object-fit: contain;
}

.linhas-produtos-copy .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.linhas-produtos-copy h4 {
  color: var(--verde-escuro);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.linhas-produtos-copy p {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.linhas-produtos-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.linhas-produtos-list li {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  color: var(--verde-escuro);
  font-size: 0.95rem;
  font-variation-settings: 'wght' 750;
  line-height: 1.25;
  background: rgba(255,255,255,0.78);
}

/* ============ PAGINA DE MARCAS DE SEMENTES ============ */
.hero-interna {
  min-height: clamp(460px, 68svh, 680px);
  padding-bottom: clamp(48px, 7vw, 86px);
}

.hero-interna::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.64) 42%, rgba(255,255,255,0.10) 76%),
    linear-gradient(180deg, rgba(45,74,31,0.10), rgba(45,74,31,0.04));
}

.hero-interna .hero-content {
  max-width: min(720px, 100%);
}

.hero-interna .hero-content h1 {
  max-width: 13ch;
}

.marcas-hero .hero-bg img {
  object-position: center 46%;
}

.marcas-sementes-page {
  scroll-margin-top: var(--header-h);
}

.marcas-dedicadas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
  max-width: 1180px;
  margin-inline: auto;
}

.marca-dedicada-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  color: var(--verde-escuro);
  text-align: center;
  background: var(--branco);
  box-shadow: 0 10px 28px rgba(20, 35, 12, 0.07);
  transition:
    transform var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.marca-dedicada-card:hover,
.marca-dedicada-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(116, 177, 0, 0.42);
  box-shadow: var(--shadow-1);
}

.marca-dedicada-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(150px, 72%);
  aspect-ratio: 1 / 1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--branco), rgba(247,243,234,0.66));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.marca-dedicada-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marca-dedicada-card h3 {
  margin-top: 16px;
  color: var(--verde-escuro);
  font-size: 1.0625rem;
  font-variation-settings: 'wght' 850;
  line-height: 1.2;
}

.marcas-sementes-info {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 720px;
  margin: clamp(30px, 4vw, 48px) auto 0;
  text-align: center;
}

.marcas-sementes-info p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* ============ STIHL BANNER ============ */
.stihl-banner {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px clamp(22px, 5vw, 80px);
  overflow: hidden;
  color: var(--branco);
}

.stihl-banner-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.stihl-banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--section-y, 0), 0) scale(1.06);
  transition: transform 120ms linear;
}

.stihl-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,0.42);
}

.stihl-banner-content {
  text-align: center;
}

.stihl-banner-content h2 {
  margin-bottom: 14px;
}

.stihl-banner-content p {
  margin: 0 auto 26px;
  font-size: 1.0625rem;
  max-width: 56ch;
}

/* ============ INSTITUCIONAL ============ */
.institucional {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-pad-y);
  overflow: hidden;
  color: var(--branco);
}

.institucional-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.institucional-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--section-y, 0), 0) scale(1.04);
  transition: transform 120ms linear;
}

.institucional::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(45, 74, 31, 0.85);
}

.institucional-content {
  position: relative;
  z-index: 1;
}

.institucional-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 60px);
}

.institucional-header .eyebrow {
  color: var(--verde-lima);
  display: block;
}

.institucional-header h2 {
  margin-bottom: 14px;
}

.institucional-header p {
  margin: 0 auto;
  font-size: 1.0625rem;
  opacity: 0.92;
  max-width: 56ch;
}

.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.5vw, 36px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.pilar {
  background: rgba(255, 255, 255, 0.08);
  padding: clamp(28px, 3vw, 38px) clamp(24px, 2.5vw, 32px);
  border-radius: var(--rad-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition:
    transform var(--dur-2) var(--ease-emph),
    box-shadow var(--dur-2) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    background var(--dur-2) var(--ease-out);
  text-align: left;
}

.pilar:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(168, 208, 85, 0.45);
  box-shadow: var(--shadow-2);
}

.pilar h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--verde-lima);
}

.pilar p {
  font-size: 0.975rem;
  line-height: 1.6;
  opacity: 0.94;
  max-width: 100%;
}

/* ============ CTA ============ */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-pad-y);
  overflow: hidden;
  color: var(--branco);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--section-y, 0), 0) scale(1.05);
  transition: transform 120ms linear;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.68) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 { margin-bottom: 16px; }
.cta p {
  font-size: 1.0625rem;
  margin: 0 auto 32px;
  max-width: 56ch;
}

/* ============ CONTATO ============ */
.contato {
  padding-block: var(--section-pad-y);
  background: linear-gradient(180deg, var(--bege) 0%, var(--surface) 100%);
}

.contato-content {
  text-align: center;
}

.contato-header {
  max-width: 720px;
  margin: 0 auto clamp(34px, 4.5vw, 48px);
}

.contato-header .eyebrow { display: block; }

.contato-header h2 {
  color: var(--verde-escuro);
  margin-bottom: 16px;
}

.contato-header p {
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.contato-list {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.contato-item {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(35, 52, 26, 0.06);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
  text-align: left;
  transition:
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-emph),
    background var(--dur-1) var(--ease-out);
}

.contato-item:hover {
  border-color: rgba(139, 195, 74, 0.45);
  box-shadow: 0 16px 36px rgba(35, 52, 26, 0.10);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.contato-item strong {
  display: block;
  color: var(--verde-escuro);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.contato-item span {
  color: var(--ink);
  font-size: 1.0625rem;
}

.contato-item a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}

.contato-item a:hover {
  color: var(--verde-medio);
  border-bottom-color: var(--verde-claro);
}

.contato-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}

/* ============ FOOTER ============ */
footer {
  background: var(--verde-escuro);
  color: var(--branco);
  padding: clamp(48px, 6vw, 72px) 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 3vw, 48px);
  margin-bottom: 40px;
  align-items: start;
}

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-col p,
.footer-col li {
  font-size: 0.9375rem;
  margin-bottom: 10px;
  opacity: 0.92;
  line-height: 1.55;
}

.footer-col h3 {
  color: var(--verde-lima);
  font-size: 0.9375rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 800;
}

.footer-col a {
  color: var(--branco);
  opacity: 0.88;
  transition: opacity var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--verde-lima);
}

.footer-col-logo p { max-width: 36ch; }

address { font-style: normal; }

.footer-bottom {
  text-align: center;
  padding: 26px var(--section-pad-x) 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.8125rem;
  opacity: 0.78;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition:
    transform var(--dur-2) var(--ease-spring),
    box-shadow var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out);
}

.whatsapp-float svg { width: 32px; height: 32px; }

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #22c35e;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.whatsapp-float:active { transform: translateY(-1px) scale(0.98); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--verde-claro);
  color: var(--branco);
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(16px) scale(0.92);
  transition:
    opacity var(--dur-1) var(--ease-out),
    visibility var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-spring),
    background var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out);
}

.back-to-top svg { width: 22px; height: 22px; }

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--verde-medio);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

/* ============ ANIMAÇÕES BI-DIRECIONAIS ============ */
/* Padrão: invisível no estado inicial (só com .js ativo).
   .in = entrou no viewport. .out = saiu (anima de volta).
   Sem JS, tudo é mostrado normalmente. */

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
  transition:
    opacity var(--dur-3) var(--ease-emph),
    transform var(--dur-4) var(--ease-emph),
    filter var(--dur-3) var(--ease-out);
  will-change: opacity, transform;
}

.js .reveal:not(.in),
.js .reveal-left:not(.in),
.js .reveal-right:not(.in),
.js .reveal-scale:not(.in) {
  opacity: 0;
  transform: translate3d(var(--rev-x, 0), var(--rev-y, 36px), 0) scale(var(--rev-s, 1));
  filter: blur(8px);
}

.reveal-left  { --rev-x: -36px; --rev-y: 0; }
.reveal-right { --rev-x: 36px;  --rev-y: 0; }
.reveal-scale { --rev-y: 24px; --rev-s: 0.96; }

.js .reveal.out,
.js .reveal-left.out,
.js .reveal-right.out,
.js .reveal-scale.out {
  opacity: 0;
  transform: translate3d(var(--rev-out-x, 0), var(--rev-out-y, -28px), 0) scale(var(--rev-out-s, 1));
  filter: blur(6px);
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    filter var(--dur-2) var(--ease-out);
}

.reveal-left.out  { --rev-out-x: -36px; --rev-out-y: 0; }
.reveal-right.out { --rev-out-x: 36px;  --rev-out-y: 0; }
.reveal-scale.out { --rev-out-y: -20px; --rev-out-s: 0.97; }

.delay-1 { transition-delay: 110ms; }
.delay-2 { transition-delay: 220ms; }
.delay-3 { transition-delay: 330ms; }
.delay-4 { transition-delay: 440ms; }
.delay-5 { transition-delay: 550ms; }

/* Word-by-word text reveal */
.text-reveal { display: inline; }
.text-reveal .word { display: inline-block; will-change: opacity, transform; }

.js .text-reveal .word {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 105%, 0);
  transition:
    opacity 720ms var(--ease-emph),
    transform 820ms var(--ease-emph),
    filter 680ms var(--ease-out);
}

.js .text-reveal.in .word {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.js .text-reveal.out .word {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, -28%, 0);
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    filter var(--dur-2) var(--ease-out);
}

/* ============ MEDIA QUERIES ============ */
@media (max-width: 1100px) {
  .produtos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linhas-produtos-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .pilares { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-logo { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; --section-pad-x: 22px; }

  .menu-toggle { display: block; }

  body > header nav { flex: 0 0 auto; justify-content: flex-end; }

  body > header nav ul {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 340px);
    height: 100dvh;
    background: var(--branco);
    flex-direction: column;
    padding: 96px 30px 40px;
    box-shadow: -5px 0 24px rgba(0,0,0,0.10);
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      opacity var(--dur-2) var(--ease-out),
      visibility var(--dur-2) var(--ease-out),
      transform 420ms var(--ease-emph);
    z-index: 1000;
  }

  body > header nav ul.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  body > header nav ul li { width: 100%; }

  body > header nav ul li a {
    display: block;
    padding: 14px 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
  }

  body > header nav ul li a::after { display: none; }

  body > header { padding: 12px 20px; }

  .hero {
    padding-inline: 22px;
    background-image: linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10));
  }
  .hero-bg img { object-position: 60% center; }

  .hero-content h1 { max-width: 14ch; }
  .hero-content p { max-width: 100%; }
  .hero-interna { min-height: 520px; }

  .produtos-grid { grid-template-columns: 1fr; }
  .linhas-sementes-hero-copy { padding: 30px 22px; }
  .linhas-produtos-panel { grid-template-columns: 1fr; }

  .contato-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 6px;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col-logo p { max-width: 100%; }

  .whatsapp-float { right: 18px; bottom: 18px; width: 56px; height: 56px; }
  .whatsapp-float svg { width: 30px; height: 30px; }
  .back-to-top { right: 22px; bottom: 86px; width: 44px; height: 44px; }
  .back-to-top svg { width: 20px; height: 20px; }

  .reveal-left, .reveal-right { --rev-x: 0; --rev-y: 30px; }
  .reveal-left.out, .reveal-right.out { --rev-out-x: 0; --rev-out-y: -22px; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.55rem, 6.5vw, 2rem); }

  .hero-content p { font-size: 1rem; }
  .linhas-sementes-hero { min-height: 240px; }
  .linhas-marcas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linha-marca-card { min-height: 132px; padding: 12px; }
  .linha-marca-logo { height: 74px; }
  .linha-marca-logo img { max-height: 58px; }
  .marcas-dedicadas-grid { grid-template-columns: 1fr; }
  .marca-dedicada-card { aspect-ratio: auto; min-height: 214px; }
  .marca-dedicada-logo { width: 126px; padding: 16px; }
  .linhas-produtos-list { grid-template-columns: 1fr; }
  .linhas-produtos-panel { padding: 18px 14px; }
}

/* ============ HOVER MEDIA QUERY ============ */
@media (hover: none) {
  .produto-card::after { opacity: 1; }
  .pilar:hover { transform: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .js .reveal-left,
  .js .reveal-right,
  .js .reveal-scale,
  .js .text-reveal .word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .hero-bg img,
  .stihl-banner-bg img,
  .institucional-bg img,
  .cta-bg img {
    transform: none !important;
  }

  #loader { display: none !important; }
}
