/* =============================================
   LUIZ FINTELMAN — CSS GLOBAL
   luizfintelman.com.br
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=IM+Fell+English:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --petrol:    #1a3a4a;
  --petrol-md: #244d62;
  --petrol-lt: #2e6680;
  --gold:      #c8a84b;
  --gold-lt:   #e0c87a;
  --parch:     #f5f0e8;
  --parch-dk:  #ede5d4;
  --ink:       #1c1a16;
  --ink-soft:  #3d3830;
  --muted:     #5a5040;
  --rule:      rgba(200,168,75,0.3);
  --white:     #ffffff;
  --max:       1100px;
  --max-text:  720px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--parch);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
}

/* ── NAVEGAÇÃO ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--petrol);
  border-bottom: 2px solid var(--gold);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.nav-brand {
  display: flex; flex-direction: column;
  line-height: 1.2; text-decoration: none;
}
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--gold);
}
.nav-brand-sub {
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(245,240,232,.5);
}
.nav-links {
  display: flex; gap: 1.75rem; align-items: center;
}
.nav-links a {
  color: rgba(245,240,232,.75); text-decoration: none;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); transition: all .3s;
}

/* ── RODAPÉ ── */
footer {
  background: #0e2230;
  color: rgba(245,240,232,.4);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: .78rem;
  line-height: 2;
}
footer em {
  font-family: 'IM Fell English', serif;
  font-style: italic; color: var(--gold);
}
footer a { color: rgba(200,168,75,.6); text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-inner { max-width: var(--max); margin: 0 auto; }

/* ── UTILIDADES ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.container-text { max-width: var(--max-text); margin: 0 auto; padding: 0 2rem; }

.section-label {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .75rem;
  display: flex; align-items: center; gap: .75rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--rule); max-width: 60px;
}

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--petrol); margin-bottom: 1.5rem;
}

/* ── HERO (usado em todas as páginas internas) ── */
.page-hero {
  background: var(--petrol);
  padding: 7rem 2rem 3.5rem;
  text-align: center;
}
.page-hero .eyebrow {
  font-family: 'IM Fell English', serif;
  font-style: italic; color: var(--gold);
  font-size: .9rem; margin-bottom: 1rem;
  display: block; letter-spacing: .05em;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--parch);
  line-height: 1.1; margin-bottom: .5rem;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero p {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1rem; color: rgba(245,240,232,.6);
  max-width: 580px; margin: .5rem auto 0;
}

/* ── CARDS DE POST ── */
.post-card {
  background: var(--white);
  border-left: 4px solid transparent;
  box-shadow: 0 1px 8px rgba(26,58,74,.07);
  transition: all .2s; overflow: hidden;
  margin-bottom: 2rem;
  display: flex; flex-direction: column;
}
.post-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 4px 20px rgba(26,58,74,.12);
  transform: translateY(-2px);
}
.post-card-img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
}
.post-card-body { padding: 1.5rem 1.75rem; flex: 1; }
.post-cat {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .5rem;
  display: inline-block;
}
.post-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--petrol); line-height: 1.3; margin-bottom: .6rem;
}
.post-card-body p {
  font-size: .9rem; color: var(--ink-soft);
  line-height: 1.7; text-align: justify;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  font-size: .72rem; color: var(--muted);
  display: flex; gap: 1rem; flex-wrap: wrap;
  padding-top: .75rem; border-top: 1px solid var(--parch-dk);
}
.read-more {
  display: inline-block; margin-top: .75rem;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.read-more:hover { border-bottom-color: var(--gold); }

/* ── GRID DE POSTS ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.posts-grid .post-card { margin-bottom: 0; }

/* ── CORPO DO POST (página individual) ── */
.post-body {
  max-width: var(--max-text); margin: 3.5rem auto;
  padding: 0 2rem 4rem;
}
.post-body p {
  color: var(--ink-soft); font-size: 1rem;
  line-height: 1.9; margin-bottom: 1.4rem; text-align: justify;
}
.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; color: var(--petrol);
  margin: 2.5rem 0 1rem; font-weight: 700;
}
.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--petrol-md);
  margin: 2rem 0 .75rem; font-weight: 600;
}
.post-body strong { color: var(--petrol); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body blockquote {
  background: var(--parch-dk);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-family: 'IM Fell English', serif;
  font-size: .98rem; color: var(--petrol);
  line-height: 1.75; font-style: italic;
}
.post-body table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: .88rem;
}
.post-body table th,
.post-body table td {
  border: 1px solid #ddd;
  padding: .6rem .8rem; text-align: left;
  vertical-align: top; color: var(--ink-soft); line-height: 1.6;
}
.post-body table th {
  background: var(--parch-dk); color: var(--petrol); font-weight: 600;
}
.post-body ol, .post-body ul {
  padding-left: 1.75rem; margin-bottom: 1.25rem;
}
.post-body li {
  color: var(--ink-soft); font-size: 1rem;
  line-height: 1.85; margin-bottom: .5rem;
}
.post-body hr {
  border: none; border-top: 1px solid var(--rule); margin: 2rem 0;
}
.post-body .ref-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--petrol);
  margin: 2.5rem 0 1rem; font-weight: 700;
  border-top: 1px solid var(--rule); padding-top: 1.5rem;
}
.post-body .ref-item {
  font-size: .88rem; color: var(--ink-soft);
  line-height: 1.7; margin-bottom: .6rem;
}
.post-body .nota-autor {
  background: var(--parch-dk); border: 1px solid var(--rule);
  padding: 1rem 1.25rem; font-size: .85rem;
  color: var(--muted); line-height: 1.7; margin-top: 2rem;
}
.post-nav {
  border-top: 1px solid var(--rule);
  padding-top: 2rem; margin-top: 2rem;
  display: flex; justify-content: space-between;
  font-size: .78rem; gap: 1rem; flex-wrap: wrap;
}
.post-nav a {
  color: var(--gold); text-decoration: none;
  letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; transition: opacity .2s;
}
.post-nav a:hover { opacity: .7; }

