/* ===== Blog single — Dra. Gabriely de Oliveira ===== */
:root {
  --gold: #c29a5b;
  --gold-soft: #d9b57e;
  --dark: #2b211b;
  --ink: #3d322b;
  --muted: #7a6c61;
  --cream: #f3ece2;
  --paper: #faf6f0;
  --white: #ffffff;
  --line: rgba(43, 33, 27, .12);
  --radius: 22px;
  --shadow: 0 24px 60px -30px rgba(43, 33, 27, .35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .brand-text, .footer-brand {
  font-family: "Fraunces", Georgia, serif;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.25;
}

em { font-style: italic; color: var(--gold); }

a { color: inherit; }

/* ===== Barra de progresso ===== */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px;
  background: transparent; z-index: 60;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .12s linear;
}

/* ===== Header ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .85rem; padding-bottom: .85rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #fff; font-family: "Fraunces", serif; font-size: 1.3rem;
}
.brand-text { font-size: 1.12rem; letter-spacing: .01em; }
.topnav { display: flex; align-items: center; gap: 1.6rem; }
.topnav a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  letter-spacing: .03em; color: var(--ink);
  transition: color .2s ease;
}
.topnav a:hover { color: var(--gold); }
.topnav-cta {
  background: var(--dark); color: #fff !important;
  padding: .55rem 1.15rem; border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.topnav-cta:hover { background: var(--gold); transform: translateY(-1px); }

/* ===== Hero do artigo (seção isolada, 1 coluna) ===== */
.hero { padding: 3.6rem 0 3rem; background: linear-gradient(180deg, var(--cream), var(--paper)); border-bottom: 1px solid var(--line); }
.hero .wrap { max-width: 780px; text-align: center; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--gold); border-color: var(--gold); }
.chip {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(194, 154, 91, .45);
  padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1rem;
  background: rgba(194, 154, 91, .08);
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 auto; }
.hero-meta {
  margin-top: 1.1rem; color: var(--muted); font-size: .95rem;
  display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center;
}
.hero-meta strong { color: var(--ink); font-weight: 500; }

