/* ════════════════════════════════════════════════════════════════
   TomTicket Blog — Theme CSS
   Design System: Light Slate (alinhado ao site principal)
   Versão: 1.0.0
════════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── CSS VARIABLES / DESIGN TOKENS ── */
:root {
  /* Light Slate — tema oficial das páginas internas */
  --bg-page:   #f1f3f9;
  --bg-subtle: #e6e9f4;
  --bg-card:   #f8f9fc;
  --bg-raised: #eceef8;
  --bg-white:  #ffffff;

  /* Textos */
  --text-primary:   #1a2040;
  --text-body:      #2c3556;
  --text-muted:     #636e96;
  --text-light:     #8e97bb;

  /* Bordas */
  --border:        rgba(100,115,185,.13);
  --border-strong: rgba(100,115,185,.22);

  /* Marca — Roxo primário */
  --p100:#ede9fe; --p200:#ddd6fe;
  --p400:#a78bfa; --p500:#8b5cf6;
  --p600:#7c3aed; --p700:#6d28d9; --p800:#5b21b6;

  /* Marca — Roxo TomTicket (identidade) */
  --brand: #9216D8;
  --brand-dark: #7a0fb8;

  /* Marca — Laranja secundário */
  --o400:#fb923c; --o500:#f97316; --o600:#ea580c;
  --orange: #FB6E51;

  /* Neutrals */
  --n0:#f8f9fc;  --n50:#f1f3f9; --n100:#e6e9f4;
  --n200:#d9dded;--n300:#c4c9de;--n400:#8e97bb;
  --n500:#636e96;--n600:#424d72;--n700:#2c3556;--n800:#1a2040;

  /* Categorias do blog */
  --cat-helpdesk:   #7c3aed;
  --cat-chamados:   #2563eb;
  --cat-atendimento:#0891b2;
  --cat-whatsapp:   #25D366;
  --cat-chat:       #0284c7;
  --cat-base:       #d97706;
  --cat-ia:         #9216D8;
  --cat-sucesso:    #059669;

  /* Layout */
  --max-w:    1160px;
  --nav-h:    64px;
  --sidebar-w: 320px;
  --article-w: 800px;

  /* Raios */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(20,30,80,.06);
  --shadow-sm: 0 1px 4px rgba(20,30,80,.08), 0 1px 2px rgba(20,30,80,.05);
  --shadow-md: 0 4px 8px rgba(20,30,80,.09), 0 2px 4px rgba(20,30,80,.05);
  --shadow-lg: 0 10px 28px rgba(20,30,80,.11), 0 4px 10px rgba(20,30,80,.06);
  --shadow-xl: 0 20px 50px rgba(20,30,80,.13), 0 8px 20px rgba(20,30,80,.07);

  /* Transições */
  --ease-out: cubic-bezier(.22,1,.36,1);
}

/* ── UTILITIES ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp    { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes floatY    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes pulse2    { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes slideIn   { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes shimmer   { from{background-position:-200% 0} to{background-position:200% 0} }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ════════════════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(241,243,249,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.elevated {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-logo img { height: 28px; width: auto; }
.nav-logo-sep { color: var(--n300); font-weight: 300; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
}
.nav-menu a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .375rem .75rem;
  border-radius: var(--r-md);
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: var(--text-primary); background: var(--bg-raised); }
.nav-menu a.current { color: var(--brand); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-btn-login {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .375rem .875rem;
  border-radius: var(--r-full);
  transition: color .2s;
}
.nav-btn-login:hover { color: var(--text-primary); }
.nav-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: .5rem 1.125rem;
  border-radius: var(--r-full);
  box-shadow: 0 2px 10px rgba(146,22,216,.3);
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.nav-btn-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(146,22,216,.4);
}
/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.75rem 1.5rem;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-body);
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav-cta {
  margin-top: 1rem;
  display: flex;
  gap: .75rem;
  flex-direction: column;
}
.mobile-nav-cta .nav-btn-cta { justify-content: center; padding: .75rem; }

/* ════════════════════════════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════════════════════════════ */
.breadcrumb-wrap {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: .625rem 0;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--text-muted); transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--n300); }
.breadcrumb-current { color: var(--text-primary); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════
   SEÇÃO COMMONS
════════════════════════════════════════════════════════════════ */
.sec-header { margin-bottom: 3.5rem; }
.sec-header.center { text-align: center; }
.sec-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .75rem;
}
.sec-h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--text-primary);
}
.sec-h2 strong { color: var(--brand); font-weight: 800; }
.sec-sub {
  margin-top: .875rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}
