:root {
  --blue-950: #082d66;
  --blue-900: #0d428e;
  --blue-800: #1556b3;
  --blue-700: #1f69d6;
  --blue-500: #5f94f8;
  --blue-300: #91b3ff;
  --blue-200: #d8e5ff;
  --blue-100: #eef4ff;
  --surface: #f6faff;
  --card: rgba(255,255,255,0.9);
  --text: #0a326d;
  --muted: #607291;
  --line: rgba(17,70,150,0.10);
  --shadow-lg: 0 26px 70px rgba(8,47,112,0.10);
  --shadow-md: 0 16px 40px rgba(8,47,112,0.08);
  --shadow-sm: 0 10px 24px rgba(8,47,112,0.06);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f4f8ff;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--blue-950);
  color: #fff;
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.site-shell {
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 8%, rgba(145,179,255,.22), transparent 27%),
    radial-gradient(circle at 92% 12%, rgba(14,73,163,.10), transparent 25%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7ff 46%, #f7faff 100%);
}

.site-header {
  position: relative;
  z-index: 60;
  height: 84px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.header-inner,
.hero,
.stats,
.how,
.causes,
.donation,
.testimonials,
.final-cta,
.footer-grid,
.copyright {
  width: min(calc(100% - 80px), var(--container));
  margin-left: auto;
  margin-right: auto;
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 28px;
}

/* Cabeçalho sem menu/CTA (cadastro-doador.html) — página isolada, então o
   cabeçalho mostra só a logo, centralizada. Seletor composto (duas classes)
   de propósito, pra ter prioridade sobre os overrides de .header-inner nos
   breakpoints mobile abaixo, que também mexem em grid-template-columns. */
.header-inner.header-inner-isolado {
  grid-template-columns: 1fr;
  justify-items: center;
}

.brand img {
  height: 38px;
  width: auto;
  display: block;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.15vw, 38px);
  font-size: 14px;
  font-weight: 800;
  color: #173a72;
}
.nav a {
  position: relative;
  opacity: .88;
  transition: .18s ease;
}
.nav a:hover,
.nav a.active { opacity: 1; color: var(--blue-900); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-300));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Logo e redes sociais só existem visualmente dentro do menu mobile em
   tela cheia (ver @media max-width:960px) — no desktop o .nav é a barra
   horizontal normal, então ficam ocultos. */
.nav-mobile-logo,
.nav-mobile-socials { display: none; }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-900);
  border-radius: 99px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
.donation-card:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgba(31,105,214,.32);
  outline-offset: 4px;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0b3b86 0%, #185fcb 100%);
  box-shadow: 0 14px 28px rgba(14,74,174,.24);
}
.btn-secondary {
  color: var(--blue-900);
  background: rgba(255,255,255,.82);
  border-color: rgba(18,82,178,.18);
  box-shadow: var(--shadow-sm);
}
.btn-white {
  color: var(--blue-900);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}
.btn-large { min-width: 240px; }
.header-cta { height: 46px; padding: 0 24px; border-radius: 17px; }
.heart-mini { font-size: 18px; line-height: 1; }

.section-pad { padding: 88px 0; }

