/*
 * blog.css — Estilos específicos do blog da Ânfora Criativa
 * Estende /css/style.css (design system principal)
 * Fonte: Darker Grotesque + Cormorant Garamond
 * Paleta: navy #0d1b2e · gold #F5C518 · off-white #f4f7fb
 */

/* ═══════════════════════════════════════════════════
   VARIÁVEIS (herda do style.css — aqui só as do blog)
══════════════════════════════════════════════════════ */
:root {
  --blog-max-width: 740px;
  --blog-side-pad: clamp(1.25rem, 5vw, 2.5rem);
  --blog-section-gap: 2rem;
  --post-h2-border: 3px solid var(--gold, #F5C518);
  --post-intro-size: clamp(1.05rem, 1.5vw, 1.15rem);
  --post-body-size: clamp(1rem, 1.2vw, 1.06rem);
  --post-lh: 1.75;
  --cover-height: clamp(240px, 40vw, 480px);
  --header-height: 78px; /* fixed header: logo 36px + padding-block 1.2rem*2 */
}

/* ═══════════════════════════════════════════════════
   FIX 1 — HEADER FIXO + FUNDO SÓLIDO
   O .site-header é position:fixed e começa transparente
   no style.css (anima para opaco no scroll).
   Nas páginas do blog forçamos fundo sólido desde o
   carregamento para evitar texto do hero sangrando pelo nav.
   Alvejamos class E id para sobrepor qualquer inline style
   que script.js possa injetar via scrolled handler.
══════════════════════════════════════════════════════ */

.blog-post-page .site-header,
.blog-post-page #header,
.blog-index-page .site-header,
.blog-index-page #header {
  background: #0d1b2e !important;
  background-color: #0d1b2e !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) !important;
  overflow: visible !important; /* permite dropdown do nav mobile */
}

/* Blog post — breadcrumb é o primeiro elemento abaixo do header */
.blog-post-page .breadcrumb-bar {
  margin-top: var(--header-height);
}

/* Blog listing — hero é o primeiro elemento */
.blog-index-page .blog-index-hero {
  padding-top: calc(var(--header-height) + 4rem);
}

/* ═══════════════════════════════════════════════════
   FIX 2 — LOGO
   .logo no style.css é display:flex (container).
   Aplicar em <img> renderiza em tamanho natural do SVG.
   logo-full é a classe real de imagem no site principal.
   Cobrimos as duas situações com máxima especificidade.
══════════════════════════════════════════════════════ */
.site-header .logo-link img {
  display: block !important;
  height: 36px !important;
  width: auto !important;
  max-width: 160px !important;
  flex: none !important;
}

/* Se o img tiver class="logo", cancela o display:flex herdado */
.site-header img.logo {
  display: block !important;
  height: 36px !important;
  width: auto !important;
}

/* ═══════════════════════════════════════════════════
   FIX 3 — CURSOR: DESATIVAR nas páginas do blog.
   O cursor customizado é feature da home. Nas páginas
   do blog ocultamos os elementos e restauramos o cursor
   nativo para não prejudicar a leitura.
══════════════════════════════════════════════════════ */
.blog-post-page #cursor-dot,
.blog-post-page #cursor-ring,
.blog-index-page #cursor-dot,
.blog-index-page #cursor-ring {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Restaura cursor nativo — script.js pode esconder o padrão */
.blog-post-page,
.blog-index-page {
  cursor: auto;
}
.blog-post-page a,
.blog-post-page button,
.blog-index-page a,
.blog-index-page button {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   FIX 4 — FOOTER: .footer-inner é grid de 3 colunas
   no style.css. Nosso .footer-nav ocupa só 1 slot.
   display:contents remove o wrapper visualmente e
   faz os .footer-col serem filhos diretos do grid.
══════════════════════════════════════════════════════ */
.site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 3rem;
  padding-block: 4rem;
}

.site-footer .footer-nav {
  display: contents; /* .footer-col viram filhos diretos do grid */
}

