/* Blog Scenario - estilos próprios sem mexer no styles.css raiz */

/* ---------- Listagem ---------- */
.blog-hero {
  padding: clamp(120px, 14vw, 180px) var(--pad) clamp(60px, 6vw, 100px);
  background: var(--ink); color: var(--paper);
  text-align: left;
}
.blog-hero .container { max-width: var(--maxw); margin: 0 auto; }
.blog-hero .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--champagne); margin-bottom: 22px;
  display: inline-block;
}
.blog-hero h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04;
  margin: 0 0 28px; max-width: 18ch; text-wrap: balance;
}
.blog-hero h1 .roman { font-style: normal; }
/* especificidade alta p/ vencer .lead do portal.css (que carrega depois e deixava azulado) */
section.blog-hero p.lead {
  font-family: var(--sans); font-weight: 300; font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55; max-width: 60ch; opacity: 0.92; color: var(--champagne-2); margin: 0;
}

.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
  padding: clamp(60px, 6vw, 100px) var(--pad);
  max-width: var(--maxw); margin: 0 auto;
}
@media (max-width: 980px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; gap: 16px;
  color: var(--ink); text-decoration: none;
  border-top: 1px solid var(--line); padding-top: 22px;
  transition: opacity .25s ease;
}
.post-card:hover { opacity: 0.78; }
.post-card .cat {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--champagne-deep);
}
.post-card .pic {
  width: 100%; aspect-ratio: 16/10;
  border-radius: 2px;
  overflow: hidden;
}
.post-card .pic img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.post-card h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.18; margin: 0;
  color: var(--ink);
}
.post-card .excerpt {
  font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0;
  max-width: 42ch;
}
.post-card .meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-top: auto;
}

/* ---------- Post individual ---------- */
.post {
  max-width: 760px; margin: 0 auto;
  padding: clamp(120px, 14vw, 180px) var(--pad) clamp(80px, 8vw, 120px);
}
.post .post-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--champagne-deep);
  margin-bottom: 22px;
}
.post .post-meta a { color: inherit; text-decoration: none; }
.post .post-meta .sep { opacity: 0.4; margin: 0 10px; }
.post h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 28px; text-wrap: balance;
}
.post h1 .roman { font-style: normal; }
.post .lead {
  font-family: var(--sans); font-weight: 300; font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5; color: var(--ink-2); opacity: 0.86;
  margin: 0 0 48px; max-width: 60ch;
}
.post .post-hero-fig { margin: 0 0 56px; }
.post .post-hero-fig .post-hero { margin: 0; }
.post .post-hero {
  width: 100%; height: auto; display: block;
  margin: 0 0 56px; border-radius: 2px;
  aspect-ratio: 16/9; object-fit: cover;
}
.post .post-hero-cap {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted); margin-top: 10px; text-align: center;
}

.post-body { font-size: 17px; line-height: 1.7; color: var(--ink); }
.post-body h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15;
  margin: 56px 0 22px; text-wrap: balance;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-family: var(--sans); font-weight: 500;
  font-size: 18px; letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 36px 0 12px;
  color: var(--ink);
}
.post-body p { margin: 0 0 20px; max-width: 70ch; }
.post-body em { font-style: italic; color: var(--champagne-deep); }
.post-body strong { font-weight: 500; color: var(--ink); }
.post-body a {
  color: var(--champagne-deep); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.post-body a:hover { color: var(--ink); }
.post-body ul, .post-body ol { margin: 0 0 24px; padding-left: 22px; max-width: 70ch; }
.post-body li { margin-bottom: 10px; }
.post-body blockquote {
  border-left: 3px solid var(--champagne); padding: 6px 20px;
  font-family: var(--serif); font-style: italic; font-size: 21px;
  line-height: 1.45; color: var(--ink-2);
  margin: 36px 0; max-width: 60ch;
}
.post-body table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: normal;
}
.post-body table thead, .post-body table tbody { display: table; width: 100%; }
.post-body th, .post-body td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line);
  min-width: 110px;
}
@media (min-width: 640px) {
  .post-body table { display: table; overflow-x: visible; }
}
.post-body th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.post-body td:first-child { font-weight: 400; }

/* FAQ - reusa o estilo do site mas com classes prefixadas */
.post-body .faq-list { margin: 36px 0; }
.post-body .faq-item {
  border-top: 1px solid var(--line); padding: 22px 0;
}
.post-body .faq-item:last-child { border-bottom: 1px solid var(--line); }
.post-body .faq-item h3 {
  margin: 0 0 12px; font-family: var(--serif); font-style: italic;
  font-size: 22px; text-transform: none; letter-spacing: 0;
  font-weight: 400; color: var(--ink);
}
.post-body .faq-item p { margin: 0 0 12px; }

