/* ============================================================
   200º G.E. Novo Horizonte-RJ — style.css
   Identidade: trilha (verde-pinheiro), cáqui e laranja-fogueira.
   Mobile-first. Variáveis no :root para fácil customização.
   ============================================================ */
/* Fontes (Oswald + Nunito Sans) carregadas via <link preload> no <head>
   de cada página, não por @import aqui — @import só é descoberto depois
   que o navegador baixa e parseia esse CSS inteiro, atrasando a fonte. */

:root {
  --pine: #120A8F;
  --pine-dark: #0B0660;
  --pine-rgb: 18, 10, 143;
  --trail: #06538F;
  --khaki: #E8F1FA;
  --khaki-light: #FFFAFA;
  --campfire: #FFA500;
  --campfire-dark: #FF8C00;
  --campfire-texto: #9C3D0C;
  --cream: #FEFEFE;
  --ink: #211F1A;
  --ink-soft: #54503F;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px rgba(var(--pine-rgb), 0.14);
  --shadow-soft: 0 4px 14px rgba(var(--pine-rgb), 0.08);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --container: 1140px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.01em; }

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--campfire-texto);
  margin-bottom: 10px;
}
/* Em fundos escuros (hero com foto, seções azul-marinho), o laranja-terracota
   perde contraste — usamos o laranja vivo original, que funciona bem ali. */
.hero .eyebrow, .secao--pine .eyebrow {
  color: var(--campfire);
}

.titulo-secao {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 16px;
  line-height: 1.2;
}

.secao { padding: clamp(48px, 6vw, 88px) 0; }
.secao--khaki { background: var(--khaki-light); }
.secao--pine { background: var(--pine); color: var(--khaki-light); }
.secao--pine .titulo-secao { color: var(--white); }
.secao--degrade {
  background: linear-gradient(180deg, var(--cream), var(--trail));
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }

/* Seta animada nos botões primários */
.btn--primario {
  background: var(--campfire);
  color: var(--pine);
  box-shadow: var(--shadow-soft);
  padding-right: 48px;
}
.btn--primario::after {
  content: '\2192';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  font-size: 1.1em;
  line-height: 1;
}
.btn--primario:hover {
  background: var(--campfire-dark);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.btn--primario:hover::after {
  transform: translateY(-50%) translateX(5px);
}

/* Pulso de atenção — dispara a cada 3s em botões de destaque */
@keyframes btn-pulso {
  0%   { box-shadow: 0 0 0 0 rgba(255, 180, 0, 0.55); }
  60%  { box-shadow: 0 0 0 12px rgba(255, 180, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 180, 0, 0); }
}
.btn--primario.btn--destaque {
  animation: btn-pulso 2.8s ease-out infinite;
}

.btn--secundario {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--secundario:hover {
  background: var(--white);
  color: var(--pine);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

/* Pulso de atenção para botões secundários (fundo claro/transparente) */
@keyframes btn-pulso-secundario {
  0%   { box-shadow: 0 0 0 0 rgba(var(--pine-rgb), 0.45); }
  60%  { box-shadow: 0 0 0 12px rgba(var(--pine-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--pine-rgb), 0); }
}
.btn--secundario.btn--destaque {
  animation: btn-pulso-secundario 2.8s ease-out infinite;
}
.btn--bloco { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.cabecalho {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pine);
  box-shadow: var(--shadow);
}
.cabecalho .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
}
.logo img { height: 44px; width: auto; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-principal {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--pine-dark);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.nav-principal.aberto { transform: translateX(0); }
.nav-principal ul {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
}
.nav-principal a {
  display: block;
  color: var(--khaki-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-principal a:hover, .nav-principal a:focus-visible { color: var(--campfire); }
.nav-principal .nav-cta {
  margin-top: 12px;
}
/* .nav-principal a define texto claro pra todos os links — mas o CTA em
   destaque tem fundo laranja, então precisa de texto escuro pra manter
   contraste suficiente (WCAG AA). Sem isso o botão fica quase ilegível. */
.nav-principal .nav-cta a,
.nav-principal .nav-cta a:hover,
.nav-principal .nav-cta a:focus-visible {
  color: var(--pine);
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-principal {
    position: static;
    inset: auto;
    transform: none;
    background: none;
    overflow: visible;
  }
  .nav-principal ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 28px;
  }
  .nav-principal a {
    padding: 8px 2px;
    border-bottom: none;
    font-size: 0.95rem;
  }
  .nav-principal .nav-cta { margin-top: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--pine-rgb),0.45), rgba(var(--pine-rgb),0.30));
  color: var(--white);
  padding: clamp(64px, 12vw, 130px) 0;
}
/* Foto do hero como <img> real (não background-image): permite fetchpriority
   e faz o navegador descobrir o recurso já no HTML inicial — CSS
   background-image só é descoberto depois que o style.css é parseado,
   o que atrasava o LCP. */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero--apoie .hero__bg { display: none; }
.hero__conteudo { max-width: 640px; position: relative; }
.hero h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--khaki-light);
  margin-bottom: 30px;
  max-width: 540px;
}
.hero__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
.sobre__texto p { color: var(--ink-soft); margin-bottom: 14px; }
.sobre__imagem {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sobre__imagem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 860px) {
  .sobre__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}

