/* =========================================================
   ICMR — Igreja de Cristo Ministério Renúncia
   Identidade visual e página inicial (mobile first)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Cores extraídas da logomarca oficial */
  --petroleo: #183B56;          /* institucional predominante */
  --petroleo-escuro: #102C42;   /* áreas de impacto */
  --petroleo-profundo: #0B2233; /* rodapé */
  --bege: #CBB994;              /* complementar (marca) */
  --bege-escuro: #8A6F48;       /* bege legível sobre fundo claro */
  --bege-claro: #EFE7D7;        /* faixas claras */
  --areia: #F5F0E7;             /* separação de seções */
  --cinza-quente: #E4DED4;      /* linhas e divisões */
  --branco-quente: #FBF9F5;     /* base */
  --texto: #15222E;             /* texto principal */
  --texto-suave: #4B5763;       /* texto secundário */

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 1px 2px rgba(21, 34, 46, .04), 0 12px 32px -12px rgba(21, 34, 46, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
  --focus: var(--petroleo);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--branco-quente);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, blockquote, figure { margin: 0; }
:where(ul[role="list"]) { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section--petrol, .hero, .page-hero, .name-meaning, .cta, .site-footer, .site-nav.is-open { --focus: var(--bege); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--bege); color: var(--petroleo-escuro);
  padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  color: var(--bege-escuro); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: var(--bege); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--petroleo);
  text-wrap: balance;
}
.section-title em, .hero__title em, .cta__title em { font-style: italic; font-weight: 400; }
.section-title em { color: var(--bege-escuro); }
.section-title--light { color: var(--branco-quente); }
.section-title--light em { color: var(--bege); }

.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--texto-suave); max-width: 38ch; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--petroleo); --btn-fg: var(--branco-quente); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: .9875rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 1rem 1.9rem; font-size: 1.025rem; }

.btn--primary { --btn-bg: var(--bege); --btn-fg: var(--petroleo-escuro); }
.btn--primary:hover { --btn-bg: #D8C9A8; }
.btn--dark { --btn-bg: var(--petroleo); --btn-fg: var(--branco-quente); }
.btn--dark:hover { --btn-bg: var(--petroleo-escuro); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--petroleo); --btn-bd: rgba(24, 59, 86, .35); }
.btn--outline:hover { --btn-bd: var(--petroleo); --btn-bg: rgba(24, 59, 86, .04); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: #fff; }
.btn--light { --btn-bg: var(--branco-quente); --btn-fg: var(--petroleo); }

.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--petroleo); text-decoration: none;
  padding-block: .5rem; border-bottom: 1.5px solid rgba(24, 59, 86, .25);
  transition: border-color .25s var(--ease);
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: var(--petroleo); }
.link-arrow:hover .icon, a:hover .link-arrow--static .icon { transform: translateX(4px); }
.link-arrow--static { border: 0; padding: 0; }

