/*
Theme Name: Mãos Pequenas
Theme URI: https://larmaospequenas.org.br
Author: Comunicação Encantada
Description: Tema oficial do Lar Assistencial Mãos Pequenas — acolhimento, amor e transformação.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: maos-pequenas
*/

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ─── Paleta oficial extraída da logo ─────────────────── */
  --azul:        #006098;  /* azul Mãos Pequenas — pixel dominante da logo */
  --azul-escuro: #004E7C;  /* hover / variação mais escura */
  --azul-claro:  #2F8FCB;  /* destaque / botões secundários */
  --azul-pale:   #E6F1F8;  /* fundos suaves */
  --amarelo:     #F8F010;  /* amarelo Mãos Pequenas — limão das estrelas */
  --amarelo-d:   #D8D000;  /* hover do amarelo */
  --amarelo-pale:#FFFCE0;  /* fundo suave amarelo */

  --branco:      #FFFFFF;
  --cinza-claro: #F7F8FA;
  --cinza:       #6B7280;
  --texto:       #1A202C;
  --texto-med:   #4A5568;
  --radius:      12px;
  --shadow:      0 4px 20px rgba(0,96,152,0.12);
  --shadow-lg:   0 8px 40px rgba(0,96,152,0.18);
  --transition:  0.3s ease;
  --font-main:   'Open Sans', 'Segoe UI', Arial, sans-serif;
  --font-head:   'Nunito', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--texto);
  line-height: 1.7;
  background: var(--branco);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--azul); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--azul-claro); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--texto);
  letter-spacing: -0.01em;
}
/* Escala tipográfica — clara e responsiva */
h1 { font-size: clamp(2.1rem, 4.4vw, 3rem);   font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
h5 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-med); }

ul { list-style: none; }

/* ===========================
   UTILITÁRIOS
=========================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 64px 0; }   /* era 80 — mais respirável e ritmo melhor */
.section-sm { padding: 40px 0; }
.section-lg { padding: 96px 0; }

/* Ritmo intencional de fundos por seção (zebra) */
.section-bg-white { background: var(--branco); }
.section-bg-light { background: var(--cinza-claro); }
.section-bg-pale  { background: var(--azul-pale); }

/* ===========================
   SISTEMA UNIFICADO DE CARDS
=========================== */
.how-card,
.help-card,
.blog-card,
.testimonial-card,
.doc-card,
.parceiro-logo {
  background: var(--branco);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,96,152,0.08);
  border: 1px solid rgba(0,96,152,0.06);
  transition: transform 0.32s cubic-bezier(.2,.7,.3,1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.how-card:hover,
.help-card:hover,
.blog-card:hover,
.testimonial-card:hover,
.doc-card:hover,
.parceiro-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,96,152,0.16);
  border-color: rgba(0,96,152,0.16);
}
.text-center { text-align: center; }
.text-white  { color: var(--branco) !important; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--amarelo);
  color: var(--texto);
  border-color: var(--amarelo);
}
.btn-primary:hover {
  background: var(--amarelo-d);
  border-color: var(--amarelo-d);
  color: var(--texto);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248,240,16,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--branco);
  border-color: var(--branco);
}
.btn-secondary:hover {
  background: var(--branco);
  color: var(--azul);
}
.btn-outline {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
}
.btn-outline:hover {
  background: var(--azul);
  color: var(--branco);
}
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--azul);
  background: var(--azul-pale);
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.section-title {
  /* já usa h2 token, mas centraliza max-width quando dentro de text-center */
  margin-bottom: 14px;
}
.text-center .section-title { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-desc {
  font-size: 1.06rem;
  color: var(--texto-med);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ===========================
   HEADER / NAV
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--branco);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo,
.custom-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img,
.custom-logo {
  height: 60px !important;
  width: auto !important;
  max-width: 260px;
  display: block;
  object-fit: contain;
}
.site-logo-footer img {
  height: 110px;
  width: auto;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
/* Mantém fallback de texto caso a imagem não carregue */
.site-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo-text strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--azul); }
.site-logo-text span   { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cinza); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;            /* nunca quebra em desktop */
  white-space: nowrap;          /* itens em 1 linha */
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.93rem;           /* compacto para caber */
  color: var(--texto-med);
  transition: var(--transition);
  line-height: 1.3;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--azul);
  background: var(--azul-pale);
}
.nav-cta {
  background: var(--amarelo) !important;
  color: var(--texto) !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  margin-left: 6px;
  box-shadow: 0 2px 12px rgba(248,240,16,0.4);
}
.nav-cta:hover {
  background: var(--amarelo-d) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(248,240,16,0.55);
}
/* Em telas pequenas (entre tablet e desktop), reduz mais */
@media (max-width: 1180px) {
  .main-nav a       { font-size: 0.86rem; padding: 7px 9px; }
  .nav-cta          { padding: 9px 16px !important; }
  .site-logo img,
  .custom-logo      { height: 48px !important; max-width: 200px; }
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
=========================== */
.hero {
  background: linear-gradient(135deg, #004E7C 0%, #006098 50%, #2F8FCB 100%);
  color: var(--branco);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: rgba(248,240,16,0.08);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(248,240,16,0.2);
  border: 1px solid rgba(248,240,16,0.4);
  color: var(--amarelo);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--branco);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 span { color: var(--amarelo); }
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
/* Hero IMAGE — quando não há foto, mostra padrão decorativo com logo, não placeholder */
.hero-image-placeholder {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(248,240,16,0.18), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.05));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), var(--shadow-lg);
}
.hero-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/logo-vertical-web.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 55% auto;
  opacity: 0.45;
  filter: brightness(1.1) contrast(0.95);
}
.hero-image-placeholder .icon,
.hero-image-placeholder p { display: none; }  /* esconde o "Adicione foto" */

