/*
Theme Name: Negócio em Campo
Theme URI: https://blog.negocioemcampo.com.br
Author: Impluvius (RHaaS)
Description: Tema do blog Negócio em Campo — recriação do visual anterior
  (Automarticles): Manrope + paleta verde/teal, com TOC, posts relacionados,
  newsletter e GA4 embutido. Produto: negocio-em-campo.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietário — uso interno Impluvius
Text Domain: negocioemcampo
*/

/* ===== Tokens (paleta verde/teal extraída do site antigo) ===== */
:root{
  --g-50:#fcfcfd; --g-100:#f1f8f4; --g-200:#dcefe5; --g-300:#b4dbcb;
  --g-400:#8bc7b1; --g-500:#63b397; --g-600:#3ba07d; --g-700:#2a8768;
  --g-800:#1d6e54; --g-900:#145541; --g-950:#0b3d2e;
  --brand:#2a8768; --brand-dark:#1d6e54; --brand-light:#dcefe5;
  --ink:#12211b; --muted:#5b6b64; --line:#e6ede9; --bg:#ffffff;
  --maxw:820px; --radius:14px;
  --font:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* ===== Base ===== */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);
  line-height:1.7;font-size:18px;font-weight:400}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand-dark);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-weight:800;line-height:1.25;color:var(--ink);margin:1.8em 0 .6em}
h1{font-size:2.1rem;font-weight:800}
h2{font-size:1.5rem}
h3{font-size:1.2rem}
p,ul,ol{margin:0 0 1.1em}
blockquote{margin:1.4em 0;padding:.6em 1.2em;border-left:4px solid var(--brand);
  background:var(--g-100);color:var(--g-900);border-radius:0 8px 8px 0}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ===== Header / nav ===== */
.site-header{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:50}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:66px}
.site-logo{font-weight:800;font-size:1.15rem;color:var(--g-950);letter-spacing:-.02em}
.site-logo span{color:var(--brand)}
.menu-desktop ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.menu-desktop a{color:var(--ink);font-weight:600;font-size:.95rem}
.menu-desktop a:hover{color:var(--brand)}
@media(max-width:720px){.menu-desktop{display:none}}

/* ===== Post ===== */
.post-header{padding:40px 0 8px}
.post-cat{display:inline-block;font-size:.8rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.05em;color:var(--brand);margin-bottom:10px}
.post-meta{color:var(--muted);font-size:.9rem;margin-top:8px}
.post-hero{margin:24px 0;border-radius:var(--radius);overflow:hidden}
.post-content{font-size:1.075rem}
.post-content img{border-radius:10px;margin:1.4em 0}

/* ===== TOC (índice) ===== */
.toc{background:var(--g-100);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 22px;margin:24px 0}
.toc strong{display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;
  color:var(--g-800);margin-bottom:10px}
.toc ul{list-style:none;margin:0;padding:0}
.toc li{margin:.35em 0}
.toc a{color:var(--g-900);font-weight:500}

/* ===== Relacionados / newsletter ===== */
.related{margin:48px 0;padding-top:28px;border-top:1px solid var(--line)}
.related h2{margin-top:0}
.related-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:600px){.related-grid{grid-template-columns:1fr}}
.related-card{border:1px solid var(--line);border-radius:var(--radius);padding:16px;transition:.15s}
.related-card:hover{border-color:var(--brand-light);box-shadow:0 6px 20px rgba(42,135,104,.08)}
.related-card .cat{font-size:.72rem;font-weight:700;text-transform:uppercase;color:var(--brand)}
.related-card h3{font-size:1rem;margin:.4em 0 0}

.newsletter{background:var(--g-950);color:#fff;border-radius:var(--radius);padding:34px;margin:48px 0}
.newsletter h2{color:#fff;margin-top:0}
.newsletter p{color:var(--g-300)}
.newsletter form{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.newsletter input[type=email]{flex:1;min-width:220px;padding:13px 16px;border-radius:10px;border:0;font-size:1rem}
.newsletter button{padding:13px 22px;border:0;border-radius:10px;background:var(--brand);
  color:#fff;font-weight:700;font-size:1rem;cursor:pointer}
.newsletter button:hover{background:var(--g-600)}

/* ===== Listagem / cards ===== */
.post-list{display:grid;grid-template-columns:1fr 1fr;gap:26px;padding:36px 0}
@media(max-width:720px){.post-list{grid-template-columns:1fr}}
.card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;transition:.15s}
.card:hover{box-shadow:0 10px 30px rgba(42,135,104,.10)}
.card .thumb{aspect-ratio:16/9;background:var(--g-100)}
.card .body{padding:18px}
.card .cat{font-size:.72rem;font-weight:700;text-transform:uppercase;color:var(--brand)}
.card h2{font-size:1.15rem;margin:.35em 0 .3em}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--line);background:var(--g-50);margin-top:60px;padding:36px 0;color:var(--muted);font-size:.9rem}
.site-footer a{color:var(--g-800)}