.icon-btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1.5px solid rgba(203, 185, 148, .45);
  background: transparent; color: var(--bege); cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), opacity .25s;
}
.icon-btn:hover { background: rgba(203, 185, 148, .12); border-color: var(--bege); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.tag {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  background: var(--bege-claro); color: var(--petroleo);
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}

/* ---------- Fotografia (placeholders) ----------
   Cada .ph é um espaço para foto real. Para usar a foto:
   <div class="ph ..."><img src="..." alt="..." loading="lazy"></div>
   A imagem cobre o placeholder automaticamente. */
.ph {
  position: relative; overflow: hidden; isolation: isolate;
  background-color: #C8B08D;
  background-image:
    radial-gradient(120% 90% at 20% 15%, rgba(255, 236, 205, .75), transparent 55%),
    radial-gradient(90% 80% at 85% 90%, rgba(24, 59, 86, .45), transparent 60%),
    linear-gradient(160deg, #D9C5A2, #A98C66);
}
.ph--soft {
  background-color: #DCD3C4;
  background-image:
    radial-gradient(110% 80% at 75% 20%, rgba(255, 250, 240, .9), transparent 55%),
    radial-gradient(80% 70% at 10% 95%, rgba(138, 111, 72, .35), transparent 60%),
    linear-gradient(200deg, #E9E1D3, #C4B59C);
}
.ph--deep {
  background-color: #2B4A5F;
  background-image:
    radial-gradient(90% 80% at 70% 25%, rgba(232, 200, 150, .55), transparent 55%),
    radial-gradient(90% 90% at 10% 100%, rgba(11, 34, 51, .8), transparent 60%),
    linear-gradient(150deg, #3D5B6E, #183B56);
}
.ph--hero {
  background-color: #1D3A50;
  background-image:
    radial-gradient(60% 70% at 72% 38%, rgba(240, 206, 150, .65), transparent 60%),
    radial-gradient(40% 50% at 30% 60%, rgba(214, 170, 120, .35), transparent 65%),
    linear-gradient(170deg, #3E5A6B 0%, #1B3549 70%);
}
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph__brief {
  position: absolute; left: .875rem; bottom: .875rem; z-index: 0;
  padding: .3rem .65rem; border-radius: 999px;
  background: rgba(11, 34, 51, .35); color: rgba(255, 255, 255, .92);
  font-size: .75rem; font-weight: 500; line-height: 1.3;
  backdrop-filter: blur(4px);
}

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section--sand { background: var(--areia); }
.section--petrol { background: var(--petroleo); color: var(--branco-quente); }

.section-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__aside { color: var(--texto-suave); max-width: 34ch; }
.section-head--center { align-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head--center { flex-direction: column; align-items: center; }
}

/* =========================================================
   CABEÇALHO
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { position: relative; display: block; width: 172px; flex: none; z-index: 2; }
.brand__logo { width: 100%; height: auto; transition: opacity .35s var(--ease); }
.brand__logo--dark { position: absolute; inset: 0; opacity: 0; }

.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(251, 249, 245, .97);
  color: var(--petroleo);
  box-shadow: 0 1px 0 var(--cinza-quente);
}
.site-header.is-scrolled .brand__logo--light { opacity: 0; }
.site-header.is-scrolled .brand__logo--dark { opacity: 1; }
.site-header.is-scrolled .site-header__cta { --btn-bg: var(--petroleo); --btn-fg: var(--branco-quente); }
.site-header.is-scrolled .site-header__cta:hover { --btn-bg: var(--petroleo-escuro); }

.site-header__actions { display: flex; align-items: center; gap: .5rem; z-index: 2; }
.site-header__cta { display: none; }

.menu-toggle {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 7px; width: 24px; }
.menu-toggle__bars span { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* Navegação mobile: painel em tela cheia */
.site-nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--petroleo); color: var(--branco-quente);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.site-nav__link {
  display: block; padding: .5rem 0;
  font-family: var(--font-display); font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 400;
  text-decoration: none; line-height: 1.2;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--bege); }
.site-nav__cta-mobile { align-self: flex-start; }

/* Quando o menu mobile está aberto, cabeçalho fica sobre o azul */
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; color: #fff; box-shadow: none; }
body.menu-open .site-header .brand__logo--light { opacity: 1; }
body.menu-open .site-header .brand__logo--dark { opacity: 0; }

@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  .site-header.is-scrolled { --header-h: 72px; }
  .brand { width: 224px; }
  .menu-toggle, .site-nav__cta-mobile { display: none; }
  .site-header__cta { display: inline-flex; }
  .site-nav {
    position: static; inset: auto; padding: 0; background: none; color: inherit;
    opacity: 1; visibility: visible; flex-direction: row; transition: none;
  }
  .site-nav__list { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
  .site-nav__link {
    position: relative; font-family: var(--font-body); font-size: .95rem; font-weight: 500; padding: .5rem 0;
  }
  .site-nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .site-nav__link:hover, .site-nav__link[aria-current="page"] { color: inherit; }
  .site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
}

/* =========================================================
   1. ABERTURA
   ========================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: 92vh; min-height: clamp(560px, 92svh, 1000px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(5.5rem, 12vw, 9rem);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media .ph, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media .ph, .hero__video { animation: hero-settle 2.2s var(--ease) both; background: var(--petroleo-escuro); }
.hero__video { object-position: 60% 50%; }
.hero__pause {
  position: absolute; z-index: 1; right: var(--gutter); top: calc(var(--header-h) + 1rem);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(11, 34, 51, .25); color: #fff; cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.hero__pause:hover { border-color: #fff; background: rgba(11, 34, 51, .45); }
.hero__pause[hidden] { display: none; }
.hero__pause .icon--play { display: none; }
.hero__pause[aria-pressed="true"] .icon--pause { display: none; }
.hero__pause[aria-pressed="true"] .icon--play { display: block; fill: currentColor; stroke: none; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 34, 51, .92) 0%, rgba(16, 44, 66, .55) 45%, rgba(24, 59, 86, .15) 100%);
}
@media (min-width: 1024px) {
  .hero__overlay {
    background:
      linear-gradient(to top, rgba(11, 34, 51, .85) 0%, rgba(11, 34, 51, 0) 55%),
      linear-gradient(90deg, rgba(16, 44, 66, .75) 0%, rgba(16, 44, 66, .2) 60%, rgba(16, 44, 66, 0) 100%);
  }
}
.hero__content { max-width: calc(var(--container) + var(--gutter) * 2); }
.hero__title {
  font-family: var(--font-display); font-weight: 500;

  font-size: clamp(2.625rem, 1.6rem + 5.2vw, 5.25rem);
  line-height: 1.02; letter-spacing: -.012em;
  max-width: 13ch; text-wrap: balance;
}
.hero__title em { color: var(--bege); }
.hero__lead {
  margin-top: 1.5rem; margin-bottom: 2.25rem; max-width: 40ch;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .88);
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(5.5rem, 12vw, 9rem);
  display: none; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4); color: #fff;
  transition: border-color .25s, transform .3s var(--ease);
}
.hero__scroll:hover { border-color: #fff; transform: translateY(3px); }
@media (min-width: 768px) { .hero__scroll { display: grid; } }

@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* =========================================================
   2. INFORMAÇÃO IMEDIATA
   ========================================================= */
.next { position: relative; z-index: 2; margin-top: -3.5rem; }
.next__card {
  display: grid; gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bege-claro); color: var(--petroleo);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.next__head .eyebrow { margin-bottom: .5rem; }
.next__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; }
.next__facts { display: grid; gap: 1rem; }
.next__fact {
  display: grid; grid-template-columns: auto 1fr; column-gap: .875rem; align-items: center;
}
.next__fact .icon { grid-row: span 2; width: 1.5rem; height: 1.5rem; color: var(--bege-escuro); }
.next__fact dt { font-size: .8125rem; color: var(--texto-suave); line-height: 1.3; }
.next__fact dd { font-weight: 600; line-height: 1.35; }
.next__card .btn { justify-self: start; }

@media (min-width: 640px) { .next__facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 2.5rem; } }
@media (min-width: 1024px) {
  .next { margin-top: -4.5rem; }
  .next__card { grid-template-columns: auto 1fr auto; align-items: center; column-gap: clamp(2rem, 4vw, 4rem); }
  .next__head { padding-right: clamp(2rem, 4vw, 4rem); border-right: 1px solid rgba(24, 59, 86, .15); }
  .next__facts { justify-content: center; }
}

/* =========================================================
   3. APRESENTAÇÃO DA COMUNIDADE
   ========================================================= */
.welcome__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.welcome__media { position: relative; padding-right: 18%; padding-bottom: 14%; }
.welcome__photo-main { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.welcome__photo-detail {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border-radius: var(--radius-lg); border: 8px solid var(--branco-quente);
}
.welcome__text .section-title { margin-bottom: 1.5rem; max-width: 12ch; }
.welcome__text .lead { margin-bottom: 2rem; }
@media (min-width: 900px) {
  .welcome__grid { grid-template-columns: 7fr 5fr; }
  .welcome__media { padding-right: 16%; }
  .welcome__photo-main { aspect-ratio: 5 / 5.5; }
}

/* =========================================================
   4. CAMINHOS DE PARTICIPAÇÃO
   ========================================================= */
.paths__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 1rem;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: .5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.paths__list::-webkit-scrollbar { display: none; }
.path-card { scroll-snap-align: start; }
.path-card__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--branco-quente); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.path-card__media { aspect-ratio: 4 / 3.4; }
.path-card__media > *, .path-card__media { transition: transform .6s var(--ease); }
.path-card__body { position: relative; display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.path-card__num { font-family: var(--font-display); font-style: italic; color: var(--bege-escuro); font-size: 1rem; }
.path-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--petroleo); }
.path-card__text { color: var(--texto-suave); font-size: .975rem; flex: 1; }
.path-card__cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem; font-weight: 600; color: var(--petroleo); }
.path-card__cta .icon { transition: transform .3s var(--ease); }

