/* =========================================================
   UNIFRUTAS · VERSÃO 2 — base compartilhada (home e produtos)
   Paleta "Pomar" · Tipografia "Orgânica"
   ========================================================= */

:root {
  --bg: #F6F8F1;
  --surface: #FFFFFF;
  --tint: #EAF1E1;
  --ink: #14261B;
  --muted: #56665A;
  --line: #DCE3D5;
  --deep: #0F3A25;
  --deep-2: #0A2A1A;
  --on-deep: #EEF5EA;
  --deep-muted: #A9C2B0;
  --deep-line: #265A3E;
  --accent: #E84E1B;
  --accent-ink: #C43E10;
  --sun: #FBB040;
  --leaf: #8FBF2A;
  --verde-marca: #008D36;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 84px; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
.secao { padding-block: clamp(72px, 9vw, 128px); }
.sec-titulo { font-size: clamp(34px, 4.6vw, 60px); }
.sec-titulo--centro { text-align: center; }
.sec-texto { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow--suave { color: var(--muted); }
.linha-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.45em;
  border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: var(--body); font-weight: 650; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s, background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--accent); }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn i { font-size: 1.2em; }
.btn--sm { padding: .68em 1.15em; font-size: 15px; }
.btn--lg { padding: 1.02em 1.75em; font-size: 17px; }
.btn--branco { background: #fff; color: var(--deep); }
.btn--branco:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.btn--contorno { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--contorno:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px currentColor, 0 14px 30px -18px rgba(0, 0, 0, .4); }
.btn--wa { background: #1FAF55; }
.btn--wa:hover { box-shadow: 0 14px 30px -14px #1FAF55; }
.link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 650; color: var(--accent-ink); text-decoration: none;
}
.link .arr { transition: transform .3s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .42em .85em; border-radius: 999px;
  background: var(--tint); color: var(--ink);
  font-size: 14px; font-weight: 500; line-height: 1.2;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); flex: none; }
.chip--vivo { background: color-mix(in oklab, var(--accent) 12%, #fff); color: var(--accent-ink); font-weight: 600; }
.chip--vivo i { background: var(--accent); animation: pulso 1.8s infinite; }

/* ---------- navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 3vw, 36px);
  transition: background-color .35s, box-shadow .35s, padding .35s;
}
.nav.is-rolado {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 8px;
}
.nav-logo { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.nav-logo:hover { transform: rotate(-8deg) scale(1.04); }
.nav-logo img { width: 38px; height: auto; }
.nav-pilula {
  margin-inline: auto;
  position: relative;
  display: flex; gap: 2px;
  padding: 5px; border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(0, 0, 0, .4);
}
.nav-pilula a {
  position: relative; z-index: 1;
  padding: 9px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 550; text-decoration: none; color: var(--ink);
  transition: color .3s;
}
.nav-pilula a.is-ativo { color: #fff; }
.nav-ind {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0;
  border-radius: 999px; background: var(--accent); opacity: 0;
  transition: transform .42s var(--ease), width .42s var(--ease), opacity .3s;
}
.nav-direita { display: flex; align-items: center; gap: 10px; flex: none; }
.bandeiras {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(0, 0, 0, .4);
}
.bandeira {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; display: grid; place-items: center;
  opacity: .55; filter: saturate(.6);
  transition: opacity .25s, filter .25s, transform .25s var(--ease), box-shadow .25s;
}
.bandeira img { width: 26px; height: 26px; object-fit: contain; }
.bandeira:hover { opacity: 1; filter: none; transform: scale(1.08); }
.bandeira[aria-pressed="true"] { opacity: 1; filter: none; box-shadow: inset 0 0 0 2px var(--accent); }
.nav-burger {
  display: none; position: relative;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--surface); cursor: pointer;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(0, 0, 0, .4);
}
.nav-burger span, .nav-burger::before, .nav-burger::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .35s var(--ease), opacity .2s;
}
.nav-burger::before { top: 16px; }
.nav-burger span { top: 22px; }
.nav-burger::after { top: 28px; }
.nav-burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span { opacity: 0; }
.nav-burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.menu-movel {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; gap: 32px;
  padding: calc(var(--nav-h) + 28px) clamp(20px, 6vw, 48px) 32px;
  background: var(--deep); color: var(--on-deep);
  overflow-y: auto;
}
.menu-movel nav { display: grid; }
.menu-movel nav a {
  font-family: var(--display); font-weight: 750; letter-spacing: -0.03em;
  font-size: clamp(32px, 9vw, 52px); line-height: 1.1;
  padding: 10px 0; border-bottom: 1px solid var(--deep-line);
  text-decoration: none;
  animation: sobe .55s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.menu-movel .btn { align-self: flex-start; }
body.menu-aberto { overflow: hidden; }
body.menu-aberto .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (max-width: 1080px) {
  .nav-pilula { display: none; }
  .nav-direita { margin-left: auto; }
  .nav-burger { display: block; }
}
@media (max-width: 400px) {
  .bandeira { width: 30px; height: 30px; }
  .bandeira img { width: 22px; height: 22px; }
}

/* ---------- botões flutuantes ---------- */
.flutuante {
  position: fixed; right: 18px; z-index: 50;
  width: 54px; height: 54px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), opacity .3s, box-shadow .3s;
}
.flutuante--whats { bottom: 18px; background: #1FAF55; color: #fff; box-shadow: 0 16px 30px -14px rgba(31, 175, 85, .9); }
.flutuante--whats::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(31, 175, 85, .55);
  animation: anel 3.2s var(--ease) infinite;
}
.flutuante--whats:hover { transform: scale(1.08); }
.flutuante--topo {
  bottom: 84px; background: var(--surface); color: var(--ink); font-size: 18px;
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -16px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transform: translateY(10px);
}
.flutuante--topo.is-visivel { opacity: 1; pointer-events: auto; transform: none; }
.flutuante--topo:hover { transform: translateY(-3px); }
body.menu-aberto .flutuante { opacity: 0; pointer-events: none; }

/* ---------- calendário de safra ---------- */
.cal {
  --barra: var(--fruit, var(--accent));
  display: grid;
  grid-template-columns: 58px repeat(12, 1fr);
  grid-template-rows: 170px auto;
  column-gap: 6px;
  padding-top: 26px;
  position: relative;
}
.cal-y { grid-row: 1; grid-column: 1; position: relative; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cal-y span { position: absolute; right: 8px; bottom: calc(var(--v) * 25%); transform: translateY(50%); line-height: 1; }
.cal-grade { grid-row: 1; grid-column: 2 / -1; position: relative; pointer-events: none; }
.cal-grade i { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 25%); border-top: 1px dashed var(--line); }
.cal-barra {
  grid-row: 1; align-self: end; position: relative;
  height: calc(var(--lv) * 25%);
  border-radius: 7px 7px 3px 3px;
  background: color-mix(in oklab, var(--barra) 26%, #fff);
  transform-origin: bottom;
}
.cal-barra[data-nivel="3"] { background: color-mix(in oklab, var(--barra) 58%, #fff); }
.cal-barra[data-nivel="4"] { background: var(--barra); }
.cal-barra.is-agora { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.cal-barra.is-agora::after {
  content: attr(data-agora);
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  font-family: var(--mono); font-size: 10.5px; line-height: 1.4;
  padding: 1px 7px; border-radius: 6px;
  background: var(--ink); color: #fff; white-space: nowrap;
}
.cal-mes { grid-row: 2; text-align: center; padding-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.is-visivel .cal-barra, .cal.is-visivel .cal-barra {
  animation: cresce .9s var(--ease) backwards;
  animation-delay: calc(var(--m) * 45ms + .15s);
}
@media (max-width: 520px) {
  .cal { grid-template-columns: 46px repeat(12, 1fr); grid-template-rows: 140px auto; column-gap: 3px; }
  .cal-mes { font-size: 10px; }
}

/* ---------- rodapé ---------- */
.rodape { background: var(--deep); color: var(--on-deep); }
.rodape-topo {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 7vw, 88px) 40px;
}
/* bloco do tamanho da logo, com os botões centralizados embaixo dela */
.rodape-marca { display: flex; flex-direction: column; align-items: center; gap: 24px; justify-self: start; width: fit-content; }
.rodape-marca img { width: 150px; height: auto; }
.rodape-sociais { display: flex; gap: 10px; }
.rodape-sociais a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--deep-line);
  transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease);
}
.rodape-sociais a:hover { background: var(--sun); color: var(--deep); box-shadow: none; transform: translateY(-3px); }
.rodape-menus { display: grid; grid-template-columns: .8fr 1fr 1.4fr; gap: 28px; }
.rodape-menu h2 {
  font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--deep-muted); margin-bottom: 16px;
}
.rodape-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape-menu a, .rodape-menu span { font-size: 15.5px; text-decoration: none; word-break: break-word; }
.rodape-menu span { color: var(--deep-muted); }
.rodape-menu a { display: inline-block; transition: color .25s, transform .3s var(--ease); }
.rodape-menu a:hover { color: var(--sun); transform: translateX(3px); }
.rodape-copy { padding-block: 22px; border-top: 1px solid var(--deep-line); font-size: 14px; color: var(--deep-muted); text-align: center; }
.rodape-dev { background: var(--deep-2); padding: 22px 16px; display: grid; place-items: center; }
.rodape-dev img { height: 30px; width: auto; opacity: .85; transition: opacity .3s; }
.rodape-dev a:hover img { opacity: 1; }
@media (max-width: 860px) {
  .rodape-topo { grid-template-columns: 1fr; }
  .rodape-menus { grid-template-columns: 1fr 1fr; }
  .rodape-menu:last-child { grid-column: 1 / -1; }
}

/* ---------- entrada ao rolar ---------- */
.js [data-rv] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-rv].is-visivel { opacity: 1; transform: none; }

/* ---------- animações ---------- */
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } }
@keyframes boia { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes cresce { from { transform: scaleY(0); } }
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
@keyframes anel {
  0%, 60% { box-shadow: 0 0 0 0 rgba(31, 175, 85, .5); }
  100% { box-shadow: 0 0 0 16px rgba(31, 175, 85, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-rv] { opacity: 1; transform: none; }
}
