/* ===========================================================
   Blog Brena Custódio · PASI — Folha de estilo compartilhada
   Identidade: logo PASI (navy #183346 + off-white #f5f5ef)
   Tipografia: Gordita (títulos) + Montserrat (corpo)
   NOTA: --accent é cor de apoio criada pra dar vida a CTA/hover,
   não veio dos arquivos de marca recebidos. Confirmar com a Brena
   antes de tratar como identidade oficial (ver README.md).
   =========================================================== */

@font-face {
  font-family: "Gordita";
  src: url("fonts/Gordita-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gordita";
  src: url("fonts/Gordita-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gordita";
  src: url("fonts/Gordita-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #183346;
  --navy-light: #2d4d68;
  --navy-soft: #e8edf1;
  --cream: #f5f5ef;
  --white: #ffffff;
  --ink: #1c2427;
  --ink-muted: #5b6670;
  --accent: #c9895f; /* apoio, ver nota acima */
  --accent-dark: #a86c46;
  --border: #e2e1d8;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(24, 51, 70, 0.08);
  --font-display: "Gordita", "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo img { height: 34px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--white);
  opacity: 0.85;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.site-nav a:hover { opacity: 1; color: var(--white); }
.site-nav .btn-cta { opacity: 1; }

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------- Blog hero (index) ---------- */
.blog-hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 0 56px;
}
.blog-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.75;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 12px 0 16px;
  max-width: 720px;
}
.blog-hero p.lead {
  max-width: 620px;
  font-size: 17.5px;
  color: var(--cream);
  opacity: 0.9;
}

/* ---------- Category pills ---------- */
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 6px;
}
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.pill.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Post list (padrao editorial, nao card de SaaS) ---------- */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0 64px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 18px;
}
.post-card:hover { transform: translateX(4px); box-shadow: 0 14px 32px rgba(24, 51, 70, 0.12); }
.post-card .thumb {
  flex: 0 0 220px;
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
  padding: 16px;
  line-height: 1.35;
}
.post-card .thumb.is-placeholder { background: repeating-linear-gradient(135deg, var(--navy-soft), var(--navy-soft) 10px, #dfe6ea 10px, #dfe6ea 20px); }
.post-card .body { padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: center; }
.post-card .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); }
.post-card h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.3; margin: 0; color: var(--navy); }
.post-card p.excerpt { color: var(--ink-muted); font-size: 14.5px; margin: 0; }
.post-card .meta { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }
.post-card .meta .dot { margin: 0 6px; opacity: 0.5; }
.post-card.is-placeholder { opacity: 0.55; }

@media (max-width: 640px) {
  .post-card { flex-direction: column; }
  .post-card .thumb { flex: 0 0 auto; aspect-ratio: 16/9; }
}

/* ---------- Article page ---------- */
.article-header { background: var(--navy); color: var(--white); padding: 48px 0 40px; }
.article-header .tag { color: var(--cream); opacity: 0.75; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.article-header h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 12px 0 18px; max-width: 780px; }
.article-header p.subtitle { max-width: 680px; font-size: 18px; opacity: 0.9; color: var(--cream); margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--cream); opacity: 0.9; }
.byline .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.byline strong { color: var(--white); font-weight: 600; }

.article-body { max-width: 760px; margin: 0 auto; padding: 44px 24px 24px; }
.article-body .lead-answer {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 17.5px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.article-body h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 24px;
  margin: 40px 0 14px;
}
.article-body h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 19px;
  margin: 28px 0 10px;
}
.article-body p { margin: 0 0 18px; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy); }

/* video embed block, meio do post, padrao Cátia */
.video-embed {
  margin: 36px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.video-embed .frame-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 100%);
  color: var(--cream);
}
.video-embed .play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
}
.video-embed .play-btn::after {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 4px;
}
.video-embed .placeholder .label { font-size: 13.5px; font-weight: 600; opacity: 0.85; text-align: center; padding: 0 24px; }
.video-embed .caption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.video-embed .caption a { color: var(--cream); text-decoration: underline; }