.path-card__link:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(21, 34, 46, .04), 0 24px 48px -20px rgba(21, 34, 46, .22); }
.path-card__link:hover .path-card__cta .icon { transform: translateX(4px); }
.path-card { overflow: visible; }
.path-card__link .path-card__media { overflow: hidden; }
.path-card__link:hover .path-card__media > img, .path-card__link:hover .path-card__media > video { transform: scale(1.04); }
.path-card__media > video { transition: transform .6s var(--ease); }

@media (min-width: 1024px) {
  .paths__list {
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto;
    margin-inline: 0; padding-inline: 0; overflow: visible; gap: 1.5rem;
  }
  .path-card:nth-child(even) { margin-top: 3rem; }
}

/* =========================================================
   5. VIDA E PROGRAMAÇÃO
   ========================================================= */
.life__grid { display: grid; gap: 2rem; }
.event__link { display: block; text-decoration: none; color: inherit; }
/* um único evento: cartão na largura toda, foto ao lado do texto */
@media (min-width: 900px) {
  .life__grid.life__grid--solo { grid-template-columns: 1fr; }
  .life__grid--solo .event--featured .event__link { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .life__grid--solo .event--featured .event__media { margin-bottom: 0; }
  .life__grid--solo [data-agenda] .event__text, .life__grid--solo .event__text { -webkit-line-clamp: 6; line-clamp: 6; }
}
/* cartão de evento da planilha é um <button>: zera o visual de botão */
.event__link--btn { width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.event__link--btn:hover .event__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.event--row .event__link--btn .link-arrow--static { display: none; }
.event--row .event__link--btn { display: grid; }

/* janela de detalhes do evento */
.modal.modal--evento { width: min(100% - 1.5rem, 1040px); }
.evento { display: grid; }
.evento__media { background: var(--petroleo-escuro); }
.evento__img { aspect-ratio: 4 / 3; border-radius: 0; }
.evento__body { padding: clamp(1.5rem, 4vw, 2.75rem); }
.evento__body .modal__title { margin: .25rem 0 1.25rem; }
.evento__texto { color: var(--texto); font-size: .975rem; line-height: 1.7; }
.evento__texto p { white-space: pre-line; overflow-wrap: anywhere; }
.evento__texto p + p { margin-top: 1rem; }
.evento__texto a { color: var(--petroleo); font-weight: 600; }
.evento__acoes { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--cinza-quente); }
@media (min-width: 860px) {
  .evento { grid-template-columns: 5fr 6fr; align-items: stretch; }
  .evento__media { position: sticky; top: 0; align-self: start; height: min(92svh, 920px); }
  .evento__img { height: 100%; aspect-ratio: auto; }
}

/* flyer vindo da planilha: inteiro (sem corte) sobre um fundo desfocado da própria imagem */
.event__media--flyer::before {
  content: ""; position: absolute; inset: -20px; z-index: 0;
  background: var(--flyer) center / cover no-repeat; filter: blur(18px) brightness(.75); transform: scale(1.1);
}
.event__media--flyer > img { object-fit: contain; }
.event__link:hover .event__media--flyer > img { transform: none; }
/* descrições vindas da planilha: respeita quebras de linha e mostra só o começo */
[data-agenda] .event__text { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
[data-agenda] .event--row .event__text { -webkit-line-clamp: 2; line-clamp: 2; }
.event__media { border-radius: var(--radius-lg); overflow: hidden; }
.event__media > img { transition: transform .6s var(--ease); }
.event__link:hover .event__media > img { transform: scale(1.04); }
.event__meta { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--texto-suave); margin-bottom: .5rem; }
.event__title { font-family: var(--font-display); font-weight: 500; color: var(--petroleo); line-height: 1.2; }
.event__text { color: var(--texto-suave); font-size: .975rem; }
.event__link:hover .event__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }

.event--featured .event__media { aspect-ratio: 16 / 11; margin-bottom: 1.5rem; }
.event--featured .event__title { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin-bottom: .5rem; }
.event--featured .event__text { margin-bottom: 1rem; max-width: 46ch; }

.life__side { display: grid; gap: 1.25rem; align-content: start; }
.event--row .event__link { display: grid; grid-template-columns: 104px 1fr; gap: 1.125rem; align-items: center; }
.event--row .event__media { aspect-ratio: 1; border-radius: var(--radius); }
.event--row .event__media .ph__brief { display: none; }
.event--row .event__title { font-size: 1.1875rem; margin-bottom: .2rem; }
.event--row + .event--row { padding-top: 1.25rem; border-top: 1px solid var(--cinza-quente); }

@media (min-width: 900px) {
  .life__grid { grid-template-columns: 1.35fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .event--row .event__link { grid-template-columns: 140px 1fr; }
  .life__side { padding-top: .5rem; }
}

/* =========================================================
   6. FASES DA VIDA
   ========================================================= */
.stages { overflow: hidden; }
.carousel-controls { display: none; gap: .75rem; }
@media (min-width: 768px) { .carousel-controls { display: flex; } }

.stages__track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 72vw, 360px); gap: 1rem;
  margin: 0; padding: 0 var(--edge) .5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.stages__track::-webkit-scrollbar { display: none; }
