:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #142a3b;
  --text-strong: #0c1d2c;
  --muted: #667085;
  --line: #e8ecf3;
  --brand: #dea335;
  --brand-light: #f0ba4d;
  --brand-soft: rgba(222, 163, 53, 0.12);
  --navy-950: #081522;
  --navy-900: #0c1d2c;
  --radius: 20px;
  --radius-pill: 999px;
  --shadow: 0 4px 12px rgba(12, 29, 44, 0.05), 0 20px 48px rgba(12, 29, 44, 0.09);
  --shadow-brand: 0 10px 20px rgba(222, 163, 53, 0.25);
  --container: min(820px, calc(100% - 40px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.topbar { background: var(--navy-950); padding: 18px 0; }

.topbar-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar img { height: 36px; width: auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.back-link:hover { background: rgba(255, 255, 255, 0.14); }

.page-head {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 30px 0 70px;
  text-align: center;
}

.page-head-inner { width: var(--container); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(222, 163, 53, 0.14);
  border: 1px solid rgba(222, 163, 53, 0.25);
  color: var(--brand-light);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.page-head h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.byline {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  font-size: 0.92rem;
}

.byline strong { color: var(--brand-light); font-weight: 700; }

.content {
  width: var(--container);
  margin: -36px auto 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
}

.lead {
  font-size: 1.12rem;
  color: var(--text);
  padding-bottom: 26px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

h2 {
  color: var(--text-strong);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 36px 0 14px;
}

p { margin-bottom: 18px; color: var(--muted); }
p strong { color: var(--text-strong); font-weight: 700; }

ul { margin: 0 0 20px; padding: 0; list-style: none; }

ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--muted);
}

ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 14px; height: 8px;
  border-left: 2.4px solid var(--brand);
  border-bottom: 2.4px solid var(--brand);
  transform: rotate(-45deg);
}

ul li strong { color: var(--text-strong); font-weight: 700; }

.closing {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  color: var(--text);
  font-size: 1.02rem;
}

.cta-box {
  margin-top: 40px;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy-900) 0%, #1d3a51 100%);
  color: #fff;
  text-align: center;
}

.cta-box h2 { color: #fff; margin: 0 0 10px; font-size: 1.4rem; }
.cta-box p { color: rgba(255, 255, 255, 0.72); margin-bottom: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(222, 163, 53, 0.32); }

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.5);
  padding: 34px 0;
  font-size: 0.85rem;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-inner a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-inner a:hover { color: var(--brand-light); }

@media (max-width: 600px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
}

/* ===== Blog: listagem, capa e logo no topo ============================= */

.topbar-logo img { height: 34px; width: auto; }

.blog-sub {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 560px;
}

.blog-lista {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(12, 29, 44, 0.04);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(222, 163, 53, 0.4);
  box-shadow: var(--shadow);
}

.post-card-capa {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-corpo {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-corpo h2 {
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.post-card-corpo p {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.65;
}

.post-card-meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}

/* capa do artigo: sobe sobre o cabeçalho escuro, como um cartão */
.post-cover {
  width: var(--container);
  margin: -46px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 600px) {
  .blog-lista { padding: 36px 0 56px; }
  .post-cover { margin-top: -26px; border-radius: 14px; }
}

/* primeiro post em destaque: horizontal, ocupa a linha inteira.
   Com um artigo só a grade ficava com um card solto num canto. */
.post-card-destaque {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.post-card-destaque .post-card-capa {
  width: 46%;
  height: auto;
  aspect-ratio: auto;
  flex: 0 0 46%;
}

.post-card-destaque .post-card-corpo {
  padding: 38px 40px;
  justify-content: center;
  gap: 12px;
}

.post-card-destaque .post-card-corpo h2 { font-size: 1.7rem; }
.post-card-destaque .post-card-corpo p { font-size: 1.04rem; }

@media (max-width: 760px) {
  .post-card-destaque { flex-direction: column; }
  .post-card-destaque .post-card-capa {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 16 / 9;
  }
  .post-card-destaque .post-card-corpo { padding: 26px; }
  .post-card-destaque .post-card-corpo h2 { font-size: 1.3rem; }
}

/* o .eyebrow nasceu centralizado no cabeçalho; dentro do card ele é um
   flex-item e esticava na largura toda */
.post-card-corpo .eyebrow {
  align-self: flex-start;
  width: fit-content;
}
