/*
Theme Name: Cantinho do Girassol
Theme URI: https://cantinhodogirassol.com.br
Author: Centro Social Luterano Cantinho do Girassol
Author URI: https://cantinhodogirassol.com.br
Description: Tema institucional do Cantinho do Girassol. Layout pronto para a página inicial (Hero, Sobre, Programas, Notícias, Galeria, Como Ajudar, Transparência, Contato) e modelo de páginas internas. Customizer com cores e logo, conteúdo pré-preenchido após ativação e patterns de blocos do Gutenberg.
Version: 1.3.4
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cantinho-girassol
Tags: nonprofit, education, one-column, custom-logo, custom-menu, custom-colors, block-patterns, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   CANTINHO DO GIRASSOL — Tema standalone (não-child)
   Uma única família tipográfica: Plus Jakarta Sans.
   Cores via Customizer → CSS custom properties (--cg-*).
   ========================================================= */

:root {
  /* fallbacks; sobrescritos pelo Customizer via <style> no <head> */
  --cg-blue:        #163A7B;
  --cg-blue-deep:   #0E2754;
  --cg-blue-soft:   #E7EDF8;
  --cg-yellow:      #FFC72C;
  --cg-yellow-soft: #FFF0BD;
  --cg-cream:       #FBF6E9;
  --cg-ink:         #0F1F3D;
  --cg-ink-soft:    #4A5775;
  --cg-ink-mute:    #7A869F;
  --cg-line:        #E6E2D2;

  --cg-radius-sm: 12px;
  --cg-radius-md: 20px;
  --cg-radius-lg: 28px;
  --cg-radius-pill: 999px;

  --cg-shadow-sm: 0 4px 12px rgba(15,31,61,.06);
  --cg-shadow-md: 0 12px 32px rgba(15,31,61,.10);
  --cg-shadow-lg: 0 18px 50px rgba(15,31,61,.14);

  --cg-container: 1240px;
}

/* ===== Reset mínimo ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ===== TIPOGRAFIA — Bricolage Grotesque (display) + Plus Jakarta Sans (texto) ===== */
body, .editor-styles-wrapper, button, input, select, textarea {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--cg-ink);
  background: var(--cg-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .wp-block-heading {
  font-family: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1, .wp-block-heading.h1, .has-h-display { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -0.03em; line-height: 1.08; }
h3 { font-size: 24px; letter-spacing: -0.02em; }
h4 { font-size: 18px; font-weight: 600; }
p  { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--cg-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cg-blue-deep); }

/* ===== LAYOUT BASE ===== */
.cg-container, .wp-block-group.alignwide > .wp-block-group,
.entry-content > *:not(.alignfull):not(.alignwide) {
  max-width: var(--cg-container);
  margin-inline: auto;
  padding-inline: 24px;
}
.alignfull { width: 100%; }
.alignwide { max-width: var(--cg-container); margin-inline: auto; }

/* ===== TOPBAR ===== */
.cg-topbar {
  background: var(--cg-blue-deep);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cg-topbar .inner {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cg-topbar a { color: rgba(255,255,255,.85); }
.cg-topbar a:hover { color: var(--cg-yellow); }
.cg-topbar .util { display: flex; gap: 22px; flex-wrap: wrap; }
.cg-topbar .social { display: flex; gap: 10px; }
.cg-topbar .social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.08); }
.cg-topbar .social a:hover { background: var(--cg-yellow); color: var(--cg-blue-deep); }

/* ===== SITE HEADER ===== */
.cg-header {
  background: #fff;
  border-bottom: 1px solid var(--cg-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.cg-header .inner {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.cg-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.cg-brand .logo { width: 48px; height: 48px; flex-shrink: 0; }
.cg-brand img.logo { object-fit: contain; }
.cg-brand .word { display: flex; flex-direction: column; line-height: 1.1; }
.cg-brand .word b { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--cg-ink); }
.cg-brand .word span { font-size: 12px; color: var(--cg-ink-mute); letter-spacing: .04em; }

.cg-nav { margin-inline-start: auto; }
.cg-nav ul, .cg-nav .menu {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.cg-nav li a, .cg-nav .menu-item a {
  font-size: 15px;
  font-weight: 500;
  color: var(--cg-ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.cg-nav li.current-menu-item > a,
.cg-nav li a:hover { color: var(--cg-blue); border-bottom-color: var(--cg-yellow); }

.cg-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cg-yellow);
  color: var(--cg-blue-deep);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--cg-radius-pill);
  text-decoration: none;
  white-space: nowrap;
}
.cg-header-cta:hover { background: var(--cg-blue); color: #fff; }
.cg-header-cta svg { width: 14px; height: 14px; }

/* mobile burger — keep extremely simple */
.cg-burger {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--cg-ink);
  padding: 6px 10px;
}

/* ===== BUTTONS ===== */
.cg-btn, .wp-block-button__link, button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--cg-radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.cg-btn-primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--cg-blue);
  color: #fff;
}
.cg-btn-primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--cg-blue-deep);
  color: #fff;
  transform: translateY(-1px);
}
.cg-btn-yellow {
  background: var(--cg-yellow);
  color: var(--cg-blue-deep);
}
.cg-btn-yellow:hover { background: var(--cg-blue-deep); color: var(--cg-yellow); transform: translateY(-1px); }
.cg-btn-ghost, .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--cg-ink) !important;
  border: 1.5px solid var(--cg-ink) !important;
}
.cg-btn-ghost:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--cg-ink) !important;
  color: var(--cg-cream) !important;
}
.cg-btn-lg { padding: 16px 28px; font-size: 16px; }
.cg-btn-sm { padding: 10px 16px; font-size: 13px; }

