/* =========================================================================
   Ministério Esperança — folha de estilo principal
   Estética: papel artesanal, verde floresta, luz quente e serifa clássica.
   ========================================================================= */

/* ----------------------------------------------------------------------- */
/* 1. Tokens                                                                */
/* ----------------------------------------------------------------------- */
:root {
  /* papel */
  --paper:        #f6f0e2;
  --paper-warm:   #f1e9d7;
  --sand:         #eae0c9;
  --sand-deep:    #e2d6bb;

  /* tinta */
  --ink:          #2d2a21;
  --ink-soft:     #5c5344;
  --ink-faint:    #8b8172;

  /* verde */
  --green:        #3f6b4a;
  --green-dark:   #2c5036;
  --green-deep:   #23402b;
  --green-mid:    #56845f;
  --green-soft:   #8fae95;
  --green-wash:   rgba(63, 107, 74, .08);

  /* acento */
  --gold:         #b98a4b;
  --gold-soft:    #d9bb8a;

  /* tipografia */
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* medidas */
  --shell:   1220px;
  --gutter:  clamp(1.15rem, 4vw, 3rem);
  --radius:  14px;
  --radius-lg: 22px;

  /* sombras */
  --sh-sm: 0 2px 10px rgba(45, 42, 33, .06);
  --sh-md: 0 12px 34px -14px rgba(45, 42, 33, .22);
  --sh-lg: 0 34px 70px -28px rgba(45, 42, 33, .38);

  /* tempo */
  --ease: cubic-bezier(.22, .68, 0, 1);

  /* recorte de papel rasgado (borda irregular) */
  --deckle: polygon(
    0.5% 1.6%, 7% 0.4%, 14% 2.0%, 22% 0.3%, 30% 1.8%, 38% 0.5%, 46% 2.1%,
    54% 0.4%, 62% 1.9%, 70% 0.3%, 78% 2.0%, 86% 0.5%, 93% 1.6%, 99.5% 0.6%,
    99.0% 9%, 99.8% 19%, 98.8% 29%, 99.9% 39%, 99.0% 49%, 99.8% 59%,
    98.9% 69%, 99.9% 79%, 99.1% 89%, 99.6% 99.2%,
    93% 98.4%, 86% 99.6%, 78% 98.0%, 70% 99.7%, 62% 98.2%, 54% 99.6%,
    46% 97.9%, 38% 99.5%, 30% 98.2%, 22% 99.7%, 14% 98.0%, 7% 99.5%,
    0.6% 98.6%,
    1.1% 89%, 0.2% 79%, 1.2% 69%, 0.1% 59%, 1.0% 49%, 0.2% 39%, 1.2% 29%,
    0.1% 19%, 0.9% 9%
  );
}

/* ----------------------------------------------------------------------- */
/* 2. Base                                                                  */
/* ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(.97rem, .35vw + .88rem, 1.05rem);
  line-height: 1.75;
  font-weight: 350;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* grão de papel sobre toda a página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
svg { fill: none; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.008em;
  margin: 0;
  color: var(--ink);
}

a { color: var(--green-dark); text-decoration: none; }
strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--green-soft); color: #fff; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green-dark);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------------------- */
/* 3. Bordas rasgadas entre seções                                          */
/* ----------------------------------------------------------------------- */
.edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(30px, 4.2vw, 62px);
  z-index: 3;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* A tira fica DENTRO da seção e é pintada com a cor da seção vizinha,
   de modo que uma pareça rasgada sobre a outra. */
