/* =========================================================
   articles.css — Central de Conhecimento / Artigos
   Base: /assets/css/main.css
   Build: 20260504-central-articles-clean-final
========================================================= */

body[data-page-type="article"] { background: var(--white); }
body[data-page-type="article"] .section-title { text-wrap: balance; letter-spacing: -0.01em; }

.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.42); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-outline-terracota { background: transparent; color: var(--terracota); border: 1.5px solid var(--terracota); padding: 12px 28px; border-radius: 100px; font-family: var(--sans); font-size: .85rem; font-weight: 500; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: all .3s var(--ease); }
.btn-outline-terracota:hover { background: var(--terracota); color: var(--white); box-shadow: 0 8px 20px rgba(155,68,66,.22); }

.page-hero { padding: 120px 0 72px; background: linear-gradient(160deg, var(--black) 0%, #221514 50%, var(--terracota-dark) 100%); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 700px 500px at 80% 20%, rgba(155,68,66,.18), transparent), radial-gradient(ellipse 400px 400px at 10% 90%, rgba(196,162,101,.07), transparent); pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; max-width: 780px; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(196,162,101,.12); border: 1px solid rgba(196,162,101,.25); border-radius: 100px; padding: 8px 20px; font-size: .72rem; font-weight: 500; color: var(--gold-light); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px; }
.page-hero-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 22px; text-wrap: balance; }
.page-hero h1 em { font-style: italic; color: var(--nude); }
.page-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.68); line-height: 1.75; max-width: 640px; font-weight: 300; text-wrap: pretty; }

body[data-page-type="article"] .breadcrumb { display: none; }
.article-layout { padding: 72px 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; min-width: 0; }
.article-body { min-width: 0; font-size: 1rem; line-height: 1.8; color: var(--text); }
.article-body h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; color: var(--black); margin: 48px 0 18px; line-height: 1.25; text-wrap: balance; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--black); margin: 32px 0 12px; }
.article-body p { font-size: 1rem; color: var(--text-light); line-height: 1.85; font-weight: 300; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 24px; }
.article-body li { font-size: .95rem; color: var(--text-light); line-height: 1.7; font-weight: 300; margin-bottom: 8px; }
.article-body strong { color: var(--black); font-weight: 600; }

.article-highlight { background: linear-gradient(135deg, var(--nude-ultra), var(--nude-light)); border-left: 3px solid var(--gold); padding: 24px 28px; border-radius: 0 16px 16px 0; margin: 32px 0; }
.article-highlight p { font-family: var(--serif); font-size: 1.1rem; color: var(--terracota); line-height: 1.6; margin: 0; font-weight: 400; }
.article-cta-inline { background: var(--nude-ultra); border-radius: 20px; padding: 32px 36px; margin: 48px 0; text-align: center; }
.article-cta-inline p { font-size: .95rem; color: var(--text-light); margin-bottom: 20px; font-weight: 300; }
.article-cta-inline .cta-btns, .cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.info-box { background: rgba(155,68,66,.04); border: 1px solid rgba(155,68,66,.12); border-radius: 16px; padding: 22px 24px; margin: 28px 0; }
.info-box-title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracota); font-weight: 600; margin-bottom: 12px; }
.info-box ul { padding-left: 18px; margin: 0; }
.info-box li { font-size: .88rem; color: var(--text-light); line-height: 1.65; font-weight: 300; margin-bottom: 6px; }
body.article-boxed .info-box ul li { padding: 8px 0 8px 16px; border-bottom: 1px solid var(--border); position: relative; }
body.article-boxed .info-box ul li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: 10px; }
body.article-boxed .info-box ul li:last-child { border-bottom: none; }

