/* Fazenda Vovô Piaba — site de marca com diário
   Identidade puxada do logo e da embalagem do ovo (verde, amarelo, marrom-terra).
   Tudo de cor vive nas variáveis abaixo: pra ajustar o tom, muda aqui. */

:root {
  --creme: #fbf7ee;
  --papel: #ffffff;
  --areia: #f1eadb;
  --linha: #e4dccb;
  --ink: #1f2a17;
  --ink-2: #3d4a34;
  --muted: #6b745f;

  /* verde-escuro é o fundo do logo; amarelo é a letra "VOVÔ PIABA"; terra é a madeira do anel */
  --verde: #4f8f2f;
  --verde-escuro: #1e4d00;
  --verde-claro: #e6f0d9;
  --amarelo: #ffc649;
  --amarelo-claro: #fff1cb;
  --terra: #a3661a;
  --terra-escuro: #5a2e12;

  --accent: var(--verde);
  --accent-ink: #ffffff;

  --display: "Rubik", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 40px -22px rgba(47, 90, 30, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a, button { touch-action: manipulation; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Tipografia ---------- */

h1 {
  font: 800 clamp(30px, 6.4vw, 62px)/1.04 var(--display);
  letter-spacing: -.025em;
  color: var(--ink);
}
h1 em { font-style: normal; color: var(--verde); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; z-index: -1;
  background: var(--amarelo); border-radius: 4px; transform: rotate(-1.2deg);
}
h2 {
  font: 800 clamp(26px, 4.6vw, 44px)/1.06 var(--display);
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 20ch;
}
h3 {
  font: 700 clamp(20px, 2.2vw, 24px)/1.2 var(--display);
  letter-spacing: -.01em;
  color: var(--ink);
}
p { max-width: 58ch; color: var(--ink-2); }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 44ch; }
.intro { max-width: 52ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--display);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--verde-escuro);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--amarelo); flex: none; }
.eyebrow-light { color: #fff; }

.link {
  display: inline-block; margin-top: 8px; padding: 15px 0;
  font: 600 15px/1 var(--display);
  color: var(--verde-escuro);
  text-decoration: underline; text-decoration-color: var(--amarelo); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.link:hover { text-decoration-color: var(--verde); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 700 15px/1 var(--display);
  letter-spacing: -.005em;
  border-radius: 999px;
  border: 2px solid var(--verde);
  color: var(--verde-escuro);
  background: transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .15s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { background: var(--verde-claro); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--verde); color: #fff; box-shadow: 0 10px 24px -12px rgba(79, 143, 47, .7); }
.btn-primary:hover { background: var(--verde-escuro); border-color: var(--verde-escuro); color: #fff; }
.btn-outline { background: var(--papel); }
.btn-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }

/* ---------- Fotos ---------- */
/* .ph é a moldura. Com a imagem em assets/, ela cobre o bloco. Sem imagem, o <img> se remove
   e fica o bloco cor de areia com a etiqueta "foto". */

.ph {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ar, 4 / 5);
  background: var(--areia);
  border-radius: var(--radius);
}
.ph::before {
  content: "foto";
  position: absolute; top: 12px; left: 12px;
  font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--linha); border-radius: 999px;
  padding: 7px 10px; background: rgba(255, 255, 255, .6);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.photo-egg .ph { border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; }
.photo-egg .ph::before { top: 18%; left: 22%; }

/* ---------- Topo ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(251, 247, 238, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 17px/1 var(--display); letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: 8px 0;
}
.brand b { font-weight: 800; color: var(--verde-escuro); }
.brand-logo { width: 44px; height: auto; flex: none; }
/* No desktop o painel não existe: nav e botão participam direto do flex do topo */
.menu-panel { display: contents; }
.nav-toggle { display: none; }
.nav-toggle-bars { position: relative; display: block; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), background .2s var(--ease);
}
.nav-toggle-bars::before { position: absolute; left: 0; top: -7px; }
.nav-toggle-bars::after { position: absolute; left: 0; top: 7px; }
.is-open .nav-toggle-bars { background: transparent; }
.is-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { --nav-gap: 26px; display: flex; gap: var(--nav-gap); }
.nav a { position: relative; font: 600 14px/1 var(--display); color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 15px 0; }
.nav a:hover { color: var(--verde-escuro); }
/* "+" discreto separando os itens do menu */
.nav a:not(:last-child)::after {
  content: "+"; position: absolute; top: 50%; right: calc(var(--nav-gap) / -2);
  font: 500 12px/1 var(--display); color: var(--muted); opacity: .5;
  transform: translate(50%, -50%);
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(36px, 6vw, 88px); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-text h1 { margin-bottom: 18px; }
.hero-text .lead { margin-bottom: 26px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.hero-cta .btn { width: 100%; }
.hero-photo { position: relative; }
.hero-photo .ph { box-shadow: var(--shadow); }
.hero-photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  background: var(--amarelo-claro); border-radius: var(--radius);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s var(--ease);
}
.hero-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Vídeo dentro de post: vertical, centralizado, com controle */
.video-block { margin: 24px auto; max-width: 400px; }
.video-block video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--areia); box-shadow: var(--shadow); }
.video-block figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Selos ---------- */