/* ============================================================
   EMBED responsivo (mapa / vídeo)
   ============================================================ */
.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.embed-frame--mapa { aspect-ratio: 4 / 3; }
@media (min-width: 700px) {
  .embed-frame--mapa { aspect-ratio: 16 / 7; }
}
.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Facade do Google Maps — evita carregar ~230 KB de JS do embed do Maps
   antes do usuário pedir pra ver o mapa interativo. */
.map-facade { cursor: pointer; }
.map-facade__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: var(--khaki);
}
.map-facade__pin { width: 40px; height: 40px; fill: var(--pine); }
.map-facade__placeholder p {
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 320px;
  margin: 0;
}
.map-facade .btn--primario { pointer-events: none; }

/* Facade do vídeo do YouTube — só carrega o player (e o JS pesado dele)
   quando o usuário clica. Antes disso é só uma imagem + botão. */
.yt-facade {
  cursor: pointer;
  background: #000;
  border: 0;
  padding: 0;
}
.yt-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
  transition: transform 0.2s ease;
}
.yt-facade:hover .yt-facade__play,
.yt-facade:focus-visible .yt-facade__play {
  transform: translate(-50%, -50%) scale(1.08);
}

/* ============================================================
   BENEFÍCIOS — cartões em formato de distintivo
   ============================================================ */
.distintivos {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 36px;
}
@media (min-width: 640px) {
  .distintivos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .distintivos { grid-template-columns: repeat(4, 1fr); }
}
.distintivo {
  background: var(--white);
  border: 2px dashed var(--trail);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.distintivo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.distintivo__icone {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--khaki-light);
  color: var(--pine);
}
.distintivo__icone svg { width: 28px; height: 28px; }
.distintivo h3 {
  font-size: 1.05rem;
  color: var(--pine);
  margin-bottom: 8px;
}
.distintivo p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: var(--campfire);
  color: var(--pine);
  text-align: center;
  padding: 56px 0;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  margin-bottom: 12px;
}
.cta-banner p { margin-bottom: 26px; color: rgba(18,10,143,0.82); }
.cta-banner .btn--primario {
  background: var(--pine);
  color: var(--white);
}
.cta-banner .btn--primario:hover { background: var(--pine-dark); }