.sec-header.center .sec-sub { margin: .875rem auto 0; }

/* ════════════════════════════════════════════════════════════════
   CARDS GENÉRICOS
════════════════════════════════════════════════════════════════ */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.post-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-subtle);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-out);
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-subtle) 100%);
}
.post-card-thumb-placeholder svg { opacity: .3; }
.post-card-cat {
  position: absolute;
  top: .875rem;
  left: .875rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: .25rem .625rem;
  border-radius: var(--r-full);
}
.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .72rem;
  color: var(--text-light);
}
.post-card-meta-sep { color: var(--n300); }
.post-card-title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.post-card:hover .post-card-title { color: var(--brand); }
.post-card-excerpt {
  font-size: .825rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .75rem;
  padding-top: .875rem;
  border-top: 1px solid var(--border);
}
.post-card-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.post-card-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.post-card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .625rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.post-card-read-more {
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: .25rem;
  transition: gap .2s;
}
.post-card:hover .post-card-read-more { gap: .5rem; }

/* Post card featured (hero) */
.post-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  background: var(--bg-white);
  transition: transform .25s, box-shadow .25s;
}
.post-card-featured:hover { transform: translateY(-3px); box-shadow: 0 28px 64px rgba(20,30,80,.16); }
.post-card-featured .post-card-thumb {
  aspect-ratio: unset;
  height: 100%;
}
.post-card-featured .post-card-body {
  padding: 2.5rem;
  justify-content: center;
  gap: .875rem;
}
.post-card-featured .post-card-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  -webkit-line-clamp: 4;
}
.post-card-featured .post-card-excerpt {
  font-size: .925rem;
  -webkit-line-clamp: 4;
}
.post-card-featured .post-card-read-more {
  font-size: .875rem;
  padding: .625rem 1.25rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-full);
  align-self: flex-start;
  margin-top: .5rem;
  box-shadow: 0 3px 12px rgba(146,22,216,.3);
  transition: background .2s, transform .15s, gap .2s;
}
.post-card-featured:hover .post-card-read-more {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════
   CATEGORY BADGE / TAG
════════════════════════════════════════════════════════════════ */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: var(--r-full);
}
.cat-badge-helpdesk   { color: var(--cat-helpdesk);   background: rgba(124,58,237,.1);  }
.cat-badge-chamados   { color: var(--cat-chamados);   background: rgba(37,99,235,.1);   }
.cat-badge-atendimento{ color: var(--cat-atendimento);background: rgba(8,145,178,.1);   }
.cat-badge-whatsapp   { color: var(--cat-whatsapp);   background: rgba(37,211,102,.12); }
.cat-badge-chat       { color: var(--cat-chat);       background: rgba(2,132,199,.1);   }
.cat-badge-base       { color: var(--cat-base);       background: rgba(217,119,6,.1);   }
.cat-badge-ia         { color: var(--cat-ia);         background: rgba(146,22,216,.1);  }
.cat-badge-sucesso    { color: var(--cat-sucesso);     background: rgba(5,150,105,.1);   }
.cat-badge-default    { color: var(--brand);           background: var(--p100);          }

/* ════════════════════════════════════════════════════════════════
   HOME — HERO PRINCIPAL
════════════════════════════════════════════════════════════════ */
.blog-hero {
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 80% 40%, rgba(146,22,216,.055) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 10% 80%, rgba(251,110,81,.045) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(146,22,216,.08);
  padding: .375rem .875rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(146,22,216,.15);
  margin-bottom: 1.25rem;
}
.blog-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.blog-hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}

/* ── Featured Post Hero ── */
.blog-hero-featured {
  margin-top: 2.5rem;
}

/* ════════════════════════════════════════════════════════════════
   HOME — DESTAQUES (3 cards)
════════════════════════════════════════════════════════════════ */
.featured-sec { padding: 4rem 0; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}

