/* =====================================================
   BIM³ — Blog editorial
   Stack tipográfico: aller (mesma fonte do site oficial bim3.com.br)
   ===================================================== */

:root {
  --ink-1: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #6b6b6b;
  --ink-4: #9a9a9a;

  --paper-1: #faf9f5;
  --paper-2: #ffffff;
  --paper-3: #f3f1eb;
  --paper-border: #e5e2d8;

  --cat-forecast: #1e3a5f;
  --cat-analise:  #8b3a2c;
  --cat-estudo:   #2d5f3f;
  --cat-paper:    #6b4423;

  --highlight: #f4b942;
  --accent: #1e3a5f;

  --serif-display: 'aller', 'Helvetica Neue', Arial, sans-serif;
  --serif-body:    'aller', 'Helvetica Neue', Arial, sans-serif;
  --sans-ui:       'aller', 'Helvetica Neue', Arial, sans-serif;

  --max-content: 1200px;
  --max-body:    680px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-1);
  background: var(--paper-1);
}

img { max-width: 100%; height: auto; display: block; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  border-bottom: 1px solid var(--paper-border);
  background: var(--paper-2);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background-color: rgba(240,239,241,0.94);
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
  min-height: 140px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.site-logo {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  text-decoration: none;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.site-logo em {
  font-style: italic;
  font-weight: 700;
  color: var(--cat-forecast);
}
.site-logo img {
  height: 76px; width: auto; display: block;
}
.site-nav {
  display: flex; gap: 0;
  font-family: 'aller', 'Lato', var(--sans-ui);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 20px;
}
.site-nav a {
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: normal;
  padding: 10px 20px;
  border-radius: 0;
  transition: background-color .25s ease, color .25s ease;
}
.site-nav a:hover {
  background-color: #AA68FA;
  color: #ffffff;
}
.site-nav a.active {
  background-color: #AA68FA;
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: none; border: 0;
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header-inner { padding: 14px 20px; min-height: 80px; }
  .site-logo img { height: 56px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--paper-border);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* =====================================================
   HERO DA HOME
   ===================================================== */
.home-hero {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 80px 32px 40px;
}
.home-eyebrow {
  font-family: var(--sans-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cat-forecast);
  margin-bottom: 24px;
}
.home-title {
  font-family: var(--serif-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  margin: 0 0 28px;
  max-width: 900px;
}
.home-title em { font-style: normal; color: var(--cat-forecast); }
.home-subtitle {
  font-family: var(--serif-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0;
}

@media (max-width: 768px) {
  .home-hero { padding: 48px 20px 32px; }
}

/* =====================================================
   FEATURED POST (destaque)
   ===================================================== */
.featured-post {
  max-width: var(--max-content);
  margin: 24px auto 56px;
  padding: 0 32px;
}
.featured-post-link {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.featured-post-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
}
.featured-post-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.featured-post-link:hover .featured-post-image img { transform: scale(1.03); }

.featured-post-meta {
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-analise);
  margin-bottom: 16px;
}
.featured-post-meta .dot { color: var(--ink-4); margin: 0 8px; }
.featured-post h2 {
  font-family: var(--serif-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin: 0 0 18px;
}
.featured-post h2 em { font-style: normal; color: var(--cat-analise); }
.featured-post-excerpt {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.featured-post-author {
  font-family: var(--sans-ui);
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .featured-post-link {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .featured-post { margin: 16px auto 56px; padding: 0 20px; }
}

/* =====================================================
   GRID DE POSTS
   ===================================================== */
.posts-section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px 80px;
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--paper-border);
  padding-top: 32px;
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--serif-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-link {
  font-family: var(--sans-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}
.post-card { text-decoration: none; color: inherit; }
.post-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
  background: var(--paper-3);
}
.post-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-meta {
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.post-card-meta.cat-forecast { color: var(--cat-forecast); }
.post-card-meta.cat-analise  { color: var(--cat-analise); }
.post-card-meta.cat-estudo   { color: var(--cat-estudo); }
.post-card-meta.cat-paper    { color: var(--cat-paper); }
.post-card-meta .dot { color: var(--ink-4); margin: 0 8px; }

.post-card-title {
  font-family: var(--serif-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 0 0 12px;
}
.post-card-excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; gap: 40px; }
  .posts-section { padding: 0 20px 56px; }
}

/* =====================================================
   POST INDIVIDUAL — HEADER
   ===================================================== */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  text-decoration: none;
  padding: 32px 0 24px;
  transition: color .15s;
}
.back-link:hover { color: var(--ink-1); }

.post-header {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px 40px;
}
.post-eyebrow {
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.post-eyebrow.cat-forecast { color: var(--cat-forecast); }
.post-eyebrow.cat-analise  { color: var(--cat-analise); }
.post-eyebrow.cat-estudo   { color: var(--cat-estudo); }
.post-eyebrow.cat-paper    { color: var(--cat-paper); }
.post-eyebrow .dot { color: var(--ink-4); margin: 0 10px; font-weight: 400; }

.post-title {
  font-family: var(--serif-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-1);
  margin: 0 0 24px;
}
.post-title em { font-style: normal; color: var(--cat-analise); }

.post-subtitle {
  font-family: var(--serif-body);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 32px;
  font-weight: 300;
}

.post-meta-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--sans-ui);
  font-size: 14px;
  color: var(--ink-3);
  padding-top: 24px;
  border-top: 1px solid var(--paper-border);
}
.post-meta-row strong { color: var(--ink-1); font-weight: 700; }

.post-cover {
  max-width: 1080px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.post-cover img {
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
}

/* =====================================================
   POST — LAYOUT GRID (body + aside)
   ===================================================== */
.post-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 1000px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .post-header, .post-cover { padding: 0 20px; }
  .post-header { padding-bottom: 28px; }
}

/* =====================================================
   POST — CORPO (tipografia editorial)
   ===================================================== */
.post-body {
  max-width: var(--max-body);
  min-width: 0;
  font-family: var(--serif-body);
}
.post-body > p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-size: 4.5em;
  float: left;
  line-height: 0.9;
  margin: 6px 10px 0 -2px;
  font-weight: 700;
  color: var(--ink-1);
}
.post-body .lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 300;
  margin: 0 0 32px;
}
.post-body .lead::first-letter { /* lead não tem drop cap */
  font-family: inherit;
  font-size: inherit;
  float: none;
  margin: 0;
}
.post-body p {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-1);
}
.post-body h2 {
  font-family: var(--serif-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 56px 0 20px;
  color: var(--ink-1);
  scroll-margin-top: 150px;
}
.post-body h3 {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--ink-1);
}
.post-body strong { font-weight: 700; color: var(--ink-1); }
.post-body em { font-style: italic; }
.post-body a {
  color: var(--cat-forecast);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Listas do corpo */
.post-body ul, .post-body ol {
  margin: 22px 0;
  padding-left: 0;
  list-style: none;
}
.post-body li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-1);
}
.post-body ul:not(.check-list) > li::before {
  content: "";
  position: absolute; left: 4px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4);
}
.post-body ul.check-list > li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--cat-estudo);
  font-weight: 700;
}
.post-body ol.paper-list { counter-reset: item; }
.post-body ol.paper-list > li { padding-left: 42px; min-height: 28px; }
.post-body ol.paper-list > li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cat-forecast); color: #fff;
  border-radius: 50%;
  font-family: var(--sans-ui); font-size: 14px; font-weight: 700;
}
.callout ul.check-list { margin: 14px 0 0; }
.callout ul.check-list > li { font-size: 16px; margin-bottom: 8px; color: var(--ink-2); }
.post-body .post-source {
  font-family: var(--sans-ui);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 10px 0 0;
}

