/* ============================================
   ProConfi Blog - CSS compartilhado
   Estilo corporativo industrial (inspirado em Rockwell)
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --surface: #ffffff;
  --text: #0b1220;
  --text-2: #1f2937;
  --muted: #5a6472;
  --line: #e4e8ee;
  --line-2: #eef1f5;
  --brand: #003a6b;
  --brand-2: #0074c1;
  --brand-soft: #e6eff8;
  --accent: #0074c1;
  --accent-soft: #eff6ff;
  --success: #047857;
  --shadow: 0 2px 12px rgba(16, 32, 56, 0.06);
  --shadow-lg: 0 8px 28px rgba(16, 32, 56, 0.08);
  --radius-xl: 10px;
  --radius-lg: 8px;
  --radius-md: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ========== HEADER/NAVBAR ========== */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark img { width: 32px; height: auto; display: block; }
.logo-word { color: var(--brand); font-weight: 800; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); }

.btn {
  border: none;
  border-radius: 6px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.btn-primary {
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
}
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }

.btn-soft {
  color: var(--brand);
  background: #ffffff;
  border: 1px solid var(--brand);
}
.btn-soft:hover { background: var(--brand-soft); }

.btn-outline {
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--text);
  transition: transform 0.25s ease;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ========== BLOG INDEX ========== */
.blog-hero {
  padding: 60px 0 40px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-hero p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.blog-filter {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-filter:hover { border-color: var(--brand); color: var(--brand); }
.blog-filter.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0 80px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  border-color: var(--brand-2);
  transform: translateY(-2px);
}
.blog-card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}
.blog-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.blog-card-link {
  color: var(--brand-2);
  font-weight: 700;
}

/* ========== POST (ARTIGO) ========== */
.post-hero {
  padding: 48px 0 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.post-hero .breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.post-hero .breadcrumb a {
  color: var(--brand-2);
  text-decoration: none;
}
.post-hero .breadcrumb a:hover { text-decoration: underline; }

.post-hero .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 26ch;
}
.post-hero .subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
  margin-bottom: 22px;
}
.post-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.post-meta strong { color: var(--text-2); }

.post-article {
  padding: 48px 0 60px;
}
.post-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-2);
}
.post-body h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-soft);
}
.post-body h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--text);
}
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { margin: 0 0 20px 26px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--text); }
.post-body blockquote {
  border-left: 3px solid var(--brand-2);
  background: var(--bg-soft);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-2);
}
.post-body code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Consolas, Monaco, monospace;
  font-size: 0.92em;
  color: var(--brand);
}
.post-body .callout {
  background: var(--brand-soft);
  border: 1px solid #c9dcee;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}
.post-body .callout strong { color: var(--brand); }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
}
.post-body table th {
  background: var(--brand);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}
.post-body table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
}
.post-body table tr:nth-child(even) td { background: var(--bg-soft); }

.post-cta {
  margin-top: 60px;
  padding: 40px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.post-cta h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.post-cta p { opacity: 0.9; margin-bottom: 20px; }
.post-cta .btn-primary {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}
.post-cta .btn-primary:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
}

.post-share {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.post-share a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.post-share a:hover { border-color: var(--brand); color: var(--brand); }

.post-related {
  padding: 60px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.post-related h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ========== FOOTER ========== */
footer {
  padding: 40px 0 32px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  gap: 14px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; color: var(--brand); }
.contact-link { color: var(--brand-2); text-decoration: none; font-weight: 700; }
.contact-link:hover { text-decoration: underline; }

/* ========== WHATSAPP FAB ========== */
.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 50;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 32px; height: 32px; fill: #fff; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .menu-toggle { display: inline-flex; }
  header .btn-primary { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 1rem; }
  .post-cta { padding: 28px 20px; }
}