/* ===========================
   IMPACTO (NÚMEROS)
=========================== */
.impact {
  background: var(--azul);
  color: var(--branco);
  padding: 60px 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.impact-item { padding: 16px; }
.impact-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--amarelo);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.impact-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===========================
   QUEM SOMOS (HOME)
=========================== */
.about-home { background: var(--branco); }
.about-home-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-home-image {
  position: relative;
}
.about-home-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
/* About-home image placeholder: decorativo, não "vazio" */
.about-home-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0,96,152,0.10), transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(248,240,16,0.18), transparent 60%),
    var(--azul-pale);
  box-shadow: var(--shadow-lg);
}
.about-home-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/logo-vertical-web.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60% auto;
  opacity: 0.5;
}
.about-home-image-placeholder > * { display: none; } /* esconde texto interno */
.years-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--amarelo);
  color: var(--texto);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  box-shadow: var(--shadow);
  z-index: 1;
}
.years-badge strong { font-size: 2rem; line-height: 1; }
.years-badge span   { font-size: 0.7rem; text-align: center; }

.about-home-content .section-label { margin-bottom: 12px; }
.about-home-content .section-title { margin-bottom: 16px; }
.about-home-content p { color: var(--texto-med); margin-bottom: 20px; }

.values-list { margin: 32px 0; display: flex; flex-direction: column; gap: 14px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-icon {
  width: 42px; height: 42px;
  min-width: 42px;
  background: var(--azul-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.value-item strong { display: block; font-weight: 700; margin-bottom: 2px; }
.value-item p { color: var(--texto-med); font-size: 0.9rem; margin: 0; }

/* ===========================
   COMO FUNCIONAMOS
=========================== */
.how-works { background: var(--cinza-claro); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
/* Campanhas: 4 cards (Agasalho, Natal, Cestas, NF Paulista) — 4 colunas */
.campanhas .how-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .campanhas .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .campanhas .how-grid { grid-template-columns: 1fr; }
}
.how-card {
  background: var(--branco);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.how-number {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  background: var(--amarelo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.how-icon {
  font-size: 2.8rem;
  margin: 12px 0 18px;
}
.how-icon:empty { display: none; }   /* esconde se vazio (após remoção de emoji) */
.how-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.how-card p  { color: var(--texto-med); font-size: 0.95rem; }
.how-card h3:first-child { margin-top: 4px; }   /* sem ícone, traz title pra cima */

/* ===========================
   COMO AJUDAR
=========================== */
.help-section { background: var(--branco); }
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.help-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.help-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.help-card-header {
  padding: 40px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* Cabeçalhos dos cards "Apoie/Doações" — paleta da marca rotativa a cada 3 cards
   1º, 4º, 7º... → azul-escuro → azul
   2º, 5º, 8º... → azul → azul-claro
   3º, 6º, 9º... → amarelo (com texto escuro pro contraste)
*/
.help-card:nth-child(3n+1) .help-card-header { background: linear-gradient(135deg, var(--azul-escuro), var(--azul)); }
.help-card:nth-child(3n+2) .help-card-header { background: linear-gradient(135deg, var(--azul), var(--azul-claro)); }
.help-card:nth-child(3n+3) .help-card-header { background: linear-gradient(135deg, var(--amarelo-d), var(--amarelo)); }
.help-card:nth-child(3n+3) .help-card-header h3 { color: var(--texto); }
.help-card:nth-child(3n+3) .help-card-icon     { color: var(--texto); }
.help-card-icon { font-size: 2.5rem; }
.help-card-icon:empty { display: none; }
.value-icon:empty { display: none; }
.contact-icon:empty { display: none; }
.donation-highlight-icon:empty { display: none; }
.doc-card-icon:empty { display: none; }
.footer-contact-icon:empty { display: none; }
.help-card-header h3 { color: var(--branco); font-size: 1.3rem; }
.help-card-body { padding: 24px 28px; }
.help-card-body p { color: var(--texto-med); margin-bottom: 20px; font-size: 0.95rem; }
.help-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.help-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--texto-med);
}
.help-list li::before {
  content: '✓';
  color: var(--azul);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===========================
   DOAÇÃO DESTAQUE
=========================== */
.donation-cta {
  background: linear-gradient(135deg, #004E7C 0%, #006098 100%);
  color: var(--branco);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donation-cta::before {
  content: '★';
  position: absolute;
  font-size: 20rem;
  opacity: 0.04;
  top: -50px; right: -50px;
  color: var(--amarelo);
}
.donation-cta h2 { color: var(--branco); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.donation-cta p  { opacity: 0.9; max-width: 560px; margin: 0 auto 40px; font-size: 1.1rem; }
.pix-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 20px 40px;
  margin-top: 32px;
}
.pix-box .label { font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.8; }
.pix-box .cnpj  { font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; font-family: monospace; }
.donation-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===========================
   DEPOIMENTOS
=========================== */
.testimonials { background: var(--cinza-claro); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--branco);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 24px;
  font-size: 4rem;
  color: var(--azul-pale);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-stars { color: var(--amarelo); font-size: 1rem; margin-bottom: 16px; }
.testimonial-text  { color: var(--texto-med); font-style: italic; margin-bottom: 20px; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--azul-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--azul);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name  { font-weight: 700; font-size: 0.95rem; }
.testimonial-role  { font-size: 0.8rem; color: var(--cinza); }

/* ===========================
   BLOG / NOTÍCIAS
=========================== */
.blog-section { background: var(--branco); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;            /* âncora para o stretched link do título */
  cursor: pointer;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card:hover h3 a { color: var(--azul); }

/* Stretched link: o <a> do <h3> cobre o card inteiro
   sem precisar aninhar <a> e sem JS. Mantém HTML semântico/acessível. */
.blog-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.blog-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* A categoria ainda pode receber clique independente (link próprio) */
.blog-card .blog-cat,
.blog-card .blog-meta { position: relative; z-index: 2; }
.blog-card-image {
  height: 200px;
  background: var(--azul-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--azul);
  background: var(--azul-pale);
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card p  { color: var(--texto-med); font-size: 0.9rem; margin-bottom: 16px; }
.blog-meta    { font-size: 0.8rem; color: var(--cinza); }

/* ===========================
   CONTATO
=========================== */
.contact-section { background: var(--cinza-claro); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { color: var(--texto-med); margin-bottom: 32px; }
.contact-items   { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: var(--azul);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}
.contact-item-text strong { display: block; font-weight: 700; margin-bottom: 2px; }
.contact-item-text span   { color: var(--texto-med); font-size: 0.95rem; }

.contact-form {
  background: var(--branco);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 24px; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--texto);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--texto);
  transition: var(--transition);
  background: var(--branco);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0,96,152,0.12);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; margin-top: 4px; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #062842;
  color: rgba(255,255,255,0.78);
  padding: 56px 0 0;
  position: relative;
}
/* Faixa amarela superior — assinatura da marca */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul-claro), var(--amarelo), var(--azul-claro));
  opacity: 0.7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .site-logo,
.footer-brand .site-logo-footer { margin-bottom: 16px; display: inline-flex; }
.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.65;
  margin-bottom: 4px;
}
.footer-social  { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: white;
  text-decoration: none;
}
.social-link:hover {
  background: var(--amarelo);
  color: var(--texto);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--branco);
  font-size: 0.92rem;
  margin-bottom: 18px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 800;
  padding-bottom: 12px;
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--amarelo);
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  transition: color 0.22s, padding 0.22s;
  text-decoration: none;
}
.footer-links a:hover { color: var(--amarelo); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-contact-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--amarelo); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ===========================
   PÁGINAS INTERNAS — HEADER UNIFICADO
   Tanto .page-hero quanto .page-header (legado) usam o mesmo design.
=========================== */
.page-hero,
.page-header {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(248,240,16,0.12), transparent 55%),
    linear-gradient(135deg, #004E7C 0%, #006098 70%);
  color: var(--branco);
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
}
.page-hero::after,
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--amarelo), transparent);
  opacity: 0.6;
}
.page-hero .breadcrumb,
.page-header .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 14px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  letter-spacing: 0.3px;
}
.page-hero .breadcrumb a,
.page-header .breadcrumb a { color: rgba(255,255,255,0.95); text-decoration: none; }
.page-hero .breadcrumb a:hover,
.page-header .breadcrumb a:hover { color: var(--amarelo); }
.page-hero h1,
.page-header h1 {
  color: var(--branco);
  margin-bottom: 12px;
}
.page-hero p,
.page-header p {
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.55;
}
/* Quando .section-label/title/desc são usados DENTRO de .page-header
   (fundo azul), forçar cores legíveis */