/* Pulso branco — o laranja padrão do btn-pulso se camufla no fundo campfire do CTA */
@keyframes btn-pulso-cta {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  60%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.cta-banner .btn--primario.btn--destaque {
  animation: btn-pulso-cta 2.8s ease-out infinite;
}

/* ============================================================
   FOOTER
   ============================================================ */
.rodape {
  background: var(--pine-dark);
  color: var(--khaki-light);
  padding: 48px 0 28px;
}
.rodape__topo {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.rodape__bloco h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--khaki);
  margin-bottom: 12px;
}
.rodape__bloco p, .rodape__bloco a { font-size: 0.92rem; color: rgba(241,233,214,0.85); }
.rodape__sociais {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.rodape__sociais a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.rodape__sociais a:hover { background: var(--campfire); }
.rodape__sociais svg { width: 18px; height: 18px; fill: var(--khaki-light); }
.rodape__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: 0.84rem;
  color: rgba(241,233,214,0.7);
}

/* ============================================================
   FORMULÁRIO DE CADASTRO
   ============================================================ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
  max-width: 720px;
  margin: 0 auto;
}
.form-grupo { margin-bottom: 20px; }
.form-grupo label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pine);
  margin-bottom: 6px;
}
.form-grupo input,
.form-grupo select,
.form-grupo textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #D8D2C2;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}
.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
  border-color: var(--trail);
  outline: none;
  box-shadow: 0 0 0 3px rgba(63,107,78,0.18);
}
.form-linha {
  display: grid;
  gap: 20px;
}
@media (min-width: 600px) {
  .form-linha--2 { grid-template-columns: 1fr 1fr; }
}
.form-secao-titulo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--trail);
  margin: 28px 0 14px;
}
.form-secao-titulo:first-child { margin-top: 0; }

.consentimento {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--khaki-light);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 24px 0;
}
.consentimento input { width: auto; margin-top: 3px; accent-color: var(--trail); }
.consentimento label { font-weight: 400; font-size: 0.86rem; color: var(--ink-soft); }
.consentimento a { color: var(--trail); text-decoration: underline; }

/* honeypot — escondido de pessoas, visível para bots automatizados */
.campo-armadilha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-mensagem {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  display: none;
}
.form-mensagem.visivel { display: block; }
.form-mensagem--sucesso { background: #E4F0E6; color: var(--pine); border: 1px solid var(--trail); }
.form-mensagem--erro { background: #FBE4DA; color: var(--campfire-texto); border: 1px solid var(--campfire); }

.hero--compacta { padding: clamp(48px, 8vw, 80px) 0; }
.hero--compacta p { margin-bottom: 0; }

/* ============================================================
   FIELDSET / RADIO / TABELA — página de contato
   ============================================================ */
.fieldset-grupo {
  border: none;
  padding: 0;
  margin-bottom: 20px;
}
.fieldset-grupo legend {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pine);
  margin-bottom: 10px;
  padding: 0;
}
.opcoes-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.opcao-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1.5px solid #D8D2C2;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opcao-radio:has(input:checked) {
  border-color: var(--trail);
  background: var(--khaki-light);
}
.opcao-radio input { width: auto; accent-color: var(--trail); }

.checkbox-linha {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 20px 0;
}
.checkbox-linha input { width: auto; margin-top: 3px; accent-color: var(--trail); }

.tabela-horarios {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.tabela-horarios thead {
  background: var(--pine);
  color: var(--white);
}
.tabela-horarios th, .tabela-horarios td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--khaki-light);
  font-size: 0.95rem;
}
.tabela-horarios th { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.03em; }
.tabela-horarios tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   RAMOS — cards com imagem (página ramos.html)
   ============================================================ */
