/* EDR — Empreendedores do Reino · estilo minimalista
   Branco e bege claro, azul-marinho como cor principal, dourado só nos detalhes. */

:root {
  --navy:   #162f4a;
  --gold:   #c6a052;
  --gold-d: #9c7a32;          /* dourado escurecido: texto pequeno sobre fundo claro */
  --white:  #ffffff;
  --soft:   #f8f7f4;
  --line:   #e7e3da;
  --ink:    #4a5563;
  --muted:  #6b7480;

  --container: 1120px;
  --header-h: 76px;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Mulish', system-ui, sans-serif;
  --font-serif:   'Lora', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }
a, button, .pitem, .slide__photo { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 1em; height: 1em; fill: currentColor; }

/* ------------------------------------------------------------ tipografia -- */
.eyebrow {
  display: block; margin-bottom: 14px; color: var(--gold-d);
  font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: 2.4px; text-transform: uppercase;
}
.title {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.2px;
}
.title--center { text-align: center; }
.lead { margin-top: 14px; max-width: 40em; color: var(--ink); font-weight: 300; font-size: 1.08rem; }

/* ----------------------------------------------------------------- botoes -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border: 1.5px solid transparent; border-radius: 4px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: 1.2px; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #0f2238; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #d4b068; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--cta {
  position: relative; padding: 17px 38px; border-color: var(--gold); border-radius: 6px; background: var(--navy); color: #fff;
  font-size: .88rem; letter-spacing: 1.4px; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(22, 47, 74, .55), 0 0 0 4px rgba(198, 160, 82, .22);
  animation: ctaPulse 2.8s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
}
.btn--cta::after { content: "\2192"; margin-left: 12px; font-size: 1.15em; line-height: 1; transition: transform .25s ease; }
.btn--cta:active { transform: scale(.97); }
.btn--cta:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px) scale(1.04); animation: none; box-shadow: 0 14px 30px -8px rgba(198, 160, 82, .7), 0 0 0 5px rgba(198, 160, 82, .3); }
.btn--cta:hover::after { transform: translateX(4px); }
.btn--cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 24px -8px rgba(22, 47, 74, .55), 0 0 0 4px rgba(198, 160, 82, .22); }
  50%      { box-shadow: 0 10px 24px -8px rgba(22, 47, 74, .55), 0 0 0 9px rgba(198, 160, 82, 0); }
}
.link-arrow {
  display: inline-block; margin-top: 18px; color: var(--navy); font-family: var(--font-display); font-weight: 600;
  font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1.5px solid var(--gold); padding-bottom: 3px;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--gold-d); }

/* ----------------------------------------------------------------- header -- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand__img { max-height: 54px; width: auto; }
.erlogo { display: block; }
.erlogo__crown { fill: var(--gold); }
.erlogo__e     { fill: var(--navy); }
.erlogo__r     { fill: var(--gold); }
.erlogo--light .erlogo__e { fill: #fff; }
.erlogo--nav { width: 54px; }
.brand { gap: 16px; }
.brand__sep { width: 1px; height: 34px; background: var(--line); }
.brand__city { color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap; }

.nav__list { display: flex; gap: 30px; }
.nav__link {
  position: relative; padding: 6px 0; color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: 1.2px; text-transform: uppercase;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform .25s ease, opacity .25s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------------ secoes -- */
.section { padding: 88px 0; background: var(--white); }
.section--soft { background: var(--soft); }
.section__head { margin-bottom: 44px; }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }
.section__more { margin-top: 36px; }

/* ------------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; background: var(--soft); }
.hero__grid { position: relative; z-index: 2; display: flex; align-items: center; min-height: calc(clamp(440px, 60vh, 560px) * var(--hero-k, 1)); padding-top: 56px; padding-bottom: 56px; }
.hero__text { width: 44%; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.12; letter-spacing: -.5px;
}
.hero__title span { display: block; color: var(--gold); }
.hero__lead { margin: 22px 0 32px; max-width: 30em; font-weight: 300; font-size: 1.1rem; }
/* a arte (aperto de maos + faixa azul-marinho) ocupa a direita e se dissolve no fundo claro */
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: var(--img-w, 72%); margin: 0; z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--img-fade, 48%) - 30%), rgba(0, 0, 0, .55) calc(var(--img-fade, 48%) - 14%), #000 var(--img-fade, 48%));
          mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--img-fade, 48%) - 30%), rgba(0, 0, 0, .55) calc(var(--img-fade, 48%) - 14%), #000 var(--img-fade, 48%));
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-x, 100%) var(--img-y, 50%); transform: scale(var(--zoom, 1)); transform-origin: var(--img-x, 100%) var(--img-y, 50%); }
/* a marca fica sobre o azul-marinho: branca e dourada, sem moldura, com um brilho suave que a funde ao fundo */
.hero__mark { position: absolute; right: 9%; top: 26%; width: clamp(110px, 19%, 210px); height: auto; opacity: .94; filter: drop-shadow(0 0 28px rgba(198, 160, 82, .22)); pointer-events: none; }