.edge--top {
  top: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2022C10.9%2021.3%2022.5%2011.6%2036.3%2010.5C49.8%2011.5%2064.2%2025.5%2081.2%2027.2C101.8%2026.4%20123.8%2015.1%20149.9%2013.8C178%2015.2%20207.9%2035.9%20243.4%2038.3C257.6%2036.6%20272.6%2013.1%20290.5%2010.3C304%2011.9%20318.3%2033.9%20335.4%2036.5C351.9%2034.7%20369.5%208.6%20390.4%205.5C420.4%207.3%20452.3%2033.9%20490.2%2037C504.6%2035.3%20519.9%2011.2%20538%208.3C567.5%209.9%20599%2032.3%20636.4%2034.9C663.9%2033.7%20693.2%2016.6%20728%2014.6C742.1%2015.2%20757.1%2023.6%20774.9%2024.6C799.2%2023.7%20825.1%2011.5%20855.8%2010C877.9%2011.4%20901.3%2031.3%20929.2%2033.7C950.4%2032.8%20972.9%2020.8%20999.7%2019.4C1035.7%2020.6%201074.1%2037%201119.8%2038.9C1132.7%2037.1%201146.6%2012.5%201163%209.6C1174.1%2010.1%201185.9%2017.9%201200%2018.8C1200%2018.9%201200%2020.8%201200%2021L1200%200%20L0%200%20Z'%20fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2022C10.9%2021.3%2022.5%2011.6%2036.3%2010.5C49.8%2011.5%2064.2%2025.5%2081.2%2027.2C101.8%2026.4%20123.8%2015.1%20149.9%2013.8C178%2015.2%20207.9%2035.9%20243.4%2038.3C257.6%2036.6%20272.6%2013.1%20290.5%2010.3C304%2011.9%20318.3%2033.9%20335.4%2036.5C351.9%2034.7%20369.5%208.6%20390.4%205.5C420.4%207.3%20452.3%2033.9%20490.2%2037C504.6%2035.3%20519.9%2011.2%20538%208.3C567.5%209.9%20599%2032.3%20636.4%2034.9C663.9%2033.7%20693.2%2016.6%20728%2014.6C742.1%2015.2%20757.1%2023.6%20774.9%2024.6C799.2%2023.7%20825.1%2011.5%20855.8%2010C877.9%2011.4%20901.3%2031.3%20929.2%2033.7C950.4%2032.8%20972.9%2020.8%20999.7%2019.4C1035.7%2020.6%201074.1%2037%201119.8%2038.9C1132.7%2037.1%201146.6%2012.5%201163%209.6C1174.1%2010.1%201185.9%2017.9%201200%2018.8C1200%2018.9%201200%2020.8%201200%2021L1200%200%20L0%200%20Z'%20fill='%23000'/%3E%3C/svg%3E");
}

.edge--bottom {
  bottom: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2022C32.5%2022.4%2067.1%2028.1%20108.3%2028.8C128.1%2029.4%20149.2%2037.7%20174.3%2038.7C191.8%2037.4%20210.5%2018.4%20232.7%2016.1C265.8%2016.7%20301.2%2024.5%20343.1%2025.4C357.3%2024.3%20372.4%208.1%20390.3%206.2C414.2%207.7%20439.6%2029.5%20469.8%2032.1C495.8%2031.8%20523.6%2027.8%20556.5%2027.3C584%2026.6%20613.3%2017.2%20648%2016.1C663%2016.9%20679%2028.4%20698%2029.8C726%2028.3%20755.8%208%20791.2%205.5C815.7%206.7%20841.8%2022.7%20872.9%2024.6C906.7%2023.5%20942.9%208.6%20985.8%206.8C997.6%208.6%201010.2%2034.5%201025.3%2037.6C1062%2035.7%201101.1%209%201147.6%205.8C1163.3%207.6%201180.1%2031.5%201200%2034.4C1200%2033.6%201200%2022.3%201200%2021L1200%2044%20L0%2044%20Z'%20fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2022C32.5%2022.4%2067.1%2028.1%20108.3%2028.8C128.1%2029.4%20149.2%2037.7%20174.3%2038.7C191.8%2037.4%20210.5%2018.4%20232.7%2016.1C265.8%2016.7%20301.2%2024.5%20343.1%2025.4C357.3%2024.3%20372.4%208.1%20390.3%206.2C414.2%207.7%20439.6%2029.5%20469.8%2032.1C495.8%2031.8%20523.6%2027.8%20556.5%2027.3C584%2026.6%20613.3%2017.2%20648%2016.1C663%2016.9%20679%2028.4%20698%2029.8C726%2028.3%20755.8%208%20791.2%205.5C815.7%206.7%20841.8%2022.7%20872.9%2024.6C906.7%2023.5%20942.9%208.6%20985.8%206.8C997.6%208.6%201010.2%2034.5%201025.3%2037.6C1062%2035.7%201101.1%209%201147.6%205.8C1163.3%207.6%201180.1%2031.5%201200%2034.4C1200%2033.6%201200%2022.3%201200%2021L1200%2044%20L0%2044%20Z'%20fill='%23000'/%3E%3C/svg%3E");
}

