* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --page-bg: #f3f7f6;
  --panel-bg: #ffffff;
  --text-primary: #0f4f40;
  --text-secondary: #3e5b58;
  --accent: #0f6e56;
  --muted: #6f8f88;
  --border: #d9e3de;
  --radius: 12px;
  --font-sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.dark-theme {
  --page-bg: #0b1514;
  --panel-bg: #112221;
  --text-primary: #d9f0e9;
  --text-secondary: #9ac6b9;
  --accent: #66cb9f;
  --muted: #6f8f88;
  --border: #264336;
}

body {
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.page-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 14px 24px;
  border-bottom: 0.5px solid var(--border);
  background: var(--panel-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 210;
  touch-action: manipulation;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 110;
}

.logo {
  flex: 0;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: min(80%, 320px);
  background: rgba(0, 0, 0, 0.35);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.menu-backdrop.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-secondary);
  font-style: italic;
  cursor: pointer;
  transition: color 0.15s ease;
}

.logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--page-bg);
  box-shadow: 0 1px 6px rgba(15, 110, 86, 0.1);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  font-family: var(--font-sans);
  touch-action: manipulation;
}

.nav-link:hover {
  background: #ecf7f2;
  color: var(--text-primary);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.nav-link.doacao-link {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.nav-link.doacao-link:hover {
  background: var(--accent);
  color: #fff;
}

.nav-link.doacao-link.active {
  background: var(--accent);
  color: #fff;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--panel-bg);
  color: var(--text-primary);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-right: 8px;
  line-height: 1;
  font-size: 18px;
  padding: 0;
}

.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle:focus { outline: 2px solid #9fe1cb; outline-offset: 2px; }

.page { display: none; }
.page.active { display: block; }

.hero {
  background: #0F6E56;
  padding: 48px 24px 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: #085041;
  color: #9FE1CB;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero h1 {
  font-size: 26px;
  font-weight: 500;
  color: #E1F5EE;
  line-height: 1.3;
  max-width: 480px;
  margin: 0 auto 12px;
}

.hero p {
  font-size: 14px;
  color: #9FE1CB;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: -20px;
}

.stat-box {
  background: var(--panel-bg);
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 1px 6px rgba(15, 110, 86, 0.08);
}

.stat-num { font-size: 22px; font-weight: 500; color: var(--accent); line-height: 1.1; }
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }

.section { padding: 36px 24px; }

.section-tag {
  font-size: 11px;
  font-weight: 500;
  color: #0F6E56;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section h2 { font-size: 20px; font-weight: 500; color: var(--text-primary); margin-bottom: 12px; line-height: 1.3; }
.section p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.impact-card {
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 3px solid #E24B4A;
  background: #FCEBEB;
}

.impact-card p { font-size: 13px; color: #791F1F; margin: 0; line-height: 1.6; }
.impact-card strong { color: #501313; font-weight: 500; }

.divider { height: 0.5px; background: var(--border); margin: 0 24px; }

.process-section { padding: 36px 24px; background: var(--panel-bg); }
.process-section h2 { font-size: 20px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.process-section > p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }

.steps { display: flex; flex-direction: column; gap: 12px; }

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0F6E56;
  color: #E1F5EE;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h3 { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.step-text p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

.result-section { padding: 36px 24px; }
.result-section h2 { font-size: 20px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.result-section > p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

.soap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }

.soap-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soap-card:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); }

.soap-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(158, 231, 223, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.soap-icon svg { width: 18px; height: 18px; stroke: var(--accent); }
.dark-theme .soap-icon { background: rgba(15, 150, 115, 0.25); }
.dark-theme .soap-icon svg { stroke: #c2f7df; }

.soap-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.soap-card h3 { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.soap-card p { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

.cta-section { padding: 40px 24px; background: #085041; text-align: center; }
.cta-section ul {
  list-style-position: inside;
  padding-left: 18px;
  margin: 0 auto 18px;
  text-align: left;
}
.cta-section h2 { font-size: 20px; font-weight: 500; color: #E1F5EE; margin-bottom: 10px; line-height: 1.3; }
.cta-section p { font-size: 14px; color: #9FE1CB; margin-bottom: 24px; line-height: 1.6; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #085041;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid #e1f5ee;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 110, 86, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15, 110, 86, 0.26); }
.cta-sub { font-size: 12px; color: #5DCAA5; margin-top: 12px; }

.footer {
  padding: 20px 24px;
  border-top: 0.5px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-links { display: flex; justify-content: center; gap: 16px; margin-top: 6px; flex-wrap: wrap; }

.footer-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
}

.footer-link:hover { text-decoration: underline; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-pergunta {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.faq-pergunta:hover { background: var(--page-bg); }
.faq-pergunta.aberta { color: var(--accent); }

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-pergunta.aberta .faq-icon { transform: rotate(45deg); }

.faq-resposta {
  display: none;
  padding: 0 20px 16px;
  border-top: 0.5px solid var(--border);
}

.faq-resposta.aberta { display: block; }
.faq-resposta p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 12px 0 0; }

/* DOAÇÃO */
.doacao-hero { background: #0F6E56; padding: 48px 24px 60px; text-align: center; }
.doacao-hero h1 { font-size: 26px; font-weight: 500; color: #E1F5EE; margin-bottom: 10px; line-height: 1.3; }
.doacao-hero p { font-size: 14px; color: #9FE1CB; max-width: 400px; margin: 0 auto; line-height: 1.6; }

.doacao-body { max-width: 520px; margin: -28px auto 0; padding: 0 16px 40px; }

.doacao-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.doacao-label { font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }

.pag-tabs { display: flex; gap: 8px; margin-bottom: 20px; }

.pag-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.15s ease;
}

.pag-tab:hover { border-color: var(--accent); color: var(--accent); }
.pag-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.pag-content { display: none; }
.pag-content.active { display: block; }

.pix-area, .vakinha-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0 8px;
}

.vakinha-link-box { width: 100%; display: grid; gap: 10px; }

.vakinha-btn {
  appearance: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.vakinha-btn:hover { opacity: 0.95; transform: translateY(-1px); }

.pix-chave-box {
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.pix-chave-box span { font-weight: 500; color: var(--text-primary); }

.pix-qrcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.pix-qrcode {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.pix-qrcode-note {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.copiar-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}

.copiar-btn:hover { background: var(--accent); color: #fff; }

.doar-btn {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 20px;
  font-family: var(--font-sans);
  box-shadow: 0 4px 14px rgba(15, 110, 86, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doar-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 110, 86, 0.35); }

.seguro-txt { text-align: center; font-size: 11px; color: var(--muted); margin-top: 10px; }

.impacto-doacao {
  background: rgba(158, 231, 223, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 16px;
}

.impacto-doacao p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.impacto-doacao strong { color: var(--accent); }

/* COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.cookie-banner p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; min-width: 200px; margin: 0; }
.cookie-banner p a { color: var(--accent); cursor: pointer; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-btn-recusar {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: none; color: var(--text-secondary); font-size: 13px;
  cursor: pointer; font-family: var(--font-sans); transition: all 0.15s ease;
}

.cookie-btn-recusar:hover { border-color: var(--accent); color: var(--accent); }

.cookie-btn-aceitar {
  padding: 8px 16px; border-radius: 999px; border: none;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: var(--font-sans); transition: all 0.15s ease;
}

.cookie-btn-aceitar:hover { opacity: 0.9; }

/* PRIVACIDADE */
.privacidade-body { max-width: 720px; margin: 0 auto; padding: 40px 24px 60px; }
.privacidade-body h1 { font-size: 22px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.privacidade-body .data-atualizacao { font-size: 12px; color: var(--muted); margin-bottom: 32px; }
.privacidade-body h2 { font-size: 16px; font-weight: 500; color: var(--text-primary); margin: 28px 0 8px; }
.privacidade-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.privacidade-body ul { padding-left: 20px; margin-bottom: 12px; }
.privacidade-body ul li { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.privacidade-body a { color: var(--accent); }

.priv-destaque {
  background: rgba(158, 231, 223, 0.15);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
}

.priv-destaque p { margin: 0; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    justify-content: space-between;
    padding: 16px;
    gap: 12px;
    position: relative;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .nav-right-group {
    width: auto;
    justify-content: flex-end;
  }
  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    flex: 0;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(80%, 320px);
    padding: 80px 18px 18px;
    background: var(--panel-bg);
    gap: 12px;
    margin-top: 0;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 200;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
    pointer-events: none; /* prevent blocking taps when menu is closed */
  }
  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    text-align: left;
    border: 1px solid var(--border);
    background: var(--page-bg);
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(15, 110, 86, 0.08);
  }
  .nav-link:hover {
    background: #ecf7f2;
  }
  .theme-toggle {
    align-self: flex-start;
    margin-right: 0;
  }
  .hero { padding: 32px 16px 32px; }
  .hero h1 { font-size: 22px; }
  .section, .process-section, .result-section { padding: 24px 16px; }
  .cta-section { padding: 32px 16px; }
  .soap-grid { grid-template-columns: 1fr; }
  .doacao-hero { padding: 32px 16px 40px; }
  .doacao-hero h1 { font-size: 22px; }
  .doacao-body { padding: 0 16px 32px; }
  .privacidade-body { padding: 32px 16px 48px; }
  .cookie-banner { flex-direction: column; text-align: center; padding: 16px; }
  .cookie-btns { width: 100%; justify-content: center; }
  .footer-links { flex-direction: column; gap: 8px; }
  .faq-pergunta { min-height: 48px; padding: 18px 20px; }
}

@media (max-width: 480px) {
  .nav { padding: 16px; }
  .nav-links {
    gap: 10px;
  }
  .nav-link {
    font-size: 15px;
    padding: 16px 20px;
  }
  .hero h1, .doacao-hero h1 { font-size: 20px; }
  .privacidade-body h1 { font-size: 18px; }
  .faq-pergunta { font-size: 15px; min-height: 48px; padding: 18px 20px; }
  .faq-icon { font-size: 24px; }
  .stats-row { grid-template-columns: 1fr; gap: 8px; }
  .soap-grid { grid-template-columns: 1fr; gap: 8px; }
}