/* Pull quote */
.post-body blockquote {
  border: 0;
  margin: 48px -40px;
  padding: 0 40px;
  font-family: var(--serif-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  position: relative;
}
.post-body blockquote::before {
  content: "“";
  position: absolute;
  left: -8px; top: -20px;
  font-size: 80px;
  color: var(--highlight);
  font-style: normal;
  line-height: 1;
}

/* Callout */
.callout {
  background: var(--paper-3);
  border-left: 3px solid var(--highlight);
  padding: 24px 28px;
  margin: 40px 0;
  border-radius: 0 4px 4px 0;
}
.callout-title {
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-paper);
  margin: 0 0 10px;
}
.callout p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-1);
}
.callout p + p { margin-top: 12px; }

/* Number grid */
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin: 44px 0;
}
.stat {
  position: relative;
  text-align: left;
  background: linear-gradient(180deg, var(--paper-2), var(--paper-1));
  border: 1px solid var(--paper-border);
  border-radius: 14px;
  padding: 24px 22px 22px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
  opacity: 0.9;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 20, 30, 0.08);
}
.stat-value {
  font-family: var(--serif-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.02;
  margin-bottom: 10px;
}
.stat-label {
  font-family: var(--sans-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.45;
}

/* Tabela editorial */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: var(--sans-ui);
  font-size: 15px;
  border: 1px solid var(--paper-border);
  border-radius: 12px;
  overflow: hidden;
}
.post-body thead th {
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-body tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--paper-border);
  color: var(--ink-2);
}
.post-body tbody tr:nth-child(even) { background: rgba(20, 20, 30, 0.025); }
.post-body tbody tr:last-child td { border-bottom: 0; }
.post-body tbody tr:hover { background: rgba(30, 58, 95, 0.05); }
.post-body table caption {
  text-align: left;
  font-family: var(--sans-ui);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
  caption-side: bottom;
  font-style: italic;
}