.article-sidebar { position: sticky; top: 100px; min-width: 0; }
.sidebar-nav, .sidebar-related { background: var(--nude-ultra); border-radius: 20px; padding: 28px 24px; margin-bottom: 24px; }
.sidebar-nav-title, .sidebar-related-title { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.sidebar-nav a { display: block; font-size: .82rem; color: var(--text-light); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border); font-weight: 300; transition: color .2s; }
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { color: var(--terracota); }
.sidebar-cta-box { background: linear-gradient(135deg, var(--terracota), var(--terracota-dark)); border-radius: 20px; padding: 28px 24px; text-align: center; margin-bottom: 24px; }
.sidebar-cta-box h3, .sidebar-cta-box h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.sidebar-cta-box p { font-size: .8rem; color: rgba(255,255,255,.68); margin-bottom: 20px; font-weight: 300; line-height: 1.6; }
.sidebar-cta-box .btn { width: 100%; justify-content: center; background: var(--white); color: var(--terracota); font-weight: 600; margin-bottom: 10px; }
.sidebar-cta-box .btn-wa { background: #25D366; color: var(--white); }
.related-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--border); transition: color .2s; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--terracota); }
.related-link span { font-size: .82rem; font-weight: 300; }
.related-link-num { font-family: var(--serif); font-size: 1.15rem; color: rgba(155,68,66,.32); font-weight: 500; flex-shrink: 0; font-variant-numeric: lining-nums tabular-nums; }

