/* =========================================================
   Mundo Felino — estilos
   ========================================================= */
:root {
  --navy: #2d4a6b;
  --navy-dark: #22395a;
  --ink: #2a3f5c;
  --text: #4a5b70;
  --muted: #73859a;
  --sky: #e5eef8;
  --sky-2: #d4e3f3;
  --bg: #f8fafd;
  --card: #ffffff;
  --line: #dde6f0;
  --tan: #c99673;
  --tan-soft: #f6e6da;
  --radius: 18px;
  --shadow: 0 6px 22px rgba(45, 74, 107, .10);
  --shadow-lg: 0 14px 40px rgba(45, 74, 107, .16);
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.05; margin: 0; }
p { margin: 0; }
/* Parágrafos justificados em todo o site; blocos centralizados mantêm o próprio alinhamento. */
/* :where() zera a especificidade, então qualquer regra com text-align própria (ex.: .copyright) continua valendo.
   Blocos centralizados e textos curtos em colunas estreitas (.feature) mantêm o alinhamento do pai. */
:where(p) { text-align: justify; hyphens: auto; }
:where(.site-footer, .hero-note, .empty, .foto-em-breve, .help-card, .panel-wide, .cta, .pix-modal-body, .feature) p { text-align: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.5em; border-radius: 999px; border: 2px solid var(--navy);
  font: 700 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #8fb4dc; outline-offset: 2px;
}
/* Padrão único: todos os botões brancos, azul-escuro ao passar o mouse */
.btn-primary, .btn-outline { background: #fff; color: var(--navy); }
.btn-primary:hover, .btn-outline:hover, .btn[aria-expanded="true"] { background: var(--navy); color: #fff; }
/* Exceção: "Quero Ajudar" do topo — branco para se destacar na barra azul */
.btn.header-cta { background: #fff; color: var(--navy); border-color: #fff; }
.btn.header-cta:hover { background: var(--sky); color: var(--navy); border-color: var(--sky); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff;
  border-bottom: 1px solid transparent; transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(26, 42, 64, .28); }
/* Cabeçalho ocupa a largura toda; logo + menu + botão ficam centralizados como um único bloco */
.header-inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 12px 0; }
.site-header .header-inner { width: 100%; padding-inline: clamp(16px, 3vw, 40px); }
.brand { display: block; text-decoration: none; flex: none; line-height: 0; }
.brand .logo-img { width: 108px; height: 108px; margin: -14px 0; }
.site-footer .brand .logo-img { width: 130px; height: 130px; margin: 0; }
.brand-antigo { display: flex; align-items: center; gap: 10px; line-height: normal; }
.brand-antigo .logo-svg { width: 64px; height: 56px; }
.brand-gatinho .logo-img { width: 64px; height: 64px; margin: -6px 0; }
.site-header .brand-gatinho .logo-img { width: 64px; height: 64px; margin: -6px 0; }
.site-footer .brand-gatinho .logo-img { width: 96px; height: 96px; margin: 0; }
/* Letreiro "Mundo Felino" recortado do logo oficial: branco no topo azul, escuro no rodapé */
.logo-texto { height: 46px; width: auto; }
.site-header .logo-texto-escuro, .site-footer .logo-texto-branco { display: none; }
.site-footer .logo-texto { height: 60px; }
/* No topo azul: logo oficial (letras escuras) sobre selo branco; logo antigo com nome em branco */
.site-header .brand:not(.brand-antigo) {
  background: #fff; border-radius: 20px; padding: 4px; margin: -8px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.site-header .brand .logo-img { width: 92px; height: 92px; margin: 0; }
.site-header .brand-name { color: #fff; }
.site-header .brand-tag { color: #bcd2ea; }
.brand-name { font: 800 1.85rem/1 var(--font-head); color: var(--ink); letter-spacing: -.01em; display: block; }
.brand-tag { font: 800 .62rem/1 var(--font-body); color: var(--navy); letter-spacing: .18em; text-transform: uppercase; display: block; margin-top: 4px; }
.main-nav { margin: 0; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 8px; border-radius: 999px; text-decoration: none;
  color: #fff; font-weight: 600; font-size: 1.02rem; white-space: nowrap;
}
.main-nav a:hover { background: rgba(255, 255, 255, .14); }
.main-nav a[aria-current="page"] { background: #fff; color: var(--navy); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Menu sempre em uma linha: sem espaço para o botão, ele some; depois o menu fica compacto;
   abaixo de 1020px vira o menu ☰ */
@media (max-width: 1340px) {
  .header-cta { display: none; }
}
@media (min-width: 1021px) and (max-width: 1160px) {
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 8px 7px; font-size: .94rem; }
}
@media (max-width: 1020px) {
  .header-inner { justify-content: flex-start; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; inset: 100% 0 auto 0; background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 10px 24px rgba(26, 42, 64, .3);
    display: none; padding: 8px 16px 16px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .brand .logo-img { width: 74px; height: 74px; margin: -6px 0; }
  .site-header .brand .logo-img { width: 66px; height: 66px; margin: 0; }
  .site-header .brand:not(.brand-antigo) { border-radius: 16px; margin: -4px 0; }
  .brand-antigo .logo-svg { width: 52px; height: 46px; }
  .brand-gatinho .logo-img, .site-header .brand-gatinho .logo-img { width: 52px; height: 52px; margin: -4px 0; }
  .logo-texto { height: 36px; }
  .brand-name { font-size: 1.5rem; }
}

/* ---------- Decorações ---------- */
.hand {
  font-family: var(--font-hand); font-weight: 700; color: var(--ink);
  font-size: 1.7rem; line-height: 1; transform: rotate(-8deg); display: inline-block;
}
.deco-heart { color: var(--tan); width: 38px; height: 38px; }
.deco-heart.navy { color: var(--navy); }
.title-heart { display: inline-block; width: .55em; height: .55em; color: var(--tan); vertical-align: top; margin-left: .1em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 .accent { color: #3c6690; }
.hero-text p { font-size: 1.12rem; margin-top: 18px; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-media { position: relative; min-height: 380px; }
.hero-blob {
  position: absolute; inset: 0 -12% 0 4%; background: var(--sky-2);
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
}
.hero-photo {
  position: relative; width: 100%; aspect-ratio: 1.15; object-fit: cover; object-position: center 35%;
  border-radius: 46% 54% 40% 60% / 56% 46% 54% 44%;
  box-shadow: var(--shadow-lg);
}
.hero-note { position: absolute; top: 4%; right: 2%; text-align: center; }
.hero-note .hand { font-size: 1.9rem; }
.hero-heart { position: absolute; bottom: 8%; left: -4%; width: 64px; height: 64px; color: var(--navy); }
.hero-paw { position: absolute; top: 46%; left: -8%; width: 40px; height: 40px; color: #8fb0d3; }

.hero-compact .hero-grid { grid-template-columns: 1.1fr 1fr; }
.hero-compact h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.hero-compact .hero-media { min-height: 300px; }
.hero-compact .hero-photo {
  aspect-ratio: 1.5; border-radius: 48% 28px 28px 38% / 60% 28px 28px 40%;
}

@media (max-width: 820px) {
  .hero-grid, .hero-compact .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; order: -1; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-compact .hero-media { min-height: 0; }
  .hero-compact .hero-photo { border-radius: var(--radius); }
  .hero-paw { display: none; }
  .hero-heart { left: 0; width: 48px; height: 48px; }
}

/* ---------- Faixa de destaques ---------- */
.band { position: relative; background: var(--sky); margin-top: 36px; padding: 34px 0; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; background: var(--sky);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V10C200 -2 400 20 600 12S1000 0 1200 10V22Z'/%3E%3C/svg%3E") center/100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V10C200 -2 400 20 600 12S1000 0 1200 10V22Z'/%3E%3C/svg%3E") center/100% 100%;
}
.band::before { top: -21px; }
.band::after { bottom: -21px; transform: scaleY(-1); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { display: flex; align-items: center; gap: 14px; }
.feature-icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: var(--navy); box-shadow: 0 4px 14px rgba(45,74,107,.08);
}
.feature-icon svg { width: 32px; height: 32px; }
.feature h3 { font-size: 1.25rem; }
.feature p { font-size: .9rem; margin-top: 2px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

.band-dark { background: var(--navy); color: #dfe9f5; }
.band-dark::before, .band-dark::after { background: var(--navy); }
.band-dark .feature h3 { color: #fff; font-size: 1.7rem; }
.band-dark .feature p { color: #cbdaea; font-size: 1rem; }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section-sky { background: linear-gradient(var(--sky), var(--bg)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title > svg { width: 44px; height: 44px; color: var(--navy); flex: none; }
.section-title h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-head p { margin-top: 4px; }

/* Quem somos */
.about { display: grid; grid-template-columns: 1fr 1.15fr .8fr; gap: 36px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { aspect-ratio: 1.2; object-fit: cover; border-radius: 52% 48% 42% 58% / 48% 56% 44% 52%; box-shadow: var(--shadow-lg); width: 100%; }
.about-photo .deco-heart { position: absolute; top: 14%; left: -10px; width: 50px; height: 50px; color: var(--navy); }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.about-text p + p { margin-top: 10px; }
.about-text .btn { margin-top: 22px; }
.values { background: var(--sky); border-radius: 28px; padding: 18px 22px; list-style: none; margin: 0; }
.values li { display: flex; gap: 14px; align-items: center; padding: 12px 0; font-weight: 600; color: var(--ink); }
.values li + li { border-top: 1px solid var(--sky-2); }
.values .feature-icon { width: 50px; height: 50px; }
.values .feature-icon svg { width: 24px; height: 24px; }
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr 1fr; }
  .values { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .values li + li { border-top: 0; }
}
@media (max-width: 680px) {
  .about { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Cards de gatos ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 400px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-photo { position: relative; aspect-ratio: 1.2; background: var(--sky); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-photo { overflow: hidden; }
.badges-saude { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.badge-felv {
  background: rgba(255,255,255,.94); color: var(--navy);
  font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.cat-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-body h3 { font-size: 1.4rem; }
.cat-meta { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.cat-meta svg { width: 16px; height: 16px; color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--sky); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.cat-body .btn { margin-top: auto; }

/* Carrossel (home) */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: 40%; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--navy); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }
.cat-card.compact .cat-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.cat-card.compact .cat-body h3 { font-size: 1.3rem; }
@media (max-width: 1000px) { .carousel-track { grid-auto-columns: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 720px) {
  .carousel-track { grid-auto-columns: 70%; gap: 14px; }
  .carousel-btn { display: none; }
}

/* ---------- Filtros ---------- */
.filters { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.field { position: relative; }
.field svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field input, .field select {
  width: 100%; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font: 600 .92rem var(--font-body); color: var(--ink); box-shadow: 0 2px 8px rgba(45,74,107,.04);
}
.field input { padding-left: 44px; }
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4a6b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center/16px no-repeat;
}
@media (max-width: 820px) { .filters { grid-template-columns: 1fr 1fr; } .filters .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.result-count { font-size: .9rem; color: var(--muted); margin: -14px 0 18px; }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty h3 { font-size: 1.6rem; margin-bottom: 6px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent;
  font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer;
}
.pagination button:hover:not(:disabled) { background: var(--sky); }
.pagination button[aria-current="page"] { background: var(--navy); color: #fff; }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination svg { width: 18px; height: 18px; vertical-align: middle; }

/* ---------- Polaroids (adotados) ---------- */
.polaroids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
@media (max-width: 1000px) { .polaroids { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .polaroids { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; } }
.polaroid {
  position: relative; background: #fff; padding: 12px 12px 18px; box-shadow: var(--shadow);
  border-radius: 4px; transition: transform .2s;
}
.polaroid:nth-child(4n+1) { transform: rotate(-1.6deg); }
.polaroid:nth-child(4n+2) { transform: rotate(1.2deg); }
.polaroid:nth-child(4n+3) { transform: rotate(-.8deg); }
.polaroid:nth-child(4n) { transform: rotate(1.8deg); }
.polaroid:hover { transform: rotate(0) scale(1.03); }
.polaroid::before {
  content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; width: 84px; height: 24px;
  background: rgba(230, 210, 180, .75); transform: rotate(-3deg);
}
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroid h3 { font-size: 1.35rem; margin-top: 12px; }
.polaroid p { font-size: .88rem; color: var(--muted); }

/* ---------- Feira ---------- */
.fair { display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: 30px; align-items: center; }
.fair-info { background: var(--sky); border-radius: 22px; padding: 22px 26px; list-style: none; margin: 0; }
.fair-info li { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-weight: 600; color: var(--ink); }
.fair-info svg { width: 26px; height: 26px; color: var(--navy); flex: none; }
.fair-info small { display: block; font-weight: 500; color: var(--muted); }
.fair-photo { position: relative; }
.fair-photo img { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 54% 46% 40% 60% / 50% 40% 60% 50%; box-shadow: var(--shadow-lg); }
.fair-photo .hand { position: absolute; top: -10px; left: -14px; background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 12px; }
.fair-text p { margin: 12px 0 20px; }

/* ---------- Página Feira de Adoção ---------- */
.foto-em-breve {
  width: 100%; aspect-ratio: 1.5; border-radius: 28px; border: 3px dashed var(--sky-2); background: var(--sky);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--navy); font: 700 1.1rem/1.3 var(--font-body); text-align: center;
}
.foto-em-breve svg { width: 48px; height: 48px; }
.feira-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.feira-sobre p { margin-top: 14px; }
.feira-sobre .fair-info { margin-top: 22px; }
.feira-mapa iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 22px; box-shadow: var(--shadow); display: block; }
@media (max-width: 820px) {
  .feira-grid { grid-template-columns: 1fr; }
  .feira-mapa iframe { min-height: 320px; }
}

/* ---------- Página Quem Somos ---------- */
.historia { max-width: 820px; }
.historia > p { margin-top: 14px; font-size: 1.08rem; }
.historia .values { margin-top: 26px; }
.historia .section-title:not(:first-child) { margin-top: 56px; }
@media (max-width: 960px) { .fair { grid-template-columns: 1fr 1fr; } .fair-photo { grid-column: 1 / -1; max-width: 520px; } }
@media (max-width: 640px) { .fair { grid-template-columns: 1fr; } }

/* ---------- Como ajudar ---------- */
.help-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.help-card {
  background: #fff; border-radius: var(--radius); padding: 22px 16px; text-align: center; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: transform .2s;
}
a.help-card:hover { transform: translateY(-4px); }
.help-card .feature-icon { margin: 0 auto 12px; background: var(--tan-soft); color: #a8704d; }
.help-card:nth-child(even) .feature-icon { background: var(--sky); color: var(--navy); }
.help-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.help-card p { font-size: .88rem; }
@media (max-width: 1000px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .help-grid { grid-template-columns: 1fr; } }

.help-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.panel { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.panel h3 { font-size: 1.6rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel h3 svg { width: 30px; height: 30px; color: var(--navy); }
.panel p + p, .panel p + .btn, .panel .copy + p { margin-top: 12px; }
.panel .btn { margin-top: 16px; }
.copy { display: flex; gap: 8px; margin-top: 14px; background: var(--sky); border-radius: 999px; padding: 6px 6px 6px 18px; align-items: center; }
.copy code { flex: 1; font: 700 .95rem var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.panel .copy .btn { margin-top: 0; }
.panel-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.panel-actions .btn { margin-top: 0; }
/* Voluntariado: "Quero ser voluntário" e o e-mail lado a lado */
#voluntario .panel-actions { gap: 8px; }
#voluntario .panel-actions .btn { padding-inline: 1em; font-size: .94rem; }
.panel[hidden] { display: none; }
.panel-wide { grid-column: 1 / -1; text-align: center; }
.panel-wide h3 { justify-content: center; }
@media (max-width: 760px) { .help-detail { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-insta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(45,74,107,.06); border: 1px solid var(--line);
}
.faq-list summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; margin-left: auto; width: 18px; height: 18px; flex: none; transition: transform .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4a6b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list summary svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
.faq-list .answer { padding: 0 18px 16px 48px; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 20px; }
.insta-grid a { border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: block; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.insta-grid a:hover img { transform: scale(1.07); }
@media (max-width: 860px) { .faq-insta { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; background: var(--sky); border-radius: 36px; padding: 34px 40px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; overflow: hidden;
}
.cta-art { width: 170px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-actions .btn { justify-content: center; }
.cta-art img, .cta-art svg { width: 100%; height: auto; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .cta-art { margin: 0 auto; width: 130px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--sky); margin-top: 72px; padding: 34px 0 22px; position: relative; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 22px 32px; align-items: center; }
.footer-side { justify-self: end; }
/* Linha de contato ocupa a largura toda, abaixo do logo e das redes */
.footer-info { grid-column: 1 / -1; border-top: 1px solid var(--sky-2); padding-top: 18px; text-align: center; }
.footer-info .footer-contact { justify-content: center; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: .95rem; }
.footer-contact span, .footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.footer-contact svg { width: 18px; height: 18px; color: var(--navy); }
.footer-more { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.footer-more a { color: var(--navy); font-weight: 600; }
.footer-side { display: flex; align-items: center; gap: 16px; }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .15s; }
.social a:hover { background: var(--sky-2); }
.social svg { width: 24px; height: 24px; }
.copyright { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 22px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-side { justify-self: center; }
  .footer-contact { justify-content: center; }
}

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: 28px; width: min(1080px, 100% - 32px); max-height: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--text); }
.modal::backdrop { background: rgba(26, 42, 64, .55); backdrop-filter: blur(3px); }
.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal-grid > img { width: 100%; height: 100%; object-fit: cover; min-height: 520px; }
.modal-body { padding: 44px 40px 36px; display: flex; flex-direction: column; gap: 16px; font-size: 1.1rem; }
.modal-body h2 { font-size: 3rem; }
.modal-body .cat-meta { font-size: 1.05rem; }
.modal-body .cat-meta svg { width: 20px; height: 20px; }
.modal-body .tag { font-size: .88rem; padding: 5px 14px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); color: var(--ink);
}
.modal-close svg { width: 20px; height: 20px; }
/* Modal do QR Code PIX */
.modal-pix { width: min(520px, 100% - 32px); }
.pix-modal-body { padding: 40px 32px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pix-modal-body h2 { font-size: 2.2rem; }
.pix-modal-body img { width: min(380px, 100%); height: auto; aspect-ratio: 1; background: #fff; border-radius: 16px; }
.pix-modal-body .btn { width: 100%; justify-content: center; }
.modal-note { font-size: .98rem; background: var(--sky); border-radius: 14px; padding: 12px 16px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.modal-actions .btn { font-size: 1.1rem; padding: .95em 1.6em; }
@media (max-width: 640px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-grid > img { min-height: 0; aspect-ratio: 1.3; }
  .modal-body { padding: 26px 22px; font-size: 1rem; }
  .modal-body h2 { font-size: 2.3rem; }
  .modal-actions .btn { font-size: 1rem; padding: .9em 1em; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  transition: opacity .2s, translate .2s; z-index: 100;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* Animação de entrada */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
