/* ============================================================
   blog.css — Estilos do blog (índice e posts individuais)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: #1A1A16;
  background: #F7F6F2;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Header (igual landing) ── */
.blog-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(45, 106, 86, 0.10);
}
.blog-header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.blog-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.blog-logo img { width: 38px; height: 38px; object-fit: contain; }
.blog-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: 1.05rem;
  letter-spacing: 0.04em; color: #2D6A56;
  line-height: 1;
}
.blog-logo-text small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #8B7252; margin-top: 3px;
}
.blog-nav {
  display: flex; align-items: center; gap: 24px;
}
.blog-nav a {
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: 0.82rem; color: #1A1A16; text-decoration: none;
}
.blog-nav a:hover { color: #2D6A56; }
.blog-nav a.btn-entrar {
  background: #2D6A56; color: #fff;
  padding: 9px 20px; border-radius: 999px;
  font-size: 0.78rem;
}
.blog-nav a.btn-entrar:hover { background: #1F4F40; }
@media (max-width: 720px) {
  .blog-nav a:not(.btn-entrar) { display: none; }
}

/* ── Hero do índice ── */
.blog-hero {
  padding: 60px 24px 50px;
  text-align: center;
  background: linear-gradient(135deg, rgba(45,106,86,0.05) 0%, rgba(201,168,130,0.05) 100%);
  border-bottom: 1px solid rgba(45,106,86,0.10);
}
.blog-hero-eyebrow {
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: #2D6A56;
  margin-bottom: 14px;
}
.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15; color: #1A1A16; margin-bottom: 14px;
}
.blog-hero h1 em {
  font-style: italic; color: #2D6A56; font-weight: 400;
}
.blog-hero p {
  font-family: 'DM Sans', sans-serif; font-weight: 400;
  font-size: 1rem; color: #5A5448; line-height: 1.6;
  max-width: 640px; margin: 0 auto;
}

/* ── Grid de posts ── */
.blog-grid-section { padding: 60px 24px 80px; }
.blog-grid-inner { max-width: 1100px; margin: 0 auto; }
.blog-categoria-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px; justify-content: center;
}
.blog-cat-btn {
  background: #fff;
  border: 1px solid rgba(45,106,86,0.20);
  color: #5A5448;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
}
.blog-cat-btn:hover { border-color: #2D6A56; color: #2D6A56; }
.blog-cat-btn.active {
  background: #2D6A56; border-color: #2D6A56; color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: #fff;
  border: 1px solid rgba(45,106,86,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  border-color: rgba(45,106,86,0.30);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45,106,86,0.08);
}

.blog-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2D6A56 0%, #1F4F40 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(201,168,130,0.6);
  position: relative;
}
.blog-card-img svg { width: 56px; height: 56px; }
.blog-card-img.tema-hidratacao { background: linear-gradient(135deg, #4a7c5f, #2D6A56); }
.blog-card-img.tema-proteina   { background: linear-gradient(135deg, #C9A882, #8B5E3C); }
.blog-card-img.tema-fome       { background: linear-gradient(135deg, #B8860B, #5C420A); }
.blog-card-img.tema-sono       { background: linear-gradient(135deg, #3A5E8B, #1F3D5C); }
.blog-card-img.tema-treino     { background: linear-gradient(135deg, #A04030, #6B1F18); }

.blog-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #2D6A56; margin-bottom: 8px;
}
.blog-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: 1.32rem;
  line-height: 1.2; color: #1A1A16; margin-bottom: 10px;
}
.blog-card-resumo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400; font-size: 0.88rem;
  color: #5A5448; line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400; font-size: 0.74rem;
  color: #8B7252;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(45,106,86,0.10);
}
.blog-card-meta span + span::before { content: ' · '; opacity: 0.6; }

/* ── Página de post individual ── */
.blog-post-hero {
  padding: 50px 24px 40px;
  background: linear-gradient(135deg, rgba(45,106,86,0.06) 0%, rgba(201,168,130,0.04) 100%);
  border-bottom: 1px solid rgba(45,106,86,0.10);
}
.blog-post-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }

/* Hero COM IMAGEM — usado em posts com foto destacada */
.blog-post-hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2D6A56;
  color: #fff;
  padding: 90px 24px 70px;
  border-bottom: 0;
  overflow: hidden;
}
.blog-post-hero-image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,79,64,0.82) 0%, rgba(45,106,86,0.72) 60%, rgba(26,26,22,0.85) 100%);
  z-index: 0;
}
.blog-post-hero-image .blog-post-back {
  color: rgba(255,255,255,0.92);
}
.blog-post-hero-image .blog-post-back:hover { color: #C9A882; }
.blog-post-hero-image .blog-post-cat {
  color: #C9A882;
}
.blog-post-hero-image .blog-post-titulo {
  color: #fff;
}
.blog-post-hero-image .blog-post-titulo em { color: #C9A882; font-style: italic; }
.blog-post-hero-image .blog-post-meta {
  color: rgba(255,255,255,0.85);
}
.blog-post-back {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500; font-size: 0.78rem;
  color: #2D6A56; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 28px;
}
.blog-post-back:hover { color: #1F4F40; }
.blog-post-cat {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #2D6A56; margin-bottom: 14px;
}
.blog-post-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15; color: #1A1A16; margin-bottom: 18px;
}
.blog-post-titulo em { font-style: italic; color: #2D6A56; }
.blog-post-meta {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400; font-size: 0.78rem;
  color: #8B7252;
}
.blog-post-meta span + span::before { content: ' · '; opacity: 0.6; }

/* ── Conteúdo do post ── */
.blog-post-content {
  max-width: 720px; margin: 0 auto;
  padding: 50px 24px 70px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #1A1A16;
}
.blog-post-content p {
  margin-bottom: 18px;
  font-weight: 400;
}
.blog-post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: 1.6rem;
  line-height: 1.25; color: #2D6A56;
  margin: 36px 0 16px;
}
.blog-post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-size: 1.25rem;
  line-height: 1.3; color: #1A1A16;
  margin: 28px 0 12px;
}
.blog-post-content ul, .blog-post-content ol {
  margin: 14px 0 22px 22px;
}
.blog-post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.blog-post-content strong { font-weight: 600; color: #1A1A16; }
.blog-post-content em { font-style: italic; }
.blog-post-content blockquote {
  border-left: 3px solid #C9A882;
  background: rgba(201,168,130,0.08);
  padding: 16px 20px;
  margin: 24px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #5C420A;
  border-radius: 0 6px 6px 0;
}
.blog-post-content .destaque-verde {
  background: rgba(45,106,86,0.08);
  border-left: 3px solid #2D6A56;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.blog-post-content .destaque-verde p { margin: 0; }
.blog-post-content .destaque-verde strong { color: #2D6A56; }

/* ── Disclaimer ético ── */
.blog-disclaimer {
  max-width: 720px; margin: 40px auto 0;
  padding: 20px 24px;
  background: #F0EDE6;
  border-left: 3px solid #8B7252;
  border-radius: 0 6px 6px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  color: #5A5448;
  font-style: italic;
  line-height: 1.6;
}
.blog-disclaimer strong { color: #2D6A56; font-style: normal; }

/* ── CTA fim do post ── */
.blog-cta {
  background: linear-gradient(135deg, #2D6A56 0%, #1F4F40 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
  margin-top: 60px;
}
.blog-cta-inner { max-width: 640px; margin: 0 auto; }
.blog-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.2; color: #fff; margin-bottom: 12px;
}
.blog-cta h3 em { font-style: italic; color: #C9A882; }
.blog-cta p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400; font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
}
.blog-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: #C9A882; color: #1A1A16;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.15s;
}
.blog-cta-btn:hover {
  background: #b89469;
  transform: translateY(-1px);
}

/* ── Posts relacionados ── */
.blog-related {
  max-width: 1100px; margin: 0 auto;
  padding: 60px 24px;
}
.blog-related h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #8B7252; margin-bottom: 24px; text-align: center;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Footer (igual landing) ── */
.blog-footer {
  background: #1A1A16; color: #fff;
  padding: 32px 24px;
}
.blog-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.blog-footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
}
.blog-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none; margin-left: 16px;
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem;
}
.blog-footer a:hover { color: #C9A882; }
