/*
Theme Name: Gonçalves Blog Child
Theme URI: https://goncalvescontabil.com.br/
Description: Tema filho da Gonçalves Contabilidade. Replica o layout do site HTML estático nas páginas do blog WordPress (home, single, archive). Carrega assets/styles.css e assets/layout.js da raiz do site.
Author: Agência PHN / Pablo Negri
Author URI: https://goncalvescontabil.com.br/
Template: kadence
Version: 1.2.0
Text Domain: goncalves-blog-child
*/

/* =============================================================
   IDENTIDADE VISUAL — Gonçalves Contabilidade
   Paleta: #16163f navy · #2B6CB0 azul · #C6962A dourado · #F7FAFC bg
   Fontes: Playfair Display (serif) · DM Sans (sans)
============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --navy: #16163f;
  --blue: #2B6CB0;
  --blue-dark: #215387;
  --gold: #C6962A;
  --gold-dark: #a97c22;
  --bg: #F7FAFC;
  --text: #1A202C;
  --text-soft: #4A5568;
  --border: #EDF2F7;
}

/* ------- Reset básico apenas no escopo do post single ------- */
.single-post .site-content,
.single-post .entry-content,
.single-post .wp-site-blocks {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* =============================================================
   HERO DO POST
============================================================= */
.gc-post-hero {
  background: linear-gradient(135deg, #16163f 0%, #1a2a4a 100%);
  color: #fff;
  padding: 72px 24px 96px;
  position: relative;
  overflow: hidden;
}
.gc-post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.gc-post-hero-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.gc-breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.65);
  margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px;
}
.gc-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .2s; }
.gc-breadcrumb a:hover { color: var(--gold); }
.gc-breadcrumb .sep { color: rgba(255,255,255,0.4); }

.gc-post-hero .gc-cat-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold);
  padding: 6px 14px; border-radius: 2px; margin-bottom: 22px;
  text-decoration: none;
}
.gc-post-hero .gc-cat-badge:hover { background: var(--gold); color: #fff; }
.gc-post-hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 46px; line-height: 1.15; color: #fff;
  max-width: 880px; margin: 0 0 20px;
}
.gc-post-hero h1 em { font-style: italic; color: var(--gold); }
.gc-post-hero .gc-lead {
  font-size: 17px; color: #EDF2F7; line-height: 1.7;
  max-width: 780px; margin-bottom: 28px;
}
.gc-post-meta {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  font-size: 14px; color: rgba(255,255,255,0.75);
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15);
}
.gc-post-meta-item { display: flex; align-items: center; gap: 8px; }
.gc-post-meta-item svg { flex-shrink: 0; color: var(--gold); }
.gc-post-meta-item strong { color: #fff; font-weight: 600; }

/* =============================================================
   LAYOUT DUAS COLUNAS
============================================================= */
.gc-post-wrap {
  max-width: 1280px; margin: 0 auto; padding: 72px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  /* IMPORTANTE: align-items: start permite que a sidebar seja menor que o conteúdo
     e o sticky funcione corretamente dentro da grid */
  align-items: start;
}

/* ------ COLUNA ESQUERDA: conteúdo ------ */
.gc-post-main .gc-featured-image {
  border-radius: 10px; overflow: hidden; margin-bottom: 32px;
  box-shadow: 0 10px 40px rgba(22,22,63,0.1);
}
.gc-post-main .gc-featured-image img { width: 100%; height: auto; display: block; }

.gc-post-content {
  font-size: 17px; color: #2D3748; line-height: 1.85;
}
.gc-post-content > *:first-child { margin-top: 0; }
.gc-post-content p { margin: 0 0 22px; }
.gc-post-content h2 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 30px; color: var(--navy); line-height: 1.25;
  margin: 44px 0 16px;
}
.gc-post-content h3 {
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  font-size: 22px; color: var(--navy); margin: 32px 0 12px;
}
.gc-post-content h4 {
  font-size: 18px; font-weight: 700; color: var(--navy); margin: 24px 0 10px;
}
.gc-post-content a { color: var(--blue); text-decoration: underline; font-weight: 500; }
.gc-post-content a:hover { color: var(--blue-dark); }
.gc-post-content strong { color: var(--navy); font-weight: 700; }
.gc-post-content ul, .gc-post-content ol { margin: 0 0 24px 22px; }
.gc-post-content li { margin-bottom: 10px; }
.gc-post-content ul li { list-style: disc; }
.gc-post-content ol li { list-style: decimal; }
.gc-post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 22px; margin: 28px 0;
  font-style: italic; color: var(--text-soft); font-size: 18px;
}
.gc-post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.gc-post-content figure { margin: 28px 0; }
.gc-post-content figcaption { font-size: 14px; color: var(--text-soft); margin-top: 8px; text-align: center; }
.gc-post-content pre {
  background: var(--navy); color: #fff; padding: 20px 24px;
  border-radius: 8px; overflow-x: auto; font-size: 14px;
  margin: 24px 0;
}
.gc-post-content hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.gc-post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.gc-post-content th, .gc-post-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.gc-post-content th { background: var(--bg); font-weight: 700; color: var(--navy); }

/* Tags do post */
.gc-post-tags {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.gc-post-tags .label { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .6px; margin-right: 6px; }
.gc-post-tags a {
  font-size: 13px; color: var(--text-soft);
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px;
  text-decoration: none; transition: all .2s;
}
.gc-post-tags a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Compartilhar */
.gc-share {
  margin-top: 28px; padding: 20px 24px;
  background: var(--bg); border-radius: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.gc-share .label { font-size: 14px; font-weight: 700; color: var(--navy); }
.gc-share a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); border: 1px solid var(--border);
  transition: all .2s;
}
.gc-share a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }

/* Navegação entre posts */
.gc-post-nav {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.gc-post-nav a {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 22px; text-decoration: none; transition: all .2s;
  display: flex; flex-direction: column; gap: 4px;
}
.gc-post-nav a:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,108,176,.1); }
.gc-post-nav .dir { font-size: 12px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.gc-post-nav .title { font-size: 15.5px; color: var(--navy); font-weight: 600; line-height: 1.4; }
.gc-post-nav .next { text-align: right; }

/* =============================================================
   COLUNA DIREITA — SIDEBAR
============================================================= */
.gc-sidebar {
  position: sticky;
  /* Considera altura aproximada da navbar fixa (~84px) + folga */
  top: 100px;
  /* align-self: start permite o sticky funcionar dentro da grid pai */
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* Se a sidebar for mais alta que o viewport, deixa rolar dentro dela */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  /* Esconde a barra de scroll visualmente, mas mantém o scroll funcional */
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 22, 63, 0.2) transparent;
}
.gc-sidebar::-webkit-scrollbar { width: 6px; }
.gc-sidebar::-webkit-scrollbar-track { background: transparent; }
.gc-sidebar::-webkit-scrollbar-thumb { background: rgba(22, 22, 63, 0.2); border-radius: 3px; }
.gc-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(22, 22, 63, 0.4); }
.gc-widget {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 26px;
}
.gc-widget-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 20px; color: var(--navy); line-height: 1.25;
  margin: 0 0 6px;
}
.gc-widget-divider { display: block; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 18px; }

/* Widget: Redes sociais */
.gc-widget-social p { font-size: 14.5px; color: var(--text-soft); margin: 0 0 18px; line-height: 1.55; }
.gc-widget-social .social-list { display: flex; gap: 10px; flex-wrap: wrap; }
.gc-widget-social .social-list a {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--bg); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s; text-decoration: none;
}
.gc-widget-social .social-list a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Widget: Leia mais */
.gc-widget-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.gc-widget-related li { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.gc-widget-related li:last-child { border-bottom: none; padding-bottom: 0; }
.gc-widget-related a { display: flex; gap: 12px; text-decoration: none; }
.gc-widget-related .thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--bg);
}
.gc-widget-related .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-widget-related .info { flex: 1; min-width: 0; }
.gc-widget-related .cat {
  font-size: 11px; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: .8px; display: block; margin-bottom: 4px;
}
.gc-widget-related .title {
  font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.gc-widget-related a:hover .title { color: var(--blue); }
.gc-widget-related .empty { font-size: 14px; color: var(--text-soft); }

/* Widget: Fale com especialista (CTA) */
.gc-widget-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 100%);
  color: #fff; border: none;
}
.gc-widget-cta .gc-widget-title { color: #fff; }
.gc-widget-cta p { font-size: 14.5px; color: rgba(255,255,255,0.82); line-height: 1.6; margin-bottom: 18px; }
.gc-widget-cta .gc-cta-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.gc-widget-cta .gc-cta-list li {
  font-size: 13.5px; color: rgba(255,255,255,0.85); padding-left: 24px; position: relative;
}
.gc-widget-cta .gc-cta-list li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}
.gc-widget-cta .gc-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--gold); color: #fff; font-size: 15px; font-weight: 700;
  padding: 14px 20px; border-radius: 6px; transition: all .2s;
  margin-bottom: 10px;
}
.gc-widget-cta .gc-btn:hover { background: var(--gold-dark); transform: scale(1.02); }
.gc-widget-cta .gc-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #fff; font-size: 14.5px; font-weight: 700;
  padding: 12px 18px; border-radius: 6px; text-decoration: none; transition: all .2s;
}
.gc-widget-cta .gc-btn-wa:hover { background: #1fa855; transform: scale(1.02); }
.gc-widget-cta .gc-contact-info {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6;
}
.gc-widget-cta .gc-contact-info strong { color: #fff; display: block; margin-bottom: 2px; font-size: 13.5px; }

/* =============================================================
   CTA FINAL (abaixo do post, full-width)
============================================================= */
.gc-post-cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 100%);
  color: #fff; padding: 72px 24px; text-align: center;
}
.gc-post-cta-band h2 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 32px; line-height: 1.25; color: #fff; margin: 0 0 12px;
}
.gc-post-cta-band p {
  font-size: 16.5px; color: rgba(255,255,255,0.78);
  max-width: 620px; margin: 0 auto 24px; line-height: 1.7;
}
.gc-post-cta-band .btns { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.gc-post-cta-band .gc-btn {
  background: var(--gold); color: #fff; font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 4px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: all .2s;
}
.gc-post-cta-band .gc-btn:hover { background: var(--gold-dark); transform: scale(1.02); }
.gc-post-cta-band .gc-btn-outline {
  background: transparent; color: #fff; border: 2px solid #fff; padding: 12px 28px;
}
.gc-post-cta-band .gc-btn-outline:hover { background: #fff; color: var(--navy); }

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
  .gc-post-wrap { grid-template-columns: 1fr; gap: 48px; }
  .gc-sidebar { position: static; order: 2; }
  .gc-post-hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  .gc-post-hero { padding: 56px 20px 72px; }
  .gc-post-hero h1 { font-size: 28px; }
  .gc-post-hero .gc-lead { font-size: 15.5px; }
  .gc-post-wrap { padding: 48px 20px; gap: 40px; }
  .gc-post-content { font-size: 16px; }
  .gc-post-content h2 { font-size: 24px; }
  .gc-post-content h3 { font-size: 19px; }
  .gc-widget { padding: 22px 20px; }
  .gc-post-nav { grid-template-columns: 1fr; }
  .gc-post-cta-band { padding: 56px 20px; }
  .gc-post-cta-band h2 { font-size: 24px; }
}