.stages__track:focus-visible { outline-offset: -3px; }
.stage { scroll-snap-align: start; }

/* Grade de grupos: todos visíveis, linhas incompletas centralizadas */
.stages__grid { --cols: 2; --gap: .75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-block: 0; }
.stages__grid .stage { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.stages__grid .stage__body { padding: 1rem; }
.stages__grid .stage__title { font-size: 1.375rem; }
@media (min-width: 700px) { .stages__grid { --cols: 3; --gap: 1rem; } }
@media (min-width: 1100px) {
  .stages__grid { --cols: 5; }
  .stages__grid .stage__body { padding: 1.25rem; }
  .stages__grid .stage__title { font-size: 1.5rem; }
}
.stage__link { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; }
.stage__media { aspect-ratio: 3 / 4; transition: transform .7s var(--ease); }
.stage__media .ph__brief { top: .875rem; bottom: auto; }
.stage__link::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(11, 34, 51, .85) 0%, rgba(11, 34, 51, 0) 50%);
}
.stage__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem; }
.stage__kicker { display: block; font-size: .8125rem; font-weight: 600; color: var(--bege); margin-bottom: .25rem; }
.stage__title { font-family: var(--font-display); font-weight: 500; font-size: 1.625rem; line-height: 1.15; }
.stage__link:hover .stage__media { transform: scale(1.035); }

/* =========================================================
   7. CONTEÚDO EM DESTAQUE
   ========================================================= */
.featured__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.video-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10;
  padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--petroleo);
}
.video-poster__img { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.video-poster__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--bege); color: var(--petroleo-escuro);
  transition: transform .35s var(--ease);
}
.video-poster__play .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.video-poster__duration {
  position: absolute; right: 1rem; bottom: 1rem; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(11, 34, 51, .6); color: #fff; font-size: .8125rem; font-weight: 600;
}
.video-poster:hover .video-poster__img { transform: scale(1.03); }
.video-poster:hover .video-poster__play { transform: scale(1.06); }
.featured__media iframe, .featured__media video { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius-lg); background: var(--petroleo-escuro); object-fit: cover; }

.featured__text .section-title { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem); margin-bottom: 1.25rem; }
.featured__text .lead { margin-bottom: 1.75rem; }
.byline { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding-block: 1.25rem; margin-bottom: 2rem; border-block: 1px solid var(--cinza-quente); }
.byline dt { font-size: .8125rem; color: var(--texto-suave); }
.byline dd { font-weight: 600; color: var(--petroleo); }
@media (min-width: 900px) { .featured__grid { grid-template-columns: 7fr 5fr; } }

/* Cortes verticais (reels) */
.reels { display: grid; gap: 2.5rem; margin-top: clamp(4rem, 8vw, 6.5rem); }
.reels__title {
  font-family: var(--font-display); font-weight: 500; color: var(--petroleo);
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.625rem); line-height: 1.1; letter-spacing: -.01em;
}
.reels__title em { font-style: italic; font-weight: 400; color: var(--bege-escuro); }
.reels__text { margin: 1rem 0 1.5rem; max-width: 34ch; color: var(--texto-suave); }
.reels__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 250px); gap: 1rem;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: .5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.reels__list::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; }
.video-poster.reel__poster { aspect-ratio: 9 / 16; }
.reel__poster .video-poster__play { width: 64px; height: 64px; }
.reel__poster .video-poster__play .icon { width: 22px; height: 22px; }
.reel > video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); background: var(--petroleo-escuro); object-fit: cover; }
.reel__title { margin: .875rem 0 .1rem; font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.25; color: var(--petroleo); }
.reel__meta { font-size: .875rem; color: var(--texto-suave); }
@media (min-width: 900px) {
  .reels { grid-template-columns: 4fr 8fr; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); }
  .reels__list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; gap: 1.25rem; }
}

/* =========================================================
   8. EXPERIÊNCIA DE COMUNIDADE (mosaico editorial)
   ========================================================= */
.story__mosaic {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a a"
    "q q"
    "b c"
    "s c"
    "d t"
    "e e";
}
.story__mosaic > * { border-radius: var(--radius-lg); }
.story__a { grid-area: a; min-height: 300px; }
.story__b { grid-area: b; min-height: 170px; }
.story__c { grid-area: c; min-height: 300px; }
.story__d { grid-area: d; min-height: 190px; }
.story__e { grid-area: e; min-height: 220px; }
.story__quote {
  grid-area: q; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--branco-quente);
}
.story__quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.3; color: var(--petroleo); }
.story__quote footer { font-size: .875rem; color: var(--texto-suave); }
/* ocupam os espaços onde antes ficavam os números */
.story__f { grid-area: s; min-height: 170px; }
.story__g { grid-area: t; min-height: 300px; }

@media (min-width: 900px) {
  .story__mosaic {
    gap: 1rem;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, clamp(80px, 8.5vw, 118px));
    grid-template-areas:
      "a a a a a b b b q q q q"
      "a a a a a b b b q q q q"
      "a a a a a c c c c s s s"
      "d d d t t c c c c s s s"
      "d d d t t c c c c e e e"
      "d d d t t c c c c e e e";
  }
  .story__mosaic > * { min-height: 0; }
}

/* =========================================================
   9. LOCALIZAÇÃO
   ========================================================= */