.edge--cream     { background: var(--paper); }
.edge--sand      { background: var(--sand); }
.edge--green     { background: var(--green-dark); }
.edge--warm      { background: var(--paper-warm); }

/* ----------------------------------------------------------------------- */
/* 4. Botões                                                                */
/* ----------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .92rem 1.6rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              color .3s ease, border-color .3s ease, background-color .3s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover svg:last-child { transform: translateX(3px); }

/* brilho que atravessa o botão no hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn--solid {
  background: var(--green-dark);
  color: #f7f3e8;
  box-shadow: var(--sh-md);
}
.btn--solid:hover { background: var(--green); box-shadow: var(--sh-lg); }

.btn--ghost {
  border-color: rgba(63, 107, 74, .35);
  color: var(--green-dark);
  background: rgba(255, 255, 255, .35);
  backdrop-filter: blur(3px);
}
.btn--ghost:hover {
  border-color: var(--green);
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--sh-sm);
}
.btn--dark { color: var(--ink); border-color: rgba(45, 42, 33, .22); }

.btn--outline {
  border-color: rgba(255, 255, 255, .55);
  color: #f5f0e2;
  background: rgba(255, 255, 255, .04);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, .13);
  border-color: #fff;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55);
}

.btn--sm { padding: .72rem 1.2rem; font-size: .72rem; }

/* ----------------------------------------------------------------------- */
/* 5. Cabeçalho                                                             */
/* ----------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease),
              backdrop-filter .5s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.4rem);
  padding-block: clamp(.65rem, 1.1vw, 1.05rem);
  transition: padding .45s var(--ease);
}
.site-header__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 42, 33, .16) 18%,
              rgba(45, 42, 33, .16) 82%, transparent);
  opacity: 0;
  transition: opacity .5s ease;
}
.site-header.is-stuck {
  background: rgba(246, 240, 226, .88);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 10px 30px -22px rgba(45, 42, 33, .6);
}
.site-header.is-stuck .site-header__inner { padding-block: .5rem; }
.site-header.is-stuck .site-header__rule { opacity: 1; }
.site-header.is-stuck .brand__mark { width: 42px; }
.site-header.is-stuck .brand__sub { opacity: 0; max-height: 0; }

/* marca */
.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand__mark {
  width: 50px;
  height: auto;
  transition: width .45s var(--ease), transform .6s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: grid; line-height: 1; }
.brand__name-1 {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--green-dark);
}
.brand__name-2 {
  font-family: var(--serif);
  font-size: 1.62rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--green-dark);
  margin-top: -.06em;
}
.brand__sub {
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .22em;
  overflow: hidden;
  transition: opacity .35s ease, max-height .35s ease;
  max-height: 2em;
}

/* navegação */
.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.2vw, 1.15rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: .4rem .1rem;
  font-size: .82rem;
  font-weight: 450;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .3s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .42s var(--ease);
}
.nav__link:hover { color: var(--green-dark); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green-dark); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }

.site-header__cta { flex: none; }

/* botão de menu (mobile) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  place-items: center;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(45, 42, 33, .14);
  border-radius: 10px;
  color: var(--green-dark);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* gaveta mobile */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: linear-gradient(160deg, var(--paper), var(--sand));
  padding: 6.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  animation: drawer-in .45s var(--ease) both;
}
.drawer[hidden] { display: none; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-10px); } }

.drawer__nav ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.drawer__nav li {
  border-bottom: 1px solid rgba(45, 42, 33, .1);
  animation: item-in .5s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms + 80ms);
}
@keyframes item-in { from { opacity: 0; transform: translateX(-14px); } }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem .2rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
}
.drawer__nav a svg { width: 20px; height: 20px; color: var(--green); opacity: .5; }
.drawer__nav a.is-active { color: var(--green-dark); }
.drawer__cta { width: 100%; justify-content: center; }