/* ════════════════════════════════════════════════════════════════
   HOME — BLOCOS DE CATEGORIA
════════════════════════════════════════════════════════════════ */
.categories-sec {
  padding: 4rem 0;
  background: var(--bg-subtle);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
}
.cat-block {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
}
.cat-block:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-block-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.cat-block-name {
  font-size: .875rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
.cat-block-count {
  font-size: .72rem;
  color: var(--text-light);
}

/* ════════════════════════════════════════════════════════════════
   HOME — CONTEÚDOS RECENTES
════════════════════════════════════════════════════════════════ */
.recent-sec { padding: 5rem 0; }
.recent-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 3rem;
  align-items: start;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ── Sidebar ── */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.75rem; }
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.sidebar-widget-header {
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sidebar-widget-body { padding: 1.25rem 1.375rem; }

/* Widget — CTA produto */
.sidebar-cta {
  background: linear-gradient(135deg, var(--brand) 0%, #6d28d9 100%);
  color: #fff;
  border: none;
}
.sidebar-cta .sidebar-widget-header {
  border-bottom-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
}
.sidebar-cta .sidebar-widget-body { padding: 1.5rem; }
.sidebar-cta-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin-bottom: .625rem;
  color: #fff;
}
.sidebar-cta-sub {
  font-size: .825rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.sidebar-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #fff;
  color: var(--brand);
  font-size: .875rem;
  font-weight: 700;
  padding: .75rem 1rem;
  border-radius: var(--r-full);
  transition: background .2s, transform .15s;
}
.sidebar-cta-btn:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.sidebar-cta-btn-ghost {
  display: block;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  padding: .625rem 1rem;
  margin-top: .5rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-full);
  transition: background .2s;
}
.sidebar-cta-btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Widget — Posts populares */
.sidebar-post-list { display: flex; flex-direction: column; gap: .875rem; }
.sidebar-post-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-post-item:last-child { padding-bottom: 0; border-bottom: none; }
.sidebar-post-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg-subtle);
}
.sidebar-post-content { flex: 1; min-width: 0; }
.sidebar-post-cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .25rem;
}
.sidebar-post-title {
  font-size: .825rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.015em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.sidebar-post-item:hover .sidebar-post-title { color: var(--brand); }
.sidebar-post-meta { font-size: .68rem; color: var(--text-light); margin-top: .25rem; }

/* Widget — Categorias (sidebar) */
.sidebar-cats { display: flex; flex-direction: column; gap: .375rem; }
.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  border-radius: var(--r-md);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-body);
  transition: background .2s, color .2s;
}
.sidebar-cat-link:hover { background: var(--bg-raised); color: var(--brand); }
.sidebar-cat-count {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-subtle);
  padding: .1rem .5rem;
  border-radius: var(--r-full);
}

/* ════════════════════════════════════════════════════════════════
   HOME — NEWSLETTER
════════════════════════════════════════════════════════════════ */
.newsletter-sec {
  padding: 5rem 0;
  background: var(--text-primary);
  position: relative;
  overflow: hidden;
}
.newsletter-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(146,22,216,.25) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 10% 50%, rgba(251,110,81,.15) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.newsletter-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: .875rem;
}
.newsletter-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: .875rem;
}
.newsletter-title strong { color: var(--orange); }
.newsletter-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-input-wrap { position: relative; }
.newsletter-input {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  padding: .875rem 1.375rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-input:focus {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.15);
}
.newsletter-btn {
  background: var(--orange);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  padding: .875rem 2rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background .2s, transform .15s;
  border: none;
}
.newsletter-btn:hover { background: #ea5a3c; transform: translateY(-1px); }
.newsletter-privacy {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}
.newsletter-privacy a { color: rgba(255,255,255,.6); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   PAGINAÇÃO
════════════════════════════════════════════════════════════════ */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: 3rem 0 1rem;
  flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all .2s;
}
.blog-pagination a:hover { color: var(--brand); border-color: var(--brand); background: var(--p100); }
.blog-pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.blog-pagination .dots { border: none; background: none; }
.blog-pagination .prev,
.blog-pagination .next { width: auto; padding: 0 1rem; gap: .375rem; }

/* ════════════════════════════════════════════════════════════════
   PÁGINA DE ARTIGO — HERO
════════════════════════════════════════════════════════════════ */
.article-hero {
  padding: 3.5rem 0 0;
  background: var(--bg-page);
}
.article-hero-inner { max-width: 860px; margin: 0 auto; }
.article-hero-cats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.article-hero-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.article-hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 700px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.article-hero-author {
  display: flex;
  align-items: center;
  gap: .625rem;
}
.article-hero-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.article-hero-author-info { display: flex; flex-direction: column; }
.article-hero-author-name {
  font-size: .825rem;
  font-weight: 700;
  color: var(--text-primary);
}
.article-hero-author-role {
  font-size: .72rem;
  color: var(--text-light);
}
.article-hero-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text-light);
  margin-left: auto;
  flex-wrap: wrap;
}
.article-hero-details span {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.article-share {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.article-share-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.article-share-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--p100); }
.article-featured-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16/7;
}
.article-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════════════════════════════════
   PÁGINA DE ARTIGO — CONTEÚDO
════════════════════════════════════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 4rem;
  align-items: start;
  padding: 0 0 5rem;
}
.article-content {
  min-width: 0;
  max-width: var(--article-w);
}