.cta-strip { background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%); padding: 88px 0; text-align: center; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 400px at 50% 50%, rgba(196,162,101,.08), transparent); }
.cta-strip-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-strip .section-label { color: var(--gold-light); }
.cta-strip .section-title { color: var(--white); margin-bottom: 16px; }
.cta-strip .section-desc { color: rgba(255,255,255,.7); margin-bottom: 36px; }
.cta-strip-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Componentes internos de artigos */
.rotina-steps { display: flex; flex-direction: column; gap: 0; margin: 2rem 0; counter-reset: step-counter; }
.rotina-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); align-items: start; counter-increment: step-counter; }
.rotina-step:last-child { border-bottom: none; }
.rotina-step-num { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%); color: var(--white); font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }
.rotina-step-content h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--black); margin: 10px 0 6px; }
.rotina-step-content p { font-size: .92rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.problema-grid { display: flex; flex-direction: column; gap: 16px; margin: 2rem 0; }
.problema-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.problema-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--nude-ultra); }
.problema-title { font-weight: 600; font-size: .95rem; color: var(--black); }
.problema-tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--terracota); background: rgba(155,68,66,.08); padding: 4px 10px; border-radius: 100px; }
.problema-body { padding: 16px 20px; font-size: .92rem; line-height: 1.7; color: var(--text-light); }
.corte-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2rem 0; }
.corte-compare-card { border-radius: 12px; padding: 24px; }
.corte-compare-card.tradicional { background: #F8F6F4; border: 1px solid var(--border); }
.corte-compare-card.especializado { background: linear-gradient(135deg, #FBF6F5 0%, #F2EBE6 100%); border: 1px solid rgba(155,68,66,.2); }
.corte-compare-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.corte-compare-card.tradicional .corte-compare-label { color: var(--text-muted); }
.corte-compare-card.especializado .corte-compare-label { color: var(--terracota); }
.corte-compare-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--black); margin-bottom: 12px; }
.corte-compare-list { list-style: none; padding: 0; margin: 0; }
.corte-compare-list li { font-size: .88rem; line-height: 1.6; padding: 5px 0 5px 16px; position: relative; color: var(--text); }
.corte-compare-card.tradicional .corte-compare-list li::before { content: '—'; position: absolute; left: 0; color: var(--text-muted); }
.corte-compare-card.especializado .corte-compare-list li::before { content: '✓'; position: absolute; left: 0; color: var(--terracota); font-weight: 700; }
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.trio-card { padding: 24px 20px; border-radius: 18px; text-align: center; }
.trio-card-h { border: 2px solid #64A5D3; background: rgba(100,165,211,.05); }
.trio-card-n { border: 2px solid var(--gold); background: rgba(196,162,101,.05); }
.trio-card-r { border: 2px solid var(--terracota); background: rgba(155,68,66,.05); }
.trio-card-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.trio-card h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; color: var(--black); }
.trio-card p { font-size: .8rem; color: var(--text-light); line-height: 1.6; font-weight: 300; }

.related-articles { padding: 100px 0; background: var(--bg-soft); }
.related-intro { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.related-intro .section-title em { font-style: italic; color: var(--terracota); }
.related-intro .section-desc { margin-top: 14px; color: var(--text-muted); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 44px; }
.related-card { display: flex; align-items: flex-start; gap: 20px; padding: 28px; background: var(--white); border: 1px solid rgba(0,0,0,.04); border-radius: 18px; text-decoration: none; color: var(--black); transition: all .35s var(--ease); position: relative; }
.related-card:hover { transform: translateY(-6px); border-color: var(--terracota); box-shadow: 0 18px 38px rgba(155,68,66,.1); }
.related-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.related-card-num { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; color: rgba(155,68,66,.32); line-height: 1; flex-shrink: 0; padding-top: 4px; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.related-card-content { flex: 1; min-width: 0; }
.related-card-category { font-size: .68rem; color: var(--gold); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.related-card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--black); line-height: 1.25; margin-bottom: 6px; }
.related-card-desc { font-size: .85rem; color: var(--text-light); line-height: 1.5; font-weight: 300; }
.related-card-arrow { flex-shrink: 0; color: var(--terracota); opacity: .6; transition: all .3s; align-self: center; }
.related-card:hover .related-card-arrow { opacity: 1; transform: translateX(4px); }
.related-back { text-align: center; }

.noscript-banner { background: #9B4442; color: #fff; padding: 16px 24px; text-align: center; font-family: system-ui, sans-serif; font-size: .9rem; position: relative; z-index: 9999; }
.noscript-banner a { color: #fff; text-decoration: underline; font-weight: 600; margin: 0 8px; }
body[data-page-type="article"] .reveal { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 1024px) {
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .corte-compare { grid-template-columns: 1fr; }
  .trio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: 118px 0 56px; }
  .article-layout { padding: 56px 0; }
  .article-sidebar { grid-template-columns: 1fr; }
  .article-cta-inline { padding: 28px 22px; }
  .article-cta-inline .cta-btns, .cta-btns, .cta-strip-btns { flex-direction: column; align-items: stretch; }
  .article-cta-inline .btn, .cta-strip-btns .btn { width: 100%; justify-content: center; }
  .rotina-step { grid-template-columns: 40px 1fr; gap: 14px; }
  .rotina-step-num { width: 40px; height: 40px; font-size: 1rem; }
  .trio-grid, .related-grid { grid-template-columns: 1fr; }
  .related-articles { padding: 72px 0; }
  .related-card { padding: 22px 20px; gap: 16px; }
  .related-card-num { font-size: 1.5rem; }
}

/* =========================================================
   Articles polish + regression fix
   Build: 20260505-article-header-cta-final
========================================================= */
body[data-page-type="article"] .page-hero-content {
  max-width: 820px;
}

body[data-page-type="article"] .article-body {
  overflow-wrap: anywhere;
}

body[data-page-type="article"] .article-body p,
body[data-page-type="article"] .article-body li {
  text-wrap: pretty;
}

body[data-page-type="article"] .cta-strip {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  body[data-page-type="article"] .page-hero h1 {
    font-size: clamp(2.05rem, 9vw, 3rem);
    line-height: 1.05;
  }

  body[data-page-type="article"] .page-hero-sub {
    font-size: .98rem;
    line-height: 1.65;
  }

  body[data-page-type="article"] .article-body h2 {
    margin-top: 40px;
  }

  body[data-page-type="article"] .article-body p {
    font-size: .98rem;
    line-height: 1.78;
  }

  body[data-page-type="article"] .article-cta-inline,
  body[data-page-type="article"] .info-box,
  body[data-page-type="article"] .sidebar-cta-box {
    border-radius: 18px;
  }
}