.hero {
  min-height: min(790px, calc(100vh - 78px));
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 5vw, 92px);
  position: relative;
  padding-top: 42px;
  padding-bottom: 36px;
  overflow: clip;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-copy h1 {
  margin: 0 0 22px;
  max-width: 660px;
  font-size: clamp(64px, 5.45vw, 104px);
  line-height: .92;
  letter-spacing: -.082em;
  color: var(--blue-950);
  overflow-wrap: break-word;
}
.hero-copy h1 span {
  display: block;
  color: var(--blue-700);
}
.hero-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.75;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 34px;
}
.hero-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}
.hero-art {
  width: min(720px, 100%);
  height: auto;
  position: relative;
  z-index: 4;
  filter: drop-shadow(0 36px 58px rgba(16,78,174,.15));
}
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: .9;
}
.blob-one {
  width: 410px;
  height: 410px;
  right: 10%;
  top: 20px;
  background: radial-gradient(circle at 35% 35%, rgba(163,193,255,.52), rgba(231,240,255,.18) 66%, transparent 72%);
}
.blob-two {
  width: 260px;
  height: 260px;
  right: -20px;
  bottom: 80px;
  background: radial-gradient(circle at 40% 35%, rgba(54,116,225,.12), rgba(232,240,255,.50) 72%);
}
.floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(14,65,152,.18);
}
.secure-card span { font-size: 12px; }
.secure-card {
  left: 62px;
  bottom: 126px;
  padding: 11px 16px;
  background: rgba(255,255,255,.94);
  color: var(--blue-900);
  border: 1px solid rgba(20,92,196,.08);
}
.shield {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-800));
}
.watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .10;
  z-index: 0;
}
.wing-left {
  width: 470px;
  left: -205px;
  top: 112px;
  transform: rotate(-14deg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
  padding-bottom: 76px;
}
.stat-card {
  min-height: 138px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 25px;
  background: var(--card);
  border: 1px solid rgba(18,82,178,.08);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 25%, #dce8ff, #80acff 54%, #0d4aa6 130%);
  box-shadow: inset 0 1px 4px rgba(255,255,255,.45), 0 12px 24px rgba(22,93,203,.17);
  font-size: 22px;
}
.stat-card strong {
  display: block;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -.04em;
}
.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--blue-900);
  font-weight: 900;
}
.stat-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue-800);
  background: rgba(130,170,255,.13);
  border: 1px solid rgba(80,132,238,.12);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section-title {
  max-width: 680px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-title h2 {
  margin: 15px 0 8px;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-weight: 600;
}

.how { padding-top: 18px; }
.steps {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: center;
  gap: 4px;
}
.step-card {
  min-height: 286px;
  position: relative;
  padding: 30px 24px 28px;
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(18,82,178,.08);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}
.step-card img {
  width: 122px;
  height: 122px;
  display: block;
  margin: 6px auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(15,76,175,.10));
}
.step-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -.03em;
}
.step-card p {
  max-width: 230px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.step-number {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-800));
  box-shadow: 0 12px 24px rgba(20,92,196,.22);
}
.step-arrow {
  text-align: center;
  color: var(--blue-700);
  font-size: 28px;
  font-weight: 900;
  opacity: .7;
}

.cause-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
}
.cause-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(18,82,178,.08);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cause-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.cause-image {
  height: 178px;
  position: relative;
  overflow: hidden;
}
.cause-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cause-card:hover .cause-image img { transform: scale(1.06); }
.cause-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,31,75,0) 35%, rgba(4,39,92,.30) 100%);
}
.cause-image span {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-800));
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(7,52,111,.20);
}
.cause-body {
  min-height: 174px;
  position: relative;
  padding: 22px 22px 24px;
}
.cause-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -.035em;
}
.cause-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  padding-right: 18px;
}
.cause-body a {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(22,93,203,.20);
  background: #fff;
  color: var(--blue-800);
  font-size: 20px;
  font-weight: 900;
}
.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}
.donation-card {
  min-height: 132px;
  position: relative;
  padding: 25px 22px;
  text-align: left;
  background: var(--card);
  border: 2px solid rgba(18,82,178,.08);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.donation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31,105,214,.3);
  box-shadow: var(--shadow-lg);
}
.donation-card.selected {
  transform: translateY(-5px);
  border-color: var(--blue-700);
  background:
    linear-gradient(180deg, rgba(31,105,214,.08), rgba(31,105,214,.02)),
    var(--card);
  box-shadow: 0 18px 36px rgba(22,93,203,.22);
}
.donation-card.selected:hover { transform: translateY(-6px); }
.donation-card.selected::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(22,93,203,.35);
}
.donation-card strong {
  display: block;
  margin-bottom: 11px;
  color: var(--blue-900);
  font-size: 22px;
  letter-spacing: -.04em;
}
.donation-card span {
  color: var(--muted);
  line-height: 1.46;
  font-weight: 650;
  font-size: 13px;
}
.donation-card small {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
/* Card "Outro valor" ocupa a linha inteira, pra não ficar espremido numa
   única coluna do grid ao lado dos valores fixos. */
.donation-card-outro {
  grid-column: 1 / -1;
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.donation-card-outro strong { margin-bottom: 0; }

.testimonials {
  position: relative;
  overflow: clip;
}
.wing-right {
  width: 380px;
  right: -185px;
  bottom: 20px;
  transform: rotate(15deg);
}
.depoimentos-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.depoimento-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 20px;
  background: #0a1c3d;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.depoimento-card:hover,
.depoimento-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  outline: none;
}
.depoimento-card:focus-visible {
  outline: 3px solid rgba(31,105,214,.4);
  outline-offset: 3px;
}
.depoimento-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a1c3d;
}
.depoimento-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(8, 20, 44, .55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.depoimento-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
}
.depoimento-play svg {
  width: 52px;
  height: 52px;
  padding: 14px;
  border-radius: 999px;
  background: rgba(8, 20, 44, .45);
  backdrop-filter: blur(2px);
}
.depoimento-card-destaque {
  border: 2px solid rgba(255,255,255,.5);
}
.depoimento-legenda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(6, 16, 36, .85));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.depoimentos-fotos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
}
.depoimentos-fotos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.depoimentos-fotos img:first-child {
  grid-row: 1 / 3;
}