.location__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.location__info .section-title { margin-bottom: 2rem; }
.info-list { display: grid; gap: 1.5rem; margin-bottom: 2.25rem; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.info-list .icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 50%;
  background: var(--bege-claro); color: var(--petroleo);
}
.info-list h3 { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--bege-escuro); margin-bottom: .15rem; }
.info-list p { color: var(--texto); }
.info-list a { text-decoration-color: rgba(24, 59, 86, .3); text-underline-offset: .2em; }
.info-list a:hover { text-decoration-color: currentColor; }
@media (min-width: 640px) and (max-width: 899px) { .info-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

.location__map { border-radius: var(--radius-lg); overflow: hidden; }
.map-placeholder, .location__map iframe { position: relative; width: 100%; aspect-ratio: 4 / 3.2; border: 0; display: block; }
.map-placeholder { display: grid; place-items: center; background: var(--bege-claro); }
.map-placeholder__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-placeholder__art path { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.map-placeholder__art path.thin { stroke-width: 4; stroke: rgba(255, 255, 255, .8); }
.map-placeholder__pin {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4.5rem;
  border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--petroleo); color: var(--bege);
  box-shadow: 0 10px 24px -8px rgba(24, 59, 86, .5);
}
.map-placeholder__pin .icon { rotate: 45deg; width: 26px; height: 26px; }
.map-placeholder__btn { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; box-shadow: var(--shadow-soft); }
@media (min-width: 900px) { .location__grid { grid-template-columns: 5fr 6fr; } }

/* =========================================================
   10. CHAMADA FINAL
   ========================================================= */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--petroleo); color: var(--branco-quente);
  padding-block: clamp(5rem, 12vw, 9rem);
}
.cta__inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.cta__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.375rem, 1.5rem + 4.2vw, 4.5rem); line-height: 1.05; letter-spacing: -.01em;
  max-width: 14ch; text-wrap: balance;
}
.cta__title em { color: var(--bege); }
.cta__text { margin: 1.5rem 0 2.5rem; max-width: 38ch; font-size: 1.125rem; color: rgba(255, 255, 255, .82); }

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer { background: var(--petroleo-profundo); color: rgba(255, 255, 255, .72); font-size: .95rem; padding-top: clamp(4rem, 8vw, 6rem); }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--bege); }
.site-footer__top { display: grid; gap: 3rem; padding-bottom: 3.5rem; }
.site-footer__brand img { width: 210px; margin-bottom: 1.5rem; }
.site-footer__brand p { max-width: 34ch; margin-bottom: 1.75rem; }
.site-footer__heading { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--bege); margin-bottom: 1rem; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
.site-footer__nav ul { display: grid; gap: .65rem; }
.site-footer__nav > div:last-child { grid-column: 1 / -1; }
.site-footer address { line-height: 1.9; }
.site-footer__hours { margin-top: .75rem; line-height: 1.9; }
.site-footer__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; color: var(--bege); }
.site-footer__link .icon { transition: transform .3s var(--ease); }
.site-footer__link:hover .icon { transform: translateX(3px); }

.social { display: flex; gap: .625rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(203, 185, 148, .35); color: var(--bege);
}
.social a:hover { background: var(--bege); color: var(--petroleo-profundo); }

.site-footer__bottom {
  display: flex; flex-direction: column; gap: 1rem;
  padding-block: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem; color: rgba(255, 255, 255, .55);
}
.site-footer__bottom ul { display: flex; gap: 1.5rem; margin: 0; }

@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: 1.1fr 2fr; gap: 4rem; }
  .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
  .site-footer__nav > div:last-child { grid-column: auto; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   APP OFICIAL (AvivaHub)
   ========================================================= */
.app-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  background: linear-gradient(135deg, var(--petroleo) 0%, var(--petroleo-escuro) 100%); color: var(--branco-quente);
  --focus: var(--bege);
}
.app-band > :not(.deco) { position: relative; z-index: 1; }
.app-band .deco--grain { opacity: .1; mix-blend-mode: overlay; }
.deco--app { inset: 0 auto auto 0; width: 55%; height: 100%; }
.app-band__grid { display: grid; gap: 2rem; justify-items: start; }
.app-band__icon {
  width: clamp(96px, 14vw, 132px); height: auto; border-radius: 24%;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12);
}
.app-band__text .section-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: 1rem; }
.app-band__lead { max-width: 46ch; color: rgba(255, 255, 255, .82); margin-bottom: 1.75rem; }
.app-band__lead strong { color: var(--branco-quente); }