/* ----------------------------------------------------------------------- */
/* 6. Hero                                                                  */
/* ----------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(7.5rem, 12vw, 10.5rem) clamp(4.5rem, 8vw, 7rem);
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(217, 187, 138, .3), transparent 60%),
    radial-gradient(90% 70% at 4% 92%, rgba(143, 174, 149, .22), transparent 62%),
    linear-gradient(168deg, var(--paper-warm), var(--paper) 55%, var(--sand));
  overflow: hidden;
}
.hero__paper {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(101deg, rgba(45, 42, 33, .022) 0 1px, transparent 1px 5px);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}
.hero__copy { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.6rem;
  padding: .42rem .95rem .42rem .7rem;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(63, 107, 74, .2);
  border-radius: 100px;
  box-shadow: var(--sh-sm);
}
.eyebrow svg { width: 15px; height: 15px; color: var(--green-mid); }

.hero__title {
  font-size: clamp(2.85rem, 6.4vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.022em;
  margin-bottom: 1.5rem;
}
.hero__title span, .hero__title em { display: block; }
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--green);
  margin-top: .06em;
}

.hero__lead {
  max-width: 44ch;
  font-size: clamp(1rem, .35vw + .95rem, 1.13rem);
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__sprig {
  position: absolute;
  right: -2.5rem;
  bottom: -4.5rem;
  width: 88px;
  height: 88px;
  color: var(--green-soft);
  opacity: .38;
  animation: sway 7s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-6px); }
}

/* mídia do hero */
.hero__media { position: relative; }

.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--sand-deep);
  filter: drop-shadow(0 30px 50px rgba(45, 42, 33, .26));
  transition: transform .8s var(--ease);
}
.frame--torn { clip-path: var(--deckle); aspect-ratio: 4 / 3.05; }
.frame--soft {
  clip-path: var(--deckle);
  aspect-ratio: 4 / 3.3;
}
.frame > img,
.frame .art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* leve aquecimento para as fotos conversarem com o papel do layout */
  filter: saturate(.94) contrast(1.02) brightness(1.01);
  transition: transform 1.2s var(--ease), filter .6s ease;
}
.frame:hover { transform: scale(1.012) rotate(-.25deg); }
.frame:hover > img { transform: scale(1.04); filter: saturate(1.04) contrast(1.03); }

/* véu quente por cima da foto, na mesma temperatura do layout */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(249, 226, 176, .3), transparent 62%),
    linear-gradient(180deg, rgba(201, 154, 82, .06), rgba(45, 60, 40, .12));
  mix-blend-mode: multiply;
  opacity: .55;
}

.art { display: block; width: 100%; height: 100%; }

.frame__caption {
  position: absolute;
  z-index: 2;
  left: 6%;
  right: 6%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--green-deep);
  background: rgba(246, 240, 226, .9);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: var(--sh-md);
  transform: translateY(6px);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .5s ease;
}
.frame:hover .frame__caption,
.frame:focus-within .frame__caption { transform: translateY(0); opacity: 1; }
.frame__caption svg { width: 20px; height: 20px; color: var(--green); flex: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
  z-index: -1;
}
.blob--1 {
  width: 260px; height: 260px;
  top: -6%; right: -8%;
  background: rgba(217, 187, 138, .5);
  animation: float 12s ease-in-out infinite;
}
.blob--2 {
  width: 200px; height: 200px;
  bottom: -8%; left: -10%;
  background: rgba(143, 174, 149, .45);
  animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(14px, -18px, 0) scale(1.08); }
}

