/* Prosperidade em Livros — sistema visual compartilhado */
:root {
  --verde: #102A22;
  --verde-medio: #21483B;
  --dourado: #D6B35E;
  --dourado-forte: #C49A3A;
  --texto: #202621;
  --fundo: #FBF9F3;
  --creme: #F4EEDF;
  --borda: #E5DCC8;
  --rodape: #0A201A;
  --branco: #fff;
  --sombra: 0 14px 40px rgba(16, 42, 34, .08);
  --raio: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 16px; background: var(--dourado); color: var(--verde); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(92%, 1140px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-sm { padding: 56px 0; }
.surface-cream { background: var(--creme); }
.surface-dark { background: var(--verde); color: var(--fundo); }
.surface-green { background: var(--verde-medio); color: var(--fundo); }
.eyebrow { margin: 0 0 12px; color: var(--dourado-forte); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--verde); font-family: "Playfair Display", Georgia, serif; line-height: 1.12; }
h1 { max-width: 830px; font-size: clamp(2.6rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
.surface-dark h2, .surface-dark h3, .surface-green h2, .surface-green h3 { color: var(--fundo); }
.lead { max-width: 760px; margin: 0; color: #4e5a53; font-size: clamp(1.05rem, 2vw, 1.18rem); }
.surface-dark .lead, .surface-green .lead { color: #dbe2dd; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.section-heading > div { max-width: 760px; }
.text-link { color: var(--verde); font-weight: 800; }
.text-link::after { content: " →"; color: var(--dourado-forte); }
.surface-dark .text-link { color: var(--dourado); }

/* Cabeçalho */
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(16, 42, 34, .98); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 10px 26px rgba(0, 0, 0, .16); }
.nav-wrap { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 100px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); }
.site-nav a { color: var(--fundo); font-size: .88rem; font-weight: 650; white-space: nowrap; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--dourado); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--dourado); padding: 8px; }
.menu-toggle span { display: block; width: 28px; height: 2px; margin: 6px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

/* Botões */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 12px 24px; font-size: .94rem; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--dourado); color: var(--verde); }
.btn-primary:hover { background: var(--dourado-forte); }
.btn-secondary { border-color: var(--verde); color: var(--verde); }
.btn-secondary:hover { background: var(--verde); color: var(--fundo); }
.btn-light { border-color: var(--dourado); color: var(--dourado); }
.btn-light:hover { background: var(--dourado); color: var(--verde); }