.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.store-badge { display: block; border-radius: 9px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.store-badge img { display: block; height: 52px; width: auto; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }

.app-band__qrs { display: none; }
@media (min-width: 900px) {
  .app-band__grid { grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(2rem, 4vw, 4rem); }
  .app-band__qrs { display: grid; grid-template-columns: repeat(2, 120px); gap: 1rem; text-align: center; }
  .app-band__qrs figure { margin: 0; }
  .app-band__qrs img { width: 120px; height: 120px; padding: 10px; border-radius: 12px; background: #fff; }
  .app-band__qrs figcaption { margin-top: .5rem; font-size: .8125rem; font-weight: 600; color: var(--bege); }
  .app-band__qrs p { grid-column: 1 / -1; font-size: .8125rem; color: rgba(255, 255, 255, .65); }
}

/* =========================================================
   CONTRIBUA (Pix)
   ========================================================= */
.give__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.give__text .section-title { margin-bottom: 1.5rem; }
.give__text .lead { margin-bottom: 2rem; }
.give__verse { padding-left: 1.5rem; border-left: 1.5px solid var(--bege-escuro); max-width: 44ch; }
.give__verse p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.4; color: var(--petroleo); }
.give__verse footer { margin-top: .75rem; font-size: .875rem; font-weight: 600; color: var(--bege-escuro); }

.give__card {
  display: grid; justify-items: center; gap: 1.25rem; text-align: center;
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg);
  background: var(--branco-quente); box-shadow: var(--shadow-soft);
}
.give__card-kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bege-escuro); }
.give__qr { width: min(240px, 70vw); height: auto; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--cinza-quente); }
.give__how { max-width: 32ch; font-size: .95rem; color: var(--texto-suave); }
.give__key { padding: .75rem 1.25rem; border-radius: var(--radius); background: var(--bege-claro); }
.give__key dt { font-size: .8125rem; color: var(--texto-suave); }
.give__key dd { font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; color: var(--petroleo); }
.give__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.give__actions .btn.is-copied { --btn-bg: #2E6B4E; --btn-bd: #2E6B4E; --btn-fg: #fff; }
.give__note { font-size: .8125rem; color: var(--texto-suave); max-width: 36ch; }
@media (min-width: 900px) { .give__grid { grid-template-columns: 6fr 5fr; } }
.deco--give { width: min(100vw, 560px); left: -180px; top: -60px; opacity: .045; }

/* =========================================================
   MODAL + FORMULÁRIO (Seja um voluntário)
   ========================================================= */
body.modal-open { overflow: hidden; }
.modal {
  width: min(100% - 1.5rem, 680px); max-width: none; max-height: min(92svh, 920px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--branco-quente); color: var(--texto);
  box-shadow: 0 30px 80px -20px rgba(11, 34, 51, .5);
  overflow: hidden;
}
.modal::backdrop { background: rgba(11, 34, 51, .62); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal[open]::backdrop { animation: fade-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__panel { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.modal__body { padding: clamp(1.75rem, 5vw, 3rem); }
.modal__close {
  position: absolute; z-index: 1; top: .75rem; right: .75rem;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--petroleo); cursor: pointer; transition: background-color .2s;
}
.modal__close:hover { background: var(--bege-claro); }
.modal__title {
  font-family: var(--font-display); font-weight: 500; color: var(--petroleo);
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; margin-bottom: .75rem;
}
.modal__title em { font-style: italic; font-weight: 400; color: var(--bege-escuro); }
.modal__lead { color: var(--texto-suave); max-width: 46ch; margin-bottom: 2rem; }

.vform { display: grid; gap: 1.5rem; }
.vform__row { display: grid; gap: 1.5rem; }
@media (min-width: 560px) { .vform__row { grid-template-columns: 1fr 1.6fr; } }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label:not(.choice), .field legend { display: block; padding: 0; margin-bottom: .5rem; font-size: .9rem; font-weight: 600; color: var(--petroleo); }
.field__hint { margin: -.25rem 0 .75rem; font-size: .875rem; color: var(--texto-suave); }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  border: 1.5px solid var(--cinza-quente); border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--texto);
  transition: border-color .2s, box-shadow .2s;
}
.field input:not([type="radio"]):not([type="checkbox"]):focus, .field textarea:focus { outline: none; border-color: var(--petroleo); box-shadow: 0 0 0 3px rgba(24, 59, 86, .15); }
.field__error { display: none; margin-top: .4rem; font-size: .8125rem; font-weight: 600; color: #A33A2B; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input:not([type="radio"]):not([type="checkbox"]) { border-color: #A33A2B; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--cinza-quente); background: #fff;
  font-size: .9rem; font-weight: 500; color: var(--texto); line-height: 1.3;
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice:hover span { border-color: var(--petroleo); }
.choice input:checked + span { background: var(--petroleo); border-color: var(--petroleo); color: var(--branco-quente); }
.choice input:focus-visible + span { outline: 3px solid var(--petroleo); outline-offset: 2px; }
.field.is-invalid .choice span { border-color: rgba(163, 58, 43, .45); }

.vform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.vform__note { font-size: .8125rem; color: var(--texto-suave); max-width: 30ch; }
.vform__status { padding: 1rem 1.25rem; border-radius: var(--radius); background: #F6E4E0; color: #7A2A1F; font-size: .9rem; }
.vform__status a { color: inherit; font-weight: 600; }
.vform__status--info { background: var(--bege-claro); color: var(--petroleo); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field__optional { font-weight: 400; color: var(--texto-suave); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

.modal__success { text-align: center; padding-block: clamp(3rem, 8vw, 4.5rem); }
.modal__success:focus { outline: none; }
.modal__success .modal__lead { margin-inline: auto; }
.modal__success-icon {
  display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1.5rem;
  border-radius: 50%; background: var(--bege-claro); color: var(--petroleo);
}
.modal__success-icon .icon { width: 34px; height: 34px; stroke-width: 2; }

/* =========================================================
   PÁGINA INTERNA — A IGREJA
   ========================================================= */

/* Abertura */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 72svh, 760px);
  display: flex; align-items: flex-end;
  background: var(--petroleo-escuro); color: #fff;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
/* escurece o topo para o logo e o menu continuarem legíveis sobre qualquer foto */
.page-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; z-index: -1; background: linear-gradient(to bottom, rgba(11, 34, 51, .65), transparent); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-settle 2.2s var(--ease) both; }
.page-hero__content { position: relative; z-index: 1; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.5rem);
  line-height: 1.04; letter-spacing: -.012em;
  max-width: 14ch; text-wrap: balance;
}
.page-hero__title em { font-style: italic; font-weight: 400; color: var(--bege); }
.page-hero__lead { margin-top: 1.5rem; max-width: 42ch; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .88); }

/* Trilha "← Início / Página" (substitui a etiqueta acima do título nas páginas internas) */
.breadcrumb { margin-bottom: 1.25rem; font-size: .875rem; font-weight: 600; letter-spacing: .04em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: .6rem; color: var(--bege); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .45); font-weight: 400; }
.breadcrumb a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem .35rem .6rem; margin-left: -.6rem;
  border-radius: 999px; color: #fff; text-decoration: none; transition: background-color .25s var(--ease);
}
.breadcrumb a:hover { background: rgba(255, 255, 255, .12); }
.breadcrumb a .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.breadcrumb a:hover .icon { transform: translateX(-3px); }

/* Atalhos da página */
.page-index { background: var(--branco-quente); border-bottom: 1px solid var(--cinza-quente); }
.page-index__list {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 1rem var(--gutter);
}
.page-index__list::-webkit-scrollbar { display: none; }
.page-index a {
  display: inline-block; white-space: nowrap; padding: .5rem 1rem;
  border: 1px solid var(--cinza-quente); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--petroleo); text-decoration: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.page-index a:hover { border-color: var(--petroleo); background: rgba(24, 59, 86, .04); }

/* Nossa história */
.history__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.history__text .section-title { margin-bottom: 1.5rem; }
.history__text .lead { margin-bottom: 1.25rem; }
.history__text > p:not(.eyebrow):not(.lead) { color: var(--texto-suave); max-width: 52ch; }
.history__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }

.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0 0 0 1.75rem; border-left: 1.5px solid var(--cinza-quente); }
.timeline li { position: relative; padding-bottom: 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.75rem - 6px); top: .4rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bege); box-shadow: 0 0 0 4px var(--branco-quente);
}
.timeline__year { font-family: var(--font-display); font-style: italic; color: var(--bege-escuro); }
.timeline h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; color: var(--petroleo); }
.timeline p { color: var(--texto-suave); font-size: .975rem; }
@media (min-width: 900px) { .history__grid { grid-template-columns: 6fr 5fr; } }

.name-meaning {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 2rem; margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg); background: var(--petroleo); color: var(--branco-quente);
}
.name-meaning > :not(.deco) { position: relative; z-index: 1; }
.name-meaning .eyebrow { margin-bottom: 1rem; }
.name-meaning__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem); line-height: 1.1; margin-bottom: 1.25rem;
}
.name-meaning__title em { font-style: italic; font-weight: 400; color: var(--bege); }
.name-meaning__text { max-width: 42ch; color: rgba(255, 255, 255, .82); }
.name-meaning__verse { align-self: center; padding-left: 1.5rem; border-left: 1.5px solid var(--bege); }
.name-meaning__verse p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); line-height: 1.35; }
.name-meaning__verse footer { margin-top: 1rem; font-size: .875rem; font-weight: 600; color: var(--bege); }
@media (min-width: 900px) { .name-meaning { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } }

/* O pastor */
.pastor__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.pastor__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.pastor__text .section-title { margin-bottom: 1.5rem; }
.pastor__text .lead { margin-bottom: 1rem; max-width: 42ch; }
.pastor__text > p:not(.eyebrow):not(.lead) { color: var(--texto-suave); max-width: 46ch; }
.pastor__text .btn-group { margin-top: 2rem; }
@media (min-width: 900px) { .pastor__grid { grid-template-columns: 5fr 6fr; } }

/* Missão, visão e valores */
.purpose__grid { display: grid; gap: 1rem; }
.purpose-card {
  padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius-lg);
  border: 1px solid rgba(203, 185, 148, .25); background: rgba(255, 255, 255, .03);
}
.purpose-card__kicker { display: block; margin-bottom: .75rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--bege); }
.purpose-card__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.2; margin-bottom: 1rem; }
.purpose-card p, .values { color: rgba(255, 255, 255, .78); }
.values { display: grid; gap: .6rem; }
.values li { position: relative; padding-left: 1.125rem; }
.values li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--bege); }
.values strong { color: var(--branco-quente); font-weight: 600; }
@media (min-width: 900px) { .purpose__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* No que cremos */
.beliefs__list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 2rem; }
.belief { padding-block: 1.5rem 1.75rem; border-top: 1px solid var(--cinza-quente); }
.belief__num { font-family: var(--font-display); font-style: italic; color: var(--bege-escuro); }
.belief__title { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.2; color: var(--petroleo); margin: .25rem 0 .5rem; }
.belief p { color: var(--texto-suave); font-size: .975rem; }
.belief cite { display: block; margin-top: .75rem; font-style: normal; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--bege-escuro); }
@media (min-width: 640px) { .beliefs__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .beliefs__list { grid-template-columns: repeat(4, 1fr); } }

/* Como é um culto */
.visit__mosaic {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a a"
    "b c"
    "d e";
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.visit__mosaic > * { border-radius: var(--radius-lg); }
.visit__a { grid-area: a; aspect-ratio: 3 / 2; }
.visit__b { grid-area: b; aspect-ratio: 2 / 3; }
.visit__c { grid-area: c; aspect-ratio: 2 / 3; }
.visit__d { grid-area: d; aspect-ratio: 4 / 3; }
.visit__e { grid-area: e; aspect-ratio: 4 / 3; }
.visit__c > img { object-position: 50% 30%; }
.visit__e > img { object-position: 55% 30%; }
@media (min-width: 900px) {
  .visit__mosaic {
    gap: 1rem;
    grid-template-columns: 1fr 1.15fr 1.15fr 1fr;
    grid-template-rows: repeat(2, clamp(180px, 19vw, 260px));
    grid-template-areas:
      "b a a c"
      "b d e c";
  }
  .visit__mosaic > * { aspect-ratio: auto; }
}

.visit__list { gap: 1.75rem 2rem; }
@media (min-width: 640px) { .visit__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .visit__list { grid-template-columns: repeat(3, 1fr); } }

/* Liderança */
/* Linhas centralizadas: a última linha incompleta fica no meio */
.leaders__list { --cols: 2; --gap: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem var(--gap); }
.leader { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
/* Retratos com fundo removido sobre um fundo bege único, com o símbolo em marca d'água */
.leader__photo {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); margin-bottom: 1rem;
  background:
    radial-gradient(70% 55% at 50% 35%, rgba(255, 255, 255, .65), transparent 70%),
    linear-gradient(180deg, var(--bege-claro), #E2D5BB);
}
.leader__photo::before {
  content: ""; position: absolute; z-index: -1; inset: 8% -30% auto auto; width: 85%; aspect-ratio: 400 / 358;
  background: url("../img/brand/simbolo-azul.png") center / contain no-repeat; opacity: .06;
}
.leader__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transition: transform .6s var(--ease); transform-origin: 50% 100%; }
.leader:hover .leader__photo img { transform: scale(1.03); }
.leader__name { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; color: var(--petroleo); }
.leader__role { font-size: .875rem; color: var(--texto-suave); }
@media (min-width: 768px) { .leaders__list { --cols: 3; --gap: 1.5rem; row-gap: 2.5rem; } }
@media (min-width: 1024px) { .leaders__list { --cols: 4; } }

/* =========================================================
   TEXTURAS E MARCA D'ÁGUA
   Linguagem derivada da logomarca: o símbolo ICMR, os círculos
   interrompidos pela cruz, pequenas cruzes em malha e os filetes
   horizontais do "— Ministério Renúncia —".
   --py / --rot são atualizados pelo JS conforme a rolagem.
   ========================================================= */
.has-deco { position: relative; isolation: isolate; overflow: hidden; }
.has-deco > :not(.deco) { position: relative; z-index: 1; }

.deco {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg));
  will-change: transform;
}