/* ----------------------------------------------------------------------- */
/* 7. Números                                                               */
/* ----------------------------------------------------------------------- */
.stats {
  position: relative;
  background: var(--paper);
  padding-block: clamp(2.2rem, 4vw, 3.4rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 2.4rem);
}
.stat {
  display: grid;
  gap: .15rem;
  text-align: center;
  padding: .4rem 1rem;
  border-left: 1px solid rgba(45, 42, 33, .12);
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.4vw, 3.15rem);
  font-weight: 600;
  line-height: 1;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.stat__hint {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ----------------------------------------------------------------------- */
/* 8. Seções e títulos                                                      */
/* ----------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(3.6rem, 7vw, 6.4rem);
}
.section--cream { background: var(--paper); }
.section--sand  { background: var(--sand); }

.section__head {
  max-width: 66ch;
  margin: 0 auto clamp(2.4rem, 4.5vw, 3.8rem);
  text-align: center;
}
.section__sub {
  margin-top: 1rem;
  font-size: 1.03rem;
  color: var(--ink-soft);
}

.h-script {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.012em;
  margin-bottom: 1.3rem;
}
.h-script--center { justify-content: center; }
.h-script--sm { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.h-script__leaf {
  width: .82em;
  height: .82em;
  flex: none;
  color: var(--green-mid);
  opacity: .75;
}
.h-script__leaf--flip { transform: scaleX(-1); }

.lead {
  font-size: clamp(1.03rem, .4vw + .95rem, 1.17rem);
  color: var(--ink-soft);
}

/* lista com marcador de verificação */
.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.ticks svg {
  width: 17px; height: 17px;
  margin-top: .35em;
  flex: none;
  color: var(--green);
}

.divider-heart {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 2.2rem;
  color: var(--green-soft);
}
.divider-heart span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(63, 107, 74, .3), transparent);
}
.divider-heart svg { width: 22px; height: 22px; flex: none; }

/* ----------------------------------------------------------------------- */
/* 9. Quem somos                                                            */
/* ----------------------------------------------------------------------- */
.quem__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.6rem);
  align-items: center;
}

/* ----------------------------------------------------------------------- */
/* 10. Versículo                                                            */
/* ----------------------------------------------------------------------- */
.scripture {
  position: relative;
  padding-block: clamp(4.2rem, 8vw, 7rem);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(217, 187, 138, .34), transparent 62%),
    var(--paper-warm);
  overflow: hidden;
}
.scripture__inner {
  position: relative;
  max-width: 60ch;
  text-align: center;
}
.scripture__quote {
  width: 62px;
  height: 42px;
  margin: 0 auto 1.6rem;
  fill: var(--green-soft);
  opacity: .45;
}
.scripture blockquote { margin: 0; }
.scripture blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.9vw, 2.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.01em;
  color: var(--green-deep);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.scripture cite {
  display: block;
  font-family: var(--sans);
  font-size: .74rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.scripture__sprig {
  position: absolute;
  width: clamp(70px, 9vw, 130px);
  height: auto;
  aspect-ratio: 1;
  color: var(--green-soft);
  opacity: .3;
}
.scripture__sprig--l { left: -7%; bottom: -8%; transform: rotate(-18deg); }
.scripture__sprig--r { right: -6%; top: -7%; transform: rotate(150deg); }

/* ----------------------------------------------------------------------- */
/* 11. Linha do tempo                                                       */
/* ----------------------------------------------------------------------- */
.timeline {
  --tl-gap: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--tl-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tl;
}
.tl { position: relative; display: grid; align-content: start; gap: .85rem; }

.tl__head { display: flex; align-items: center; gap: .7rem; position: relative; }
/* fio que liga os anos */
.tl__head::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--tl-gap);
  height: 1px;
  background: repeating-linear-gradient(90deg,
              rgba(63, 107, 74, .38) 0 5px, transparent 5px 10px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease) .2s;
}
.tl.is-in .tl__head::after { transform: scaleX(1); }
.tl:last-child .tl__head::after,
.tl:nth-child(5) .tl__head::after { display: none; }

.tl__dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: var(--paper-warm);
  border: 1px solid rgba(63, 107, 74, .32);
  border-radius: 50%;
  color: var(--green);
  box-shadow: 0 0 0 5px rgba(246, 240, 226, .9), var(--sh-sm);
  transition: transform .5s var(--ease), background-color .4s ease, color .4s ease;
}
.tl__dot svg { width: 23px; height: 23px; }
.tl:hover .tl__dot {
  transform: scale(1.1) rotate(-6deg);
  background: var(--green);
  color: #f3ead6;
}
.tl__year {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}