.depoimento-lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 16, 36, .82);
  backdrop-filter: blur(3px);
}
.depoimento-lightbox.aberto { display: flex; }
.depoimento-lightbox-video {
  max-width: min(420px, 100%);
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.depoimento-lightbox-fechar {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background .18s ease;
}
.depoimento-lightbox-fechar:hover { background: rgba(255,255,255,.26); }

.final-cta {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 76px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 30px;
  align-items: center;
  padding: 40px 46px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 0%, rgba(139,173,255,.42), transparent 38%),
    linear-gradient(135deg, #0b3678 0%, #0b4faf 55%, #08346f 100%);
  box-shadow: 0 30px 72px rgba(8,47,112,.20);
}
.final-cta > img {
  position: absolute;
  left: 24px;
  bottom: -78px;
  width: 250px;
  opacity: .16;
}
.final-cta h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(34px, 3vw, 50px);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.final-cta h2 span { color: #a7c2ff; }
.final-cta p {
  position: relative;
  z-index: 2;
  margin: 10px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  font-weight: 650;
}
.final-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer {
  padding: 0 0 28px;
  background: #08346f;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 50px;
  padding: 58px 0 30px;
}
.footer-brand img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  max-width: 290px;
  margin-top: 16px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  font-weight: 600;
}
.footer h4 {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer a {
  display: block;
  padding: 6px 0;
  margin: 4px 0;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 600;
}
.footer a:hover { color: #fff; }
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.socials a:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.socials svg {
  display: block;
}
.copyright {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1280px) {
  :root { --container: 1160px; }
  .hero {
    grid-template-columns: minmax(410px,.9fr) minmax(500px,1.1fr);
    gap: 38px;
  }
  .hero-copy h1 { font-size: clamp(58px, 5vw, 82px); }
  .hero-visual { min-height: 540px; }
  .hero-art { width: min(620px,100%); }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
    text-align: center;
    gap: 12px;
  }
  .hero-copy h1,
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stats,
  .cause-grid,
  .donation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .steps {
    max-width: 560px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .step-arrow { transform: rotate(90deg); }
  .depoimentos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .depoimento-card-destaque { grid-column: span 2; }
  .depoimentos-fotos {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }
  .depoimentos-fotos img:first-child { grid-row: auto; }
  .final-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .final-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .site-header { height: auto; min-height: 74px; }
  .header-inner {
    min-height: 74px;
    grid-template-columns: 1fr auto;
    padding: 14px 0;
  }
  .brand img { height: 34px; }
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 160;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Menu mobile em tela cheia — cobre a página inteira em vez de empurrar
     o conteúdo do header para baixo. */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 24px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 46%, #f7faff 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav a {
    padding: 16px 0;
    font-size: 26px;
    border-bottom: 0;
  }
  .nav a.active::after { display: none; }
  .header-cta { display: none; }

  /* Logo fixa no topo do menu e redes sociais fixas embaixo: margens
     automáticas empurram os dois para as pontas dentro da coluna flex,
     deixando os links de navegação centralizados no meio, como antes. */
  .nav-mobile-logo {
    display: block;
    margin-bottom: auto;
  }
  .nav-mobile-logo img {
    height: 36px;
    width: auto;
  }
  .nav-mobile-socials {
    display: flex;
    gap: 10px;
    margin-top: auto;
  }
  .nav-mobile-socials a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(18, 82, 178, 0.08);
    color: var(--blue-900);
    font-size: 13px;
    font-weight: 800;
  }
}

@media (max-width: 820px) {
  .header-inner,
  .hero,
  .stats,
  .how,
  .causes,
  .donation,
  .testimonials,
  .final-cta,
  .footer-grid,
  .copyright {
    width: min(calc(100% - 32px), var(--container));
  }
  .section-pad { padding: 70px 0; }
  .hero { padding-top: 50px; padding-bottom: 16px; }
  .hero-copy h1 { font-size: clamp(44px, 13vw, 68px); }
  .hero-copy p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: auto; min-width: 220px; }
  .hero-visual { min-height: 390px; }
  .hero-art { width: min(560px,100%); }
  .floating-card,
  .secure-card { display: none; }
  .stats,
  .cause-grid,
  .donation-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .depoimentos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .depoimento-card-destaque { grid-column: span 2; }
  .depoimentos-fotos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .depoimentos-fotos img:first-child { grid-row: auto; }
  .final-cta { padding: 32px 24px; margin-bottom: 54px; }
  .final-cta h2 { font-size: clamp(28px,8.4vw,40px); }
  .final-cta p { font-size: 16px; }
  .footer-grid { padding-top: 48px; gap: 30px; }
  .btn { font-size: 15px; }
  .donation-card strong { font-size: 24px; }
  .donation-card span { font-size: 14px; }
  .footer a { font-size: 15px; }
  .footer h4 { font-size: 13px; }
}