.pasi-cta-block {
  margin: 44px 0;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.pasi-cta-block h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; color: var(--white); }
.pasi-cta-block p { color: var(--cream); opacity: 0.9; margin: 0 0 20px; }

.disclaimer {
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--navy-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 36px 0;
}

.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tags-row .pill { font-size: 12px; padding: 6px 14px; }

.related-posts { background: var(--white); padding: 56px 0 72px; }
.related-posts h2 { font-family: var(--font-display); color: var(--navy); text-align: center; margin-bottom: 8px; }
.related-posts .subtitle { text-align: center; color: var(--ink-muted); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); padding: 48px 0 28px; margin-top: 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .col h4 { font-family: var(--font-display); color: var(--white); font-size: 15px; margin: 0 0 12px; }
.site-footer .col a { display: block; color: var(--cream); opacity: 0.8; font-size: 13.5px; margin-bottom: 8px; }
.site-footer .col a:hover { opacity: 1; color: var(--white); }
.site-footer .bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12.5px; opacity: 0.6; text-align: center; }

/* ---------- Post em destaque (home) ---------- */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 8px 0 12px;
}
.featured-post .thumb {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  line-height: 1.3;
  min-height: 240px;
}
.featured-post .body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured-post .eyebrow-sm { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.featured-post h2 { font-family: var(--font-display); font-size: 26px; margin: 0; color: var(--navy); line-height: 1.25; }
.featured-post p { color: var(--ink-muted); margin: 0; }
.featured-post .meta { font-size: 13px; color: var(--ink-muted); }
.featured-post .btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  color: var(--navy); font-weight: 600; font-size: 14.5px; margin-top: 4px;
}
.featured-post .btn-ghost:hover { color: var(--accent-dark); }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding-top: 8px; }
.section-heading h2 { font-family: var(--font-display); color: var(--navy); font-size: 22px; margin: 0; }
.section-heading a { font-size: 13.5px; font-weight: 600; }

/* ---------- Newsletter / captura de e-book ---------- */
.newsletter-block {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin: 12px 0 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
}
.newsletter-block h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 10px; color: var(--white); }
.newsletter-block p { color: var(--cream); opacity: 0.88; margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(245,245,239,0.6); }
.newsletter-form button {
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.newsletter-fineprint { font-size: 12px; opacity: 0.6; margin-top: 10px; }

/* ---------- Pagina Sobre ---------- */
.about-hero { background: var(--navy); color: var(--white); padding: 56px 0; }
.about-hero .grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.about-hero .portrait {
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 56px; color: var(--white);
  border: 4px solid rgba(255,255,255,0.2);
}
.about-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; }
.about-hero p.role { color: var(--cream); opacity: 0.85; font-size: 15px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.about-body { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.about-body p { margin: 0 0 18px; font-size: 17px; }
.about-body .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 32px 0 40px; }
.about-body .stat { background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.about-body .stat strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--navy); }
.about-body .stat span { font-size: 13px; color: var(--ink-muted); }

/* ---------- Pagina de categoria ---------- */
.category-hero { background: var(--navy); color: var(--white); padding: 48px 0 40px; }
.category-hero .eyebrow { color: var(--cream); opacity: 0.75; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.category-hero h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); margin: 12px 0 10px; }
.category-hero p { color: var(--cream); opacity: 0.85; max-width: 640px; }

/* ---------- Paginacao ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 12px 0 60px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow);
}
.pagination a.is-current { background: var(--navy); color: var(--white); }
.pagination a.is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.error-page .code { font-family: var(--font-display); font-size: 96px; font-weight: 700; color: var(--navy); line-height: 1; }
.error-page h1 { font-family: var(--font-display); font-size: 26px; color: var(--navy); margin: 16px 0 10px; }
.error-page p { color: var(--ink-muted); max-width: 440px; margin: 0 auto 26px; }

@media (max-width: 860px) {
  .featured-post { grid-template-columns: 1fr; }
  .newsletter-block { grid-template-columns: 1fr; }
  .about-hero .grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .article-body { padding: 32px 18px 12px; }
}
