:root {
  --bg: #f7f8fa;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #16a34a;
  --shadow: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.35rem;
  border-radius: .75rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px var(--shadow); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--secondary { background: #fff; color: var(--text); border: 1px solid #e5e7eb; }

.btn--pulse { animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14,165,233, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(14,165,233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14,165,233, 0); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.header.sticky { background: #fff; box-shadow: 0 6px 16px var(--shadow); }
.logo { height: 40px; width: auto; display: inline-block; }

.nav__list { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; }
.nav__list a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav__toggle { display: none; background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; padding: .4rem .6rem; }
.header__cta { display: inline-flex; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__image { width: 100%; height: 52vh; object-fit: cover; object-position: center; display: block; opacity: 0; transform: translateY(-8px); }
.hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.45) 100%); z-index: 1; }
.hero.loaded .hero__image { animation: fadeDown .8s ease forwards; }
.hero__overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; z-index: 2; }
.hero__title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 900px; }
.hero__subtitle { color: #eef; background: rgba(0,0,0,.25); padding: .4rem .8rem; border-radius: .5rem; }
@keyframes fadeDown { to { opacity: 1; transform: translateY(0); } }

/* Stats */
.stats { padding: 1.5rem 0 1rem; background: #fff; box-shadow: 0 6px 16px var(--shadow); }
.stats__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.stat { background: #fff; border: 1px solid #eef; border-radius: .75rem; padding: .9rem; }
.stat__label { color: var(--muted); font-size: .9rem; }
.stat__value { font-weight: 700; font-size: 1.25rem; }
.progress { height: 14px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-top: .75rem; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0%; }

/* Description */
.description { padding: 2rem 0; }
.description h2 { margin: 0 0 .5rem; }

/* Steps */
.steps { padding: 1.5rem 0 2rem; }
.steps__header { margin-bottom: .75rem; }
.steps__header h2 { margin: 0; }
.steps__subtitle { color: var(--muted); margin: .25rem 0 1rem; }
.steps__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.step { background: #fff; border: 1px solid #eef; border-radius: .75rem; padding: 1rem; display: grid; grid-template-columns: auto 48px 1fr; align-items: start; gap: .75rem; box-shadow: 0 6px 16px var(--shadow); }
.step__num { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step__icon { width: 40px; height: 40px; }
.step__title { font-weight: 700; }
.step__desc { color: var(--muted); margin-top: .15rem; }
.trust { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #eef; border-radius: 999px; padding: .4rem .8rem; box-shadow: 0 6px 16px var(--shadow); }
.badge img { width: 20px; height: 20px; }

/* Gallery */
.gallery { padding: 1.5rem 0 2.5rem; }
.gallery__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery__item { overflow: hidden; border-radius: .75rem; box-shadow: 0 6px 16px var(--shadow); transform: scale(.96); opacity: 0; }
.gallery__item.visible { animation: zoomIn .5s ease forwards; }
.gallery__item img { display: block; width: 100%; height: 220px; object-fit: cover; }
@keyframes zoomIn { to { opacity: 1; transform: scale(1); } }

/* Contribute */
.contribute { padding: 2rem 0; }
.contribute__box { background: #fff; border: 1px solid #eef; border-radius: .75rem; padding: 1.25rem; text-align: center; box-shadow: 0 6px 16px var(--shadow); }

/* Footer */
.footer { background: #0b1220; color: #cbd5e1; padding: 1rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; }

/* Floating CTA Mobile */
.floating-cta { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: none; }

/* (modal de compartilhamento removido) */

/* Responsive */
@media (max-width: 900px) {
  .stats__grid, .steps__grid, .gallery__grid { grid-template-columns: repeat(2,1fr); }
  .hero__image { height: 46vh; }
}
@media (max-width: 640px) {
  .logo { height: 34px; }
  .nav__toggle { display: inline-flex; }
  .nav__list { position: absolute; right: 4%; top: 60px; background: #fff; border: 1px solid #eee; border-radius: .5rem; padding: .5rem; display: none; flex-direction: column; box-shadow: 0 6px 16px var(--shadow); }
  .nav__list.open { display: flex; }
  .header__cta { display: none; }
  .stats__grid, .steps__grid, .gallery__grid { grid-template-columns: 1fr; }
  .container { width: min(1000px, 94%); }
  .btn { padding: .95rem 1.4rem; font-size: 1rem; }
  .stat__value { font-size: 1.15rem; }
  .gallery__item img { height: 190px; }
  .floating-cta { display: inline-flex; }
}
.story { padding: 1.5rem 0 1rem; }
.story h2 { margin: 0 0 .5rem; }
.carousel { padding: 1rem 0 2rem; }
.carousel__viewport { position: relative; overflow: hidden; border-radius: .75rem; box-shadow: 0 6px 16px var(--shadow); background: #fff; }
.carousel__track { display: flex; transition: transform .35s ease; }
.carousel__item { min-width: 100%; }
.carousel__item img { display: block; width: 100%; height: clamp(220px, 40vh, 420px); object-fit: contain; object-position: center; background: #fff; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: 0; border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.carousel__btn:hover { background: rgba(0,0,0,.6); }
.carousel__btn.prev { left: .5rem; }
.carousel__btn.next { right: .5rem; }
.carousel__dots { display: flex; gap: .4rem; justify-content: center; margin-top: .5rem; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; }
.carousel__dot.active { background: var(--primary); }