/* Estilos dos elementos do footer que podem não estar no style.css */
.site-footer .footer-inner > .footer-col,
.site-footer .footer-col {
  color: var(--offwhite, #f4f7fb);
}

.footer-col-title {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul a:hover { color: var(--gold, #F5C518); }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.footer-tagline {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: .75rem;
}

.footer-socials a {
  color: rgba(255,255,255,.45);
  transition: color .2s;
  display: flex;
  align-items: center;
}

.footer-socials a:hover { color: var(--gold, #F5C518); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 1.2rem;
}

.footer-bottom p {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════ */
.breadcrumb-bar {
  background: var(--navy, #0d1b2e);
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: .375rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted, #6a88a8);
}

.breadcrumb-list a {
  color: var(--text-mid, #344d6a);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb-list a:hover { color: var(--gold, #F5C518); }
.breadcrumb-sep { opacity: .4; }

/* ═══════════════════════════════════════════════════
   COVER IMAGE
══════════════════════════════════════════════════════ */
.post-cover-wrap { width: 100%; }

.post-cover {
  margin: 0;
  width: 100%;
  height: var(--cover-height);
  overflow: hidden;
  display: block;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PLACEHOLDER (Opção D) */
.post-cover--placeholder {
  background: var(--navy, #0d1b2e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-ph-inner {
  text-align: center;
  padding: 2rem;
}

.cover-ph-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: .75rem;
  opacity: .6;
}

.cover-ph-tema {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: clamp(.9rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--offwhite, #f4f7fb);
  max-width: 480px;
  margin: 0 auto .5rem;
  line-height: 1.4;
}

.cover-ph-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold, #F5C518);
  opacity: .7;
}

/* ═══════════════════════════════════════════════════
   POST CONTAINER
══════════════════════════════════════════════════════ */
.post-container {
  max-width: var(--blog-max-width);
  padding-top: 3rem;
  padding-bottom: 5rem;
}

/* ═══════════════════════════════════════════════════
   POST HEADER
══════════════════════════════════════════════════════ */
.post-header {
  margin-bottom: 2.5rem;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

/* Badges de tipo */
.post-badge {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.post-badge--quick-win  { background: #d1fae5; color: #065f46; }
.post-badge--supporting { background: #dbeafe; color: #1e40af; }
.post-badge--pillar     { background: #fef3c7; color: #92400e; }

.post-meta-item {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--text-muted, #6a88a8);
  font-weight: 500;
}

.post-cluster { color: var(--text-mid, #344d6a); }
.post-meta-sep { color: var(--text-muted, #6a88a8); font-size: .75rem; }

.post-title {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy, #0d1b2e);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted, #6a88a8);
}

.post-byline-sep { opacity: .4; }
.post-author-name { font-weight: 600; color: var(--text-mid, #344d6a); }

/* ═══════════════════════════════════════════════════
   POST BODY
══════════════════════════════════════════════════════ */
.post-body {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: var(--post-body-size);
  line-height: var(--post-lh);
  color: var(--text-mid, #344d6a);
}

/* Introdução */
.post-intro {
  font-size: var(--post-intro-size);
  line-height: var(--post-lh);
  color: var(--navy, #0d1b2e);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8ecf0;
}

.post-intro p { margin-bottom: 1rem; }
.post-intro p:last-child { margin-bottom: 0; }

/* Seções */
.post-section {
  margin-bottom: var(--blog-section-gap);
}

/* H2 */
.post-h2 {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--navy, #0d1b2e);
  line-height: 1.25;
  margin: 0 0 1rem;
  padding-left: .875rem;
  border-left: var(--post-h2-border);
}

/* H3 */
.post-h3 {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy, #0d1b2e);
  margin: 1.25rem 0 .5rem;
  letter-spacing: .01em;
}

/* Parágrafos */
.post-body p,
.post-section p {
  margin-bottom: 1rem;
  line-height: var(--post-lh);
}

.post-body p:last-child { margin-bottom: 0; }

/* Strong inline */
.post-body strong {
  font-weight: 700;
  color: var(--navy, #0d1b2e);
}

/* Listas */
.post-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-list li {
  margin-bottom: .5rem;
  line-height: var(--post-lh);
}

.post-list li::marker { color: var(--gold, #F5C518); }

/* Tabelas */
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  display: block;
}

.post-table th {
  background: var(--navy, #0d1b2e);
  color: var(--offwhite, #f4f7fb);
  padding: .625rem .875rem;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-table td {
  padding: .625rem .875rem;
  border-bottom: 1px solid #e8ecf0;
  color: var(--text-mid, #344d6a);
  vertical-align: top;
}

.post-table tr:last-child td { border-bottom: none; }
.post-table tr:hover td { background: #f9fafb; }

/* Conclusão */
.post-conclusao {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e8ecf0;
}

.post-conclusao p {
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════
   CTAs
══════════════════════════════════════════════════════ */

/* CTA Primário */
.cta-primary-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--navy, #0d1b2e);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0 1rem;
}

.cta-primary-icon {
  font-size: 2rem;
  flex-shrink: 0;
  opacity: .8;
}

.cta-primary-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted, #6a88a8);
  margin-bottom: .625rem;
}

.btn-gold {
  display: inline-block;
  background: var(--gold, #F5C518);
  color: var(--navy, #0d1b2e);
  font-family: 'Darker Grotesque', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  padding: .625rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: .01em;
  transition: background .2s, transform .15s;
}

.btn-gold:hover {
  background: var(--gold-dark, #c9a010);
  transform: translateY(-1px);
}

/* CTA Secundário */
.cta-secondary-block {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-secondary-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #93c5fd;
  white-space: nowrap;
}

.cta-secondary-link {
  font-size: .9rem;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
  line-height: 1.4;
  transition: color .2s;
}

.cta-secondary-link:hover { color: #1d4ed8; text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   DADO ÂNCORA
══════════════════════════════════════════════════════ */
.dado-ancora-box {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #fffbeb;
  border-left: 3px solid var(--gold, #F5C518);
  border-radius: 0 8px 8px 0;
  padding: .875rem 1.125rem;
  margin: 1.5rem 0;
  font-size: .85rem;
  color: #78350f;
  line-height: 1.5;
}

.dado-ancora-icon { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }

/* ═══════════════════════════════════════════════════
   AUTOR
══════════════════════════════════════════════════════ */
.post-author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--offwhite, #f4f7fb);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-top: 3rem;
}

.author-symbol {
  font-size: 1.5rem;
  color: var(--gold, #F5C518);
  flex-shrink: 0;
  margin-top: .125rem;
}

.author-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy, #0d1b2e);
  margin-bottom: .375rem;
}

.author-bio {
  font-size: .875rem;
  color: var(--text-mid, #344d6a);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.btn-ghost {
  display: inline-block;
  border: 1.5px solid var(--navy, #0d1b2e);
  color: var(--navy, #0d1b2e);
  background: transparent;
  font-family: 'Darker Grotesque', sans-serif;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn-sm { font-size: .8rem; padding: .375rem 1rem; }
.btn-ghost:hover { background: var(--navy, #0d1b2e); color: #fff; }

/* ═══════════════════════════════════════════════════
   BLOG INDEX — CARDS DE POST
══════════════════════════════════════════════════════ */
/* ── Blog hero — base + animated background ── */
.blog-index-hero {
  background: #0d1b2e;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Content sits above all background layers */
.blog-index-hero .container { position: relative; z-index: 10; }

/* Glow pulse layer */
.bh-glow {
  position: absolute; inset: 0; pointer-events: none;
  animation: bh-glow-pulse 8s ease-in-out infinite;
}
@keyframes bh-glow-pulse {
  0%,100% { background: radial-gradient(ellipse 60% 80% at 50% 60%, #1a3050 0%, #070e1a 100%); }
  50%      { background: radial-gradient(ellipse 80% 100% at 50% 50%, #1f3d63 0%, #0a1828 100%); }
}

/* Grain layer — posicionado via inline style no SVG para max compatibilidade */

/* Central rotating star */
.bh-star {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 520px; line-height: 1;
  color: #F5C518; opacity: .04;
  font-family: sans-serif; pointer-events: none;
  animation: bh-rotate 60s linear infinite;
}
@keyframes bh-rotate {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* Satellite stars */
.bh-sat {
  position: absolute;
  color: #F5C518; font-family: sans-serif;
  line-height: 1; pointer-events: none;
}
.bh-s1 { font-size:24px; opacity:.18; top:15%;    left:12%;   animation: bh-orbit  12s ease-in-out infinite; }
.bh-s2 { font-size:16px; opacity:.22; top:70%;    left:8%;    animation: bh-floatb  8s ease-in-out infinite -3s; }
.bh-s3 { font-size:36px; opacity:.14; top:20%;    right:10%;  animation: bh-orbit  15s ease-in-out infinite -5s; }
.bh-s4 { font-size:14px; opacity:.25; bottom:20%; right:15%;  animation: bh-floatb 10s ease-in-out infinite -7s; }
.bh-s5 { font-size:20px; opacity:.16; top:50%;    left:5%;    animation: bh-floata 18s ease-in-out infinite -9s; }
.bh-s6 { font-size:28px; opacity:.12; bottom:15%; right:35%;  animation: bh-orbit  20s ease-in-out infinite -11s; }

@keyframes bh-orbit {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  25%     { transform: translate(8px,-12px) rotate(90deg); }
  50%     { transform: translate(0,-20px) rotate(180deg); }
  75%     { transform: translate(-8px,-12px) rotate(270deg); }
}
@keyframes bh-floata {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-14px) rotate(15deg); }
}
@keyframes bh-floatb {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(12px) rotate(-10deg); }
}

/* Diagonal sweep lines */
.bh-line {
  position: absolute; top: 0;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(245,197,24,.10), transparent);
  pointer-events: none;
  animation: bh-slide 24s linear infinite;
}
.bh-l1 { left:20%; animation-delay:0s; }
.bh-l2 { left:50%; animation-delay:-8s; }
.bh-l3 { left:80%; animation-delay:-16s; }
@keyframes bh-slide {
  0%   { transform: rotate(-40deg) translateX(-300px); opacity:0; }
  8%   { opacity:1; }
  92%  { opacity:1; }
  100% { transform: rotate(-40deg) translateX(800px); opacity:0; }
}

/* Blinking dots */
.bh-dot {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #F5C518; pointer-events: none;
  animation: bh-blink 4s ease-in-out infinite;
}
@keyframes bh-blink { 0%,100%{opacity:.12} 50%{opacity:.30} }
.bh-d1 { left:15%; top:30%; animation-duration:4s;   animation-delay:0s; }
.bh-d2 { left:30%; top:70%; animation-duration:5s;   animation-delay:.6s; }
.bh-d3 { left:45%; top:20%; animation-duration:3.5s; animation-delay:1.2s; }
.bh-d4 { left:60%; top:65%; animation-duration:6s;   animation-delay:1.8s; }
.bh-d5 { left:72%; top:35%; animation-duration:4.5s; animation-delay:2.4s; }
.bh-d6 { left:85%; top:55%; animation-duration:5.5s; animation-delay:3s; }
.bh-d7 { left:20%; top:80%; animation-duration:3s;   animation-delay:3.6s; }
.bh-d8 { left:90%; top:25%; animation-duration:5s;   animation-delay:4s; }

@media (prefers-reduced-motion: reduce) {
  .bh-glow, .bh-star, .bh-sat, .bh-line, .bh-dot { animation: none !important; }
}

.blog-index-title {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}

.blog-index-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted, #6a88a8);
  max-width: 500px;
  margin: 0 auto;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  padding: 3rem 0 5rem;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,46,.1);
  transform: translateY(-3px);
}

.post-card-cover {
  height: 180px;
  background: var(--navy, #0d1b2e);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: .3;
  color: var(--gold, #F5C518);
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.post-card-badge { font-size: .65rem; }

.post-card-date {
  font-size: .7rem;
  color: var(--text-muted, #6a88a8);
  font-weight: 500;
}

.post-card-title {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy, #0d1b2e);
  line-height: 1.3;
  margin-bottom: .75rem;
  flex: 1;
}

.post-card-excerpt {
  font-size: .85rem;
  color: var(--text-mid, #344d6a);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-cta {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-dark, #c9a010);
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════
   HOME WIDGET (últimos 3 posts)
══════════════════════════════════════════════════════ */
.home-blog-section {
  padding: 5rem 0;
  background: var(--offwhite, #f4f7fb);
}

.home-blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-blog-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold, #F5C518);
  display: block;
  margin-bottom: .375rem;
}

.home-blog-title {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--navy, #0d1b2e);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-blog-all-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--navy, #0d1b2e);
  color: #fff;
  font-family: 'Darker Grotesque', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.home-blog-all-btn:hover {
  background: #162840;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .post-container { padding-top: 2rem; }
  .cta-primary-block { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .post-author-card { flex-direction: column; gap: 1rem; }
  .home-blog-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .cta-secondary-block { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .post-meta-bar { gap: .375rem; }
  .blog-posts-grid { grid-template-columns: 1fr; }
  .home-blog-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   MOBILE NAV — BLOG PAGES
   Hambúrguer + nav expandido em telas pequenas.
   Cobre o toggle do script.js (classe .open no .main-nav).
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Mostrar botão hambúrguer */
  .blog-index-page .nav-toggle,
  .blog-post-page .nav-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .blog-index-page .nav-toggle span,
  .blog-post-page .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }

  /* Nav fechada por padrão em mobile */
  .blog-index-page .main-nav,
  .blog-post-page .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d1b2e;
    padding: .25rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    z-index: 998;
  }

  /* Aberta quando script.js (ou inline script) adicionar .open */
  .blog-index-page .main-nav.open,
  .blog-index-page .main-nav.is-open,
  .blog-post-page .main-nav.open,
  .blog-post-page .main-nav.is-open {
    display: block !important;
  }

  /* Lista vertical */
  .blog-index-page .nav-list,
  .blog-post-page .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .blog-index-page .nav-link,
  .blog-post-page .nav-link {
    display: block;
    padding: .8rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: .9rem;
  }
  .blog-index-page .nav-link:hover,
  .blog-post-page .nav-link:hover {
    background: rgba(255,255,255,.05);
    color: #F5C518;
  }

  /* Botão CTA — destaque em mobile também */
  .blog-index-page .btn-nav-cta,
  .blog-post-page .btn-nav-cta {
    margin: .5rem 1.5rem !important;
    border-radius: 6px !important;
    text-align: center;
    display: block !important;
  }

  /* Hambúrguer animado quando nav está aberta */
  .blog-index-page .nav-toggle[aria-expanded="true"] span:nth-child(1),
  .blog-post-page .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .blog-index-page .nav-toggle[aria-expanded="true"] span:nth-child(2),
  .blog-post-page .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .blog-index-page .nav-toggle[aria-expanded="true"] span:nth-child(3),
  .blog-post-page .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ═══════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════ */
@media print {
  .site-header, .breadcrumb-bar, .site-footer,
  .cta-primary-block, .cta-secondary-block,
  .post-author-card, .cursor-dot, .cursor-ring { display: none !important; }
  .post-container { max-width: 100%; padding: 1rem 0; }
  .post-title { font-size: 1.5rem; }
  .post-h2 { border-left-color: #000; }
}
