/* ================================================================
   HERO HEADERS (CATEGORIAS, ARTIGOS & PÁGINAS) — COMPACTO & SLIM
   Otimizado para máxima usabilidade, leitura rápida e sem ocupar a tela inteira
   ================================================================ */
.page-hero {
  background:
    radial-gradient(ellipse 65% 70% at 75% 30%, rgba(124, 58, 237, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 55% 60% at 20% 80%, rgba(234, 88, 12, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, #09090b 0%, #150f28 50%, #1e1438 100%);
  padding: 2rem 0 1.6rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .page-hero {
    padding: 1.4rem 0 1.1rem;
  }
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 70% 50%, rgba(124, 58, 237, 0.18) 0%, transparent 60%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.page-hero .section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.4rem;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}
.page-hero h1 {
  font-size: clamp(1.4rem, 2.7vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.page-hero p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════════
   ARTICLE HEADER — COMPACTO & SLIM
   ════════════════════════════════════════════════════════════════ */
.article-header {
  background:
    radial-gradient(ellipse 65% 70% at 75% 30%, rgba(124, 58, 237, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 55% 60% at 20% 80%, rgba(234, 88, 12, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, #09090b 0%, #150f28 50%, #1e1438 100%);
  padding: 2.25rem 0 1.75rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .article-header {
    padding: 1.5rem 0 1.2rem;
  }
}
.article-header-inner {
  position: relative;
  z-index: 1;
}
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}
.article-breadcrumb a {
  color: #fb923c;
  text-decoration: none;
  font-weight: 500;
}
.article-breadcrumb a:hover {
  text-decoration: underline;
}
.article-breadcrumb span {
  opacity: 0.5;
}
.article-header h1 {
  color: #fff;
  font-size: clamp(1.4rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}
.article-header-meta a {
  color: #fb923c;
  text-decoration: none;
  font-weight: 600;
}
.article-main-container {
  padding: 2rem var(--container-px) 3.5rem var(--container-px);
}
@media (max-width: 768px) {
  .article-main-container {
    padding: 1.25rem var(--container-px) 2.5rem var(--container-px);
  }
}

.content-section { padding: 4rem 0; }
.prose-content {
  max-width: 720px;
}
.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #EEF0FF;
}
.prose-content h2:first-child { margin-top: 0; }
.prose-content p {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #6B7280;
  font-size: 1rem;
  line-height: 1.8;
}
.prose-content a { color: #6C63FF; text-decoration: underline; }

/* Sidebar card */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.sidebar-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 90px;
}
.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #EEF0FF;
}
.sidebar-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-card ul li a {
  font-size: 0.875rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.sidebar-card ul li a:hover { color: #6C63FF; }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

/* ================================================================
   BLOG PAGE
   ================================================================ */
.blog-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  padding: 3.5rem 0;
  position: relative;
}
.blog-header-inner { position: relative; z-index: 1; }
.blog-header h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.blog-header p { color: rgba(255,255,255,0.55); font-size: 1rem; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }

.blog-sidebar { position: sticky; top: 90px; }
.blog-sidebar-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.blog-sidebar-card h4 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #EEF0FF;
}
.search-input-wrap {
  display: flex;
  gap: 0.5rem;
}
.search-input-wrap input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  color: #374151;
}
.search-input-wrap input:focus { outline: none; border-color: #6C63FF; }
.search-input-wrap button {
  padding: 0.55rem 0.9rem;
  background: #6C63FF;
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.search-input-wrap button:hover { background: #5A52E8; }

.cats-sidebar { display: flex; flex-direction: column; gap: 0.4rem; }
.cat-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  transition: all 0.2s;
}
.cat-tag:hover { background: #EEF0FF; color: #6C63FF; border-color: rgba(108,99,255,0.3); }
.cat-count {
  font-size: 0.75rem;
  background: #E5E7EB;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

/* ================================================================
   CONTATO — Modern Contact Form System
   ================================================================ */
.contact-form-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-top: 4px solid #7c3aed;
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
  margin-top: 1.5rem;
  box-sizing: border-box;
}

.contact-form-card * {
  box-sizing: border-box;
}

.contact-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }
  .contact-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.contact-field label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.required-star {
  color: #ea580c;
  font-weight: 800;
}

.input-with-icon,
.select-with-icon {
  position: relative;
  width: 100%;
}

.input-with-icon .field-icon,
.select-with-icon .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
  opacity: 0.75;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.85rem 1rem 0.85rem 2.75rem !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  background-color: #f8fafc !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
  line-height: 1.5 !important;
}

.contact-field textarea {
  padding: 0.9rem 1.1rem !important;
  min-height: 140px !important;
  resize: vertical !important;
}

.contact-field select {
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  padding-right: 2.5rem !important;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 14px;
  pointer-events: none;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #7c3aed !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12) !important;
}

.contact-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.contact-privacy-notice {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  max-width: 380px;
}

.contact-privacy-notice a {
  color: #7c3aed;
  text-decoration: underline;
}

.btn-contact-submit,
.form-submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  background: linear-gradient(135deg, #7c3aed 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  padding: 0.9rem 2.2rem !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  outline: none !important;
}

.btn-contact-submit:hover,
.form-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.48) !important;
}

.btn-contact-submit:active,
.form-submit-btn:active {
  transform: translateY(0) !important;
}

@media (max-width: 640px) {
  .contact-footer-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-contact-submit,
  .form-submit-btn {
    width: 100% !important;
  }
}

/* ================================================================
   SISTEMA DE TIPOGRAFIA E ESPAÇAMENTOS PARA ARTIGOS (GOOGLE SEO / CWV)
   ================================================================ */
.article-body,
.post-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 1.0625rem !important; /* 17px */
  line-height: 1.85 !important;
  color: #334155 !important;
  word-break: break-word !important;
}

/* Parágrafos com espaçamento generoso para leitura confortável */
.article-body p,
.post-body p,
.article-body .wp-block-paragraph,
.post-body .wp-block-paragraph {
  margin-top: 0 !important;
  margin-bottom: 1.65rem !important;
  line-height: 1.85 !important;
  font-size: 1.0625rem !important;
  color: #334155 !important;
}

/* Títulos H2 e H3 com hierarquia visual e separação clara */
.article-body h2,
.post-body h2,
.article-body .wp-block-heading:is(h2),
.post-body .wp-block-heading:is(h2) {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  margin-top: 3.25rem !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.6rem !important;
  border-bottom: 2px solid rgba(124, 58, 237, 0.15) !important;
}

.article-body h2:first-of-type,
.post-body h2:first-of-type {
  margin-top: 1.5rem !important;
}

.article-body h3,
.post-body h3,
.article-body .wp-block-heading:is(h3),
.post-body .wp-block-heading:is(h3) {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem) !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0.85rem !important;
}

.article-body h4,
.post-body h4 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Listas com bullets visíveis e indentação padrão */
.article-body ul,
.post-body ul,
.article-body ol,
.post-body ol,
.article-body .wp-block-list,
.post-body .wp-block-list {
  margin-top: 0.75rem !important;
  margin-bottom: 1.75rem !important;
  padding-left: 1.75rem !important;
}

.article-body ul,
.post-body ul,
.article-body ul.wp-block-list,
.post-body ul.wp-block-list {
  list-style: disc !important;
}

.article-body ol,
.post-body ol,
.article-body ol.wp-block-list,
.post-body ol.wp-block-list {
  list-style: decimal !important;
}

.article-body li,
.post-body li {
  margin-bottom: 0.75rem !important;
  line-height: 1.75 !important;
  color: #334155 !important;
  font-size: 1.05rem !important;
}

.article-body li strong,
.post-body li strong,
.article-body p strong,
.post-body p strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Links em artigos */
.article-body a,
.post-body a {
  color: #7c3aed !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 600 !important;
  transition: color 0.15s ease !important;
}

.article-body a:hover,
.post-body a:hover {
  color: #ea580c !important;
}

/* Citações e Blockquotes */
.article-body blockquote,
.post-body blockquote {
  border-left: 4px solid #7c3aed !important;
  background: rgba(124, 58, 237, 0.05) !important;
  padding: 1.25rem 1.6rem !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 2.2rem 0 !important;
  font-style: italic !important;
  color: #1e293b !important;
}

.article-body blockquote p,
.post-body blockquote p {
  margin-bottom: 0 !important;
  font-size: 1.05rem !important;
  color: #1e293b !important;
}

/* Tabelas comparativas responsivas */
.article-body table,
.post-body table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2rem 0 !important;
  font-size: 0.95rem !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #e2e8f0 !important;
}

.article-body table th,
.post-body table th {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  text-align: left !important;
  border-bottom: 2px solid #cbd5e1 !important;
  font-size: 0.95rem !important;
}

.article-body table td,
.post-body table td {
  padding: 13px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  line-height: 1.6 !important;
  vertical-align: top !important;
}

.article-body table tr:last-child td,
.post-body table tr:last-child td {
  border-bottom: none !important;
}

.article-body table tr:nth-child(even),
.post-body table tr:nth-child(even) {
  background: #f8fafc !important;
}

.table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  margin: 2rem 0 !important;
  border-radius: 12px !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Caixas de Destaque / Callouts (Padrão Google Helpful Content) */
.callout-box {
  padding: 1.35rem 1.6rem !important;
  border-radius: 12px !important;
  margin: 2.2rem 0 !important;
  display: flex !important;
  gap: 1.1rem !important;
  align-items: flex-start !important;
  border: 1px solid transparent !important;
}

.callout-box .callout-icon {
  font-size: 1.6rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  margin-top: 0.15rem !important;
}

.callout-box .callout-content {
  flex: 1 !important;
}

.callout-box .callout-title {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.3 !important;
}

.callout-box p {
  margin: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
}

.callout-tip {
  background: rgba(124, 58, 237, 0.06) !important;
  border-color: rgba(124, 58, 237, 0.22) !important;
  border-left: 5px solid #7c3aed !important;
}
.callout-tip .callout-title { color: #5b21b6 !important; }
.callout-tip p { color: #334155 !important; }

.callout-alert {
  background: rgba(234, 88, 12, 0.07) !important;
  border-color: rgba(234, 88, 12, 0.22) !important;
  border-left: 5px solid #ea580c !important;
}
.callout-alert .callout-title { color: #9a3412 !important; }
.callout-alert p { color: #334155 !important; }

.callout-check {
  background: rgba(16, 185, 129, 0.07) !important;
  border-color: rgba(16, 185, 129, 0.22) !important;
  border-left: 5px solid #10b981 !important;
}
.callout-check .callout-title { color: #065f46 !important; }
.callout-check p { color: #334155 !important; }

/* Cartão de Checklist */
.checklist-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.5rem 1.75rem !important;
  margin: 2rem 0 !important;
}

.checklist-card h4 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.checklist-card ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.checklist-card li {
  position: relative !important;
  padding-left: 1.85rem !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.65 !important;
  font-size: 1rem !important;
}

.checklist-card li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.05rem !important;
  color: #10b981 !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
}

/* Imagens em artigos */
.article-featured-img img {
  width: 100% !important;
  height: auto !important;
  max-height: 480px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.article-body img,
.post-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  margin: 1.75rem 0 !important;
}

.article-body hr,
.post-body hr {
  border: none !important;
  border-top: 1px solid #e2e8f0 !important;
  margin: 2.75rem 0 !important;
}