/* ===== EYEBROW (small uppercase tag) ===== */
.cg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cg-blue);
  margin: 0 0 14px !important;
}
.cg-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ===== HERO ===== */
.cg-hero {
  background: var(--cg-cream);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.cg-hero .grid {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.cg-hero h1 em {
  font-style: normal;
  color: var(--cg-blue);
  position: relative;
  display: inline-block;
  /* cria contexto de empilhamento — sem isso o ::after some atrás do fundo da seção */
  isolation: isolate;
  z-index: 0;
}
.cg-hero h1 em::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: 6%;
  height: 36%;
  background: var(--cg-yellow);
  z-index: -1;
  border-radius: 8px;
}
/* animação de digitação da última palavra do título */
.cg-hero h1 .cg-typed-wrap {
  display: inline;
  white-space: nowrap;
}
.cg-hero h1 .cg-typed-word { display: inline; }
.cg-hero h1 .cg-typed-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  color: var(--cg-blue);
  animation: cg-cursor-blink 1s steps(1) infinite;
}
@keyframes cg-cursor-blink {
  50% { opacity: 0; }
}
.cg-hero .lead {
  font-size: 19px;
  color: var(--cg-ink-soft);
  max-width: 50ch;
  margin: 0 0 32px;
}
.cg-hero-visual {
  aspect-ratio: 4/5;
  border-radius: var(--cg-radius-lg);
  overflow: hidden;
  background: var(--cg-blue-soft);
  box-shadow: var(--cg-shadow-md);
}
.cg-hero-visual .wp-block-image,
.cg-hero-visual figure { height: 100%; margin: 0; }
.cg-hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cg-line);
  flex-wrap: wrap;
}
.cg-hero-meta .col b {
  display: block;
  font-size: 28px;
  color: var(--cg-blue);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.cg-hero-meta .col { font-size: 14px; color: var(--cg-ink-soft); }

/* ===== TRUST STRIP ===== */
.cg-trust {
  background: #fff;
  border-block: 1px solid var(--cg-line);
  padding: 22px 0;
}
.cg-trust .inner {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  color: var(--cg-ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.cg-trust .item { display: inline-flex; align-items: center; gap: 10px; }
.cg-trust .item svg { color: var(--cg-blue); }

/* ===== SOBRE ===== */
.cg-sobre { padding: 96px 0; }
.cg-sobre .grid {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cg-sobre .visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}
.cg-sobre .visual .p {
  border-radius: var(--cg-radius-lg);
  overflow: hidden;
  background: var(--cg-blue-soft);
  aspect-ratio: 1;
}
.cg-sobre .visual .p:first-child { grid-row: span 2; aspect-ratio: 3/4; }
.cg-sobre .visual .p img { width: 100%; height: 100%; object-fit: cover; }
.cg-sobre .pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 32px;
}
.cg-sobre .pillar b {
  display: block;
  color: var(--cg-blue);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cg-sobre .pillar span { font-size: 15px; color: var(--cg-ink-soft); }

/* ===== IMPACT (stats strip) ===== */
.cg-impact {
  background: var(--cg-blue);
  color: #fff;
}
.cg-impact .grid {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cg-impact .stat {
  padding: 40px 28px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.cg-impact .stat:first-child { border-left: none; }
.cg-impact .stat .n {
  font-size: clamp(48px, 5.4vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cg-yellow);
}
.cg-impact .stat .l {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  max-width: 22ch;
}

/* ===== SECTION HEAD ===== */
.cg-sec-head {
  max-width: var(--cg-container);
  margin: 0 auto 56px;
  padding: 0 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cg-sec-head h2 { margin: 12px 0 0; max-width: 720px; }
.cg-sec-head p { color: var(--cg-ink-soft); max-width: 56ch; margin: 0; font-size: 17px; }

/* ===== PROGRAMAS ===== */
.cg-programas { padding: 96px 0; }
.cg-programas .cards {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cg-prog {
  background: #fff;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  min-height: 460px;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.cg-prog:hover { transform: translateY(-4px); box-shadow: var(--cg-shadow-lg); }
.cg-prog .num {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cg-ink-mute);
  font-weight: 600;
  margin-bottom: 18px;
}
.cg-prog .icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--cg-yellow);
  color: var(--cg-blue-deep);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.cg-prog h3 { margin: 0 0 12px; font-size: 24px; color: var(--cg-ink); }
.cg-prog p { color: var(--cg-ink-soft); font-size: 15px; flex: 1; }
.cg-prog .more {
  margin-top: 16px;
  color: var(--cg-blue);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cg-prog.featured { background: var(--cg-blue); color: #fff; border-color: var(--cg-blue); }
.cg-prog.featured h3 { color: #fff; }
.cg-prog.featured p { color: rgba(255,255,255,.85); }
.cg-prog.featured .num { color: rgba(255,255,255,.6); }
.cg-prog.featured .more { color: var(--cg-yellow); }
.cg-prog.featured .icon { background: var(--cg-yellow); color: var(--cg-blue-deep); }

/* ===== NOTÍCIAS — Query Loop styling ===== */
.cg-noticias {
  background: #fff;
  padding: 96px 0;
  border-block: 1px solid var(--cg-line);
}
.cg-noticias-grid {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
}
/* o Query Loop coloca os posts dentro de .wp-block-post-template.
   3 colunas fixas — posts extras (6, 9...) descem pra novas linhas automaticamente. */
.cg-noticias-grid .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cg-noticias-grid .wp-block-post-template > .wp-block-post { min-width: 0; }
.cg-post {
  background: var(--cg-cream);
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 14px;                 /* moldura do card — dá o padding-top da imagem */
  transition: transform .2s, box-shadow .2s;
}
.cg-post:hover { transform: translateY(-4px); box-shadow: var(--cg-shadow-lg); }
/* imagem destacada: máscara arredondada dentro do card, recorta a foto pra preencher bem */
.cg-post .wp-block-post-featured-image,
.cg-post figure.wp-block-post-featured-image {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--cg-radius-md);
  background: var(--cg-blue-soft);
}
.cg-post .wp-block-post-featured-image a,
.cg-post .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--cg-radius-md);
}
.cg-post-body { padding: 18px 8px 8px; flex: 1; display: flex; flex-direction: column; }
.cg-post .cg-meta {
  display: flex; gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cg-ink-mute);
  font-weight: 600;
  margin-bottom: 12px;
}
.cg-post .cg-meta .wp-block-post-terms a,
.cg-post .cg-meta a { color: var(--cg-blue); }
.cg-post h3, .cg-post .wp-block-post-title {
  font-size: 22px !important;
  line-height: 1.15;
  margin: 0 0 10px !important;
}
.cg-post .wp-block-post-title a { color: var(--cg-ink); }
.cg-post .wp-block-post-title a:hover { color: var(--cg-blue); }
.cg-post .wp-block-post-excerpt__excerpt { font-size: 14px; color: var(--cg-ink-soft); margin: 0 0 12px; }
.cg-post .wp-block-post-excerpt__more-link { color: var(--cg-blue); font-weight: 600; font-size: 14px; }


/* ===== GALERIA ===== */
.cg-galeria { padding: 96px 0; background: var(--cg-cream); }
.cg-galeria .wp-block-gallery {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  gap: 14px !important;
}
.cg-galeria .wp-block-gallery .wp-block-image {
  border-radius: var(--cg-radius-md);
  overflow: hidden;
  aspect-ratio: 1;
}
.cg-galeria .wp-block-gallery .wp-block-image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== AJUDAR (CTA amarelo) ===== */
.cg-ajudar {
  background: var(--cg-yellow);
  color: var(--cg-blue-deep);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cg-ajudar .grid {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.cg-ajudar h2 { font-size: clamp(36px, 5vw, 64px); margin: 16px 0 24px; }
.cg-ajudar p { font-size: 18px; max-width: 50ch; opacity: .85; }
.cg-way {
  background: rgba(15,31,61,.06);
  border: 1.5px solid rgba(15,31,61,.18);
  border-radius: var(--cg-radius-lg);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .15s, transform .15s;
}
.cg-way:hover { background: rgba(15,31,61,.12); transform: translateX(4px); color: inherit; }
.cg-way .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--cg-blue-deep);
  color: var(--cg-yellow);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cg-way b { display: block; font-size: 17px; margin-bottom: 2px; }
.cg-way span { font-size: 14px; opacity: .75; }
.cg-way .arr { margin-left: auto; opacity: .6; font-size: 18px; }

/* ===== TRANSPARÊNCIA ===== */
.cg-transparencia { padding: 96px 0; }
.cg-transparencia .grid {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cg-doc {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-md);
  background: #fff;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.cg-doc:hover { border-color: var(--cg-blue); transform: translateX(2px); color: inherit; }
.cg-doc .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cg-blue-soft);
  color: var(--cg-blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cg-doc b { display: block; font-size: 15px; }
.cg-doc span { font-size: 12px; color: var(--cg-ink-mute); }
.cg-doc .arr { margin-left: auto; color: var(--cg-blue); }

/* ===== CONTATO ===== */
.cg-contato { background: var(--cg-blue-soft); padding: 96px 0; }
.cg-contato-head,
.cg-contato-cols {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
}
.cg-contato-head { margin-bottom: 48px; }
.cg-contato-head h2 { margin: 12px 0 16px; max-width: 720px; }
.cg-contato-head .lead { color: var(--cg-ink-soft); max-width: 56ch; margin: 0; font-size: 17px; }
.cg-contato-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.cg-contato-cols .col { flex: 0 1 auto; min-width: 0; }
.cg-contato-cols .col h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.cg-contato-cols .col p { margin: 0; color: var(--cg-ink-soft); line-height: 1.5; word-break: break-word; }
.cg-contato-cols .col a { color: var(--cg-blue); text-decoration: none; }
.cg-contato-cols .col a:hover { text-decoration: underline; }

/* ===== TIMELINE ===== */
.cg-timeline { position: relative; padding-left: 32px; max-width: 720px; margin: 0 auto; }
.cg-timeline::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: var(--cg-yellow); border-radius: 2px; }
.cg-tl-item { position: relative; padding-bottom: 36px; }
.cg-tl-item:last-child { padding-bottom: 0; }
.cg-tl-item::before {
  content: ""; position: absolute; left: -25px; top: 6px;
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--cg-blue); border: 3px solid var(--cg-cream);
  box-shadow: 0 0 0 2px var(--cg-yellow);
}
.cg-tl-item .year { font-size: 12px; color: var(--cg-blue); font-weight: 600; letter-spacing: .08em; margin-bottom: 6px; }
.cg-tl-item h4 { font-size: 20px; margin: 0 0 6px; }
.cg-tl-item p { font-size: 15px; color: var(--cg-ink-soft); margin: 0; max-width: 56ch; }

/* ===== VALUE CARDS (missão/visão/valores) ===== */
.cg-value-card {
  background: #fff;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-lg);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.cg-value-card:hover { transform: translateY(-4px); box-shadow: var(--cg-shadow-lg); }
.cg-value-card .icon {
  width: 52px; height: 52px;
  border-radius: 18px;
  background: var(--cg-yellow);
  color: var(--cg-blue-deep);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.cg-value-card h3 { margin: 0 0 10px; font-size: 22px; }
.cg-value-card p { color: var(--cg-ink-soft); font-size: 15px; margin: 0; }

/* ===== INTERNAL PAGE HERO ===== */
.cg-page-hero {
  background: var(--cg-blue);
  color: #fff;
  padding: 64px 0 72px;
}
.cg-page-hero .inner { max-width: var(--cg-container); margin: 0 auto; padding: 0 24px; }
.cg-page-hero .crumbs { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.cg-page-hero .crumbs a { color: rgba(255,255,255,.85); }
.cg-page-hero h1 { color: #fff; max-width: 18ch; }
.cg-page-hero h1 em { font-style: normal; color: var(--cg-yellow); }
.cg-page-hero .lead { font-size: 19px; color: rgba(255,255,255,.85); max-width: 54ch; margin-top: 8px; }

/* ===== PÁGINAS INTERNAS — sections Gutenberg editáveis =====
   Classes utilitárias usadas pelas páginas internas montadas em
   blocos Gutenberg (Transparência, Quem somos, Contato, Como ajudar).

   Cada section alignfull tem um wrapper interno .inner que
   respeita o container do tema (1240px). Sem isso, o Gutenberg
   aplica seu próprio max-width estreito + centralizado, quebrando
   o padrão estético. */

.cg-page-section { padding: 80px 0; margin: 0 !important; }
.cg-page-section > .inner {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Variantes de fundo */
.cg-page-section.cg-bg-cream  { background: var(--cg-cream); }
.cg-page-section.cg-bg-white  { background: #fff; }
.cg-page-section.cg-bg-blue   { background: var(--cg-blue); color: #fff; }
.cg-page-section.cg-bg-yellow { background: var(--cg-yellow); color: var(--cg-blue-deep); }

/* Tipografia interna padrão */
.cg-page-section .cg-eyebrow { margin: 0 0 12px; }
.cg-page-section h2 { margin: 0 0 24px; max-width: 720px; }
.cg-page-section h3 { font-size: 22px; margin: 0 0 8px; }
.cg-page-section .wp-block-columns { gap: 32px; margin: 0 0 12px; }
.cg-page-section .wp-block-columns:last-child { margin-bottom: 0; }

/* Botões outline (estilo "documento" / link de seção) */
.cg-page-section .wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--cg-line);
  color: var(--cg-ink);
  background: #fff;
  text-align: left;
  justify-content: flex-start;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: var(--cg-radius-md);
  font-weight: 500;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cg-page-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--cg-blue);
  transform: translateX(2px);
  box-shadow: var(--cg-shadow-md);
}
.cg-page-section .wp-block-buttons.is-vertical .wp-block-button,
.cg-page-section .wp-block-buttons[style*="orientation:vertical"] .wp-block-button { width: 100%; }
.cg-page-section .wp-block-buttons.is-vertical .wp-block-button__link { width: 100%; }

/* Variação azul — fundo escuro, texto claro */
.cg-page-section.cg-bg-blue { padding: 56px 0; }
.cg-page-section.cg-bg-blue .cg-stat-num {
  color: var(--cg-yellow);
  font-size: 40px;
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.cg-page-section.cg-bg-blue .cg-stat-lbl,
.cg-page-section.cg-bg-blue p {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

/* Variação amarela — CTA final */
.cg-page-section.cg-bg-yellow.is-cta { text-align: center; padding: 64px 0; }
.cg-page-section.cg-bg-yellow.is-cta h2 { color: var(--cg-blue-deep); max-width: 28ch; margin: 0 auto 12px; }
.cg-page-section.cg-bg-yellow.is-cta p { color: var(--cg-blue-deep); margin: 0 auto 24px; font-size: 17px; max-width: 60ch; }
.cg-page-section.cg-bg-yellow.is-cta .wp-block-buttons { justify-content: center; }
.cg-page-section.cg-bg-yellow.is-cta .wp-block-button__link {
  background: var(--cg-blue);
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
}
.cg-page-section.cg-bg-yellow.is-cta .wp-block-button__link:hover { background: var(--cg-blue-deep); color: #fff; }

/* Variação "porcentagem grande" (usado em Como ajudar) — números amarelo, texto preto */
.cg-page-section.cg-bg-white .cg-stat-num {
  color: var(--cg-blue);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

/* Cards de programa — usado em /programas (3 colunas) */
.cg-page-section .wp-block-column.cg-prog-card {
  background: #fff;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-lg);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.cg-page-section .wp-block-column.cg-prog-card:hover {
  transform: translateY(-4px);
  border-color: var(--cg-blue);
  box-shadow: var(--cg-shadow-lg);
}
.cg-page-section .wp-block-column.cg-prog-card .cg-card-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cg-blue);
  font-weight: 600;
  margin: 0 0 12px;
}
.cg-page-section .wp-block-column.cg-prog-card h3 { margin: 0 0 12px; }
.cg-page-section .wp-block-column.cg-prog-card p { color: var(--cg-ink-soft); margin: 0 0 20px; flex: 1; }
.cg-page-section .wp-block-column.cg-prog-card .wp-block-buttons { margin-top: auto; }

/* Coluna do e-mail puxa o espaço central pra caber o endereço inteiro em uma linha.
   O Gutenberg gera 4 colunas com flex: 1; o e-mail tem texto longo (32 chars) e quebrava.
   flex-grow maior na coluna do e-mail estica ela ~1.6x, e as outras 3 mantêm o tamanho do conteúdo. */
.cg-page-section .wp-block-column.cg-col-email { flex-grow: 1.6; }
.cg-page-section .wp-block-column.cg-col-email p,
.cg-page-section .wp-block-column.cg-col-email a {
  word-break: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .cg-page-section .wp-block-column.cg-col-email { flex-grow: 1; }
}

/* ===== FAQ ACCORDION ===== */
.cg-faq-item {
  border-bottom: 1px solid var(--cg-line);
  padding: 18px 0;
}
.cg-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  background: none; border: 0; padding: 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--cg-ink);
  cursor: pointer;
}
.cg-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.cg-faq-item.open .cg-faq-a { max-height: 400px; }
.cg-faq-item.open .cg-faq-q .plus { transform: rotate(45deg); }
.cg-faq-q .plus { transition: transform .2s; font-size: 22px; color: var(--cg-blue); }
.cg-faq-a-inner { padding: 12px 0 0; color: var(--cg-ink-soft); font-size: 15px; }

/* ===== ROUTINE (rotina diária) ===== */
.cg-routine {
  display: grid; grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cg-line);
}
.cg-routine .time {
  font-weight: 700; color: var(--cg-blue);
  font-size: 18px; letter-spacing: -0.01em;
}
.cg-routine b { display: block; margin-bottom: 4px; }
.cg-routine p { margin: 0; color: var(--cg-ink-soft); font-size: 14px; }

/* ===== FOOTER ===== */
.cg-footer {
  background: var(--cg-ink);
  color: rgba(255,255,255,.75);
  padding: 80px 0 24px;
}
.cg-footer .top {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.cg-footer .brand { color: #fff; }
.cg-footer .brand b { color: #fff; }
.cg-footer .brand span { color: rgba(255,255,255,.6); }
.cg-footer .blurb { font-size: 14px; max-width: 32ch; margin: 16px 0; line-height: 1.6; }
.cg-footer .selos { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-footer .selo {
  font-size: 11px; padding: 4px 10px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
}
.cg-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cg-yellow);
  margin: 0 0 16px;
}
.cg-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cg-footer ul a { color: rgba(255,255,255,.85); font-size: 14px; }
.cg-footer ul a:hover { color: var(--cg-yellow); }
.cg-footer .bottom {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.cg-footer .signup { display: grid; gap: 8px; }
.cg-footer .signup input {
  padding: 12px 14px;
  border-radius: var(--cg-radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  font-size: 14px;
}
.cg-footer .signup input::placeholder { color: rgba(255,255,255,.4); }
.cg-footer .signup button {
  background: var(--cg-yellow);
  color: var(--cg-blue-deep);
  font-weight: 600;
  padding: 12px;
  border: 0; border-radius: var(--cg-radius-pill);
  cursor: pointer;
}

/* ===== SINGLE POST ===== */
.cg-article { max-width: 780px; margin: 0 auto; padding: 56px 24px; }
.cg-article .meta {
  display: flex; gap: 12px; font-size: 12px; color: var(--cg-ink-mute);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
  margin-bottom: 24px;
}
.cg-article .meta .cat { color: var(--cg-blue); }
.cg-article h1 { margin: 0 0 32px; font-size: clamp(32px, 4.4vw, 56px); }
.cg-article .hero-img {
  aspect-ratio: 16/9;
  border-radius: var(--cg-radius-lg);
  overflow: hidden;
  margin: 32px -40px;
  background: var(--cg-blue-soft);
}
.cg-article .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cg-article .body p { font-size: 18px; line-height: 1.7; color: var(--cg-ink); margin: 0 0 1.2em; }
.cg-article .body blockquote {
  border-left: 4px solid var(--cg-yellow);
  padding: 12px 0 12px 24px;
  margin: 32px 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--cg-blue-deep);
}
.cg-article .body h2 {
  margin: 48px 0 16px;
  font-size: 28px;
}
.cg-article .body figure { margin: 32px 0; }
.cg-article .body figure img { border-radius: var(--cg-radius-md); width: 100%; }
.cg-article .body figcaption {
  font-size: 13px; color: var(--cg-ink-mute);
  text-align: center; margin-top: 10px;
}

/* ===== CTA STRIP ===== */
.cg-cta-strip {
  background: var(--cg-blue);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.cg-cta-strip h2 { color: #fff; margin: 0 0 16px; }
.cg-cta-strip p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 0 auto 28px; font-size: 18px; }
.cg-cta-strip .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .cg-hero .grid,
  .cg-sobre .grid,
  .cg-ajudar .grid,
  .cg-transparencia .grid { grid-template-columns: 1fr; gap: 40px; }
  .cg-programas .cards { grid-template-columns: 1fr 1fr; }
  .cg-noticias-grid .wp-block-post-template { grid-template-columns: 1fr 1fr; }
  .cg-impact .grid { grid-template-columns: 1fr 1fr; }
  .cg-impact .stat { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .cg-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cg-nav { display: none; }
  .cg-burger { display: block; }
  .cg-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px 24px; border-top: 1px solid var(--cg-line); }
  .cg-nav.open ul { flex-direction: column; gap: 14px; }
  .cg-header-cta .label { display: none; }
  .cg-programas .cards { grid-template-columns: 1fr; }
  .cg-noticias-grid .wp-block-post-template { grid-template-columns: 1fr; }
  .cg-impact .grid { grid-template-columns: 1fr; }
  .cg-footer .top { grid-template-columns: 1fr; }
  .cg-article { padding: 40px 20px; }
  .cg-article .hero-img { margin: 24px -20px; border-radius: 0; }
  .cg-hero { padding: 56px 0 48px; }
  .cg-sobre, .cg-programas, .cg-noticias, .cg-galeria, .cg-transparencia, .cg-contato { padding: 64px 0; }
  .cg-sec-head { margin-bottom: 32px; }
  .cg-contato-cols { justify-content: flex-start; gap: 24px 32px; }
  .cg-contato-cols .col { flex: 0 1 calc(50% - 16px); }
}
