/* Celeiro São Paulo — House of Prayer
   Tokens extraídos da identidade pública (celeirosaopaulo.com):
   creme #FFF5DE, areia #ECE9DD, papel #FAF9F5, tinta #1E1E1E / #262626,
   display condensado (oficial: Druk → web: Anton), texto Poppins (oficial). */

:root {
  --ink: #1e1e1e;
  --ink-2: #262626;
  --ink-3: #3a3835;
  --cream: #fff5de;
  --sand: #ece9dd;
  --paper: #faf9f5;
  --ember: #c79b6b;       /* dourado das fotos sépia — usar com parcimônia */
  --ember-ink: #8a6440;   /* versão escura p/ texto sobre claro (AA) */
  --muted-dark: rgba(255, 245, 222, .72);
  --muted-light: #5b5650;
  --line-dark: rgba(255, 245, 222, .16);
  --line-light: rgba(30, 30, 30, .14);

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --radius: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .005em;
  font-size: clamp(3rem, 9vw, 8.5rem);
}
.h2 {
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: .95;
  font-size: clamp(2.4rem, 6vw, 5rem);
}
.h3 {
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-light .eyebrow { color: var(--ember-ink); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; font-weight: 500; }
.muted { color: var(--muted-dark); }
.on-light .muted { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cream); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius); border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-decoration: none;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--cream); border-color: rgba(255,245,222,.55); }
.btn--ghost:hover { background: rgba(255,245,222,.08); }
.on-light .btn { --bg: var(--ink); --fg: var(--cream); }
.on-light .btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(30,30,30,.4); }
.on-light .btn--ghost:hover { background: rgba(30,30,30,.05); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .9rem;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link:hover .arr { transform: translateX(4px); }
.link .arr { transition: transform .3s var(--ease); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.hdr.is-solid { background: rgba(30,30,30,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.hdr.is-solid .hdr__in { height: 68px; }
.hdr__in { transition: height .4s var(--ease); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 46px; }
.hdr.is-solid .brand img { height: 38px; }
.brand img { transition: height .4s var(--ease); }
.nav { display: none; }
.nav a { text-decoration: none; font-size: .85rem; font-weight: 500; letter-spacing: .03em; opacity: .86; padding: 8px 2px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr__cta { display: none; min-height: 44px; padding: 0 20px; font-size: .82rem; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 10px 0; cursor: pointer;
}
.menu-btn__bars { width: 26px; height: 10px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 8px; }
.menu-open .menu-btn__bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__bars::after { top: 4px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 40; background: var(--ink);
  padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.menu-open .drawer { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.drawer__nav a {
  display: block; font-family: var(--f-display); text-transform: uppercase; text-decoration: none;
  font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.12; border-bottom: 1px solid var(--line-dark); padding: 6px 0;
}
.drawer__info { margin-top: 32px; font-size: .9rem; display: grid; gap: 14px; }
.drawer__info strong { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); font-weight: 600; }

@media (min-width: 1080px) {
  .nav { display: flex; gap: 28px; }
  .hdr__cta { display: inline-flex; }
  .menu-btn, .drawer { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.05) 30%, rgba(20,18,16,.25) 60%, rgba(30,30,30,.96) 100%);
}
.hero__content { padding-top: 120px; padding-bottom: 40px; display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero__title { width: min(760px, 92vw); filter: drop-shadow(0 10px 40px rgba(0,0,0,.35)); }
.hero__tag { font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.hero__sub { max-width: 34ch; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted-dark); margin: 0; }
.hero .btns { justify-content: center; }

.strip { border-top: 1px solid var(--line-dark); }
.strip__in { display: grid; gap: 0; }
.strip__item { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: .92rem; text-decoration: none; }
.strip__item:last-child { border-bottom: 0; }
.strip__k { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ember); font-weight: 600; min-width: 74px; }
.strip__item .arr { margin-left: auto; }
@media (min-width: 860px) {
  .strip__in { grid-template-columns: 1.1fr 1.4fr auto; }
  .strip__item { border-bottom: 0; border-right: 1px solid var(--line-dark); padding: 22px 28px; }
  .strip__item:first-child { padding-left: 0; }
  .strip__item:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- Sections ---------- */
.sec { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.on-light { background: var(--paper); color: var(--ink); }
.on-sand { background: var(--sand); color: var(--ink); }
.on-cream { background: var(--cream); color: var(--ink); }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* About */
.about { display: grid; gap: 56px; align-items: center; }
.about__img { max-width: 440px; margin: 0 auto; width: 100%; }
.about__body .h2 { margin: 18px 0 28px; }
.about__body p { max-width: 54ch; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; gap: 96px; } }

/* Pillars */
.pillars { border-top: 1px solid var(--line-light); }
.pillar { display: grid; gap: 10px 48px; padding: 34px 0; border-bottom: 1px solid var(--line-light); align-items: baseline; }
.pillar__n { font-size: .75rem; font-weight: 600; letter-spacing: .2em; color: var(--ember-ink); }
.pillar__w { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3rem, 10vw, 7.5rem); line-height: .9; }
.pillar__t { max-width: 42ch; color: var(--muted-light); margin: 0; }
@media (min-width: 900px) { .pillar { grid-template-columns: 70px 1.2fr 1fr; } }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head p { max-width: 52ch; margin: 0; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1fr 1fr; align-items: end; } }

/* Leaders */
.leaders { position: relative; overflow: hidden; background: #efede7; color: var(--ink); }
.leaders__grid { display: grid; }
.leaders__photo { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; }
.leaders__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.leaders__body { padding: clamp(56px, 8vw, 120px) var(--gutter); }
.leaders__body .h2 { margin: 18px 0 8px; }
.leaders__names { font-weight: 600; margin-bottom: 28px; }
.leaders__body p { max-width: 52ch; }
.handles { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 32px; font-size: .9rem; }
@media (min-width: 1000px) {
  .leaders__grid { grid-template-columns: 1fr 1fr; min-height: 760px; }
  .leaders__photo { aspect-ratio: auto; order: 2; }
  .leaders__photo img { object-position: 74% 70%; }
  .leaders__body { display: flex; flex-direction: column; justify-content: center; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* Visit */
.visit { position: relative; isolation: isolate; overflow: hidden; }
.visit__bg { position: absolute; inset: 0; z-index: -2; }
.visit__bg img { width: 100%; height: 100%; object-fit: cover; }
.visit::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,30,30,.96) 0%, rgba(30,30,30,.82) 50%, rgba(30,30,30,.55) 100%); }
.visit__grid { display: grid; gap: 56px; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden; }
.time { padding: 22px 16px; border-right: 1px solid var(--line-dark); text-align: center; }
.time:last-child { border-right: 0; }
.time__d { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.time__h { font-family: var(--f-display); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; margin-top: 8px; }
.addr { font-size: 1.05rem; line-height: 1.55; margin: 26px 0; }
.addr strong { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ember); margin-bottom: 6px; }
@media (min-width: 960px) { .visit__grid { grid-template-columns: 1fr 1fr; align-items: end; } }

/* Life (initiatives list) */
.life { border-top: 1px solid var(--line-dark); }
.life__row {
  display: grid; gap: 10px 32px; padding: 30px 0; border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 1fr; align-items: center; position: relative;
}
.life__k { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ember); }
.life__n { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; transition: transform .45s var(--ease); }
.life__t { color: var(--muted-dark); margin: 0; max-width: 46ch; }
.life__row:hover .life__n { transform: translateX(10px); }
@media (min-width: 960px) { .life__row { grid-template-columns: 140px 1.1fr 1fr 220px; } .life__cta { justify-self: end; } }

/* Volunteer banner */
.vol { display: block; border-radius: 22px; overflow: hidden; position: relative; text-decoration: none; }
.vol img { width: 100%; transition: transform .8s var(--ease); }
.vol:hover img { transform: scale(1.02); }

/* Giving */
.giving { position: relative; isolation: isolate; }
.giving__bg { position: absolute; inset: 0; z-index: -1; opacity: .55; }
.giving__bg img { width: 100%; height: 100%; object-fit: cover; }
.giving__grid { display: grid; gap: 48px; align-items: center; }
.giving blockquote { margin: 0; }
.giving blockquote p { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1; margin: 18px 0 14px; }
.giving cite { font-style: normal; font-weight: 600; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; }
.bank { background: var(--ink); color: var(--cream); border-radius: 22px; padding: 30px; display: grid; gap: 22px; }
.bank dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .92rem; }
.bank dt { color: var(--muted-dark); }
.bank dd { margin: 0; font-weight: 600; }
.bank__pix { display: flex; gap: 18px; align-items: center; }
.bank__pix img { width: 120px; border-radius: 12px; background: #fff; }
.copy { background: none; border: 1px solid var(--line-dark); color: inherit; border-radius: 999px; padding: 8px 14px; font-size: .78rem; cursor: pointer; }
.copy:hover { background: rgba(255,245,222,.08); }
@media (min-width: 960px) { .giving__grid { grid-template-columns: 1.2fr 1fr; } }

/* Final CTA */
.final { text-align: center; }
.final .display { margin: 20px 0 26px; }
.final .btns { justify-content: center; margin-top: 30px; }

/* Footer */
.ftr { background: #161615; color: var(--cream); padding: 80px 0 36px; font-size: .9rem; }
.ftr__grid { display: grid; gap: 40px; }
.ftr__logo img { width: 120px; height: auto; }
.ftr h2 { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.ftr li { margin-bottom: 8px; }
.ftr a { text-decoration: none; opacity: .85; }
.ftr a:hover { opacity: 1; text-decoration: underline; }
.ftr__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted-dark); font-size: .8rem; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* ---------- Inner pages ---------- */
.phero { position: relative; padding: 170px 0 80px; overflow: hidden; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,30,30,.4), var(--ink)); }
.phero .display { margin: 18px 0 22px; font-size: clamp(3rem, 11vw, 9rem); }
.phero p { max-width: 54ch; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.3fr; gap: 80px; } }
.prose p { max-width: 62ch; }
.prose h2 { margin: 0 0 18px; }

.groups { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.group { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; }
.group__n { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.05; }
.group__note { font-size: .78rem; color: var(--muted-light); margin-left: 8px; font-family: var(--f-body); text-transform: none; }
.group__go { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.group:hover .group__n { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (min-width: 900px) { .groups { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

.map { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 3; }
.map img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.map__btn { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.facts { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.fact { display: grid; gap: 4px 30px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.fact dt { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ember); font-weight: 600; }
.fact dd { margin: 0; }
@media (min-width: 760px) { .fact { grid-template-columns: 200px 1fr; } }
.on-light .facts, .on-light .fact { border-color: var(--line-light); }
.on-light .fact dt { color: var(--ember-ink); }

.empty { border: 1px dashed var(--line-dark); border-radius: 22px; padding: clamp(28px, 5vw, 56px); }
.on-light .empty { border-color: var(--line-light); }

.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .82rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-light); border-radius: 12px; padding: 14px 16px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field .err { color: #a32020; font-size: .8rem; min-height: 1em; }
.form__status { font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; transform: none; }
  * { transition-duration: .01ms !important; }
}

/* Mobile-first: trilhas de grid nunca maiores que a tela */
.about, .split, .leaders__grid, .pillar, .visit__grid, .giving__grid, .ftr__grid, .life__row, .hero__content { grid-template-columns: minmax(0, 1fr); }
.pillar__w { font-size: clamp(2.6rem, 12vw, 7.5rem); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 6fr; }
  .split { grid-template-columns: 1fr 1.3fr; }
  .pillar { grid-template-columns: 70px 1.2fr 1fr; }
}
@media (min-width: 960px) {
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .giving__grid { grid-template-columns: 1.2fr 1fr; }
  .life__row { grid-template-columns: 140px 1.1fr 1fr 220px; }
}
@media (min-width: 1000px) { .leaders__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.img-cap { width: 100%; max-width: 420px; }

/* Ajustes pós-revisão visual: espaço para acentos nas fontes display e enquadramento da foto dos pastores */
.display { line-height: .98; }
.h2 { line-height: 1; }
.life__n, .group__n { line-height: 1.05; }
.giving blockquote p { line-height: 1.04; }
.pillar__w { line-height: .96; }
@media (min-width: 1000px) { .leaders__photo img { object-position: 88% 60%; } }