.selos { padding: 0 0 clamp(24px, 4vw, 40px); }
.selos-list {
  display: grid; gap: 18px;
  border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha);
  padding: 22px 0;
}
.selos-list li { display: flex; align-items: flex-start; gap: 12px; }
.selos-list svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.selos-list b { display: block; font: 700 15px/1.3 var(--display); color: var(--ink); }
.selos-list span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Seções ---------- */

.section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); scroll-margin-top: 64px; }
.section-alt { background: var(--areia); }
.split { display: grid; gap: 32px; align-items: start; }
.split-text h2 { margin-bottom: 18px; }
.split-text > p + p { margin-top: 14px; }
.split-text .btn { margin-top: 24px; }
.head-row { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }

.photos-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.photos-2 .nota { grid-column: 1 / -1; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.homenagem { margin: 48px 0 0; max-width: 64ch; padding-left: 20px; border-left: 4px solid var(--amarelo); }
.homenagem-row { margin-top: 48px; display: grid; gap: 32px; align-items: center; }
.homenagem-row .homenagem { margin-top: 0; }
.homenagem h3 { margin-bottom: 14px; }
.homenagem p { font-size: 17px; }
.homenagem p + p { margin-top: 14px; }
.homenagem details p { margin-top: 14px; }
.homenagem summary {
  display: inline-block; margin-top: 14px; padding: 8px 0;
  cursor: pointer; list-style: none;
  font: 600 15px/1 var(--display);
  color: var(--verde-escuro);
  text-decoration: underline; text-decoration-color: var(--amarelo); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.homenagem summary::-webkit-details-marker { display: none; }
.homenagem details[open] summary { display: none; }
.homenagem footer {
  margin-top: 18px; font: 600 13px/1 var(--display);
  letter-spacing: .04em; text-transform: uppercase; color: var(--verde-escuro);
}

/* O ovo */

.produto-photo .ph { box-shadow: var(--shadow); }
.specs { margin-top: 22px; border-top: 1px solid var(--linha); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.specs dt { font: 600 12px/1.5 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { font-size: 15px; color: var(--ink); }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--amarelo); }

/* Como criamos */

.steps { display: grid; gap: 14px; }
.steps li {
  position: relative;
  background: var(--papel);
  border: 1px solid var(--linha); border-radius: var(--radius);
  padding: 22px 20px 22px 20px;
}
.steps .num {
  display: inline-block; margin-bottom: 12px;
  font: 800 13px/1 var(--display); letter-spacing: .08em;
  color: var(--verde-escuro); background: var(--amarelo);
  border-radius: 999px; padding: 7px 10px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 15px; }


/* Galeria */

.gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 0 var(--gutter); max-width: var(--max); margin: 24px auto 0;
}

/* Quem cuida */

.links-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 22px; }
.links-row .btn { flex: 1 1 auto; }
.links-row .link { margin-top: 0; }

/* Acompanhe */

