/* ============================================================
   MARCARO — Blog
   Estilos específicos do blog. Herda os tokens (cores, fontes,
   sombras) do style.css global — carregue este arquivo DEPOIS.
   ============================================================ */

/* ─── Base de página ─────────────────────────────────────── */
.blog-page { background: var(--bg); }

/* Categorias — cores */
:root {
  --cat-estetica:    #b8892a;
  --cat-estetica-bg: rgba(184,137,42,0.10);
  --cat-salao:       #a9506a;
  --cat-salao-bg:    rgba(169,80,106,0.10);
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-dim);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb [aria-current="page"] { color: var(--text-dim); }

/* ─── Badge de categoria ─────────────────────────────────── */
.cat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.cat-badge.estetica { color: var(--cat-estetica); background: var(--cat-estetica-bg); border: 1px solid rgba(184,137,42,0.25); }
.cat-badge.salao    { color: var(--cat-salao);    background: var(--cat-salao-bg);    border: 1px solid rgba(169,80,106,0.25); }

/* ═══════════════════════════════════════════════════════════
   HUB DO BLOG
   ═══════════════════════════════════════════════════════════ */
.blog-hero {
  background: var(--bg-section);
  padding: calc(var(--header-h) + 72px) 0 56px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.blog-hero .blog-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.12; color: var(--text);
  margin-bottom: 16px;
}
.blog-hero p {
  font-size: 1.08rem; color: var(--text-muted);
  max-width: 580px; margin: 0 auto; line-height: 1.75;
}

/* Grid de posts */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.blog-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.blog-card-cover svg { width: 54px; height: 54px; color: rgba(255,255,255,0.92); }
.blog-card-cover .cover-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,0.22); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 999px;
}
.cover-estetica { background: linear-gradient(135deg, #cfa040 0%, #8f6a1c 100%); }
.cover-salao    { background: linear-gradient(135deg, #c98aa0 0%, #7e3a52 100%); }

.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h2,
.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700; line-height: 1.25;
  color: var(--text); margin: 12px 0 10px;
}
.blog-card-excerpt { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; flex: 1; }
.blog-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-dim);
  margin-top: auto;
}
.blog-card-meta .read-more { color: var(--gold); font-weight: 700; margin-left: auto; }

/* ═══════════════════════════════════════════════════════════
   PÁGINA DE ARTIGO
   ═══════════════════════════════════════════════════════════ */
.article {
  padding: calc(var(--header-h) + 40px) 0 0;
  background: var(--bg);
}
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 28px; }

.article-header { margin-bottom: 30px; }
.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700; line-height: 1.16; color: var(--text);
  margin: 14px 0 18px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 13px; color: var(--text-dim);
}
.article-meta .author { color: var(--text-muted); font-weight: 600; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

/* Capa */
.article-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 36px; overflow: hidden;
}
.article-cover svg { width: 72px; height: 72px; color: rgba(255,255,255,0.9); }

/* Sumário (TOC) */
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px; margin-bottom: 36px;
}
.article-toc strong {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px;
}
.article-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.article-toc a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
.article-toc a:hover { color: var(--gold); }

/* Corpo / prosa */
.article-body { font-size: 1.06rem; line-height: 1.8; color: var(--text); }
.article-body > * + * { margin-top: 22px; }
.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700;
  line-height: 1.25; color: var(--text);
  margin-top: 48px; scroll-margin-top: calc(var(--header-h) + 20px);
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  margin-top: 32px;
}
.article-body p { color: var(--text); }
.article-body a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--gold); }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.article-body li { line-height: 1.7; }
.article-body ul li::marker { color: var(--gold); }
.article-body ol li::marker { color: var(--gold); font-weight: 700; }

/* Destaque / callout dentro do texto */
.article-callout {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 18px 22px; font-size: 0.98rem; color: var(--text-muted);
}
.article-callout strong { color: var(--text); }

/* Tabela */
.article-body table {
  width: 100%; border-collapse: collapse;
  font-size: 0.95rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.article-body th, .article-body td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.article-body thead th { background: var(--bg-alt); font-weight: 700; color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.article-body tbody tr:last-child td { border-bottom: none; }

/* Blockquote */
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px; margin-left: 0;
  font-family: var(--font-heading); font-size: 1.2rem;
  font-style: italic; color: var(--text-muted); line-height: 1.5;
}

/* Caixa de CTA */
.article-cta {
  background: var(--text);
  border-radius: 20px;
  padding: 40px 38px; text-align: center;
  margin: 48px 0; position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(184,137,42,0.22) 0%, transparent 70%);
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta h3 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: #fff; margin-bottom: 10px; line-height: 1.25;
}
.article-cta h3 span { color: var(--gold-light); }
.article-cta p { color: rgba(255,255,255,0.6); font-size: 0.98rem; max-width: 440px; margin: 0 auto 24px; }
.article-cta .btn { background: var(--gold); color: #fff; padding: 14px 34px; font-size: 15px; }
.article-cta .btn:hover { background: var(--gold-mid); }
.article-cta .cta-note { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 14px; }

/* FAQ do artigo */
.article-faq { margin-top: 52px; }
.article-faq h2 {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
  color: var(--text); margin-bottom: 22px;
}
.article-faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0; margin-bottom: 12px;
  overflow: hidden; transition: border-color .2s;
}
.article-faq details[open] { border-color: var(--gold-border); }
.article-faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 22px; font-weight: 600; color: var(--text);
  font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; flex-shrink: 0; transition: transform .2s; }
.article-faq details[open] summary::after { content: '–'; }
.article-faq details p { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* Leia também */
.related { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.related h2 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--text); margin-bottom: 24px;
}
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 22px 24px;
  text-decoration: none; transition: border-color .3s, box-shadow .3s, transform .2s;
}
.related-card:hover { border-color: var(--gold-border); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card h3 { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.related-card span { font-size: 13px; color: var(--gold); font-weight: 700; }

/* Espaço antes do footer */
.article-footer-space { height: 90px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-hero { padding-top: calc(var(--header-h) + 40px); }
  .article { padding-top: calc(var(--header-h) + 24px); }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-cover { aspect-ratio: 16 / 9; }
  .article-cta { padding: 32px 24px; }
  .article-body { font-size: 1.02rem; }
}