.tl__card {
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(45, 42, 33, .09);
  border-radius: var(--radius);
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease),
              background-color .4s ease;
}
.tl:hover .tl__card {
  transform: translateY(-5px);
  background: #fffdf7;
  box-shadow: var(--sh-md);
}
.tl__card h3 {
  font-size: 1.12rem;
  margin-bottom: .35rem;
  color: var(--green-dark);
}
.tl__card p { font-size: .875rem; color: var(--ink-soft); line-height: 1.6; }

/* ----------------------------------------------------------------------- */
/* 12. Propósito · Missão · Valores                                          */
/* ----------------------------------------------------------------------- */
.pmv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, .85fr)) minmax(0, 1.3fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
.pmv__col--wide { position: relative; }
.pmv__body { display: grid; gap: 1rem; }
.pmv__icon {
  width: 78px;
  height: 78px;
  color: var(--green);
  opacity: .92;
  transition: transform .6s var(--ease);
}
.pmv__col:hover .pmv__icon { transform: translateY(-4px) rotate(-3deg); }
.pmv__body p { color: var(--ink-soft); font-size: .97rem; }

.valores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.8rem, 1.8vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.valor {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: .6rem .3rem;
  text-align: center;
  cursor: default;
}
.valor__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--green);
  border-radius: 50%;
  transition: transform .5s var(--ease), background-color .4s ease, color .4s ease;
}
.valor__icon svg { width: 30px; height: 30px; }
.valor:hover .valor__icon {
  transform: translateY(-4px) scale(1.06);
  background: var(--green);
  color: #f3ead6;
}
.valor__label {
  min-height: 2.4em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink);
}
.valor__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .3rem);
  z-index: 5;
  width: max-content;
  max-width: 190px;
  padding: .5rem .7rem;
  font-size: .74rem;
  line-height: 1.4;
  color: var(--paper);
  background: var(--green-deep);
  border-radius: 8px;
  box-shadow: var(--sh-md);
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .35s var(--ease), visibility .3s;
}
.valor:hover .valor__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ----------------------------------------------------------------------- */
/* 13. Cartões dos projetos                                                 */
/* ----------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.7rem);
}
.card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(45, 42, 33, .09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease),
              background-color .4s ease;
}
.card:hover {
  transform: translateY(-8px);
  background: #fffdf7;
  box-shadow: var(--sh-lg);
}
.card__head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.25rem 1.25rem .95rem;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--green);
  background: var(--green-wash);
  border-radius: 12px;
  transition: transform .5s var(--ease), background-color .4s ease, color .4s ease;
}
.card__icon svg { width: 25px; height: 25px; }
.card:hover .card__icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--green);
  color: #f3ead6;
}
.card__tag {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__title { font-size: 1.24rem; color: var(--ink); margin-top: .1em; }

.card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-deep);
}
.card__media { position: relative; }
.card__media > img,
.card__media .art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s ease;
  filter: saturate(.93) contrast(1.02);
}
.card:hover .card__media > img,
.card:hover .card__media .art { transform: scale(1.07); filter: saturate(1.04); }

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(201, 154, 82, .1), rgba(45, 60, 40, .14));
  mix-blend-mode: multiply;
  opacity: .5;
}

.card__body { padding: 1.15rem 1.25rem; }
.card__subtitle {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--green);
  margin-bottom: .5rem;
}
.card__body p:last-child { font-size: .9rem; color: var(--ink-soft); line-height: 1.62; }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .95rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(45, 42, 33, .08);
}
.card__foot > span {
  font-size: .71rem;
  letter-spacing: .05em;
  color: var(--ink-faint);
}
.card__link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--green-dark);
  border: 1px solid rgba(63, 107, 74, .28);
  border-radius: 50%;
  transition: background-color .35s ease, color .35s ease, transform .45s var(--ease);
}
.card__link svg { width: 17px; height: 17px; }
.card__link:hover {
  background: var(--green-dark);
  color: var(--paper);
  transform: translateX(3px);
}

/* ----------------------------------------------------------------------- */
/* 14. Ações realizadas                                                     */
/* ----------------------------------------------------------------------- */
.acoes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.4rem);
  align-items: center;
}
.acoes__intro p { color: var(--ink-soft); }
.acoes__intro .btn { margin-top: 1.6rem; }