.page-header .section-label {
  background: rgba(255,255,255,0.15);
  color: var(--amarelo);
}
.page-header .section-title,
.page-header h1,
.page-header h2 {
  color: var(--branco);
}
.page-header .section-desc,
.page-header p {
  color: rgba(255,255,255,0.92);
  opacity: 1;  /* override de opacity:0.92 anterior */
}
.page-header .section-desc small,
.page-header p small {
  color: rgba(255,255,255,0.7) !important;
}

.page-content { padding: 64px 0; }

/* Override quando .page-header é combinado com .section (templates novos) */
.page-header.section { padding: 72px 0 60px; }

/* ===========================
   FORMULÁRIO DE VOLUNTARIADO
=========================== */
.volunteer-form-wrap { max-width: 760px; margin: 0 auto; }

/* ===========================
   RESPONSIVO
=========================== */
@media (max-width: 1024px) {
  .impact-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .hero-inner      { gap: 40px; }
}

@media (max-width: 900px) {
  /* esconde menu, ativa hamburger */
  .main-nav {
    display: none;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--branco);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
    align-items: stretch;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; font-size: 1rem; border-radius: 10px; }
  .nav-cta    { text-align: center; margin: 8px 0 0 !important; }
  .hamburger  { display: flex; }
}

@media (max-width: 768px) {
  .section     { padding: 48px 0; }
  .hero        { padding: 60px 0 50px; }
  .hero-inner  { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-buttons { justify-content: center; }
  .hero-dots    { justify-content: center; }
  .hero-image  { order: -1; }
  .hero-image-placeholder { max-width: 320px; margin: 0 auto; aspect-ratio: 4/3; }
  .about-home-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-home-image-placeholder { max-width: 460px; margin: 0 auto; }
  .how-grid,
  .help-grid,
  .testimonials-grid,
  .blog-grid,
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row,
  .form-grid   { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .page-hero,
  .page-header { padding: 56px 0 44px; }
  .contact-form { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .impact-grid  { grid-template-columns: 1fr 1fr; }
  .hero h1      { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-lg       { width: 100%; text-align: center; justify-content: center; }
  .donation-buttons { flex-direction: column; align-items: center; }
}