/* ===== Botões ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  letter-spacing: .03em; border-radius: 999px; padding: .95rem 1.7rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #fff; box-shadow: 0 14px 30px -14px rgba(194, 154, 91, .65);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(194, 154, 91, .8); }

.cta-tag {
  display: inline-block; font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .16); color: #fff;
  padding: .32rem .8rem; border-radius: 999px; margin-bottom: .9rem;
}

/* ===== CTA topo ===== */
.cta-top { padding: 0 0 2.6rem; }
.cta-card {
  display: grid; grid-template-columns: 1.35fr .85fr;
  background: linear-gradient(135deg, #241a14 0%, #3a2b20 60%, #4a3524 100%);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.cta-card-text { padding: 2.6rem 2.4rem; color: #e9dfd2; }
.cta-card-text h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .8rem; }
.cta-card-text p { color: #cfc0ae; margin-bottom: 1.4rem; max-width: 46ch; }
.cta-card-text small { display: block; margin-top: .8rem; color: #a8977f; font-size: .82rem; }
.cta-card-img {
  background-position: center 22%;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 280px;
}

/* ===== Layout 2 colunas ===== */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem; padding-bottom: 4rem;
}

/* ===== Artigo ===== */
.post-body { font-size: 1.08rem; }
.post-body > * + * { margin-top: 1.35rem; }
.post-body h2, .post-body h3, .post-body h4 {
  font-size: 1.45rem; margin-top: 2.6rem; padding-left: 1rem;
  border-left: 3px solid var(--gold);
}
.post-body h2 { font-size: 1.7rem; }
.post-body h4 { font-size: 1.2rem; }
.post-body strong { color: var(--dark); font-weight: 600; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin-top: 2.6rem; }
.post-body a { color: var(--gold); font-weight: 500; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li + li { margin-top: .4rem; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-body blockquote {
  border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.2rem;
  color: var(--muted); font-style: italic;
}
.post-body figure { margin-top: 1.35rem; }

/* ===== CTA final ===== */
.cta-final {
  margin-top: 3.4rem; text-align: center;
  background: linear-gradient(135deg, #241a14, #3f2d1f);
  color: #e9dfd2; border-radius: var(--radius);
  padding: 3rem 2rem; box-shadow: var(--shadow);
}
.cta-final h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); max-width: 26ch; margin: 0 auto .9rem; }
.cta-final p { color: #cfc0ae; max-width: 52ch; margin: 0 auto 1.6rem; }

/* ===== Títulos de seção ===== */
.section-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 1.4rem; }

/* ===== Relacionados ===== */
.related { margin-top: 4rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rel-card {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(194, 154, 91, .5); }
.rel-cat {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.rel-card h3 { font-size: 1.08rem; line-height: 1.4; }
.rel-meta { margin-top: auto; font-size: .82rem; color: var(--muted); }

/* ===== Regiões ===== */
.regions { margin-top: 4rem; background: var(--cream); border-radius: var(--radius); padding: 2.6rem 2.4rem; }
.regions > p { color: var(--ink); max-width: 62ch; }
.region-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: .6rem;
  margin: 1.4rem 0;
}
.region-chips li {
  background: var(--white); border: 1px solid rgba(194, 154, 91, .4);
  color: var(--dark); font-size: .9rem; font-weight: 500;
  padding: .45rem 1rem; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.region-chips li:hover { background: var(--gold); color: #fff; }
.regions-note { font-size: .95rem; color: var(--muted); }
.regions-note a { color: var(--gold); font-weight: 600; }

/* ===== Sidebar ===== */
.sidebar-in { position: sticky; top: 92px; display: grid; gap: 1.4rem; }
.widget {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
}
.widget-title { font-size: 1.2rem; margin-bottom: 1rem; }

/* Busca */
.search label {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--dark); margin-bottom: .7rem;
}
.search-row { display: flex; gap: .5rem; }
.search-row input {
  flex: 1; min-width: 0; font: inherit; font-size: .95rem;
  color: var(--dark); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: .7rem .95rem;
}
.search-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(194, 154, 91, .15); }
.search-row button {
  border: 0; border-radius: 14px; width: 46px; cursor: pointer;
  font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  transition: transform .2s ease;
}
.search-row button:hover { transform: translateY(-1px); }

/* CTA lateral */
.cta-side {
  background: linear-gradient(160deg, #241a14, #42301f);
  border: 0; color: #d8cab8;
}
.cta-side h3 { color: #fff; font-size: 1.3rem; margin-bottom: .6rem; }
.cta-side p { font-size: .95rem; margin-bottom: 1.2rem; }
.cta-side .btn { width: 100%; text-align: center; }

/* Mais vistos */
.pop-list { list-style: none; display: grid; gap: 1rem; }
.pop-list li { display: flex; gap: .9rem; align-items: baseline; }
.pop-num {
  font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600;
  color: rgba(194, 154, 91, .5); line-height: 1; flex-shrink: 0;
}
.pop-list a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  color: var(--ink); line-height: 1.45;
  border-bottom: 1px solid transparent; transition: color .2s ease;
}
.pop-list a:hover { color: var(--gold); }

/* Categorias */
.cats ul { list-style: none; display: grid; gap: .4rem; }
.cats li {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--line);
}
.cats li:last-child { border-bottom: 0; }
.cats a { text-decoration: none; font-weight: 500; }
.cats a:hover { color: var(--gold); }
.cat-count { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* ===== Arquivo (listagem do blog) ===== */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.post-card {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(194, 154, 91, .5); }
.post-card h2 { font-size: 1.25rem; line-height: 1.35; }
.post-card p { font-size: .95rem; color: var(--muted); }
.post-card .rel-meta { display: block; margin-top: auto; padding-top: .5rem; }
.post-card-more { font-size: .9rem; font-weight: 600; color: var(--gold); }
.posts-empty { color: var(--muted); font-size: 1.05rem; }

.pagination {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap;
  margin-top: 2.4rem;
}
.pagination .page-numbers {
  display: inline-block; min-width: 42px; text-align: center;
  padding: .55rem .9rem; border-radius: 12px; text-decoration: none;
  font-weight: 500; font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #fff; border-color: transparent;
}
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #b9a894; margin-top: 2rem; }
.footer-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding-top: 2.6rem; padding-bottom: 2.2rem;
}
.footer-brand { color: #fff; font-size: 1.4rem; margin-bottom: .3rem; }
.footer-info { font-size: .92rem; line-height: 1.6; }
.footer-copy {
  text-align: center; font-size: .82rem; color: #8a7a68;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.1rem 24px .3rem;
}
.footer-credit {
  text-align: center; font-size: .8rem; color: #8a7a68;
  padding: 0 24px 1.1rem;
}
.footer-credit a { color: var(--gold-soft); text-decoration: none; font-weight: 500; }
.footer-credit a:hover { text-decoration: underline; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar-in { position: static; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card-img { min-height: 220px; order: -1; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topnav a:not(.topnav-cta) { display: none; }
  .related-grid, .posts-grid { grid-template-columns: 1fr; }
  .cta-card-text, .regions { padding: 2rem 1.4rem; }
  .hero { padding-top: 2.2rem; }
}