/* ── SIDEBAR ── */
.site-layout {
  max-width: var(--max); margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem; align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-block {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 8px rgba(26,58,74,.06);
}
.sidebar-block h4 {
  font-family: 'Playfair Display', serif;
  font-size: .95rem; font-weight: 700; color: var(--petrol);
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--parch-dk);
}
.sidebar-profile-img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; display: block;
  margin: 0 auto .75rem; border: 3px solid var(--gold);
}
.sidebar-profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--petrol);
  text-align: center; margin-bottom: .2rem;
}
.sidebar-profile-title {
  font-size: .7rem; color: var(--muted);
  text-align: center; letter-spacing: .05em;
  margin-bottom: .75rem; line-height: 1.5;
}
.sidebar-profile-bio {
  font-size: .82rem; color: var(--ink-soft);
  line-height: 1.7; text-align: justify;
}
.sidebar-badges {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem;
}
.badge {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--parch-dk); color: var(--muted); padding: .2em .6em;
}
.sidebar-cats { list-style: none; }
.sidebar-cats li {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; border-bottom: 1px solid var(--parch-dk);
  font-size: .86rem;
}
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a {
  color: var(--ink-soft); text-decoration: none;
  font-weight: 500; transition: color .2s;
}
.sidebar-cats a:hover { color: var(--gold); }
.cat-count {
  font-size: .68rem; background: var(--parch-dk);
  color: var(--muted); padding: .1em .5em; border-radius: 10px;
}
.sidebar-recent { list-style: none; }
.sidebar-recent li {
  padding: .5rem 0; border-bottom: 1px solid var(--parch-dk);
  font-size: .82rem;
}
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-recent a {
  color: var(--ink-soft); text-decoration: none;
  font-weight: 500; line-height: 1.4; display: block;
  transition: color .2s;
}
.sidebar-recent a:hover { color: var(--gold); }
.sidebar-recent .post-date {
  font-size: .68rem; color: var(--muted); margin-top: .2rem;
}
.verse-block {
  background: var(--petrol);
  border-top: 3px solid var(--gold);
  padding: 1.5rem;
  box-shadow: 0 1px 8px rgba(26,58,74,.06);
}
.verse-text {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: .92rem; color: rgba(245,240,232,.9);
  line-height: 1.7; text-align: center; margin-bottom: .5rem;
}
.verse-ref {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); text-align: center; display: block;
}

/* ── CITAÇÃO DESTACADA ── */
.quote-section {
  background: var(--petrol);
  padding: 5rem 2rem; text-align: center;
}
.quote-section blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--parch); max-width: 680px;
  margin: 0 auto; line-height: 1.55;
}
.quote-section blockquote::before { content: '\201C'; color: var(--gold); font-size: 3em; line-height: 0; vertical-align: -.4em; margin-right: .1em; }
.quote-section blockquote::after  { content: '\201D'; color: var(--gold); font-size: 3em; line-height: 0; vertical-align: -.4em; margin-left:  .1em; }
.quote-source {
  margin-top: 1.25rem; font-size: .75rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(200,168,75,.6);
}

/* ── BOTÃO ── */
.btn {
  display: inline-block;
  background: var(--gold); color: var(--petrol);
  padding: .8em 2em; font-weight: 600;
  font-size: .84rem; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: rgba(200,168,75,.1); }

/* ── RESPONSIVO ── */
@media (max-width: 860px) {
  .site-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--petrol); padding: 1rem 1.25rem; border-bottom: 2px solid var(--gold); gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .page-hero { padding: 6rem 1.25rem 3rem; }
  .post-body { padding: 0 1.25rem 3rem; }
  .site-layout { padding: 2.5rem 1.25rem; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card { transition: none; }
}