/* Home */
.hero { min-height: 590px; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: clamp(42px, 7vw, 88px); padding: 72px 0 84px; }
.hero-copy p:not(.eyebrow) { max-width: 680px; color: #4a5650; font-size: clamp(1.08rem, 2vw, 1.22rem); }
.editorial-panel { position: relative; overflow: hidden; min-height: 440px; border-radius: 28px 28px 8px 28px; padding: clamp(32px, 5vw, 56px); background: var(--verde); color: var(--fundo); box-shadow: 22px 22px 0 var(--borda); }
.editorial-panel::before { content: ""; position: absolute; width: 230px; height: 230px; right: -100px; top: -100px; border: 1px solid rgba(214, 179, 94, .55); border-radius: 50%; }
.editorial-panel::after { content: ""; position: absolute; width: 90px; height: 90px; right: 22px; bottom: 22px; border: 1px solid rgba(214, 179, 94, .3); border-radius: 50%; }
.panel-title { position: relative; margin: 0 0 26px; color: var(--dourado); font-size: .8rem; font-weight: 800; letter-spacing: .16em; }
.panel-step { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid rgba(214, 179, 94, .38); }
.panel-step strong { color: var(--dourado); font-size: .82rem; letter-spacing: .08em; }
.panel-step h3 { margin: 0 0 4px; color: var(--fundo); font-family: Inter, sans-serif; font-size: 1.03rem; }
.panel-step p { margin: 0; color: #cad5ce; font-size: .91rem; line-height: 1.55; }
.three-grid, .card-grid, .article-grid, .book-grid { display: grid; gap: 22px; }
.three-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.article-grid { grid-template-columns: 1.25fr repeat(2, .875fr); }
.book-grid { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; padding: 30px; border: 1px solid var(--borda); border-radius: var(--raio); background: rgba(255,255,255,.58); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--dourado); box-shadow: var(--sombra); }
.card-number { display: block; margin-bottom: 30px; color: var(--dourado-forte); font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 700; }
.card p { margin: 0 0 20px; color: #58635d; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--creme); color: var(--verde); font-size: 1.2rem; }
.path { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; gap: 8px; margin-top: 40px; }
.path-item { min-height: 92px; display: grid; place-items: center; border: 1px solid var(--borda); border-radius: 12px; background: var(--fundo); color: var(--verde); font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-align: center; }
.path-arrow { color: var(--dourado-forte); font-size: 1.25rem; text-align: center; }
.book-card { overflow: hidden; border: 1px solid rgba(214,179,94,.28); border-radius: var(--raio); background: #16372d; }
.book-placeholder { min-height: 210px; display: grid; place-items: center; padding: 26px; background: linear-gradient(135deg, #21483b, #102a22); }
.book-mark { width: min(100%, 168px); min-width: 0; aspect-ratio: 3 / 4; padding: 14px 10px; display: grid; place-items: center; border: 1px solid var(--dourado); color: var(--dourado); font-family: "Playfair Display", serif; font-size: .875rem; line-height: 1.5; letter-spacing: 0; text-align: center; }
.book-mark-label { display: block; min-width: 0; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.book-card-content { padding: 26px; }
.book-card-content p { color: #cbd5cf; }
.article-feature { grid-row: span 2; }
.article-feature .article-art { min-height: 210px; }
.article-art { min-height: 120px; margin: -30px -30px 26px; border-radius: 16px 16px 0 0; background: var(--verde); }
.tag { display: inline-flex; margin-bottom: 14px; color: var(--dourado-forte); font-size: .74rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.lead-magnet { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.guide-cover { width: min(100%, 330px); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; margin-inline: auto; padding: 34px; border: 1px solid var(--dourado); background: var(--verde); color: var(--dourado); box-shadow: 18px 18px 0 var(--borda); }
.guide-cover small { letter-spacing: .14em; }
.guide-cover strong { font-family: "Playfair Display", serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; padding: 42px; border: 1px solid var(--borda); border-radius: 22px; background: var(--branco); }
.newsletter h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.4rem); }

/* Páginas internas */
.page-hero { padding: clamp(72px, 9vw, 110px) 0 64px; border-bottom: 1px solid var(--borda); background: var(--creme); }
.page-hero .lead { margin-top: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.steps { counter-reset: steps; display: grid; gap: 12px; }
.step { counter-increment: steps; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--borda); border-radius: 14px; background: var(--branco); }
.step::before { content: counter(steps, decimal-leading-zero); color: var(--dourado-forte); font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 700; }
.step strong { display: block; color: var(--verde); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0; }
.filter-btn { min-height: 44px; padding: 9px 18px; border: 1px solid var(--borda); border-radius: 999px; background: var(--branco); color: var(--verde); font-weight: 700; }
.filter-btn.active, .filter-btn:hover { border-color: var(--verde); background: var(--verde); color: var(--fundo); }
.search { width: min(100%, 620px); padding: 14px 18px; border: 1px solid var(--borda); border-radius: 10px; background: var(--branco); color: var(--texto); }
.library-item[hidden] { display: none; }
.status { display: inline-flex; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--creme); color: var(--verde); font-size: .75rem; font-weight: 800; }
.template-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--borda); }
.template-map div { padding: 22px; background: var(--branco); }
.template-map strong { color: var(--verde); }
.legal { width: min(92%, 860px); margin-inline: auto; }
.legal h2 { margin-top: 2em; font-size: 1.8rem; }
.notice { padding: 20px 24px; border-left: 4px solid var(--dourado); background: var(--creme); }

/* Formulários */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 6px; color: var(--verde); font-size: .9rem; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cfc7b7; border-radius: 10px; padding: 13px 15px; background: var(--branco); color: var(--texto); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { margin: 8px 0 0; color: #69736d; font-size: .82rem; }
.form-message { min-height: 28px; margin: 6px 0 0; color: var(--verde); font-weight: 750; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* Rodapé */
.site-footer { padding: 72px 0 24px; background: var(--rodape); color: #cbd5cf; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 38px; }
.footer-brand img { width: 82px; }
.footer-brand p { max-width: 250px; }
.footer-title { margin: 0 0 16px; color: var(--dourado); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: var(--dourado); }
.copyright { margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(214,179,94,.2); font-size: .8rem; }

@media (max-width: 1024px) {
  .nav-wrap { min-height: 82px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 4% 24px; background: var(--verde); border-top: 1px solid rgba(214,179,94,.25); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-feature { grid-row: auto; }
  .path { grid-template-columns: 1fr 32px 1fr 32px 1fr; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .brand img { width: 76px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 56px 0 78px; }
  .editorial-panel { min-height: 0; box-shadow: 12px 12px 0 var(--borda); }
  .section-heading { display: block; }
  .section-heading .btn, .section-heading .text-link { margin-top: 22px; }
  .three-grid, .card-grid, .article-grid, .book-grid, .lead-magnet, .newsletter, .split { grid-template-columns: 1fr; }
  .newsletter { padding: 28px; }
  .path { grid-template-columns: 1fr; }
  .path-arrow { transform: rotate(90deg); }
  .template-map { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .actions, .actions .btn { width: 100%; }
  .card { padding: 24px; }
  .form-row, .inline-form, .template-map, .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

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