/* ===========================================================
   Mente & Bolso | folha de estilo compartilhada
   Paleta: azul-marinho (confiança) + dourado (valor) + verde-sálvia (saúde/crescimento)
   =========================================================== */

:root {
  --navy: #163a5f;
  --navy-dark: #0f2942;
  --gold: #d89b3c;
  --gold-dark: #b87f28;
  --sage: #6e9075;
  --cream: #faf6f0;
  --paper: #ffffff;
  --text: #2b2b2b;
  --text-soft: #5a5a5a;
  --border: #e8e1d6;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(22, 58, 95, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
  font-family: "Lora", Georgia, serif;
  color: var(--navy-dark);
  line-height: 1.25;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-lockup img { height: 36px; width: 36px; }

.logo-text {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.logo-text .amp { color: var(--gold-dark); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--navy-dark);
  font-weight: 500;
  font-size: 0.98rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0 64px;
}

.hero .container { max-width: 720px; }

.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: #dbe4ee;
  max-width: 560px;
}

.hero .badge {
  display: inline-block;
  background: rgba(216, 155, 60, 0.18);
  color: var(--gold);
  border: 1px solid rgba(216, 155, 60, 0.4);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ---------- Content sections ---------- */
main { padding: 56px 0 80px; }

.page-header {
  padding: 56px 0 8px;
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p.subtitle { color: var(--text-soft); font-size: 1.05rem; }

section.block { margin-bottom: 40px; }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.pillar .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 8px;
}

.author-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.75rem;
  text-align: center;
  overflow: hidden;
}

.author-photo-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.credentials-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.credentials-list li { margin-bottom: 6px; }

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
}

.btn:hover { background: var(--gold-dark); color: #fff; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
}

form.contact-form { display: grid; gap: 16px; max-width: 540px; }

form.contact-form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-dark);
  display: block;
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--paper);
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-alt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.25rem; margin-top: 36px; }
.legal p, .legal li { color: var(--text-soft); }
.legal .updated { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #cdd7e1;
  padding: 40px 0 28px;
  font-size: 0.9rem;
}

footer.site-footer a { color: #cdd7e1; }
footer.site-footer a:hover { color: var(--gold); }

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #8fa0b3;
}

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  color: #fff;
  padding: 18px 24px;
  z-index: 999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

#cookie-banner.show { display: block; }

.cookie-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p { margin: 0; font-size: 0.88rem; color: #dbe4ee; flex: 1 1 420px; }
.cookie-actions { display: flex; gap: 10px; }

.btn-cookie-accept {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-cookie-reject {
  background: transparent;
  color: #cdd7e1;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ---------- Artigo (posts do blog) ---------- */
.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.article-header .container { max-width: 760px; }

.article-tag {
  display: inline-block;
  background: rgba(110, 144, 117, 0.12);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.article-header h1 { font-size: 2.1rem; margin-bottom: 12px; }

.article-header p.deck {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.article-meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.article-body figure { margin: 32px 0; }

.article-body figure img {
  border-radius: var(--radius);
  width: 100%;
}

.article-body figure.figure-portrait {
  max-width: 260px;
  margin: 24px auto;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 8px;
  text-align: center;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 44px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body p { margin-bottom: 18px; font-size: 1.03rem; }

.article-body ul, .article-body ol {
  margin-bottom: 18px;
  padding-left: 22px;
}

.article-body li { margin-bottom: 8px; }

.article-body a { text-decoration: underline; }

/* bloco de entrevista intercalado no texto */
.interview-block {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.interview-block .interview-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.interview-block .interview-q {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  color: var(--navy-dark);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.interview-block .interview-a {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.interview-block .interview-a.pending {
  color: var(--sage);
  font-style: italic;
}

.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
  margin: 40px 0;
  text-align: center;
}

.article-cta h3 { color: #fff; margin-top: 0; }
.article-cta p { color: #dbe4ee; }

.article-sources {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.article-sources li { margin-bottom: 6px; }

/* ---------- Layout de 3 colunas (páginas de artigo) ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px) 220px;
  justify-content: center;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  align-items: start;
}

.article-layout .article-body {
  max-width: none;
  margin: 0;
  padding: 0;
}

.article-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.rail-block {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.rail-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-align: center;
}

.rail-block-ad {
  background: var(--cream);
  border-style: dashed;
  text-align: center;
}

.rail-ad-slot {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.8rem;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, var(--border), var(--border) 8px, transparent 8px, transparent 16px);
}

.rail-block-product .rail-label { color: var(--gold-dark); text-align: left; }

.rail-product-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--navy-dark);
  font-weight: 600;
}

.rail-product-item:last-child { margin-bottom: 0; }
.rail-product-item span { display: block; font-weight: 400; color: var(--text-soft); font-size: 0.78rem; margin-top: 2px; }

.rail-block-articles .rail-label { color: var(--sage); text-align: left; }

.rail-article-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--navy-dark);
  font-weight: 600;
  line-height: 1.35;
}

.rail-article-item:last-child { margin-bottom: 0; }

.rail-article-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--border);
  flex-shrink: 0;
}

.rail-block-video .rail-label { color: #a83a4c; text-align: left; }

.rail-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.rail-video-title { font-size: 0.85rem; color: var(--navy-dark); font-weight: 600; }

.article-banner {
  max-width: 1240px;
  margin: 8px auto 40px;
  padding: 0 24px;
}

.article-banner .rail-block-ad { padding: 20px; }
.article-banner .rail-ad-slot { min-height: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: 32px 24px 24px;
  }
  .article-layout .article-body { order: 1; }
  .article-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    order: 2;
  }
  .article-rail .rail-block { min-width: 220px; }
}

@media (max-width: 720px) {
  nav.main-nav ul { gap: 16px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; align-items: center; text-align: center; }
  .hero h1 { font-size: 1.9rem; }
}