@media (max-width: 480px) {
  .header-inner,
  .hero,
  .stats,
  .how,
  .causes,
  .donation,
  .testimonials,
  .final-cta,
  .footer-grid,
  .copyright { width: calc(100% - 24px); }
  .btn { height: 48px; padding: 0 20px; }
  .stat-card,
  .step-card,
  .cause-card,
  .donation-card,
  .depoimento-card { border-radius: 16px; }
  .hero-visual { min-height: 340px; }
}


/* Internal pages */
.page-hero {
  width: min(calc(100% - 80px), var(--container));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 94px) 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.page-hero > div:first-child { min-width: 0; }

.page-hero h1 {
  margin: 18px 0 18px;
  max-width: 800px;
  font-size: clamp(48px, 5.2vw, 88px);
  line-height: .96;
  letter-spacing: -.075em;
  color: var(--blue-950);
  overflow-wrap: break-word;
}

.page-hero h1 span {
  color: var(--blue-700);
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 600;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 36px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(145,179,255,.42), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(235,243,255,.86));
  border: 1px solid rgba(18,82,178,.08);
  box-shadow: var(--shadow-md);
}

.page-hero-card img {
  position: absolute;
  right: -72px;
  bottom: -88px;
  width: 340px;
  opacity: .2;
}

.page-hero-card strong {
  display: block;
  color: var(--blue-950);
  font-size: clamp(36px, 3vw, 50px);
  line-height: 1;
  letter-spacing: -.055em;
}

.page-hero-card span {
  display: block;
  max-width: 280px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.causa-foto {
  position: relative;
  min-height: 310px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.causa-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contato-email {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(18,82,178,.14);
  color: var(--blue-900);
  font-weight: 800;
  font-size: 14px;
  transition: color .18s ease, border-color .18s ease;
}
.contato-email:hover {
  color: var(--blue-700);
  border-color: rgba(31,105,214,.3);
}

.page-section {
  width: min(calc(100% - 80px), var(--container));
  margin: 0 auto;
  padding: 42px 0 88px;
}

.content-grid-2,
.content-grid-3 {
  display: grid;
  gap: 22px;
}

.content-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  min-height: 220px;
  padding: 30px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid rgba(18,82,178,.08);
  box-shadow: var(--shadow-md);
}

.info-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 16px;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 12px;
  color: var(--blue-950);
  letter-spacing: -.04em;
}