.ramos-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 36px;
}
@media (min-width: 640px) {
  .ramos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .ramos-grid { grid-template-columns: repeat(4, 1fr); }
}
.ramo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ramo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ramo-card__imagem {
  background: var(--khaki-light);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ramo-card__imagem img { width: 100%; max-width: 120px; }
.ramo-card__corpo { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.ramo-card__faixa {
  display: inline-block;
  align-self: flex-start;
  background: var(--campfire);
  color: var(--pine);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ramo-card h3 { font-size: 1.1rem; color: var(--pine); margin-bottom: 8px; }
.ramo-card p { font-size: 0.92rem; color: var(--ink-soft); flex-grow: 1; }

/* ============================================================
   PROCESSO — etapas numeradas (página escotismo.html)
   ============================================================ */
.processo {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 36px;
}
@media (min-width: 700px) {
  .processo { grid-template-columns: repeat(3, 1fr); }
}
.processo-passo {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 22px 24px;
  box-shadow: var(--shadow-soft);
}
.processo-passo__numero {
  position: absolute;
  top: -16px;
  left: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--campfire);
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.processo-passo h3 { font-size: 1.05rem; color: var(--pine); margin: 10px 0 8px; }
.processo-passo p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   Campo de formulário inválido (destacado pelo script.js
   a partir da resposta do backend)
   ============================================================ */
.form-grupo input.campo-invalido,
.form-grupo select.campo-invalido,
.form-grupo textarea.campo-invalido {
  border-color: var(--campfire-texto);
  background: #FFF6F0;
}

.form-legenda {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: -8px 0 20px;
}

/* ============================================================
   Skip link — acessibilidade de teclado
   ============================================================ */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  background: var(--pine);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ============================================================
   PÁGINA APOIE-SE
   ============================================================ */

/* --- Hero compacto com fundo degradê --- */
.hero--apoie {
  background: linear-gradient(135deg, var(--pine) 0%, var(--trail) 100%);
}

/* --- Grid de opções de apoio --- */
.apoio-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 860px) {
  .apoio-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Card de apoio --- */
.apoio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.apoio-card__header {
  background: var(--pine);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.apoio-card__header svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--campfire);
}
.apoio-card__header h2 {
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
}
.apoio-card__corpo {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.apoio-card__corpo p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --- Bloco Pix --- */
.pix-bloco {
  background: var(--khaki-light);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.pix-qr {
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  background: var(--white);
  border-radius: 10px;
  border: 2px solid var(--khaki);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
  padding: 8px;
}
.pix-qr img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pix-chave {
  width: 100%;
}
.pix-chave label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.pix-chave__valor {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid #D8D2C2;
  border-radius: 8px;
  padding: 10px 12px;
}
.pix-chave__valor span {
  flex-grow: 1;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--ink);
  word-break: break-all;
}
.btn-copiar {
  background: none;
  border: none;
  padding: 4px;
  color: var(--trail);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.btn-copiar:hover { color: var(--pine); }
.btn-copiar svg { width: 18px; height: 18px; display: block; }
.btn-copiar.copiado { color: var(--campfire-texto); }

.pix-aviso {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* --- Dados bancários --- */
.dados-bancarios {
  border-top: 1px solid var(--khaki);
  padding-top: 18px;
}
.dados-bancarios h3 {
  font-size: 0.9rem;
  font-family: var(--font-display);
  color: var(--pine);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.dados-lista {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 0.9rem;
}
.dados-lista dt { color: var(--ink-soft); font-weight: 600; }
.dados-lista dd { color: var(--ink); }

/* --- Lista de materiais --- */
.materiais-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.materiais-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 10px 14px;
  background: var(--khaki-light);
  border-radius: 8px;
}
.materiais-lista li::before {
  content: "✓";
  font-weight: 700;
  color: var(--trail);
  flex-shrink: 0;
}
.materiais-entrega {
  background: var(--pine);
  color: var(--khaki-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.materiais-entrega strong { color: var(--campfire); }

/* --- Impacto / contador --- */
.impacto-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 36px;
}
@media (min-width: 640px) {
  .impacto-grid { grid-template-columns: repeat(4, 1fr); }
}
.impacto-card {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
}
.impacto-card__numero {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--campfire);
  line-height: 1;
  margin-bottom: 6px;
}
.impacto-card__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

/* --- Mensagem de cópia --- */
.msg-copia {
  display: none;
  font-size: 0.82rem;
  color: var(--campfire-texto);
  text-align: center;
  font-weight: 600;
}
.msg-copia.visivel { display: block; }

/* ============================================================
   LEI / OSC e PRESTAÇÃO DE CONTAS
   ============================================================ */

/* --- Bloco da Lei --- */
.lei-bloco {
  background: var(--white);
  border-left: 5px solid var(--pine);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 28px 28px 24px;
  box-shadow: var(--shadow-soft);
}
.lei-bloco__titulo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.lei-bloco__titulo svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: var(--pine);
  margin-top: 2px;
}
.lei-bloco__titulo h3 {
  font-size: 1.05rem;
  color: var(--pine);
}
.lei-bloco__titulo span {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}
.lei-bloco p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.65;
}
.lei-bloco p:last-child { margin-bottom: 0; }
.lei-bloco a { color: var(--trail); text-decoration: underline; }

.lei-pilares {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}
@media (min-width: 640px) {
  .lei-pilares { grid-template-columns: repeat(3, 1fr); }
}
.lei-pilar {
  background: var(--khaki-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.lei-pilar__icone {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.lei-pilar h4 {
  font-size: 0.88rem;
  color: var(--pine);
  margin-bottom: 4px;
}
.lei-pilar p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}

/* --- Prestação de Contas --- */
.pc-intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pc-periodo {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 24px;
}
.pc-periodo__header {
  background: var(--pine);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.pc-periodo__header h3 {
  font-size: 1rem;
  font-weight: 600;
}
.pc-badge {
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}
.pc-badge--aberto  { background: #D4EDDA; color: #1A5C2A; }
.pc-badge--fechado { background: var(--khaki); color: var(--pine); }

.pc-periodo__corpo { padding: 24px; }

.pc-resumo {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}
@media (min-width: 600px) {
  .pc-resumo { grid-template-columns: repeat(4, 1fr); }
}
.pc-numero {
  text-align: center;
  padding: 14px 10px;
  background: var(--khaki-light);
  border-radius: var(--radius);
}
.pc-numero__valor {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pine);
  line-height: 1;
  margin-bottom: 4px;
}
.pc-numero--positivo .pc-numero__valor { color: #1A5C2A; }
.pc-numero--negativo .pc-numero__valor { color: var(--campfire-texto); }
.pc-numero__label {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.pc-detalhes {
  border-top: 1px solid var(--khaki);
  padding-top: 16px;
}
.pc-detalhes summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--trail);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.pc-detalhes summary::before {
  content: "▶";
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
details[open] .pc-detalhes summary::before { transform: rotate(90deg); }

.pc-tabela {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.88rem;
}
.pc-tabela th {
  background: var(--pine);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.pc-tabela td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--khaki);
  color: var(--ink);
}
.pc-tabela tr:last-child td { border-bottom: none; }
.pc-tabela tr:nth-child(even) td { background: var(--khaki-light); }
.pc-tabela .entrada { color: #1A5C2A; font-weight: 600; }
.pc-tabela .saida   { color: var(--campfire-texto); font-weight: 600; }

.pc-aviso {
  background: var(--khaki-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pc-aviso svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: var(--trail);
  margin-top: 1px;
}

.pc-placeholder {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-soft);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed #D8D2C2;
}
.pc-placeholder svg {
  width: 40px; height: 40px;
  stroke: #D8D2C2;
  margin: 0 auto 14px;
  display: block;
}
.pc-placeholder p { font-size: 0.9rem; }

/* ============================================================
   BOTÃO WHATSAPP FLUTUANTE
   ============================================================ */
.wpp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wpp-float__btn {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: wpp-pulse 2.5s ease-out infinite;
}
.wpp-float__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.wpp-float__btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}
.wpp-float__balao {
  background: white;
  color: #1a1a1a;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px 20px 4px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.wpp-float:hover .wpp-float__balao {
  opacity: 1;
  transform: translateX(0);
}
@keyframes wpp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  60%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 480px) {
  .wpp-float { bottom: 16px; right: 16px; }
  .wpp-float__btn { width: 52px; height: 52px; }
}
