/* =========================================================
   IPAV — Igreja Pentecostal Amor e Vida
   Paleta extraída da logomarca: azul-marinho, dourado, azul-céu e branco
   ========================================================= */
:root {
  --navy-900: #061538;
  --navy-800: #0a1f4f;
  --navy-700: #0f2d6e;
  --navy-500: #1d4fb8;
  --sky: #3b82f6;
  --gold-300: #f7e08a;
  --gold-500: #d4a62a;
  --gold-600: #b8860b;
  --gold-grad: linear-gradient(135deg, #f7e08a 0%, #d4a62a 45%, #b8860b 100%);
  --white: #ffffff;
  --soft: #f4f7fc;
  --cream: #faf8f4;
  --text: #1c2540;
  --muted: #5b6684;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 31, 79, .10);
  --shadow-lg: 0 20px 50px rgba(10, 31, 79, .18);
  --font-title: "Cinzel", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Montserrat", system-ui, -apple-system, Segoe UI, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-500); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-800); }
h1, h2 { font-family: var(--font-title); letter-spacing: .5px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold-500); color: var(--navy-900); padding: .6rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }

/* ---------- Tipografia auxiliar ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: .78rem; font-weight: 700;
  color: var(--gold-600); margin-bottom: .6rem;
}
.eyebrow--light { color: var(--gold-300); }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.script { font-family: var(--font-script); font-size: 2.4rem; color: var(--gold-300); margin: -.3rem 0 1rem; line-height: 1; }
.muted-light { color: rgba(255,255,255,.7); font-style: italic; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 8px 20px rgba(212,166,42,.35); }
.btn--gold:hover { box-shadow: 0 12px 28px rgba(212,166,42,.5); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn--sm { padding: .55rem 1.2rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Cabeçalho (logo em destaque) ---------- */
.masthead {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--cream); text-align: center; padding: 1.8rem 0 1.4rem;
}
/* raios dourados estáticos saindo da logo + halo suave */
.masthead::before {
  content: ""; position: absolute; inset: -60% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(247,224,138,.45), rgba(247,224,138,.12) 22%, transparent 42%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(212,166,42,.10) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 15%, transparent 55%);
          mask: radial-gradient(circle at 50% 50%, #000 15%, transparent 55%);
}
/* trama de losangos nas laterais, sumindo perto da logo */
.masthead::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: var(--tx-diamond) center / 30px 30px;
  -webkit-mask: radial-gradient(ellipse 38% 120% at 50% 50%, transparent 40%, #000 100%);
          mask: radial-gradient(ellipse 38% 120% at 50% 50%, transparent 40%, #000 100%);
  opacity: .9;
}
.masthead__brand { display: inline-block; }
.masthead__logo {
  width: clamp(200px, 24vw, 320px); border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(212,166,42,.18), 0 12px 30px rgba(10,31,79,.15);
}

/* ---------- Menu ---------- */
.menubar {
  position: sticky; top: 0; z-index: 100; background: var(--cream);
  border-top: 1px solid rgba(10,31,79,.1); border-bottom: 1px solid rgba(10,31,79,.06);
  transition: box-shadow .3s, background .3s;
}
.menubar.is-stuck { background: var(--white); box-shadow: 0 6px 24px rgba(10,31,79,.10); }
.menubar__inner { position: relative; display: flex; justify-content: center; align-items: center; min-height: 58px; }
.menubar__mini {
  position: absolute; left: 0; top: 50%; transform: translate(-10px, -50%);
  display: flex; align-items: center; gap: .55rem; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.menubar__mini img { width: 40px; height: 40px; border-radius: 50%; }
.menubar__mini span { display: none; font-family: var(--font-title); font-weight: 700; color: var(--navy-800); letter-spacing: 2px; }
.menubar.is-stuck .menubar__mini { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav a {
  color: var(--navy-800); text-decoration: none; font-weight: 600; font-size: .76rem;
  text-transform: uppercase; letter-spacing: 2px; position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold-500); transition: width .25s, left .25s;
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; left: 0; }
.nav a.nav__accent { color: var(--gold-600); }

.nav-toggle {
  display: none; align-items: center; gap: .6rem; background: none; border: 0; cursor: pointer;
  padding: .6rem .4rem; font: inherit; color: var(--navy-800);
}
.nav-toggle__bars span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle__label { font-size: .76rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 58fr 42fr;
  min-height: min(680px, 78vh); background: var(--cream);
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3.5rem 6rem max(4vw, calc((100vw - 1180px) / 2));
}
.hero__eyebrow { color: #9a7438; font-weight: 500; font-size: .9rem; margin-bottom: 1.2rem; }
.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.9rem); font-weight: 600; line-height: 1.08;
  color: var(--navy-800); margin: 0 0 2.2rem; letter-spacing: 0;
}
.hero__title span { display: block; }
.hero__indent { padding-left: .55em; }
.hero__indent2 { padding-left: 1.1em; }
.hero__title em {
  font-style: normal; -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(135deg, #d4a62a 0%, #b8860b 60%, #8f6608 100%);
}
.hero__bottom {
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: end;
  border-top: 1px solid rgba(10,31,79,.14); padding-top: 1.5rem;
}
.hero__bottom p { margin: 0; color: var(--muted); max-width: 380px; }
.hero__cta { text-align: right; }
.hero__link { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.hero__link span { display: inline-block; margin-left: .3rem; transition: transform .3s; }
.hero__link:hover span { transform: translateY(4px); }
.hero__cta small { display: block; margin-top: .5rem; color: var(--muted); font-size: .8rem; }

/* Painel direito do hero: a imagem do carrossel ocupa o painel inteiro, sem moldura */
.hero__visual {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start;
  background: linear-gradient(180deg, #14316d 0%, #0b2052 60%, #081a45 100%); /* tons da borda da arte */
}
.hero__visual::before { /* transição suave do creme para a imagem */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 14%; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, var(--cream), rgba(250,248,244,0));
}

/* Carrossel do hero */
.carousel { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; }
.carousel__track {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  -webkit-mask: linear-gradient(180deg, #000 88%, transparent); mask: linear-gradient(180deg, #000 88%, transparent);
}
.carousel__slide {
  position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.carousel__slide.is-active { opacity: 1; visibility: visible; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
/* Slides de foto: degradê azul embaixo + legenda */
.carousel__slide--foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,26,69,0) 45%, rgba(8,26,69,.55) 68%, rgba(8,26,69,.95) 100%);
}
.carousel__caption {
  position: absolute; left: 0; right: 0; bottom: 3.6rem; z-index: 1; padding: 0 3.6rem;
  text-align: center; color: var(--white); font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.carousel__caption small {
  display: block; margin-bottom: .45rem; font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300);
}
.carousel__caption::after {
  content: ""; display: block; width: 56px; height: 2px; margin: .8rem auto 0; background: var(--gold-500);
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247,224,138,.6);
  background: rgba(6,21,56,.75); color: var(--gold-300); font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 3px; transition: background .2s;
}
.carousel__btn:hover { background: var(--navy-800); }
.carousel__btn--prev { left: calc(14% + .2rem); }
.carousel__btn--next { right: 1rem; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 1.2rem; z-index: 4; display: flex; justify-content: center; gap: .5rem; }
.carousel__dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: width .3s, background .3s;
}
.carousel__dots button[aria-current="true"] { width: 26px; background: var(--gold-300); }
.carousel:not(.is-multi) .carousel__btn, .carousel:not(.is-multi) .carousel__dots { display: none; }


/* ---------- Próxima programação ---------- */
.nextup { margin-top: 2.4rem; position: relative; z-index: 2; }
.nextup__card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 2.2rem;
  background: #efe6d6; border-radius: 18px; padding: 1.6rem 2rem;
  box-shadow: 0 18px 40px rgba(6,21,56,.18); color: var(--navy-800);
}
.nextup__title { padding-right: 2.2rem; border-right: 1px solid rgba(10,31,79,.15); flex-shrink: 0; }
.nextup__eyebrow {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .2rem;
  font-size: .82rem; font-weight: 600; color: #9a7438;
}
.nextup__eyebrow::before { content: ""; width: 24px; height: 1.5px; background: #9a7438; }
.nextup__title h2 { font-size: 1.6rem; margin: 0; letter-spacing: 0; }
.nextup__info { display: flex; align-items: center; gap: .65rem; position: relative; z-index: 1; }
.nextup__info svg {
  width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: #9a7438; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.nextup__info small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.2; }
.nextup__info strong { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.nextup__info--wide strong { white-space: normal; }
.nextup__btn { margin-left: auto; border-radius: 10px; position: relative; z-index: 1; flex-shrink: 0; }
.nextup__mark {
  position: absolute; right: -40px; top: 50%; width: 190px; transform: translateY(-50%);
  border-radius: 50%; opacity: .1; filter: grayscale(1); pointer-events: none;
}
.nextup__card.is-live .nextup__eyebrow { color: #c0392b; }
.nextup__card.is-live .nextup__eyebrow::before { background: #c0392b; }

/* ---------- Seções ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--soft); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: rgba(255,255,255,.88);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold-500); transition: transform .3s;
}
.card:hover { transform: translateY(-6px); }
.card__icon { font-size: 2.2rem; margin-bottom: .8rem; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.card--photo:hover .card__photo { transform: scale(1.05); }
.card__body { padding: 1.5rem 1.6rem 1.8rem; position: relative; background: var(--white); }

/* ---------- Formulários ---------- */
form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 1rem; color: inherit; }
form input:not([type=checkbox]), form select, form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .8rem 1rem; border-radius: 10px;
  border: 1.5px solid #d6deec; font: inherit; font-weight: 400; background: var(--white); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(212,166,42,.18);
}
form label.check { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
form label.check input { width: 18px; height: 18px; accent-color: var(--gold-600); }


/* ---------- Sobre ---------- */
.about { max-width: 820px; margin-inline: auto; text-align: center; }
.about blockquote { text-align: left; }
.about blockquote {
  margin: 1.5rem 0 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--gold-500);
  background: rgba(255,255,255,.06); border-radius: 0 12px 12px 0; font-style: italic; color: var(--white);
}
.about cite { display: block; margin-top: .5rem; font-style: normal; color: var(--gold-300); font-weight: 700; font-size: .9rem; }

/* Vídeo da história */
.story { max-width: 960px; margin-top: 4rem; text-align: center; }
.story__head h3 { font-family: var(--font-title); font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--white); margin: .3rem 0 1.6rem; }
.story__head em { color: var(--gold-300); }
.story__frame { margin: 0; }
.story__frame video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #081a45;
  border-radius: var(--radius); border: 1px solid rgba(247,224,138,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 6px rgba(247,224,138,.08);
}
.story__frame figcaption { margin-top: .9rem; font-size: .9rem; color: rgba(255,255,255,.7); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 4rem; }
.pillar {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 340px; padding: 2.6rem 1.8rem 2.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(247,224,138,.22); border-top: 3px solid var(--gold-500);
}
.pillar h3 { font-family: var(--font-title); color: var(--gold-300); font-size: 1.4rem; margin-bottom: 1rem; }
.pillar h3::after { content: ""; display: block; width: 40px; height: 1.5px; margin: 1rem auto 0; background: var(--gold-500); }
.pillar p { margin: 0; line-height: 1.8; }
.pillar__list { list-style: none; margin: 0; padding: 0; line-height: 2; }
.pillar__list li::before { content: "✦"; color: var(--gold-500); font-size: .7em; margin-right: .5rem; }

/* ---------- Liderança ---------- */
.leaders { --cols: 6; --gap: 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.leaders > .leader { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.leader__photo { max-width: 100%; height: auto !important; aspect-ratio: 1; }
.leader {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); padding: 2.2rem 1.4rem 1.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 3px solid transparent; transition: transform .25s, box-shadow .25s;
}
.leader:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.leader--main { border-top-color: var(--gold-500); }
.leader__photo {
  width: 170px; height: 170px; border-radius: 50%; object-fit: cover; margin-bottom: 1.3rem;
  border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--gold-500), 0 12px 28px rgba(10,31,79,.2);
}
.leader h3 { font-family: var(--font-title); font-size: 1.3rem; margin: 0 0 .3rem; }
.leader__role { color: var(--gold-600); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0; }

/* ---------- Cultos ---------- */
.schedule { display: grid; gap: 1rem; max-width: 900px; margin-inline: auto; }
.schedule__item {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--white); padding: 1.3rem 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s;
}
.schedule__item:hover { transform: translateX(6px); }
.schedule__day {
  font-family: var(--font-title); font-weight: 800; font-size: 1.2rem; color: var(--navy-800);
  background: var(--soft); border-radius: 12px; text-align: center; padding: .9rem 0;
}
.schedule__body h3 { margin-bottom: .2rem; }
.schedule__body p { margin: 0; color: var(--muted); font-size: .9rem; }
.schedule__time { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--gold-600); }
.schedule__item--featured { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.schedule__item--featured h3, .schedule__item--featured .schedule__time { color: var(--gold-300); }
.schedule__item--featured p { color: rgba(255,255,255,.8); }
.schedule__item--featured .schedule__day { background: var(--gold-grad); color: var(--navy-900); }

/* ---------- Ministérios ---------- */
.ministry {
  background: var(--white); border: 1px solid #e8edf6; border-radius: var(--radius); overflow: hidden;
  transition: .3s; display: flex; flex-direction: column;
}
.ministry:hover { border-color: var(--gold-500); box-shadow: var(--shadow); transform: translateY(-4px); }
.ministry img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.ministry:hover img { transform: scale(1.06); }
.ministry__body { padding: 1.1rem 1.2rem 1.4rem; background: var(--white); position: relative; border-top: 3px solid var(--gold-500); }
.ministry__body h3 { margin-bottom: .3rem; }
.ministry p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Agenda ---------- */
.events { display: block; }
.event__date { background: var(--gold-grad); color: var(--navy-900); border-radius: 12px; padding: .5rem .8rem; text-align: center; line-height: 1; }
.event__date strong { display: block; font-family: var(--font-title); font-size: 1.7rem; }
.event__date small { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.event__date--lg { padding: .75rem 1.1rem; border-radius: 14px; box-shadow: 0 8px 20px rgba(212,166,42,.3); }
.event__date--lg strong { font-size: 2.4rem; }
.event__date--lg small { font-size: .8rem; letter-spacing: 1px; }
.event__meta { font-size: .8rem; color: var(--navy-700); font-weight: 600; margin: 0 0 .7rem; }
.event__cal { margin-top: auto; align-self: flex-start; background: none; border: 0; color: var(--gold-600); font-weight: 700; cursor: pointer; padding: 0; font: inherit; font-size: .84rem; }
.event__cal:hover { text-decoration: underline; }
.event__tag {
  display: inline-block; background: var(--navy-800); color: var(--gold-300); border-radius: 999px;
  padding: .15rem .7rem; font-size: .68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}

/* Destaque: evento mais próximo (foto grande + foto menor sobreposta) */
.event-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.event-feature__media { position: relative; padding: 0 9% 13% 0; }
.event-feature__img {
  width: 100%; aspect-ratio: 11 / 12; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.event-feature__img2 {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover;
  border-radius: 18px; border: 8px solid var(--soft); box-shadow: var(--shadow-lg);
}
.event-feature__count {
  position: absolute; top: 1.2rem; left: 1.2rem; background: rgba(6,21,56,.82); color: var(--gold-300);
  padding: .45rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .5px;
  backdrop-filter: blur(4px); border: 1px solid rgba(247,224,138,.4);
}
.event-feature__eyebrow {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.3rem;
  color: var(--gold-600); font-size: .78rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
}
.event-feature__eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--gold-500); }
.event-feature__when { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; }
.event-feature__when p { margin: 0; color: var(--muted); line-height: 1.45; }
.event-feature__when strong { color: var(--navy-800); font-size: 1.05rem; }
.event-feature h3 { font-family: var(--font-title); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin-bottom: 1rem; }
.event-feature__desc { color: var(--muted); font-size: 1rem; max-width: 460px; }
.event-feature__place { font-weight: 600; color: var(--navy-700); font-size: .92rem; margin-bottom: 1.8rem; }
.event-feature__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Eventos seguintes: cards menores */
.events-next__title {
  display: flex; align-items: center; gap: 1rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  font-family: var(--font-title); font-size: 1.25rem; color: var(--navy-800);
}
.events-next__title::after { content: ""; flex: 1; height: 1px; background: rgba(10,31,79,.15); }
.events-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.event-mini {
  background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.event-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-mini--especial { box-shadow: 0 0 0 2px var(--gold-500), var(--shadow); }
.event-mini__media { position: relative; }
.event-mini__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event-mini__media .event__date { position: absolute; left: .7rem; bottom: -1.1rem; padding: .35rem .6rem; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.event-mini__media .event__date strong { font-size: 1.25rem; }
.event-mini__media .event__date small { font-size: .62rem; }
.event-mini__media .event__tag { position: absolute; top: .6rem; right: .6rem; }
.event-mini__body { padding: 1.6rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.event-mini h4 { font-size: .95rem; color: var(--navy-800); margin: 0 0 .4rem; line-height: 1.3; }

/* ---------- Faixa do app (Aviva Hub) ---------- */
.appband {
  position: relative; isolation: isolate; overflow: clip; color: rgba(255,255,255,.85);
  padding: clamp(3rem, 6vw, 4.2rem) 0;
  background:
    radial-gradient(rgba(247,224,138,.10) 1px, transparent 1.4px) 0 0 / 26px 26px,
    var(--tx-grain-light),
    radial-gradient(circle at 12% 50%, rgba(59,130,246,.28), transparent 40%),
    linear-gradient(120deg, var(--navy-900), var(--navy-800) 55%, #13336f);
  border-top: 1px solid rgba(247,224,138,.25); border-bottom: 1px solid rgba(247,224,138,.25);
}
.appband__inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.appband__logo img {
  width: clamp(130px, 13vw, 180px); height: auto; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(212,166,42,.35), 0 0 60px rgba(120,170,255,.35), 0 18px 40px rgba(0,0,0,.4);
}
.appband__eyebrow {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 .8rem;
  color: var(--gold-300); font-size: .85rem; font-weight: 600; letter-spacing: 1px;
}
.appband__eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-500); }
.appband h2 { color: var(--white); margin: 0 0 1rem; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.appband h2 em {
  font-family: var(--font-script); font-style: normal; font-weight: 400; font-size: 1.35em;
  color: var(--gold-300); letter-spacing: 0; white-space: nowrap;
}
.appband__text > p:not(.appband__eyebrow) { max-width: 520px; margin-bottom: 1.5rem; font-size: .95rem; }
.appband__text strong { color: var(--white); }
.appband__stores { display: flex; gap: .8rem; flex-wrap: wrap; }
.appband__stores a { display: block; border-radius: 10px; transition: transform .2s, box-shadow .2s; }
.appband__stores a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.appband__stores img { height: 48px; width: auto; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.appband__qr { text-align: center; }
.appband__codes { display: flex; gap: 1rem; }
.appband__codes figure { margin: 0; }
.appband__codes img {
  width: 116px; height: 116px; padding: 8px; background: var(--white); border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(212,166,42,.35);
}
.appband__codes figcaption { margin-top: .55rem; color: var(--gold-300); font-size: .8rem; font-weight: 600; }
.appband__qr p { margin: .8rem 0 0; font-size: .78rem; color: rgba(255,255,255,.6); }

@media (max-width: 1024px) {
  .appband__inner { grid-template-columns: auto 1fr; }
  .appband__qr { grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 600px) {
  .appband__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .appband__eyebrow { justify-content: center; }
  .appband__text > p:not(.appband__eyebrow) { margin-inline: auto; }
  .appband__stores { justify-content: center; }
  .appband__qr { display: none; } /* no celular, o QR não faz sentido: ficam os botões das lojas */
}

/* ---------- Versículo ---------- */
.verse {
  background:
    radial-gradient(circle at 50% 0%, rgba(247,224,138,.25), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--white); text-align: center; padding: clamp(4rem, 8vw, 6rem) 0;
}
.verse__inner { max-width: 860px; }
.verse__text { font-family: var(--font-title); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.5; transition: opacity .6s; }
.verse__ref { font-family: var(--font-script); font-size: 2.2rem; color: var(--gold-300); margin: 0; }

/* ---------- Testemunhos ---------- */
.testimony {
  margin: 0; background: var(--soft); border-radius: var(--radius); padding: 2rem; position: relative;
}
.testimony::before {
  content: "\201C"; position: absolute; top: -.2rem; left: 1.2rem; font-family: Georgia, serif;
  font-size: 5rem; color: var(--gold-500); opacity: .5; line-height: 1;
}
.testimony blockquote { margin: 1.2rem 0 1rem; font-style: italic; color: var(--text); }
.testimony figcaption { color: var(--muted); font-size: .88rem; }
.testimony figcaption strong { color: var(--navy-800); }

/* ---------- Oração ---------- */
.prayer { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.prayer__form {
  background: var(--white); color: var(--text); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.prayer__form label { color: var(--navy-800); }

/* ---------- Contribua ---------- */
.give { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.verse-small { font-style: italic; color: var(--muted); border-left: 3px solid var(--gold-500); padding-left: 1rem; }
.give__steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.give__steps li { display: flex; align-items: center; gap: .9rem; background: var(--soft); padding: .75rem 1rem; border-radius: 12px; font-size: .95rem; }
.give__steps strong { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold-grad); color: var(--navy-900); font-family: var(--font-title); }
.give__card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.give__pix { padding: 2rem; text-align: center; background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: var(--white); }
.give__badge { display: inline-block; background: var(--gold-grad); color: var(--navy-900); font-weight: 800; padding: .3rem 1rem; border-radius: 999px; letter-spacing: 2px; }
.give__pix p { margin: 1rem 0 .3rem; color: rgba(255,255,255,.75); }
.give__pix .give__label { margin: .8rem 0 1rem; font-family: var(--font-title); font-size: 1.3rem; color: var(--white); }
.give__qr { display: inline-block; background: var(--white); padding: .8rem; border-radius: 16px; box-shadow: 0 0 0 4px rgba(212,166,42,.55), 0 14px 30px rgba(0,0,0,.35); }
.give__qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.give__pix .give__hint { margin: .8rem 0 0; font-size: .85rem; }
.give__pix .give__keylabel { margin: 1.3rem 0 .2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; }
.give__pix code { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--gold-300); word-break: break-all; }
.give__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.give__actions .btn { padding-left: .8rem; padding-right: .8rem; }
.give__pix small { display: block; margin-top: .6rem; min-height: 1.2em; color: var(--gold-300); }
.give__note { padding: 1.2rem 2rem; font-size: .88rem; color: var(--muted); }
.give__note p { margin: 0; }
.give__note strong { color: var(--navy-800); }
@media (max-width: 480px) { .give__actions { grid-template-columns: 1fr; } .give__pix { padding: 1.6rem 1.2rem; } }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact__list li { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.contact__list span { font-size: 1.4rem; }
.contact__list strong { display: block; color: var(--navy-800); }
.contact__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-placeholder {
  height: 100%; display: grid; place-content: center; text-align: center; gap: .3rem;
  background:
    linear-gradient(rgba(10,31,79,.04) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(10,31,79,.04) 1px, transparent 1px) 0 0 / 30px 30px,
    #e9eef8;
  color: var(--muted);
}
.map-placeholder span { font-size: 3rem; }
.map-placeholder p { margin: 0; font-weight: 700; color: var(--navy-800); }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding-top: 4rem; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer__brand { display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 100%; text-align: center; }
.footer__logo { width: 120px; border-radius: 50%; }
.script--footer { font-size: 2rem; margin-top: .8rem; }
.footer h4 { color: var(--gold-300); font-family: var(--font-title); }
.footer p { margin: 0 0 .4rem; }
.footer a { display: block; color: rgba(255,255,255,.75); text-decoration: none; margin-bottom: .4rem; }
.footer a:hover { color: var(--gold-300); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .8rem; text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 150%); z-index: 300;
  background: var(--navy-800); color: var(--white); padding: .9rem 1.4rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gold-500); transition: transform .4s; font-size: .9rem;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Texturas por seção ---------- */
:root {
  --tx-grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .12 0 0 0 0 .31 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tx-grain-light: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tx-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 15v14M15 22h14' stroke='%230a1f4f' stroke-opacity='.07' stroke-width='1.4'/%3E%3C/svg%3E");
  --tx-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28'%3E%3Cpath d='M0 14 Q30 2 60 14 T120 14' fill='none' stroke='%230a1f4f' stroke-opacity='.06' stroke-width='1.2'/%3E%3C/svg%3E");
  --tx-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 2 34 18 18 34 2 18Z' fill='none' stroke='%23b8860b' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
  --tx-dots: radial-gradient(rgba(10,31,79,.08) 1.1px, transparent 1.5px) 0 0 / 22px 22px;
  --tx-lines-gold: repeating-linear-gradient(45deg, rgba(247,224,138,.05) 0 1px, transparent 1px 16px);
}

.masthead, .hero { background-image: var(--tx-grain); }
#visite       { background: var(--tx-dots), var(--white); }
#sobre        { background: var(--tx-lines-gold), var(--tx-grain-light), linear-gradient(160deg, var(--navy-900), var(--navy-800)); }
#lideranca    { background: var(--tx-diamond), var(--white); }
#cultos       { background: var(--tx-wave), var(--tx-grain), var(--soft); }
#ministerios  { background: var(--tx-cross), var(--white); }
#agenda       { background: var(--tx-dots), var(--tx-grain), var(--soft); }
#testemunhos  { background: var(--tx-wave), var(--white); }
#oracao       { background: radial-gradient(circle at 15% 20%, rgba(59,130,246,.18), transparent 45%), var(--tx-grain-light), repeating-linear-gradient(-45deg, rgba(247,224,138,.04) 0 1px, transparent 1px 16px), linear-gradient(160deg, var(--navy-900), var(--navy-800)); }
#contribua    { background: var(--tx-diamond), var(--white); }
#contato      { background: var(--tx-cross), var(--tx-grain), var(--soft); }
.verse {
  background:
    radial-gradient(rgba(247,224,138,.22) 1px, transparent 1.6px) 0 0 / 34px 34px,
    radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px) 17px 17px / 34px 34px,
    var(--tx-grain-light),
    radial-gradient(circle at 50% 0%, rgba(247,224,138,.25), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.footer { background: var(--tx-lines-gold), var(--tx-grain-light), var(--navy-900); }

/* ---------- Logo como marca d'água ---------- */
.section, .verse, .footer { position: relative; isolation: isolate; overflow: clip; }
.section::before, .verse::before, .footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(320px, 40vw, 560px); aspect-ratio: 1;
  top: 50%; right: -7%; transform: translateY(-50%) rotate(-12deg);
  background: url("../assets/img/logo.jpg") center / contain no-repeat;
  filter: grayscale(1) contrast(1.3); mix-blend-mode: multiply; opacity: .06;
}
/* alterna o lado para dar ritmo */
#sobre::before, #cultos::before, #testemunhos::before, #contribua::before {
  right: auto; left: -7%; transform: translateY(-50%) rotate(12deg);
}
/* seções escuras: logo clara */
#sobre::before, #oracao::before, .verse::before, .footer::before {
  filter: grayscale(1) invert(1) contrast(1.2); mix-blend-mode: screen; opacity: .07;
}
.verse::before { right: auto; left: 50%; width: clamp(360px, 46vw, 620px); transform: translate(-50%, -50%); opacity: .06; }
.footer::before { top: auto; bottom: -18%; right: -5%; transform: rotate(-12deg); }

@media (max-width: 600px) {
  .section::before { width: 300px; opacity: .05; }
}

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .events-next { grid-template-columns: repeat(2, 1fr); }
  .nextup__card { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .nextup__title { flex-basis: 100%; border-right: 0; padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 110; }
  .menubar.is-stuck .menubar__inner { justify-content: flex-end; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85%); flex-direction: column; align-items: flex-start;
    background: var(--white); padding: 6rem 2rem 2rem; gap: 1.4rem; box-shadow: var(--shadow-lg);
    clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .35s ease, visibility .35s;
  }
  .nav.is-open { clip-path: inset(0); visibility: visible; }
  .nav a { font-size: .9rem; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 3rem 4% 3rem; }
  .hero__visual { min-height: 0; }
  .nextup { margin-top: 1.6rem; }
  .hero__visual::before { inset: 0 0 auto 0; width: auto; height: 7%; background: linear-gradient(180deg, var(--cream), transparent); }
  .prayer, .give, .contact, .event-feature { grid-template-columns: 1fr; }
  .leaders { --cols: 3; }
  .pillars, .cards--3 { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
}

@media (max-width: 600px) {
  .cards--4 { grid-template-columns: 1fr; }
  .event-feature__actions .btn { flex: 1 1 100%; text-align: center; }
  .events-next { grid-template-columns: 1fr; gap: .9rem; }
  .event-mini { flex-direction: row; }
  .event-mini__media { flex: 0 0 116px; }
  .event-mini__media img { height: 100%; aspect-ratio: auto; }
  .event-mini__media .event__date { bottom: auto; top: .5rem; left: .5rem; }
  .event-mini__media .event__tag { top: auto; bottom: .5rem; right: auto; left: .5rem; font-size: .58rem; }
  .event-mini__body { padding: .9rem 1rem; }
  .nextup__card { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .nextup__btn { margin-left: 0; width: 100%; }
  .schedule__item { grid-template-columns: 64px 1fr; }
  .schedule__time { grid-column: 2; font-size: 1.2rem; }
  .leaders { --cols: 2; --gap: 1rem; }
  .leader { padding: 1.5rem .8rem 1.3rem; }
  .leader__photo { width: 120px; height: 120px; }
  .leader h3 { font-size: 1.1rem; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__logo, .footer__brand { margin-inline: auto; }
  .hero__bottom { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero__cta { text-align: left; }
}

/* Carrossel no celular: troca arrastando o dedo; setas escondidas para não cobrir a legenda */
@media (max-width: 600px) {
  .carousel__btn { display: none !important; }
  .carousel__caption { bottom: 3rem; padding: 0 1.5rem; }
}

/* Pastores: 6 por linha no computador — nome numa linha só */
.leaders .leader { padding-inline: .9rem; }
.leaders .leader h3 { font-size: 1.15rem; white-space: nowrap; }
@media (max-width: 600px) { .leaders .leader h3 { font-size: 1rem; } }
@media (max-width: 1100px) and (min-width: 601px) { .leaders { --cols: 3; } }