.info-card h2 {
  font-size: 30px;
}

.info-card h3 {
  font-size: 24px;
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.64;
  font-weight: 600;
}

.info-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.donation-panel {
  max-width: 940px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid rgba(18,82,178,.08);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--blue-950);
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(18,82,178,.18);
  background: rgba(255,255,255,.88);
  color: var(--blue-950);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.field textarea {
  min-height: 130px;
  padding-top: 15px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(31,105,214,.12);
  transform: translateY(-1px);
}

.internal-cta {
  width: min(calc(100% - 80px), var(--container));
  margin: 0 auto 76px;
  padding: 36px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #0b3678 0%, #0b4faf 55%, #08346f 100%);
  color: white;
  box-shadow: 0 30px 72px rgba(8,47,112,.20);
}

.internal-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.055em;
}

.internal-cta p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
  font-weight: 650;
}

@media (max-width: 1120px) {
  .page-hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .content-grid-2,
  .content-grid-3 {
    grid-template-columns: 1fr;
  }

  .internal-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 72px;
  }

  .page-hero,
  .page-section,
  .internal-cta {
    width: min(calc(100% - 32px), var(--container));
  }

  .page-hero h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .page-hero-card,
  .causa-foto {
    min-height: 240px;
  }

  .donation-panel {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .page-hero,
  .page-section,
  .internal-cta {
    width: calc(100% - 24px);
  }

  .page-hero {
    padding-top: 42px;
  }

  .page-hero-card,
  .info-card,
  .donation-panel,
  .internal-cta {
    border-radius: 22px;
  }
}

/* ---------------------------------------------------------------------- */
/* Botão flutuante de doação                                              */
/* ---------------------------------------------------------------------- */
.fab-doacao {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0b3b86 0%, #185fcb 100%);
  box-shadow: 0 14px 32px rgba(14,74,174,.34);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab-doacao:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(14,74,174,.4);
}
.fab-doacao svg { display: block; flex-shrink: 0; }
.fab-doacao span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
  transition: max-width .22s ease;
}
.fab-doacao:hover span,
.fab-doacao:focus-visible span {
  max-width: 140px;
}

@media (max-width: 640px) {
  .fab-doacao {
    right: 16px;
    bottom: 16px;
    padding: 15px;
  }
  .fab-doacao span { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Página de manutenção temporária (index.html)                           */
/* ---------------------------------------------------------------------- */
.manutencao-secao {
  min-height: calc(100vh - 84px - 90px);
  display: grid;
  place-items: center;
  padding: 60px 0;
}
.manutencao-cartao {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.manutencao-icone {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b3b86 0%, #185fcb 100%);
  color: #fff;
  font-size: 32px;
  box-shadow: var(--shadow-md);
}
.manutencao-cartao h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -.04em;
}
.manutencao-cartao p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}
.manutencao-cartao .btn { margin-top: 6px; }
.manutencao-contato {
  color: var(--blue-900);
  font-weight: 800;
  font-size: 14px;
  transition: color .18s ease;
}
.manutencao-contato:hover { color: var(--blue-700); }

.footer-simples {
  width: min(calc(100% - 80px), var(--container));
  margin: 0 auto;
  padding: 22px 0 34px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

/* Alterna manutenção x home completa (index.html) — ver script inline no
   <head> que adiciona "preview-ativo" à tag <html> para quem acessa com
   o link de pré-visualização (?preview=TOKEN) ou já desbloqueou antes
   neste navegador (localStorage). Por padrão (sem a classe), só a
   manutenção aparece. */
[data-home-completa] { display: none; }
html.preview-ativo [data-manutencao] { display: none; }
html.preview-ativo [data-home-completa] { display: block; }

.stats-unica {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.stats-unica .stat-card {
  max-width: 460px;
}