/* ----------------------------------------------------------------- numeros -- */
.stats { background: var(--white); padding: 32px 0 8px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.stat__value { display: block; font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.45rem; line-height: 1.2; }
.stat__label { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; line-height: 1.45; }

/* ------------------------------------------------------------------- sobre -- */
.sobre__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.sobre__intro { margin-top: 18px; font-weight: 300; font-size: 1.08rem; }
.institucional { margin-top: 40px; padding-top: 30px; border-top: 1px solid #ecdcb4; text-align: center; }
.institucional__intro { color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: 1.8px; text-transform: uppercase; line-height: 1.5; }
.institucional__nome { margin-top: 8px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.institucional__card {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px auto 0; padding: 16px 22px;
  background: var(--white); border: 2px solid var(--navy); border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(198, 160, 82, .28), 0 10px 22px -14px rgba(22, 47, 74, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.institucional__card img { flex: 0 1 auto; width: 100%; max-width: 290px; height: auto; }
.institucional__go { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
a.institucional__card:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(198, 160, 82, .55), 0 14px 26px -14px rgba(22, 47, 74, .5); }
a.institucional__card:hover .institucional__go { transform: translate(2px, -2px); }
a.institucional__card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 560px) { .institucional__card { padding: 14px 16px; gap: 12px; } .institucional__go { width: 18px; height: 18px; } }
.sitem { padding: 22px 0; border-top: 1px solid var(--line); }
.sitem:first-child { padding-top: 0; border-top: 0; }
.sitem__title { margin-bottom: 8px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: 1.6px; text-transform: uppercase; }
.sitem__title::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--gold); }

/* ------------------------------------------------- empresas em destaque -- */
.featured { margin: 44px 0 0; }
.featured__title { display: flex; align-items: center; gap: 12px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.featured__star { width: 24px; height: 24px; color: var(--gold); flex: none; }

.fslider { --gap: 24px; --per: 3; --centered: 0; position: relative; padding: 0 44px; }
.fslider__viewport { container-type: inline-size; overflow: hidden; padding: 16px 10px 20px; margin: 0 -10px; }
.fslider__track {
  --w: calc((100cqw - 2 * var(--gap)) / var(--per));
  display: flex; gap: var(--gap); list-style: none; position: relative; will-change: transform;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.fslider__track:active { cursor: grabbing; }
.fslider__track:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.fslide { flex: 0 0 var(--w); min-width: 0; display: flex; }
.fcard {
  display: flex; align-items: center; justify-content: center; width: 100%; background: var(--white);
  border-radius: 16px; box-shadow: 0 4px 18px -8px rgba(22, 47, 74, .18), 0 0 0 1px rgba(22, 47, 74, .04);
  transition: transform .25s ease, box-shadow .25s ease;
  user-select: none; -webkit-user-drag: none;
}
a.fcard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -10px rgba(22, 47, 74, .28), 0 0 0 1px rgba(198, 160, 82, .45); }
.fcard--nolink { cursor: default; }
.fcard__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 180px; padding: 20px 28px; }
.fcard__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.fslider.is-static { padding: 0; }
.fslider.is-static .fslider__track { justify-content: center; cursor: default; }
.fslider.is-static .fslide { flex: 0 1 var(--w); }
.fslider.is-static .fslider__btn, .fslider.is-static .fslider__dots { display: none; }
.fslider__btn {
  position: absolute; top: calc(50% - 30px); z-index: 3; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; box-shadow: 0 4px 14px -4px rgba(22, 47, 74, .3);
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .15s ease;
}
.fslider__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fslider__btn:hover { background: var(--navy); color: #fff; }
.fslider__btn:active { transform: scale(.94); }
.fslider__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fslider__btn--prev { left: 0; }
.fslider__btn--next { right: 0; }
.fslider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.fslider__dot { width: 9px; height: 9px; padding: 0; border: 0; cursor: pointer; border-radius: 99px; background: var(--line); transition: background .25s ease; position: relative; }
.fslider__dot::after { content: ""; position: absolute; inset: -8px; }
.fslider__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fslider__dot.is-active { background: var(--navy); }
@media (max-width: 980px) {
  .fslider { --per: 2; --gap: 20px; }
}
@media (max-width: 560px) {
  .fslider { --per: 1; --centered: 1; --gap: 14px; padding: 0; }
  .fslider__viewport { margin: 0 -20px; padding: 12px 0 16px; }
  .fslider__track { --w: calc(100cqw - 64px); padding: 0 calc((100cqw - var(--w)) / 2); }
  .fslider__btn { display: none; }
  .fslider.is-static .fslider__track { padding-left: 0; padding-right: 0; }
  .fcard__logo { height: 140px; }
  .featured { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .fcard { transition: none; } }
.fslider [hidden] { display: none !important; }

/* ---------------------------------------------------------------- parceiras -- */
.partners__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.partners__inner .lead { max-width: 34em; }

/* ---------------------------------------------------------------- encontros -- */
.ecard__caption { padding-top: 14px; }
.ecard__tag { display: block; margin-bottom: 4px; color: var(--gold-d); font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: 1.6px; text-transform: uppercase; }
.ecard__title { color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.ecard__meta { margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ecard__caption .link-arrow { margin-top: 10px; }

/* carrossel dos encontros (CSS scroll-snap; setas e pontos via main.js) */
.slider { --gap: 16px; --per: 3; position: relative; }
.slider__viewport { margin: 0 -24px; }
.slider__track {
  display: flex; gap: var(--gap); padding: 4px 24px 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; list-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.slide { flex: 0 0 calc((100% - 48px - var(--gap) * (var(--per) - 1)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.slide__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--line); box-shadow: 0 6px 18px -8px rgba(22, 47, 74, .25); }
.slide__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transition: transform .5s ease; user-select: none; -webkit-user-drag: none; }
.slide__photo:hover img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.slide__photo:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.slider__btn {
  position: absolute; top: calc(50% - 22px); z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer;
  box-shadow: 0 6px 18px -4px rgba(22, 47, 74, .35); transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.slider__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slider__btn:hover { background: var(--navy); color: #fff; }
.slider__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.slider__btn[disabled] { opacity: 0; pointer-events: none; }
.slider__btn--prev { left: -12px; }
.slider__btn--next { right: -12px; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slider__dot { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .25s ease, background .25s ease; }
.slider__dot.is-active { width: 24px; background: var(--gold); }

/* ---------------------------------------------------------------- diretoria -- */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 32px; }
.member { width: 220px; cursor: pointer; text-align: left; }
.member:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--line); display: grid; place-items: center; }
.member__photo img { object-position: center top; transform: scale(var(--zoom, 1)); transition: transform .5s ease; }
.member:hover .member__photo img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.member__ph { width: 52px; height: 52px; color: #b9b3a5; }
.member__name { margin-top: 14px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .4px; }
.member__role { display: block; margin-top: 3px; color: var(--gold-d); font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: 1.4px; text-transform: uppercase; }
.member__full { display: none; }

/* janela de detalhes do integrante */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(22, 47, 74, .72); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.modal__box { position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 40px 34px 32px; background: #fff; border-radius: 6px; transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.modal.is-open .modal__box { transform: none; }
.modal__box .member__name { margin-top: 0; font-size: 1.2rem; }
.modal__close { position: absolute; top: 8px; right: 12px; width: 38px; height: 38px; border: 0; background: none; color: var(--navy); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.member__bio { margin-top: 18px; font-size: .98rem; line-height: 1.7; }
.member__links { display: flex; gap: 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.member__links a { color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: 1.2px; text-transform: uppercase; border-bottom: 1.5px solid var(--gold); }

/* ------------------------------------------------------------ palavra pastoral */
.pastoral__grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 56px; row-gap: 0;
  grid-template-areas: "photo head" "photo body"; grid-template-rows: auto 1fr;
  align-items: start; max-width: 1040px; margin: 0 auto;
}
.pastoral__grid--solo { grid-template-columns: minmax(0, 680px); grid-template-areas: "head" "body"; justify-content: center; }
.pastoral__head { grid-area: head; }
.pastoral__body { grid-area: body; }
.pastoral__photo {
  grid-area: photo; margin: 0; aspect-ratio: 7 / 9; overflow: hidden; border-radius: 4px; background: #f5f3ef;
  display: flex; align-items: flex-end; justify-content: center;
}
/* a foto do pastor e um recorte inteiro: contain, apoiada na base da area */
.pastoral__photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.pastoral__photo img.is-zoomed { transform: scale(var(--zoom, 1)); transform-origin: center bottom; }
.pastoral__lead { margin-bottom: 20px; color: var(--navy); font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.4; max-width: 24em; }
.pastoral__p { max-width: 60ch; line-height: 1.8; }
.pastoral__p + .pastoral__p, .pastoral__list + .pastoral__p, .pastoral__p + .pastoral__list { margin-top: 14px; }
.pastoral__p--verso { color: var(--navy); font-family: var(--font-serif); font-style: italic; }
.pastoral__list { max-width: 60ch; }
.pastoral__list li { position: relative; padding-left: 20px; }
.pastoral__list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pastoral__verse { margin-top: 20px; max-width: 60ch; color: var(--muted); font-family: var(--font-serif); font-style: italic; }
.pastoral__verse span { font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: .8rem; color: var(--gold-d); white-space: nowrap; }
.pastoral__author { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.pastoral__author strong { color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: .92rem; letter-spacing: .6px; }
.pastoral__author span { color: var(--gold-d); font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: 1.4px; text-transform: uppercase; }
.pvalores {
  max-width: 1040px; margin: 48px auto 0; padding-top: 26px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; align-items: start;
}
.pvalor__title { min-height: 2.8em; margin-bottom: 6px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: 1.2px; line-height: 1.4; text-transform: uppercase; }
.pvalor p { color: var(--muted); font-size: .86rem; line-height: 1.55; }

/* ------------------------------------------------------------------ pilares -- */
.pilares__grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.pilar { padding-top: 18px; border-top: 2px solid var(--gold); }
.pilar__title { margin-bottom: 8px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.pilar p { color: var(--muted); font-size: .95rem; }

/* -------------------------------------------------------- pagina de parceiras */
.partners-page { min-height: 60vh; }
.pfilters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1040px; margin-left: auto; margin-right: auto; margin-bottom: 48px; }
.pfilter { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: 1.1px; text-transform: uppercase; }
.pfilter:active { transform: scale(.96); }
.pfilter:hover { color: var(--navy); border-color: var(--navy); }
.pfilter:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pfilter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.partners-page .section__head { margin-bottom: 36px; }
.partners-page .lead { margin-left: auto; margin-right: auto; }
.plist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 240px)); justify-content: center; gap: 24px; max-width: 1040px; margin: 0 auto; }
.pitem[hidden] { display: none; }
.pitem { will-change: auto; }
a.pitem:active { transform: scale(.98); }
.pitem {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.pitem:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -12px rgba(22, 47, 74, .3); border-color: #d8d2c4; }
.pitem--nolink { cursor: default; }
.pitem__logo { position: relative; width: 100%; height: 140px; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* sem ajuste automatico (script) a logo entra inteira na caixa; nunca e cortada */
.pitem__logo img { max-width: 92%; max-height: 92%; object-fit: contain; }
.pitem__logo img.is-fit { position: absolute; max-width: none; max-height: none; object-fit: fill; }
.pitem__fallback { color: var(--navy); font-family: var(--font-display); font-weight: 700; text-align: center; }
.pitem__name { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--soft); color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .4px; text-align: center; line-height: 1.35; }

/* ------------------------------------------------------------------ rodape -- */
.footer { padding: 52px 0; background: var(--navy); color: #fff; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__logo-extra { max-height: 48px; width: auto; margin-bottom: 14px; }
.footer__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 1.4px; text-transform: uppercase; }
.footer__subtitle { margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: .88rem; letter-spacing: .6px; text-transform: uppercase; }
.footer__dev { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer__dev p { color: rgba(255, 255, 255, .6); font-size: .8rem; letter-spacing: .6px; text-align: center; }
.footer__dev-link { color: var(--gold); font-family: var(--font-display); font-weight: 700; letter-spacing: 1px; }
a.footer__dev-link { border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
a.footer__dev-link:hover { color: #d9b66f; border-bottom-color: currentColor; }
.footer__social { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; transition: border-color .2s ease, color .2s ease; }
.social:hover { border-color: var(--gold); color: var(--gold); }
.social .icon { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- lightbox -- */
.lightbox { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 20, 33, .92); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 3px; transform: scale(.96); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 14px; right: 20px; border: 0; background: none; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ------------------------------------------------------------------ reveal -- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn--cta { animation: none; }
}

/* -------------------------------------------------------------- responsivo -- */
@media (max-width: 980px) {
  .section { padding: 64px 0; }
  .sobre__grid { grid-template-columns: 1fr; gap: 36px; }
  .slider { --per: 2; }
  .partners__inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .nav__toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.is-open { display: block; animation: navIn .25s cubic-bezier(.2, .8, .2, 1); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--gold-d); }
}
@media (max-width: 1100px) {
  .hero__text { width: 48%; }
  .hero__photo { width: calc(var(--img-w, 72%) - 8%); }
}
@media (max-width: 860px) {
  .hero__grid { min-height: 0; padding-top: 44px; padding-bottom: 36px; }
  .hero__text { width: 100%; }
  .hero__lead { margin-bottom: 26px; }
  /* foto inteira, sem cortar (a arte tem logo e elementos nas bordas) */
  .hero__photo { position: relative; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero__photo img { height: auto; transform: none; }
  .hero__mark { right: 8%; top: 24%; width: 24%; }
  /* celular e tablet: titulo, depois a foto, por ultimo a mensagem */
  .pastoral__grid { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "body"; grid-template-rows: auto; }
  .pastoral__grid--solo { grid-template-areas: "head" "body"; }
  .pastoral__photo { margin: 4px 0 28px; }
  .pvalores { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 24px; margin-top: 40px; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .hero__grid { padding-top: 36px; padding-bottom: 32px; }
  .hero__title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .hero__lead { font-size: 1.02rem; margin: 18px 0 24px; }
  .hero__text .btn { width: 100%; padding: 16px 24px; }
  .nav__toggle { width: 48px; height: 48px; margin-right: -8px; }
  .nav__link { padding: 16px 0; }
  .link-arrow { padding-bottom: 4px; }
  .slider__dot { width: 6px; height: 6px; }
  .slider__dot.is-active { width: 18px; }
  .slider__dots { gap: 6px; margin-top: 14px; }
  .footer { padding: 44px 0; }
  .footer__social { width: 100%; }
  .footer__social .btn { flex: 1; }
  .section { padding: 52px 0; }
  .section__head { margin-bottom: 32px; }
  .stats { padding: 24px 0 4px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
  .stat__value { font-size: 1.15rem; overflow-wrap: anywhere; }
  .slider { --per: 1; --gap: 12px; }
  .slider__viewport { margin: 0 -20px; }
  .slider__track { padding: 4px 20px 8px; scroll-padding: 0 20px; }
  .slide { flex-basis: calc(100% - 40px - 28px); }
  .slider__btn { display: none; }
  .btn--cta { width: 100%; }
  .team { gap: 32px 16px; }
  .member { width: calc(50% - 8px); }
  .plist { grid-template-columns: repeat(auto-fit, minmax(130px, 170px)); gap: 12px; }
  .pitem__logo { height: 110px; }
  .pfilters { gap: 8px; margin-bottom: 36px; }
  .pfilter { padding: 8px 14px; }
  .pvalores { grid-template-columns: 1fr; gap: 0; }
  .pvalor__title { min-height: 0; }
  .pvalor { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .pvalor:last-child { border-bottom: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------- blog -- */
.blog-page { min-height: 60vh; background: var(--soft); }
.blog-page .section__head { margin-bottom: 44px; }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.bcard { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(22, 47, 74, .3); }
.bcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; }
.bcard__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--gold); }
.bcard__ph .icon { width: 40px; height: 40px; }
.bcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 24px; }
.bcard__date { color: var(--gold-d); font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .8px; text-transform: uppercase; }
.bcard__title { color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.bcard__text { color: var(--ink); font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .link-arrow { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.container--narrow { max-width: 820px; }
.link-arrow--back { display: inline-block; margin-bottom: 28px; }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "90  "; }
.bpost__head { margin-bottom: 28px; }
.bpost__head .title { margin-top: 8px; }
.bpost__img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 12px; margin-bottom: 32px; }
.bpost__body p { margin-bottom: 1.1em; }
.bpost__body ul { margin: 0 0 1.1em 1.3em; list-style: disc; }
.bpost__body blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--gold); font-family: var(--font-serif); font-style: italic; color: var(--navy); }
@media (max-width: 980px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bgrid { grid-template-columns: 1fr; gap: 20px; } }

/* paginas curtas (blog): o rodape fica no fim da tela, nao no meio */
.page-flex { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-flex > main { flex: 1 0 auto; }