.frentes { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.frente {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.2rem;
  font-size: .96rem;
  font-weight: 450;
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(45, 42, 33, .08);
  border-left: 3px solid var(--green-soft);
  border-radius: 10px;
  box-shadow: var(--sh-sm);
  transition: transform .45s var(--ease), border-left-color .35s ease,
              background-color .35s ease, box-shadow .45s var(--ease);
}
.frente:hover {
  transform: translateX(7px);
  border-left-color: var(--green);
  background: #fffdf7;
  box-shadow: var(--sh-md);
}
.frente__mark { width: 21px; height: 21px; flex: none; color: var(--gold); }

/* ----------------------------------------------------------------------- */
/* 15. Galeria                                                              */
/* ----------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 15vw, 185px);
  gap: clamp(.7rem, 1.5vw, 1.15rem);
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-deep);
  box-shadow: var(--sh-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item > img,
.gallery__item .art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s ease;
  filter: saturate(.92) contrast(1.02);
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); z-index: 2; }
.gallery__item:hover > img,
.gallery__item:hover .art { transform: scale(1.07); filter: saturate(1.05); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.2rem .95rem .85rem;
  font-size: .8rem;
  font-weight: 500;
  color: #f6f0e2;
  background: linear-gradient(transparent, rgba(30, 34, 24, .82));
  transform: translateY(8px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s ease;
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

.gallery__more { margin-top: 2.2rem; text-align: center; }

/* ----------------------------------------------------------------------- */
/* 16. Voluntário / Como ajudar                                             */
/* ----------------------------------------------------------------------- */
.ajuda {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.4rem);
  align-items: center;
}
.ajuda__media { position: relative; }
.pill-quote {
  position: absolute;
  right: -1.2rem;
  bottom: -1.4rem;
  max-width: 17rem;
  margin: 0;
  padding: 1.15rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--green-deep);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--sh-lg);
  transition: transform .6s var(--ease);
}
.pill-quote cite {
  display: block;
  margin-top: .55rem;
  font-family: var(--sans);
  font-size: .66rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.ajuda__media:hover .pill-quote { transform: translateY(-5px) rotate(-1deg); }

.ajuda__sub {
  margin: 2.2rem 0 1.1rem;
  font-family: var(--sans);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold);
}
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.way {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}
.way > svg {
  width: 30px;
  height: 30px;
  flex: none;
  margin-top: .1rem;
  padding: 0;
  color: var(--green);
  transition: transform .5s var(--ease);
}
.way:hover > svg { transform: scale(1.12) rotate(-6deg); }
.way div { display: grid; gap: .18rem; }
.way strong { font-size: .97rem; color: var(--ink); }
.way span { font-size: .87rem; color: var(--ink-soft); line-height: 1.55; }

.ajuda__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

/* ----------------------------------------------------------------------- */
/* 17. Faixa de chamada                                                     */
/* ----------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-block: clamp(3.4rem, 6.5vw, 5.4rem);
  /* termina exatamente na cor do rodapé, para não deixar emenda visível */
  background:
    radial-gradient(90% 130% at 50% -10%, rgba(143, 174, 149, .28), transparent 60%),
    linear-gradient(180deg, var(--green-dark), var(--green-deep));
  color: #f4efe1;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(94deg, rgba(255,255,255,.03) 0 1px, transparent 1px 6px);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; }
.cta__title {
  font-size: clamp(1.65rem, 3.6vw, 2.7rem);
  font-weight: 600;
  color: #f7f2e4;
  margin-bottom: .8rem;
  text-wrap: balance;
}
.cta__sub {
  max-width: 48ch;
  margin: 0 auto 2.2rem;
  font-size: 1rem;
  color: rgba(244, 239, 225, .78);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}
.cta__sprig {
  position: absolute;
  width: clamp(72px, 8vw, 120px);
  aspect-ratio: 1;
  color: #cfe0d1;
  opacity: .17;
}
.cta__sprig--l { left: 0; top: -8%; transform: rotate(-24deg); }
.cta__sprig--r { right: 0; bottom: -10%; transform: rotate(156deg); }