/* CTA box no final do post */
.post-cta {
  margin-top: 80px; padding: 40px clamp(24px, 4vw, 48px);
  background: var(--ink); color: var(--paper);
  border-radius: 2px;
  text-align: center;
}
.post-cta h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 14px;
  color: var(--paper);
}
.post-cta p {
  max-width: 50ch; margin: 0 auto 28px;
  font-size: 15px; opacity: 0.86;
}
.post-cta .btn.solid { background: var(--champagne); color: var(--navy); border-color: var(--champagne); }

/* Continue reading */
.continue-reading {
  margin-top: 80px; padding-top: 40px;
  border-top: 1px solid var(--line);
}
.continue-reading .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
  display: block;
}
.continue-reading .links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 640px) { .continue-reading .links { grid-template-columns: 1fr; } }
.continue-reading a {
  display: block; color: var(--ink); text-decoration: none;
  border-top: 1px solid var(--line); padding-top: 16px;
  transition: opacity .2s ease;
}
.continue-reading a:hover { opacity: 0.72; }
.continue-reading a .cat {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--champagne-deep); margin-bottom: 8px;
  display: block;
}
.continue-reading a h4 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 19px; line-height: 1.2; margin: 0;
}

/* Skip-link (acessibilidade) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  font-family: var(--sans); font-size: 14px; border-radius: 0 0 2px 0;
}
.skip-link:focus { left: 0; }

/* Callout / bloco de resumo autossuficiente */
.post-body .callout {
  margin: 36px 0; padding: 24px clamp(18px, 3vw, 28px);
  background: var(--paper-2, rgba(0,0,0,0.03));
  border-left: 3px solid var(--champagne);
  border-radius: 2px;
}
.post-body .callout p { margin: 0; max-width: 70ch; }

/* Imagem inline no corpo do post */
.post-body .post-inline {
  width: 100%; height: auto; display: block;
  margin: 36px 0; border-radius: 2px;
  aspect-ratio: 16/9; object-fit: cover;
}

/* Qualquer imagem solta no corpo: largura total, altura proporcional (nunca esticar) */
.post-body img {
  width: 100%; height: auto; display: block;
  margin: 36px 0; border-radius: 2px;
}

/* Foto de corpo com legenda (gerada por build_post_figcaptions.py a partir do alt,
   mesma convenção do hero). A <figure> carrega a margem; a <img> dentro zera
   (senão somaria com .post-body img). */
.post-body figure.post-fig { margin: 36px 0; }
.post-body figure.post-fig img { margin: 0; }
.post-fig-cap {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted); margin-top: 10px; text-align: center;
}

/* Links no rodapé do CTA */
.post-cta .cta-links { font-size: 14px; opacity: 0.92; }
.post-cta .cta-links a { color: var(--champagne); text-decoration: underline; text-underline-offset: 3px; }


/* UI-FIX tabelas responsivas (varredura 11/06) */
@media (max-width: 720px) {
  .post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}

/* ----------------------------------------------------------------
   Card de empreendimento dentro de hub/diretório de blog
   (quebra o muro de texto sem remover a prosa: o <h3> e o <p> com o
   link inline continuam dentro do card, intactos para SEO/AIO).
   Tudo scopeado em .post-body para vencer .post-body img / .post-body a
   sem !important.
   ---------------------------------------------------------------- */
.post-body .condo-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
  margin: 14px 0 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post-body .condo-card-thumb {
  display: block; margin: 0; overflow: hidden;
  border-radius: 2px; aspect-ratio: 4 / 3;
  background: var(--paper-2, rgba(0,0,0,0.04));
}
.post-body .condo-card-thumb img {
  width: 100%; height: 100%; margin: 0;
  object-fit: cover; object-position: center;
  display: block;
}
.post-body .condo-card-body { min-width: 0; }
.post-body .condo-card-body h3 { margin: 0 0 12px; }
.post-body .condo-card-specs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 7px;
  margin: 0 0 14px; padding: 0;
}
.post-body .condo-card-specs li {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; margin: 0; line-height: 1;
}
.post-body .condo-card-specs li.is-padel,
.post-body .condo-card-specs li.is-tema {
  color: var(--navy); border-color: var(--champagne);
  background: rgba(199, 164, 109, 0.16);
}
.post-body .condo-card-body p { margin: 0 0 14px; }
.post-body .condo-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 0;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; color: #7a5a30;
  text-decoration: none;
}
.post-body .condo-card-cta:hover { color: var(--ink); }
.post-body .condo-card-cta:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 2px;
}
.post-body .condo-card-cta .arrow { transition: transform .2s ease; }
.post-body .condo-card-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 640px) {
  .post-body .condo-card {
    grid-template-columns: 1fr; gap: 14px;
    margin: 14px 0 32px; padding-top: 24px;
  }
  .post-body .condo-card-thumb { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .post-body .condo-card-cta .arrow { transition: none; }
}
