/* Blog CSS — Hipercontroll */
/* /blog/assets/blog.css */

:root {
  --cor-navy: #1A4B7A;
  --cor-navy-escuro: #0F2E4D;
  --cor-offwhite: #F8F6F2;
  --cor-branco: #FFFFFF;
  --cor-verde: #4A7A45;
  --cor-verde-hover: #3D6838;
  --cor-texto: #1C1C1C;
  --cor-texto-corpo: #2D2D2D;
  --cor-texto-sec: #5A6470;
  --cor-fundo-blog: #FAFBFC;
  --cor-fundo-box: #F0F7EE;
  --cor-fundo-cta-box: #FFF8F0;
  --cor-borda: #E8EAED;
  --cor-borda-destaque: #1A4B7A;
  --font-titulo: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-corpo: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
}

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

body {
  font-family: var(--font-corpo);
  color: var(--cor-texto-corpo);
  background: var(--cor-fundo-blog);
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: var(--cor-navy-escuro);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header a { text-decoration: none; }
.site-header img { height: 36px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a {
  color: rgba(255,255,255,0.75);
  font-family: var(--font-titulo);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover { color: #fff; }
.header-cta {
  background: var(--cor-verde);
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--cor-verde-hover); }

/* Breadcrumb */
.breadcrumb {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-family: var(--font-titulo);
  font-size: 14px;
  color: var(--cor-texto-sec);
}
.breadcrumb a { color: var(--cor-verde); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Article Hero */
.article-hero {
  background: linear-gradient(135deg, var(--cor-navy-escuro), var(--cor-navy));
  padding: 64px 24px 48px;
  text-align: center;
}
.article-hero h1 {
  font-family: var(--font-titulo);
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.2;
}
.article-hero .excerpt {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 24px;
}
.article-hero .meta {
  font-family: var(--font-titulo);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Article Content */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}
.article-content h2 {
  font-family: var(--font-titulo);
  color: var(--cor-navy);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-content h3 {
  font-family: var(--font-titulo);
  color: var(--cor-texto);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: var(--cor-texto); }
.article-content a { color: var(--cor-verde); text-decoration: underline; text-underline-offset: 2px; }

/* Info boxes */
.info-box {
  background: var(--cor-fundo-box);
  border-left: 4px solid var(--cor-verde);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.info-box strong { color: var(--cor-verde); }

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  font-family: var(--font-titulo);
}
.article-content th {
  background: var(--cor-navy);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}
.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--cor-borda);
}
.article-content tr:hover td { background: var(--cor-fundo-box); }

/* CTA Box */
.article-cta {
  background: var(--cor-fundo-cta-box);
  border: 1px solid var(--cor-borda);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 2.5rem 0;
}
.article-cta h3 {
  font-family: var(--font-titulo);
  color: var(--cor-navy);
  margin-bottom: 8px;
}
.article-cta p { color: var(--cor-texto-sec); margin-bottom: 16px; }
.article-cta a {
  display: inline-block;
  background: var(--cor-verde);
  color: #fff;
  font-family: var(--font-titulo);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.article-cta a:hover { background: var(--cor-verde-hover); }

/* FAQ */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 { font-family: var(--font-titulo); color: var(--cor-navy); }
.faq-section details {
  border: 1px solid var(--cor-borda);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-section summary {
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 1rem;
  color: var(--cor-texto);
  background: var(--cor-branco);
  list-style: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; float: right; color: var(--cor-verde); font-size: 1.2rem; }
.faq-section details[open] summary::after { content: "\2212"; }
.faq-section details p, .faq-section details div { padding: 0 18px 14px; }

/* Footer */
.site-footer {
  background: var(--cor-navy-escuro);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-titulo);
  font-size: 0.85rem;
}
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}
.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.whatsapp-float a:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Mobile */
@media (max-width: 768px) {
  body { font-size: 17px; }
  .site-header nav { display: none; }
  .article-hero { padding: 48px 16px 36px; }
  .article-hero h1 { font-size: 1.5rem; }
  .article-content { padding: 32px 16px; }
  .article-content h2 { font-size: 1.35rem; }
  .article-content table { font-size: 0.85rem; }
  .article-content th, .article-content td { padding: 8px 10px; }
}