/* Acento nos títulos de seção */
.post-body h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}

/* Checkmarks em círculo */
.post-body ul.check-list > li { padding-left: 34px; }
.post-body ul.check-list > li::before {
  content: "\2713";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cat-estudo);
  color: #fff;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
}
.callout ul.check-list > li::before { width: 19px; height: 19px; top: 1px; }

/* Badges de status (heat map: Positivo / Neutro / Negativo) */
.status-badge {
  display: inline-block;
  min-width: 80px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--sans-ui);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}
.status-pos { background: rgba(45, 95, 63, 0.14); color: var(--cat-estudo); }
.status-neu { background: rgba(154, 107, 0, 0.16); color: #8a6000; }
.status-neg { background: rgba(139, 58, 44, 0.14); color: var(--cat-analise); }
.post-body td.status-cell { text-align: center; }

/* Tabelas com rolagem horizontal (responsivo) */
.table-scroll {
  overflow-x: auto;
  margin: 32px 0;
  -webkit-overflow-scrolling: touch;
}
.table-scroll > table { margin: 0; }
@media (max-width: 768px) {
  .post-body table { font-size: 13px; }
  .post-body thead th { padding: 11px 12px; font-size: 11px; }
  .post-body tbody td { padding: 10px 12px; }
  .status-badge { min-width: 64px; padding: 3px 8px; font-size: 11px; }
}
.post-topbar { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

@media (max-width: 768px) {
  .post-body { font-size: 17px; }
  .post-body p { font-size: 17px; }
  .post-body .lead { font-size: 19px; }
  .post-body h2 { font-size: 26px; margin: 40px 0 16px; }
  .post-body h3 { font-size: 19px; }
  .post-body blockquote { margin: 32px 0; padding: 0 16px; font-size: 22px; }
  .stat-value { font-size: 32px; }
}

/* =====================================================
   POST — ASIDE
   ===================================================== */
.post-aside {
  position: sticky;
  top: 88px;
  font-family: var(--sans-ui);
}
.aside-card {
  background: white;
  border: 1px solid var(--paper-border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
}
.aside-card h4 {
  font-family: var(--sans-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.aside-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%;
  justify-content: center;
  background: var(--ink-1);
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--sans-ui);
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: #000; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%;
  justify-content: center;
  background: transparent;
  color: var(--ink-1);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--sans-ui);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--paper-border);
  cursor: pointer;
  margin-top: 8px;
  transition: border-color .15s;
}
.btn-secondary:hover { border-color: var(--ink-1); }

.toc-list {
  list-style: none;
  padding: 0; margin: 0;
}
.toc-list li {
  border-left: 2px solid var(--paper-border);
  padding: 6px 0 6px 14px;
  font-size: 13px;
  line-height: 1.4;
}
.toc-list a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color .15s;
}
.toc-list a:hover { color: var(--ink-1); }

@media (max-width: 1000px) {
  .post-aside { position: static; }
}

/* =====================================================
   POST FOOTER (author + related)
   ===================================================== */