/* Tipografia do artigo */
.article-body { font-size: 1.0625rem; line-height: 1.78; color: var(--text-body); }
.article-body h2 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-top: .5rem;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text-primary);
  margin: 2rem 0 .75rem;
}
.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 .5rem;
}
.article-body p { margin-bottom: 1.5rem; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brand-dark); }
.article-body ul,
.article-body ol {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.5rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .5rem; }
.article-body strong { font-weight: 700; color: var(--text-primary); }
.article-body em { font-style: italic; }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--brand);
  background: var(--p100);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-primary);
  font-style: italic;
  font-size: 1.05rem;
}
.article-body code {
  font-family: 'DM Mono', monospace;
  font-size: .875em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: .125em .4em;
  border-radius: var(--r-sm);
  color: var(--brand);
}
.article-body pre {
  background: var(--text-primary);
  color: #e2e8f0;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
  font-family: 'DM Mono', monospace;
  font-size: .875rem;
  line-height: 1.65;
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.article-body img {
  border-radius: var(--r-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: .9rem;
}
.article-body th {
  background: var(--bg-raised);
  font-weight: 700;
  color: var(--text-primary);
  padding: .75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-strong);
}
.article-body td {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
.article-body tr:nth-child(even) td { background: var(--bg-card); }

/* ── Sumário automático ── */
.toc-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 3rem;
}
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.375rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.toc-header-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.toc-toggle {
  font-size: .75rem;
  color: var(--text-light);
  transition: transform .2s;
}
.toc-widget.collapsed .toc-toggle { transform: rotate(-90deg); }
.toc-body { padding: 1.25rem 1.375rem; }
.toc-list { display: flex; flex-direction: column; gap: .375rem; }
.toc-link {
  display: block;
  font-size: .825rem;
  color: var(--text-muted);
  padding: .3rem .5rem;
  border-radius: var(--r-sm);
  transition: background .2s, color .2s;
  line-height: 1.4;
}
.toc-link:hover { background: var(--bg-raised); color: var(--brand); }
.toc-link.active { color: var(--brand); font-weight: 600; background: var(--p100); }
.toc-link-sub { padding-left: 1.25rem; font-size: .78rem; }

/* ── Callouts / Observações ── */
.callout {
  display: flex;
  gap: .875rem;
  padding: 1.25rem 1.375rem;
  border-radius: var(--r-lg);
  margin: 1.75rem 0;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; margin-top: .1rem; }
.callout-body { flex: 1; }
.callout-title { font-size: .875rem; font-weight: 700; margin-bottom: .375rem; }
.callout-text  { font-size: .875rem; line-height: 1.65; margin: 0; }

.callout-info    { background: rgba(37,99,235,.07);  border-left: 3px solid #2563eb; }
.callout-info    .callout-title { color: #1d4ed8; }
.callout-tip     { background: rgba(5,150,105,.07);  border-left: 3px solid #059669; }
.callout-tip     .callout-title { color: #065f46; }
.callout-warning { background: rgba(217,119,6,.08);  border-left: 3px solid #d97706; }
.callout-warning .callout-title { color: #92400e; }
.callout-brand   { background: rgba(146,22,216,.07); border-left: 3px solid var(--brand); }
.callout-brand   .callout-title { color: var(--brand); }

/* ── CTA Inline ── */
.article-cta-inline {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--brand) 0%, #6d28d9 100%);
  border-radius: var(--r-xl);
  color: #fff;
}
.article-cta-inline-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}
.article-cta-inline-sub {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.article-cta-inline-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.article-cta-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 700;
  padding: .625rem 1.375rem;
  border-radius: var(--r-full);
  transition: transform .15s, background .2s;
}
.article-cta-inline-btn.primary {
  background: #fff;
  color: var(--brand);
}
.article-cta-inline-btn.primary:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.article-cta-inline-btn.ghost {
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
}
.article-cta-inline-btn.ghost:hover { background: rgba(255,255,255,.1); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; margin: 1.75rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-white);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  cursor: pointer;
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-raised); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--text-muted);
  transition: transform .25s, background .2s, border-color .2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out), padding .35s;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: .125rem 1.25rem 1.25rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-answer-inner p { margin: 0; }

/* ── Artigos relacionados (ao final) ── */
.article-related {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}

/* ── Box do autor ── */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin: 3rem 0;
}
.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.author-box-content { flex: 1; }
.author-box-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .375rem;
}
.author-box-name { font-size: 1.0625rem; font-weight: 800; color: var(--text-primary); margin-bottom: .375rem; }
.author-box-role { font-size: .8rem; color: var(--text-light); margin-bottom: .625rem; }
.author-box-bio  { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* ── Comentários ── */
.comments-area { padding: 3rem 0 5rem; }
.comments-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: -.03em;
}
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.375rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-raised);
  flex-shrink: 0;
  overflow: hidden;
}
.comment-content { flex: 1; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: .5rem;
}
.comment-author { font-size: .875rem; font-weight: 700; color: var(--text-primary); }
.comment-date   { font-size: .72rem; color: var(--text-light); }
.comment-text   { font-size: .875rem; color: var(--text-body); line-height: 1.65; }
.comment-reply  { font-size: .72rem; font-weight: 700; color: var(--brand); margin-top: .5rem; cursor: pointer; }

