/* =========================================================
   Smart Prime Consultoria Empresarial — folha de estilos
   Paleta: azul-tinta (confiança/análise) + latão (sofisticação)
   ========================================================= */

:root {
  --ink: #0e1a26;
  --navy: #14283b;
  --navy-2: #1d3850;
  --steel: #5f7890;
  --brass: #a9834b;
  --brass-l: #d8c29e;
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: #e2ddd3;
  --text: #25313d;
  --muted: #5b6672;
  --forest: #2e5843;
  --forest-l: #e9f0eb;
  --whatsapp: #1c7a4b;

  --radius: 6px;
  --maxw: 1160px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 18px 48px -28px rgba(14, 26, 38, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.05rem, 4.4vw, 3.3rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.008em; }
h3 { font-size: 1.24rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: var(--radius); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.05; letter-spacing: .01em; }
.brand-name small {
  display: block; margin-top: 3px;
  font-family: var(--sans); font-size: .64rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--muted);
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--text);
  font-size: .94rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border: 0; padding-top: 20px; }
  .nav a:not(.btn) { display: block; padding: 16px 0; font-size: 1.08rem; border: 0; }
  .nav .btn { width: 100%; justify-content: center; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--radius);
  font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brass-l); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #156139; color: #fff; }

/* ---------- Seções ---------- */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--navy); color: #cdd6df; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: block; margin-bottom: 14px;
  font-size: .76rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  color: var(--brass);
}
.lead { font-size: 1.14rem; color: var(--muted); }
.section-dark .lead { color: #b9c5d1; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-topics { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.hero-figure {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 22px 16px; box-shadow: var(--shadow);
}
.hero-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* ---------- Hero das páginas internas ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 76px 0 68px; color: #c9d3dd;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: #bccad6; max-width: 680px; margin-bottom: 0; }
.page-hero.forest { background-color: #1f3d30; }
.breadcrumb { font-size: .84rem; margin-bottom: 18px; color: #9fb0c0; }
.breadcrumb a { color: var(--brass-l); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

/* ---------- Grades e cartões ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--brass-l); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .97rem; }
.card .card-link { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; }
.card .card-link::after { content: " →"; }
.card-num { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: .95rem; font-weight: 600; color: var(--brass); }
.card.featured { background: var(--forest-l); border-color: #cfdcd3; }

/* Perguntas */
.questions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.questions li {
  position: relative; padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.12rem; color: var(--ink);
}
.questions li::before {
  content: "?"; position: absolute; left: 0; top: 21px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass);
  font: 600 .78rem/20px var(--sans); text-align: center;
}

/* Etapas */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.18); }
.steps li::before {
  content: "0" counter(step); display: block; margin-bottom: 12px;
  font-family: var(--serif); font-size: 1.6rem; color: var(--brass-l);
}
.steps h3 { font-size: 1.12rem; }
.steps p { font-size: .95rem; margin: 0; }
.section:not(.section-dark) .steps li { border-top-color: var(--line); }
.section:not(.section-dark) .steps li::before { color: var(--brass); }

/* Caixa de escopo */
.scope-box {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  padding: 44px; border: 1px solid var(--line); border-left: 4px solid var(--brass);
  border-radius: var(--radius); background: #fff;
}
.scope-box h2 { font-size: 1.7rem; }

.scope-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scope-col { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.scope-col h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.scope-col.out { background: var(--paper); }
.mark { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .8rem/1 var(--sans); }
.mark.yes { background: var(--navy); color: #fff; }
.mark.no { background: #ddd6ca; color: var(--muted); }

/* Listas */
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding: 7px 0 7px 26px; }
.check li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 11px; height: 6px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}
.dash { list-style: none; padding: 0; margin: 0 0 1em; }
.dash li { position: relative; padding: 6px 0 6px 22px; color: var(--muted); }
.dash li::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 1px; background: var(--steel); }

/* Faixa agro */
.agro-band { background: var(--forest); color: #d5e2d9; }
.agro-band h2 { color: #fff; }
.agro-band .eyebrow { color: #c9d8a8; }
.agro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.agro-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.18); }
.agro-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: .98rem; }

/* Serviços detalhados */
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.service-nav a {
  font-size: .86rem; text-decoration: none; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 40px; color: var(--text); background: #fff;
}
.service-nav a:hover { border-color: var(--brass); color: var(--ink); }
.service {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px;
  padding: 64px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service:first-of-type { border-top: 0; }
.service-title .card-num { font-size: 1.1rem; }
.service-title h2 { font-size: 1.65rem; }
.service-body > p { font-size: 1.05rem; }
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 26px; }
.service-cols h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Destaques */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 28px 28px 28px 0; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: 6px; }
.facts span { color: var(--muted); font-size: .95rem; }

/* Artigos */
.article-card { padding: 0; overflow: hidden; }
.article-card .thumb { height: 150px; background: var(--navy); }
.article-card .thumb svg { width: 100%; height: 100%; }
.article-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 1.18rem; }
.article-card h3 a { text-decoration: none; color: var(--ink); }
.article-card h3 a:hover { color: var(--navy-2); text-decoration: underline; }
.meta { font-size: .8rem; color: var(--muted); margin-bottom: 10px; letter-spacing: .02em; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-right: 8px; }

/* Texto de artigo */
.prose { font-size: 1.07rem; line-height: 1.75; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #2d3945; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brass); font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table, table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper); font-weight: 600; color: var(--ink); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose .note { font-size: .9rem; color: var(--muted); }
.article-header { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--paper); }
.article-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 24ch; }
.article-footer { margin-top: 56px; padding: 32px; background: var(--paper); border-radius: var(--radius); }
.article-footer h2 { font-size: 1.3rem; margin-top: 0; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .98rem; color: var(--text);
  background: #fff; border: 1px solid #cfc8bb; border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(29, 56, 80, .12); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 17px; height: 17px; flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-status { grid-column: 1 / -1; display: none; padding: 20px 22px; border-radius: var(--radius); font-size: .96rem; }
.form-status.is-visible { display: block; }
.form-status.ok { background: var(--forest-l); border: 1px solid #c7d8cc; color: #1f3d30; }
.form-status.pending { background: var(--paper); border: 1px solid var(--line); }
.form-status.error { background: #fbeeee; border: 1px solid #ecc9c9; color: #7a2323; }
.form-status .btn { margin: 12px 10px 0 0; }
.hp { position: absolute; left: -9999px; }

.contact-aside { display: grid; gap: 18px; }
.contact-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-card h2 { font-size: 1.15rem; margin-bottom: .4em; }
.contact-card p { font-size: .95rem; color: var(--muted); }
.contact-card .value { font-weight: 600; color: var(--ink); word-break: break-word; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #c2ccd6; padding: 76px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { margin: 0; max-width: 600px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: #0a141e; color: #93a2b1; font-size: .92rem; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-name small { color: #8798a8; }
.site-footer h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b8c4d0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: #c8d2dc; font-size: 1rem; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #1d2a37; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.wa-float:hover { background: #156139; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 68px; }
  .hero-grid, .agro-grid, .scope-box, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 48px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .scope-box { padding: 32px 26px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .questions, .scope-cols, .service-cols, .steps, .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 20px 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta .actions .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 56px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .wa-float, .cta { display: none; }
}