/* ----------------------------------------------------------------------- */
/* 18. Rodapé                                                               */
/* ----------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-block: clamp(3.2rem, 6vw, 5rem) 1.6rem;
  background: var(--green-deep);
  color: rgba(238, 232, 216, .82);
  font-size: .9rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
}
.site-footer__brand { position: relative; }
.site-footer__brand img {
  width: 118px;
  height: auto;
  opacity: .9;
}
.site-footer__tagline {
  margin-top: .7rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  color: rgba(238, 232, 216, .7);
}
.site-footer__heart {
  width: 20px;
  height: 20px;
  margin-top: .8rem;
  color: var(--green-soft);
  opacity: .7;
}

.site-footer__title {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #f2ecdc;
  margin-bottom: 1.15rem;
}
.site-footer__links, .site-footer__contact, .social {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__links--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .1rem 1rem;
}
.site-footer__links a {
  display: inline-block;
  padding: .28rem 0;
  color: rgba(238, 232, 216, .8);
  transition: color .3s ease, transform .35s var(--ease);
}
.site-footer__links a:hover { color: #fff; transform: translateX(4px); }

.site-footer__contact { display: grid; gap: .85rem; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: .7rem; line-height: 1.5; }
.site-footer__contact svg {
  width: 18px; height: 18px;
  flex: none;
  margin-top: .28em;
  color: var(--green-soft);
}
.site-footer__contact em {
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(238, 232, 216, .5);
  margin-left: .35rem;
}

.social { display: flex; gap: .55rem; margin-bottom: 1.2rem; }
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #eee8d8;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  transition: background-color .35s ease, transform .45s var(--ease), color .3s ease;
}
.social svg { width: 19px; height: 19px; }
.social a:hover {
  background: var(--green-soft);
  color: var(--green-deep);
  transform: translateY(-3px);
}
.site-footer__note { font-size: .82rem; color: rgba(238, 232, 216, .58); line-height: 1.6; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: rgba(238, 232, 216, .55);
}
.site-footer__bottom p { margin: 0; }
.site-footer__leaf { display: flex; align-items: center; gap: .5rem; }
.site-footer__leaf svg { width: 15px; height: 15px; color: var(--green-soft); }

/* ----------------------------------------------------------------------- */
/* 19. Voltar ao topo                                                       */
/* ----------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--paper);
  background: var(--green-dark);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--sh-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .4s ease, transform .5s var(--ease),
              visibility .4s, background-color .3s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); transform: translateY(-3px); }

/* ----------------------------------------------------------------------- */
/* 20. Animações de entrada                                                 */
/* ----------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease) var(--d, 0ms),
              transform .95s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal--scale { transform: translateY(30px) scale(.975); }
.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------- */
/* 21. Responsivo                                                           */
/* ----------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .nav__list { gap: .55rem; }
  .nav__link { font-size: .76rem; }
}

@media (max-width: 1120px) {
  .nav, .site-header__cta { display: none; }
  .nav-toggle { display: grid; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl:nth-child(3n) .tl__head::after,
  .tl:nth-child(5) .tl__head::after { display: none; }
  .tl:nth-child(4) .tl__head::after,
  .tl:nth-child(7) .tl__head::after { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmv__col--wide { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .hero__grid,
  .quem__grid,
  .acoes,
  .ajuda { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 7rem 3.5rem; }
  .hero__media { order: -1; }
  .quem__media { order: -1; }
  .hero__sprig { display: none; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
  .stat:nth-child(odd) { border-left: 0; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .pill-quote { position: static; margin-top: 1.2rem; max-width: none; }
}

@media (max-width: 640px) {
  .brand__mark { width: 44px; }
  .brand__name-2 { font-size: 1.35rem; }
  .brand__sub { display: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .tl__head::after { display: none !important; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .pmv { grid-template-columns: minmax(0, 1fr); }
  .valores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 1; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn, .ajuda__actions .btn, .cta__actions .btn { width: 100%; }
  .scripture__sprig { display: none; }
  .stats__grid { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0; }
}

/* ----------------------------------------------------------------------- */
/* 22. Preferências de acessibilidade                                       */
/* ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .drawer, .edge { display: none !important; }
  body::before { display: none; }
  .reveal { opacity: 1; transform: none; }
}