/* Formulário de comentário */
.comment-form { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2rem; }
.comment-form-title { font-size: 1.0625rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1.5rem; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .375rem; }
.form-field label { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.form-field input,
.form-field textarea {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  background: var(--bg-white);
}
.form-field textarea { min-height: 120px; }
.comment-form-row { margin-bottom: 1rem; }
.comment-submit {
  background: var(--brand);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  font-family: inherit;
  padding: .75rem 1.75rem;
  border-radius: var(--r-full);
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
}
.comment-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════════
   PÁGINAS DE CATEGORIA / ARCHIVE
════════════════════════════════════════════════════════════════ */
.archive-hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.archive-hero-inner { max-width: 700px; }
.archive-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.archive-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.archive-hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 560px;
}
.archive-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.archive-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.archive-stat-label { font-size: .75rem; color: var(--text-light); margin-top: .1rem; }

.archive-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.5rem;
}
.archive-filters {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .375rem .875rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--p100);
}
.filter-label {
  font-size: .78rem;
  color: var(--text-light);
  margin-right: .25rem;
}

/* ════════════════════════════════════════════════════════════════
   BUSCA
════════════════════════════════════════════════════════════════ */
.search-hero { padding: 4rem 0 3rem; }
.search-form-wrap {
  max-width: 640px;
  position: relative;
}
.search-input {
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-full);
  padding: 1rem 4rem 1rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(146,22,216,.12); }
.search-btn {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.search-btn:hover { background: var(--brand-dark); }
.search-count {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.search-count strong { color: var(--text-primary); }

/* ════════════════════════════════════════════════════════════════
   404
════════════════════════════════════════════════════════════════ */
.not-found-sec {
  padding: 7rem 0;
  text-align: center;
}
.not-found-code {
  font-size: 8rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}
.not-found-title { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); margin-bottom: .875rem; }
.not-found-sub  { font-size: 1rem; color: var(--text-muted); max-width: 420px; margin: 0 auto 2.5rem; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.footer-brand-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: .875rem;
  max-width: 260px;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: #059669;
  background: rgba(5,150,105,.08);
  padding: .3rem .75rem;
  border-radius: var(--r-full);
  margin-top: 1rem;
}
.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  animation: pulse2 2s ease-in-out infinite;
}
.footer-addr { font-size: .72rem; color: var(--text-light); line-height: 1.6; margin-top: .875rem; }
.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.125rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem 0;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy  { font-size: .78rem; color: var(--text-light); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: .78rem; color: var(--text-light); transition: color .2s; }
.footer-legal a:hover { color: var(--brand); }
.footer-social { display: flex; gap: .5rem; }
.footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.footer-social-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVIDADE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-btn-login { display: none; }
  .nav-burger { display: flex; }

  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .post-card-thumb { aspect-ratio: 16/7; height: auto; }

  .featured-grid { grid-template-columns: repeat(2,1fr); }
  .categories-grid { grid-template-columns: repeat(3,1fr); }

  .recent-layout,
  .archive-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }

  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }

  .newsletter-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .article-related-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 1.125rem; }

  .blog-hero { padding: 2.5rem 0 2rem; }
  .post-card-featured .post-card-body { padding: 1.5rem; }
  .post-card-featured .post-card-title { font-size: 1.375rem; }

  .featured-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .recent-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }

  .article-hero { padding: 2rem 0 0; }
  .article-hero-title { font-size: 1.75rem; }
  .article-hero-sub   { font-size: 1rem; }
  .article-hero-details { margin-left: 0; width: 100%; }

  .author-box { flex-direction: column; }
  .comment-form-grid { grid-template-columns: 1fr; }

  .article-related-grid { grid-template-columns: 1fr; }

  .newsletter-sec { padding: 3.5rem 0; }

  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .not-found-code { font-size: 5rem; }
}