.post-footer {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 32px 80px;
}
.author-box {
  display: flex; gap: 20px; align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--paper-border);
  border-bottom: 1px solid var(--paper-border);
  max-width: 880px;
  margin: 0 auto 64px;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cat-forecast), var(--cat-analise));
  color: white;
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name {
  font-family: var(--sans-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 4px;
}
.author-bio {
  font-family: var(--serif-body);
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}

.related-title {
  font-family: var(--serif-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-footer { padding: 0 20px 56px; }
}

/* =====================================================
   FOOTER DO SITE
   ===================================================== */
.site-footer {
  background: #000;
  color: #eee;
  padding: 60px 0 28px;
  margin-top: 80px;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 56px;
}
.footer-logo { flex-shrink: 0; display: block; }
.footer-logo img { height: 166px; width: auto; display: block; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-nav a {
  font-family: var(--sans-ui);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: #eee;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-nav a:hover,
.footer-nav a.active { color: #55F2D8; }
.footer-social { margin-left: auto; }
.footer-social h4 {
  font-family: var(--sans-ui);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.1px;
  text-transform: uppercase;
  color: #eee;
  margin: 0 0 18px;
}
.footer-social-icons { display: flex; gap: 16px; }
.footer-social-icons a {
  color: #eee;
  display: inline-flex;
  transition: color .2s ease;
}
.footer-social-icons a:hover { color: #55F2D8; }
.footer-social-icons svg { width: 22px; height: 22px; display: block; }
.footer-bottom {
  text-align: center;
  margin-top: 44px;
  padding: 0 32px;
  font-family: var(--sans-ui);
  font-size: 14px;
  color: #eee;
}

@media (max-width: 768px) {
  .site-footer { padding: 48px 0 24px; }
  .site-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .footer-logo img { height: 130px; }
  .footer-nav { align-items: center; }
  .footer-social { margin-left: 0; }
  .footer-social-icons { justify-content: center; }
}

/* =====================================================
   POLIMENTO PREMIUM
   ===================================================== */

/* Reading progress bar (só em posts) */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #a855f7 0%, #c084fc 100%);
  z-index: 100;
  transition: width .1s ease-out;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* Selection com cor da marca */
::selection { background: #a855f7; color: #ffffff; }
::-moz-selection { background: #a855f7; color: #ffffff; }

/* Smooth scrolling para âncoras */
html { scroll-behavior: smooth; }

/* Reveal animations (scroll-in) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1),
              transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card image hover refinement: overlay sutil escurece a imagem */
.post-card-image, .featured-post-image {
  position: relative;
  isolation: isolate;
}
.post-card-image::after,
.featured-post-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .35s ease;
  pointer-events: none;
  z-index: 1;
}
.post-card:hover .post-card-image::after,
.featured-post-link:hover .featured-post-image::after {
  background: rgba(0, 0, 0, 0.08);
}

/* Animação stagger inicial do hero da home */
.home-hero .home-eyebrow,
.home-hero .home-title,
.home-hero .home-subtitle {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn .9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.home-hero .home-eyebrow  { animation-delay: 0.05s; }
.home-hero .home-title    { animation-delay: 0.20s; }
.home-hero .home-subtitle { animation-delay: 0.35s; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Respeito a prefers-reduced-motion (acessibilidade) */
@media (prefers-reduced-motion: reduce) {
  .reveal, .home-hero .home-eyebrow, .home-hero .home-title, .home-hero .home-subtitle {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Print stylesheet — artigos imprimíveis ficam limpos */
@media print {
  .site-header, .site-footer, .post-aside, .post-footer,
  .menu-toggle, #reading-progress, .back-link {
    display: none !important;
  }
  body { background: white; color: black; font-size: 11pt; line-height: 1.5; }
  .post-layout { display: block; padding: 0; max-width: 100%; gap: 0; }
  .post-body { max-width: 100%; font-size: 11pt; }
  .post-body p { font-size: 11pt; }
  .post-body h2 { font-size: 18pt; page-break-after: avoid; margin-top: 24pt; }
  .post-body h3 { font-size: 14pt; page-break-after: avoid; }
  .post-body blockquote,
  .post-body .number-grid,
  .post-body .callout,
  .post-body table { page-break-inside: avoid; }
  .post-body blockquote::before { display: none; }
  a { color: black; text-decoration: underline; }
  .post-title { font-size: 28pt; line-height: 1.15; }
  .post-subtitle { font-size: 13pt; }
  .post-cover { padding: 0; margin-bottom: 24pt; }
  .post-cover img { max-height: 200pt; object-fit: cover; }
  .post-meta-row { font-size: 9pt; color: #666; }
  .number-grid { border: 1px solid #ccc; padding: 12pt; }
  .stat-value { font-size: 22pt; }
}