/* Símbolo em marca d'água */
.deco--symbol { height: auto; max-width: none; }

/* Anéis (círculos interrompidos + cruz) */
.deco--rings { aspect-ratio: 1; color: var(--petroleo); }
.deco--rings svg { width: 100%; height: 100%; overflow: visible; }

/* Malha de pequenas cruzes */
.deco--crosses {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 12.5v7M12.5 16h7' stroke='%23183B56' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  opacity: .28;
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 15%, transparent 100%);
}
.deco--crosses-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 12.5v7M12.5 16h7' stroke='%23CBB994' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: .22;
}

/* Filetes horizontais */
.deco--lines {
  background: repeating-linear-gradient(to bottom, rgba(24, 59, 86, .14) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 85%);
  mask-image: linear-gradient(to right, #000, transparent 85%);
}

/* Granulação fotográfica (estática, muito leve) */
.deco--grain {
  inset: 0; transform: none; will-change: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: multiply;
}
.hero .deco--grain, .page-hero .deco--grain, .section--petrol .deco--grain, .cta .deco--grain { opacity: .1; mix-blend-mode: overlay; }

/* Luz que acompanha o cursor nas áreas escuras */
.deco--glow {
  inset: 0; transform: none; will-change: auto;
  background: radial-gradient(560px circle at var(--mx, 78%) var(--my, 22%), rgba(203, 185, 148, .16), transparent 65%);
}

/* ---- Aplicação por seção ---- */

/* 1. Abertura */
.hero > .deco { z-index: 0; }
.hero__content, .hero__scroll { position: relative; z-index: 1; }
.hero__scroll { position: absolute; }
.deco--hero { width: min(130vw, 940px); right: -45vw; top: 14%; color: var(--bege); opacity: .22; }
@media (min-width: 900px) { .deco--hero { right: -12%; top: 6%; } }

/* 2. Informação imediata */
.next__card { position: relative; overflow: hidden; isolation: isolate; }
.next__card > :not(.deco) { position: relative; z-index: 1; }
.deco--next { width: 300px; right: -70px; bottom: -110px; opacity: .07; }

/* 3. Boas-vindas */
.deco--welcome { width: 90%; height: 38%; left: -10%; top: 6%; }
@media (min-width: 900px) { .deco--welcome { width: min(70%, 700px); height: 80%; left: -6%; top: 10%; } }
.deco--welcome-symbol { width: min(90vw, 460px); right: -140px; top: 4%; opacity: .045; }

/* 4. Caminhos */
.deco--paths { width: min(120vw, 820px); left: -22%; top: -14%; opacity: .05; }

/* 5. Vida e programação */
.deco--life { width: min(140vw, 760px); right: -40%; top: -180px; opacity: .1; }
@media (min-width: 900px) { .deco--life { right: -260px; } }

/* 6. Fases da vida */
.deco--stages { inset: 0 0 auto auto; width: 70%; height: 80%; }
.deco--stages-symbol { width: min(100vw, 560px); right: -18%; top: 2%; opacity: .07; }
@media (min-width: 900px) { .deco--stages-symbol { right: -4%; top: -6%; } }

/* 7. Conteúdo em destaque */
.deco--featured { width: 55%; height: 55%; left: 0; bottom: 6%; display: none; }
@media (min-width: 900px) { .deco--featured { display: block; } }
.deco--featured-rings { width: 680px; right: -300px; bottom: -340px; opacity: .12; }

/* 8. Experiência de comunidade */
.deco--story { width: 1150px; left: calc(50% - 575px); top: calc(50% - 520px); color: var(--bege-escuro); opacity: .18; }

/* 9. Localização */
.deco--location { width: 55%; height: 70%; right: -4%; top: 0; }
.deco--location-symbol { width: min(90vw, 480px); left: -170px; bottom: -120px; opacity: .045; }

/* 10. Chamada final */
.deco--photo { inset: -12% 0; width: 100%; height: 124%; max-width: none; object-fit: cover; opacity: .12; filter: saturate(.6); mix-blend-mode: luminosity; }
.deco--cta { width: min(90vw, 640px); right: -30%; top: 12%; opacity: .09; }
.deco--cta-rings { width: 860px; left: -380px; bottom: -620px; color: var(--bege); opacity: .2; }
@media (min-width: 900px) { .deco--cta { right: 3%; top: 8%; } }

/* Página A Igreja */
.page-hero > .deco { z-index: 0; }
.deco--page-hero { width: min(120vw, 820px); right: -40vw; top: 10%; color: var(--bege); opacity: .2; }
@media (min-width: 900px) { .deco--page-hero { right: -10%; top: 0; } }
.deco--history { width: 60%; height: 60%; right: -6%; top: 4%; }
.deco--name-meaning { width: 340px; right: -90px; bottom: -120px; opacity: .08; }
.deco--pastor { width: min(100vw, 520px); right: -160px; top: -60px; opacity: .05; }
.deco--purpose { inset: 0 0 auto auto; width: 70%; height: 90%; }
.deco--beliefs { width: min(140vw, 760px); left: -320px; bottom: -380px; opacity: .1; }
.deco--visit { width: min(110vw, 620px); left: -200px; top: -80px; opacity: .045; }
.deco--leaders { width: 50%; height: 60%; right: 0; top: 8%; display: none; }
@media (min-width: 900px) { .deco--leaders { display: block; } }

/* Rodapé */
.deco--footer { inset: 0 auto auto 0; width: 60%; height: 90%; opacity: .12; }
.deco--footer-symbol { width: min(90vw, 520px); right: -140px; bottom: -170px; opacity: .05; }

/* =========================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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