/* Estilos partilhados pelas páginas de conteúdo (sectores e guias).
   A index.html mantém os seus estilos inline; as variáveis abaixo espelham as dela. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #FF006F;
  --brand-dark: #cc0059;
  --brand-light: rgba(255, 0, 111, .12);
  --detail: #0d8fd6;
  --detail-light: rgba(58, 183, 255, .12);
  --bg: #FFFFFF;
  --surface: #f6f6f8;
  --text: #14141a;
  --muted: #5c5c68;
  --border: #e4e4e9;
  --radius: 12px;
}

body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 2rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.site-nav__logo img { height: 26px; width: auto; display: block; }
.site-nav__actions { display: flex; align-items: center; gap: 1.25rem; }
.site-nav__link { font-size: .85rem; font-weight: 500; color: var(--muted); }
.site-nav__cta {
  background: var(--brand); color: #fff; padding: .55rem 1.25rem; border-radius: 8px;
  font-weight: 600; font-size: .9rem; transition: background .2s; white-space: nowrap;
}
.site-nav__cta:hover { background: var(--brand-dark); }
.site-menu { display: none; position: relative; }
.site-menu summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--border); border-radius: 8px; font-size: 1.25rem; line-height: 1;
  color: var(--text); user-select: none; -webkit-tap-highlight-color: transparent;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu[open] summary { background: var(--surface); }
.site-menu__panel {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 190px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.12); padding: .35rem; z-index: 20;
}
.site-menu__panel a { display: block; padding: .7rem .85rem; border-radius: 8px; font-size: .95rem; font-weight: 500; color: var(--text); }
.site-menu__panel a:hover, .site-menu__panel a:active { background: var(--surface); }

/* ── BREADCRUMB ── */
.breadcrumb { max-width: 760px; margin: 1.25rem auto 0; padding: 0 1.5rem; font-size: .85rem; color: var(--muted); }
.breadcrumb a { text-decoration: underline; }

/* ── HERO ── */
.page-hero { text-align: center; padding: 3.5rem 1.5rem 3rem; max-width: 760px; margin: 0 auto; }
.page-badge {
  display: inline-block; background: var(--brand-light); color: var(--brand); font-size: .8rem; font-weight: 600;
  padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1.25rem; border: 1px solid rgba(255,0,111,.3);
}
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 1.1rem; }
.page-hero h1 em { color: var(--detail); font-style: normal; }
.page-hero p { font-size: 1.1rem; color: var(--muted); margin: 0 auto 2rem; max-width: 600px; }
.page-hero .page-hero__note { margin: .6rem 0 0; font-size: .85rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--brand); color: #fff;
  padding: .85rem 2rem; border-radius: var(--radius); font-size: 1rem; font-weight: 700;
  transition: background .2s, transform .1s; box-shadow: 0 4px 14px rgba(255,0,111,.35);
}
.btn-primary:hover { background: #d6005d; transform: translateY(-1px); }

/* ── SECTIONS ── */
.section { padding: 4rem 1.5rem; }
.section--alt { background: var(--surface); }
.section-inner { max-width: 1040px; margin: 0 auto; }
.section-label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--detail); margin-bottom: 1rem; }
.section h2 { text-align: center; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: .75rem; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto 3rem; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.section--alt .card { background: var(--bg); }
.card__icon { font-size: 1.8rem; margin-bottom: .8rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; }
a.card { display: block; transition: border-color .2s, box-shadow .2s; }
a.card:hover { border-color: var(--detail); box-shadow: 0 4px 20px rgba(58,183,255,.15); }
.card__more { display: inline-block; margin-top: .75rem; color: var(--detail); font-weight: 600; font-size: .9rem; }

/* ── ARTICLE (guias) ── */
.article { max-width: 720px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.article h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -.3px; margin: 2.5rem 0 .75rem; }
.article h3 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.article p, .article li { color: #33333d; font-size: 1.02rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; }
.article li { margin-bottom: .45rem; }
.article a { color: var(--detail); text-decoration: underline; }
.article .summary {
  background: var(--detail-light); border-left: 4px solid var(--detail); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.article .summary p:last-child { margin-bottom: 0; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; margin: 0 auto 1rem; max-width: 720px; }
.compare-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.compare-table th, .compare-table td { padding: .9rem 1.1rem; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table th { background: var(--surface); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--muted); }
.compare-table td:last-child { font-weight: 600; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; background: var(--surface); overflow: hidden; }
.section--alt .faq-item { background: var(--bg); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--detail); font-size: 1.3rem; font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.4rem 1.1rem; color: var(--muted); font-size: .95rem; }

/* ── CTA ── */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--detail)); color: #fff; text-align: center; padding: 4rem 1.5rem; }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: .9rem; }
.cta-band p { font-size: 1.05rem; opacity: .9; max-width: 520px; margin: 0 auto 2rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: .6rem; background: #fff; color: var(--brand);
  padding: 1rem 2.25rem; border-radius: var(--radius); font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); transition: transform .1s;
}
.btn-white:hover { transform: translateY(-2px); }

/* ── FOOTER ── */
.site-footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }
.site-footer strong { color: var(--brand); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-bottom: 1rem; }
.site-footer__links a { text-decoration: underline; }

@media (max-width: 600px) {
  .site-nav { padding: .85rem 1rem; }
  .site-nav__actions { gap: .6rem; }
  .site-nav__link { display: none; }
  .site-nav__cta { padding: .5rem .95rem; font-size: .85rem; }
  .site-menu { display: block; }
  .page-hero { padding: 2.5rem 1.25rem 2rem; }
  .section { padding: 3rem 1.25rem; }
  .compare-table th, .compare-table td { padding: .7rem .6rem; font-size: .85rem; }
}

/* ══════════════════════════════════════════════
   Blog (blog/index.html e artigos em blog/)
   ══════════════════════════════════════════════ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.page-hero .blog-meta { margin: 0 auto; font-size: .9rem; color: var(--muted); }

/* Listagem */
.blog-list { padding-top: 1rem; }
a.card.blog-card { display: flex; flex-direction: column; }
.blog-card .card__more { margin-top: auto; padding-top: .75rem; }
.card.blog-card .blog-card__meta { font-size: .8rem; color: var(--detail); font-weight: 600; margin-bottom: .5rem; }
.blog-card h3 { font-size: 1.1rem; line-height: 1.35; }

/* Artigo */
.article .blog-callout {
  background: var(--brand-light); border-left: 4px solid var(--brand); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 2rem 0;
}
.article .blog-callout p:last-child { margin-bottom: 0; }
.article .formula {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1rem 0 1.25rem; text-align: center;
}
.article .formula p { margin-bottom: 0; }
.article .example-note { font-size: .95rem; color: var(--muted); }
.article .message-template {
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: .5rem 0 1.25rem; font-size: .98rem; color: #33333d; white-space: pre-line;
}
.article .table-wrap { margin-bottom: 1.25rem; }
.compare-table--plain td:last-child { font-weight: 400; }
.article .blog-back { margin-top: 2.5rem; font-weight: 600; }

@media (max-width: 600px) {
  .article .blog-callout, .article .formula, .article .message-template { padding: .9rem 1rem; }
}