.contato { position: relative; overflow: hidden; color: #fff; background: var(--terra-escuro); }
.contato-bg, .contato-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contato-bg img { object-fit: cover; object-position: 50% 40%; filter: brightness(.55) saturate(1.1); }
.contato-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 42, 23, .3), rgba(31, 42, 23, .7)); }
.contato-inner { position: relative; z-index: 1; }
.contato h2 { color: #fff; margin-bottom: 14px; }
.contato .lead { color: rgba(255, 255, 255, .88); margin-bottom: 26px; }
.contato-info { margin-top: 30px; display: grid; gap: 12px; }
.contato-info div { display: grid; gap: 2px; }
.contato-info dt { font: 600 12px/1.5 var(--display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.contato-info dd { font: 500 17px/1.4 var(--body); color: #fff; }
.contato-info a { color: #fff; text-decoration: underline; text-decoration-color: var(--amarelo); text-underline-offset: 5px; padding: 11px 0; display: inline-block; }

/* Rodapé */

.foot { padding: 28px 0 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--linha); }
.foot-inner { display: flex; flex-direction: column; gap: 16px; }
.foot-brand { display: flex; flex-direction: column; gap: 4px; }
.foot-muted { font-size: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { text-decoration: none; color: var(--ink-2); padding: 12px 0; font-weight: 500; }
.foot-links a:hover { color: var(--verde-escuro); }
.made-by { text-decoration: none; color: var(--muted); padding: 12px 0; display: inline-block; }
.made-by b { color: var(--verde-escuro); font-weight: 600; }
.made-by:hover b { text-decoration: underline; }

/* ---------- Aviso (produção vendida) ---------- */

.aviso {
  margin-top: 24px;
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amarelo-claro);
  border-radius: 14px; padding: 14px 16px;
}
.aviso svg { flex: none; width: 20px; height: 25px; fill: var(--amarelo); stroke: var(--terra); stroke-width: 1.4; margin-top: 2px; }
.aviso p { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.aviso a { color: var(--verde-escuro); font-weight: 600; text-decoration-color: var(--amarelo); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Diário: cards ---------- */

.diario-grid { display: grid; gap: 16px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--papel);
  border: 1px solid var(--linha); border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .ph { border-radius: 0; }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { font: 600 12px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-size: 20px; }
.post-card p { font-size: 14.5px; color: var(--ink-2); }
.post-card .more { margin-top: auto; padding-top: 10px; font: 600 14px/1 var(--display); color: var(--verde-escuro); }
.post-card .more::after { content: " \2192"; }
.diario-foot { margin-top: 26px; }
.diario-empty { font-size: 16px; color: var(--ink-2); }
.diario-empty a { color: var(--verde-escuro); }
.badge-draft {
  display: inline-block;
  font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra-escuro); background: var(--amarelo-claro);
  border-radius: 999px; padding: 6px 9px;
}

/* ---------- Diário: página do post ---------- */

.post-hero { padding-top: clamp(28px, 5vw, 64px); }
.post-hero .eyebrow a { color: inherit; text-decoration: none; padding: 16px 0; margin: -16px 0; }
.post-hero .eyebrow a:hover { text-decoration: underline; }
.post-hero h1 { font-size: clamp(28px, 5.4vw, 52px); max-width: 22ch; }
.post-hero .lead { margin-top: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 18px; }
.post-cover { margin-top: 28px; }
.post-cover .ph { box-shadow: var(--shadow); }
.post-body { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); max-width: 680px; }
.post-body h2 { font-size: clamp(24px, 3vw, 32px); margin: 36px 0 12px; max-width: none; }
.post-body h3 { margin: 26px 0 8px; }
.post-body p { margin: 0 0 16px; max-width: none; font-size: 17px; line-height: 1.7; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin: 6px 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.post-body blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--amarelo); }
.post-body blockquote p { font-size: 18px; color: var(--ink); }
.post-body figure { margin: 24px 0; }
.post-body img { border-radius: var(--radius); width: 100%; }
.post-body a { color: var(--verde-escuro); text-decoration-color: var(--amarelo); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-body hr { border: 0; border-top: 1px solid var(--linha); margin: 32px 0; }
.post-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--areia); padding: 2px 6px; border-radius: 6px; }
.post-nav { border-top: 1px solid var(--linha); padding-top: 32px; padding-bottom: clamp(48px, 7vw, 88px); }
.post-list h1.h2 { font: 800 clamp(26px, 4.6vw, 44px)/1.06 var(--display); letter-spacing: -.02em; max-width: 20ch; }

/* ---------- Celular primeiro ---------- */

@media (max-width: 719px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; margin-right: 14px; }
  /* texto antes da foto: o título fica colado no rótulo da seção */
  .split .split-text { order: -1; }
  /* passos sem caixa: número à esquerda, texto à direita */
  .steps { gap: 24px; }
  .steps li { background: none; border: 0; border-radius: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .steps .num { grid-row: 1 / span 2; margin-bottom: 0; align-self: start; }
  .steps h3 { margin-bottom: 4px; }
}
@media (min-width: 720px) { .diario-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; } }
/* Abaixo do desktop o menu vira um painel que abre pelo botão no canto direito */
@media (max-width: 999px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  /* painel colado na barra, de ponta a ponta: num celular estreito um card de 230px
     espremido no canto fica pior que o menu inteiro */
  .menu-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--papel);
    border-bottom: 1px solid var(--linha);
    border-radius: 0 0 18px 18px;
    padding: 2px var(--gutter) 20px;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .top.is-open .menu-panel { opacity: 1; visibility: visible; transform: none; }
  .nav { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 0; font-size: 16px; }
  .nav a:not(:last-child) { border-bottom: 1px solid var(--linha); }
  .nav a:not(:last-child)::after { display: none; }
  .menu-panel .btn { width: 100%; }
  .section { scroll-margin-top: 80px; }
}

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ph img, .btn { transition: none; }
}

/* ---------- Responsivo ---------- */

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .hero-cta { flex-direction: row; align-items: center; }
  .hero-cta .btn { width: auto; }
  .hero-photo { margin-right: 14px; }
  .selos-list { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; padding: 26px 0; }
  /* mesma grade pras duas linhas da seção "A fazenda": as fotos da direita têm que bater */
  .split, .homenagem-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-rev .produto-photo { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .contato-info { grid-template-columns: repeat(3, auto); gap: 40px; justify-content: start; }
  .foot-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .photo-egg { max-width: 420px; }
}
@media (min-width: 1000px) {
  .selos-list { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split, .homenagem-row { grid-template-columns: 5fr 6fr; gap: 72px; }
  .split-rev { grid-template-columns: 6fr 5fr; }
  .hero-photo .ph img { transform: scale(1); }
}
