/*
Theme Name: AD Brumadinho
Theme URI: https://www.adbrumadinho.com.br/
Author: AD Brumadinho
Description: Tema institucional da Assembleia de Deus — Ministério Brumadinho, integrado ao Portal AD Brumadinho.
Version: 1.5.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: ad-brumadinho
*/

:root {
    --ink: #171c19;
    --forest: #1c2a23;
    --cream: #f3efe7;
    --paper: #fffdf9;
    --orange: #ef5525;
    --orange-dark: #c9471c;
    --gold: #d99c2b;
    --muted: #696f6b;
    --line: rgba(23, 28, 25, .14);
    --header: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
em { color: var(--orange-dark); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }

.site-header { position: sticky; z-index: 50; top: 0; min-height: var(--header); display: flex; align-items: center; gap: 28px; padding: 13px clamp(24px, 5.5vw, 90px); background: rgba(23,28,25,.97); color: white; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 315px; }
.brand-logo { width: 58px; height: 58px; overflow: hidden; flex: 0 0 auto; border-radius: 50%; background: white; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.brand small { color: rgba(255,255,255,.58); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(17px, 2.4vw, 34px); margin-left: auto; }
.site-nav a { padding: 9px 0; border-bottom: 2px solid transparent; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover { border-color: var(--orange); }
.header-cta { display: grid; place-items: center; min-height: 48px; padding: 0 25px; background: var(--orange); color: #171c19; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid rgba(255,255,255,.3); background: transparent; color: white; padding: 10px 13px; }

.hero { position: relative; min-height: calc(100vh - var(--header)); display: grid; grid-template-columns: 1fr auto; align-items: end; padding: clamp(80px, 11vw, 150px) clamp(28px, 8vw, 130px) 72px; isolation: isolate; overflow: hidden; background: var(--ink); color: white; }
/* Topo da Home: fachada do Templo Sede nítida (sem ampliar a foto) sobre um fundo desfocado da mesma foto. */
.hero::before { content: ''; position: absolute; inset: -80px; z-index: -3; background: var(--hero-image) center / cover no-repeat; filter: blur(36px) saturate(1.25) brightness(.5); }
.hero-photo { position: absolute; top: -20%; right: 0; height: 115%; aspect-ratio: 4 / 3; max-width: 82%; z-index: -2; background: var(--hero-image) center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.75) 12%, #000 24%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.75) 12%, #000 24%); animation: hero-reveal 1.4s ease-out both; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,18,14,.9) 0%, rgba(10,18,14,.74) 30%, rgba(10,18,14,.2) 50%, rgba(10,18,14,0) 70%), linear-gradient(0deg, rgba(10,18,14,.72) 0%, rgba(10,18,14,0) 30%); }
.hero h1, .hero-content > p:not(.eyebrow) { text-shadow: 0 2px 22px rgba(0,0,0,.4); }
@keyframes hero-reveal { from { opacity: 0; } to { opacity: 1; } }
.hero-content { max-width: 820px; }
.eyebrow { margin-bottom: 20px; color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: #f3c979; }
.hero h1 { margin: 0 0 25px; font-family: Georgia, serif; font-size: clamp(55px, 7.3vw, 104px); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.hero h1 em { color: #f3c979; }
.hero-content > p:not(.eyebrow) { max-width: 700px; color: rgba(255,255,255,.74); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 25px; border: 0; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.button-primary { background: var(--orange); color: var(--ink); }
.button-ghost { border: 1px solid rgba(255,255,255,.34); color: white; }
.hero-stat { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 11px; padding: 24px 26px; border-left: 1px solid rgba(255,255,255,.28); }
.hero-stat strong { font-family: Georgia, serif; font-size: 42px; font-weight: 400; }
.hero-stat span { max-width: 80px; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 115px clamp(28px, 8vw, 130px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(300px, 430px); align-items: end; gap: 70px; margin-bottom: 60px; }
.section-heading h2, .mission h2, .agenda-copy h2, .giving h2, .visit h2, .church-main-copy h2, .church-gallery h2, .board h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(43px, 5.5vw, 76px); font-weight: 400; line-height: 1.03; letter-spacing: -.03em; }
.section-heading > p, .mission p, .giving > div > p:last-child { margin: 0 0 7px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.intro-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 55px; align-items: stretch; }
.intro-links { display: flex; flex-direction: column; }
.intro-links a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 17px; min-height: 112px; border-top: 1px solid var(--line); }
.intro-links a:last-child { border-bottom: 1px solid var(--line); }
.intro-links b { color: var(--orange-dark); font-family: Georgia, serif; font-size: 21px; }
.intro-links span { display: flex; flex-direction: column; gap: 7px; }
.intro-links strong { font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.intro-links small { color: var(--muted); font-size: 11px; }
.intro-photo { position: relative; min-height: 470px; overflow: hidden; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.intro-photo figcaption { position: absolute; left: 22px; bottom: 20px; padding: 9px 12px; background: rgba(23,28,25,.86); color: white; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.mission { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10vw; padding: 100px clamp(28px, 8vw, 130px); background: var(--forest); color: white; }
.mission h2 { font-size: clamp(42px, 5vw, 70px); }
.mission > div:last-child { align-self: end; }
.mission p { color: rgba(255,255,255,.62); }
.mission ul { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 35px 0 0; padding: 0; list-style: none; }
.mission li { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.18); color: #f3c979; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.directory-tools { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 35px; }
.directory-tools label { display: flex; align-items: center; gap: 10px; width: min(100%, 530px); padding: 0 17px; border: 1px solid var(--line); background: var(--paper); }
.directory-tools input { width: 100%; min-height: 50px; border: 0; outline: none; background: transparent; }
.directory-tools > a { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.church-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 18px; }
.church-card { overflow: hidden; background: var(--paper); border-bottom: 3px solid transparent; box-shadow: 0 8px 25px rgba(23,28,25,.05); }
.church-card:hover { border-color: var(--orange); }
.church-card.hidden { display: none; }
.church-image { display: block; height: 230px; overflow: hidden; background: #ddd7ca; }
.church-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.church-card:hover .church-image img { transform: scale(1.035); }
.church-card-copy { padding: 21px 20px 24px; }
.church-card-copy > p { margin-bottom: 10px; color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.church-card h3, .church-card h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.church-card-copy > span { display: block; min-height: 48px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.text-link { display: inline-block; margin-top: 17px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.agenda-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--ink); color: white; }
.agenda-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.agenda-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(55px, 7vw, 105px); }
.agenda-copy h2 { margin-bottom: 34px; }
.event-list { display: flex; flex-direction: column; margin-bottom: 20px; }
.event-list a { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 20px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.16); }
.event-list time { color: #f3c979; font-family: Georgia, serif; font-size: 25px; }
.event-list span { display: flex; flex-direction: column; gap: 5px; }
.event-list small, .agenda-empty p { color: rgba(255,255,255,.55); }
.agenda-empty { margin-bottom: 35px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.agenda-empty strong { color: #f3c979; }
.agenda-empty p { margin: 9px 0 0; line-height: 1.6; }
.light-link { color: #f3c979; }

.generation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.generation-grid article { min-height: 280px; padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.generation-grid span { color: var(--orange); font-size: 30px; }
.generation-grid h3 { margin: 75px 0 12px; font-family: Georgia, serif; font-size: 27px; font-weight: 400; }
.generation-grid p { color: var(--muted); font-size: 12px; line-height: 1.6; }

.leadership { background: #f7f3eb; }
.leader-feature { display: grid; grid-template-columns: minmax(310px, 390px) 1fr; background: #ded6c8; }
.leader-feature figure { position: relative; min-height: 510px; margin: 0; overflow: hidden; }
.leader-feature figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.leader-feature figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; color: white; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 2px 10px #000; }
.leader-feature blockquote { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 96px); }
.leader-feature blockquote > span { position: absolute; right: 40px; top: 20px; color: rgba(143,105,46,.18); font-family: Georgia, serif; font-size: 150px; line-height: 1; }
.leader-feature blockquote p { position: relative; font-family: Georgia, serif; font-size: clamp(29px, 3.3vw, 47px); line-height: 1.28; }
.leader-feature cite { font-size: 10px; font-style: normal; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.people-grid img, .photo-placeholder { width: 100%; height: 270px; display: grid; place-items: center; object-fit: cover; background: #d7d0c4; color: #7e725f; }
.people-grid h3 { margin: 16px 0 4px; font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.people-grid p { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.board { margin-top: 105px; }
.board h2 { max-width: 850px; font-size: clamp(38px, 4.5vw, 62px); }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 45px; }
.board-grid article { display: flex; align-items: center; gap: 17px; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.board-grid article > span, .board-grid img { width: 64px; height: 64px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #ded6c8; color: #7b6e58; font-size: 11px; text-transform: uppercase; }
.board-grid strong { color: var(--orange-dark); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.board-grid p { margin: 5px 0 0; font-family: Georgia, serif; font-size: 17px; }

.media-section { padding: 110px clamp(28px, 8vw, 130px); background: var(--forest); color: white; }
.dark-heading > p { color: rgba(255,255,255,.6); }
.media-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; min-height: 460px; gap: 12px; }
.media-tile { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 300px; padding: 28px; overflow: hidden; background-image: linear-gradient(transparent 30%, rgba(0,0,0,.82)), var(--tile); background-size: cover; background-position: center; }
.media-tile strong { font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.media-tile small { margin-top: 7px; color: #f3c979; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.instagram-strip { display: flex; align-items: center; gap: 22px; margin-top: 28px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.18); }
.instagram-strip span { color: rgba(255,255,255,.55); font-size: 11px; text-transform: uppercase; }
.instagram-strip strong { font-family: Georgia, serif; font-size: 26px; }
.instagram-strip a { margin-left: auto; color: #f3c979; font-size: 11px; font-weight: 900; text-transform: uppercase; }

.giving { display: grid; grid-template-columns: 1fr minmax(330px, 470px); gap: 9vw; padding: 110px clamp(28px, 8vw, 130px); background: var(--orange-dark); color: white; }
.giving h2 { font-size: clamp(45px, 5.4vw, 75px); }
.giving h2 em { color: #ffe2b1; }
.giving > div > p:last-child { max-width: 650px; color: rgba(255,255,255,.72); }
.giving aside { align-self: center; padding: 35px; background: var(--paper); color: var(--ink); }
.giving aside small { color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.giving aside strong { display: block; margin: 15px 0 22px; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 42px); }
.copy-pix { width: 100%; min-height: 48px; border: 0; background: var(--ink); color: white; cursor: pointer; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.giving aside p { margin: 17px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.visit { padding: 110px clamp(28px, 8vw, 130px); text-align: center; }
.visit h2 { font-size: clamp(46px, 6vw, 82px); }
.visit > p:not(.eyebrow) { margin: 25px auto 45px; color: var(--muted); line-height: 1.7; }
.visit-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); background: var(--line); }
.visit-links a { display: flex; flex-direction: column; gap: 8px; padding: 25px; background: var(--cream); }
.visit-links a:hover { background: var(--paper); }
.visit-links span { color: var(--orange-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.visit-links strong { font-family: Georgia, serif; font-size: 22px; font-weight: 400; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 70px clamp(28px, 8vw, 130px) 35px; background: var(--ink); color: white; }
.footer-brand { display: flex; flex-direction: column; gap: 7px; }
.footer-brand strong { font-family: Georgia, serif; font-size: 30px; }
.footer-brand span { color: rgba(255,255,255,.48); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand p { margin-top: 30px; color: #f3c979; font-family: Georgia, serif; font-size: 22px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.footer-links div { display: flex; flex-direction: column; gap: 12px; }
.footer-links strong { color: #f3c979; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: rgba(255,255,255,.66); font-size: 12px; }
.copyright { grid-column: 1 / -1; margin: 35px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.35); font-size: 11px; }

.archive-hero { padding: 110px clamp(28px, 8vw, 130px) 85px; background: var(--forest); color: white; }
.archive-hero h1, .church-hero h1, .content-single h1, .not-found h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(54px, 7vw, 95px); font-weight: 400; line-height: 1; }
.archive-hero > p:last-child { max-width: 650px; margin: 25px 0 0; color: rgba(255,255,255,.6); line-height: 1.7; }
.archive-directory { min-height: 60vh; }

.church-hero { min-height: 630px; display: flex; align-items: end; padding: 90px clamp(28px, 8vw, 130px); background-image: linear-gradient(0deg, rgba(10,18,14,.88), rgba(10,18,14,.1)), var(--church-hero); background-size: cover; background-position: center; color: white; }
.church-hero > div { max-width: 950px; }
.church-hero > div > p:first-child { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.church-hero > div > p:first-child a { color: #f3c979; }
.church-hero span { display: inline-block; margin: 45px 0 15px; color: #f3c979; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.church-hero > div > p:last-child { margin: 20px 0 0; color: rgba(255,255,255,.72); }
.church-info { display: grid; grid-template-columns: 1.1fr .9fr; gap: 65px; padding: 105px clamp(28px, 8vw, 130px); }
.church-main-copy h2 { font-size: clamp(40px, 5vw, 67px); }
.prose { margin-top: 25px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.prose > * { max-width: 850px; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.info-cards article { min-height: 150px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.info-cards span { color: var(--orange-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.info-cards strong { margin-top: 13px; font-family: Georgia, serif; font-size: 17px; font-weight: 400; line-height: 1.5; }
.info-cards a { margin-top: auto; padding-top: 14px; color: var(--orange-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.map-card { min-height: 540px; display: flex; flex-direction: column; padding: 18px; background: var(--ink); }
.map-card iframe { width: 100%; height: 100%; min-height: 470px; border: 0; filter: grayscale(.65); }
.map-card a { padding: 18px 5px 3px; color: #f3c979; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.map-placeholder { align-self: start; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px; background: var(--forest); color: white; text-align: center; }
.map-placeholder > span { color: #f3c979; font-size: 55px; }
.map-placeholder strong { margin: 20px 0 10px; font-family: Georgia, serif; font-size: 28px; }
.map-placeholder p { color: rgba(255,255,255,.56); line-height: 1.6; }
.church-gallery { padding: 100px clamp(28px, 8vw, 130px); background: var(--ink); color: white; }
.church-gallery h2 { margin-bottom: 45px; font-size: clamp(40px, 5vw, 65px); }
.church-gallery > div, .photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.church-gallery figure, .photo-grid figure { margin: 0; min-height: 270px; overflow: hidden; }
.church-gallery img, .photo-grid img { width: 100%; height: 100%; display: block; object-fit: cover; }

.content-single { max-width: 1050px; min-height: 70vh; margin: 0 auto; padding: 105px 28px; }
.content-single header { margin-bottom: 45px; }
.content-single header > p:last-child { margin-top: 20px; color: var(--muted); }
.content-single > figure img { width: 100%; max-height: 650px; object-fit: cover; }
.gallery-single { max-width: 1320px; }
.photo-grid { margin-top: 45px; }
.post-list { min-height: 60vh; }
.post-list article { max-width: 900px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-family: Georgia, serif; font-size: 35px; font-weight: 400; }
.not-found { min-height: 72vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 90px clamp(28px, 8vw, 130px); }
.not-found h1 { max-width: 850px; margin-bottom: 40px; }

/* Versão 1.1 — acessibilidade, diretório, agenda e contatos */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; left: -9999px; top: 0; padding: 12px 18px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 800; }
.skip-link:focus { left: 16px; top: 16px; }
main:focus { outline: none; }
main [id] { scroll-margin-top: calc(var(--header) + 12px); }
.nav-cta { display: none; }
.button-outline { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: white; }

.church-grid[data-limit] .church-card.is-extra { display: none; }
.church-grid.show-all .church-card.is-extra:not(.hidden),
.church-grid.is-searching .church-card.is-extra:not(.hidden) { display: block; }
.directory-more { display: flex; justify-content: center; margin-top: 38px; }
.directory-empty { margin: 25px 0 0; padding: 28px; border: 1px dashed var(--line); background: var(--paper); color: var(--muted); line-height: 1.6; text-align: center; }
.media-section .directory-empty { border-color: rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.65); }

.event-list a:hover strong { color: #f3c979; }
.agenda-copy .text-link + .text-link { margin-top: 12px; }
.agenda-page { min-height: 50vh; padding: 80px clamp(28px, 8vw, 130px) 100px; background: var(--ink); color: white; }
.agenda-page .event-list { max-width: 900px; margin-bottom: 35px; }
.agenda-page .event-list a:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.agenda-page .agenda-empty { max-width: 900px; }
.event-past { margin-bottom: 30px; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--paper); color: var(--muted); }
.event-past a, .eyebrow a { border-bottom: 1px solid currentColor; }

.church-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(140deg, var(--forest), var(--ink)); color: #f3c979; }
.church-image-placeholder b { width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid rgba(243,201,121,.45); border-radius: 50%; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.church-image-placeholder small { color: rgba(255,255,255,.6); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.church-hero.no-photo { min-height: 460px; background-image: linear-gradient(140deg, var(--forest), var(--ink)); }
.leader-photo-placeholder { width: 100%; height: 100%; min-height: inherit; display: grid; place-items: center; background: var(--forest); color: #f3c979; font-family: Georgia, serif; font-size: 90px; }
.info-cards a + a { margin-top: 0; padding-top: 10px; }
.info-secondary-link { color: var(--ink) !important; }

.media-archive { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); min-height: 0; }
.media-more { margin: 25px 0 0; }
.pagination-links { margin-top: 35px; }
.pagination-links .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid currentColor; font-size: 12px; font-weight: 800; }
.pagination-links .page-numbers.current { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.pix-key { -webkit-user-select: all; user-select: all; }
.copy-pix:hover { background: var(--forest); }
.footer-brand address { margin-top: 12px; color: rgba(255,255,255,.55); font-size: 12px; font-style: normal; line-height: 1.6; }
.photo-grid a { display: block; height: 100%; }

/* Novo Templo: banner da Home e página própria */
.site-nav a { white-space: nowrap; }
.site-nav .nav-highlight { color: #f3c979; }
@media (max-width: 1360px) and (min-width: 821px) {
    .brand { min-width: 0; }
    .brand small { display: none; }
    .site-header { gap: 20px; }
    .site-nav { gap: 16px; }
    .header-cta { padding: 0 18px; }
}
.site-nav .nav-highlight[aria-current="page"] { border-color: var(--orange); }
.temple-banner { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(40px, 6vw, 96px); padding: 105px clamp(28px, 8vw, 130px); overflow: hidden; background: var(--forest); color: white; }
.temple-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 88% 12%, rgba(239,85,37,.24), transparent 42%), radial-gradient(circle at 0% 100%, rgba(217,156,43,.14), transparent 40%); pointer-events: none; }
.temple-copy { position: relative; }
.temple-copy h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(46px, 5.6vw, 82px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.temple-copy h2 em { color: #f3c979; }
.temple-copy > p:not(.eyebrow) { max-width: 560px; margin: 26px 0 0; color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.75; }
.temple-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 6px; }
.temple-soon > span { color: rgba(255,255,255,.55); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.temple-soon ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.temple-soon li { padding: 8px 14px; border: 1px solid rgba(243,201,121,.45); border-radius: 999px; color: #f3c979; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.temple-soon.on-light > span { color: var(--muted); }
.temple-soon.on-light li { border-color: rgba(201,71,28,.35); color: var(--orange-dark); }
.temple-copy .hero-actions { margin-top: 30px; }
.temple-media { position: relative; min-height: 540px; }
.temple-media figure, .temple-lots figure { position: absolute; margin: 0; overflow: hidden; background: #2a3a31; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.temple-media img, .temple-lots img { width: 100%; height: 100%; display: block; object-fit: cover; }
.temple-main { top: 0; left: 0; right: 13%; bottom: 15%; }
.temple-secondary { right: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 3; border: 6px solid var(--forest); }
.temple-media figcaption, .temple-lots figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 11px; background: rgba(23,28,25,.86); color: white; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.temple-secondary figcaption { left: 10px; bottom: 10px; }
.temple-main figcaption { top: 14px; bottom: auto; }

.temple-hero { min-height: 640px; }
.temple-hero .hero-actions { margin-top: 28px; }
.temple-hero > div > p:not(:first-child) { max-width: 640px; margin: 20px 0 0; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.6; }
.temple-page-body { max-width: 1320px; margin: 0 auto; padding: 105px clamp(24px, 6vw, 80px) 100px; }
.temple-page-head { max-width: 900px; }
.temple-page-head h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(42px, 5.2vw, 72px); font-weight: 400; line-height: 1.03; letter-spacing: -.03em; }
.temple-content { margin-top: 28px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.temple-content > p, .temple-content > ul, .temple-content > ol { max-width: 820px; }
.temple-content > h2 { margin: 90px 0 10px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink); font-family: Georgia, serif; font-size: clamp(32px, 3.6vw, 50px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.temple-content > h2 + p { margin-top: 0; }
.temple-content .has-small-font-size { margin-top: 60px; font-size: 13px; line-height: 1.6; }
.temple-content .wp-block-gallery { margin: 26px 0 0; --wp--style--gallery-gap-default: 14px; gap: 14px; }
.temple-content .wp-block-gallery .wp-block-image { overflow: hidden; border-radius: 10px; background: #e7e1d6; box-shadow: 0 14px 34px rgba(23,28,25,.1); }
.temple-content .wp-block-gallery .wp-block-image img { transition: transform .5s ease; }
.temple-content .wp-block-gallery .wp-block-image:hover img { transform: scale(1.03); }
.temple-content .wp-block-image img, .temple-content .wp-block-video video { max-width: 100%; height: auto; }
/* Ampliação das fotos (lightbox do WordPress) com fundo escuro, como numa galeria de projeto. */
.wp-lightbox-overlay .scrim { background-color: rgba(16,20,18,.96) !important; }
.wp-lightbox-overlay .close-button, .wp-lightbox-overlay .wp-lightbox-navigation-button { color: #fff !important; fill: #fff; }
.wp-lightbox-overlay .close-button svg, .wp-lightbox-overlay .wp-lightbox-navigation-button svg { fill: #fff; }
.temple-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 70px; padding: 26px 30px; border: 1px solid var(--line); background: var(--paper); }
.temple-follow .temple-soon { margin: 0; }
.temple-follow .text-link { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .church-image img { transition: none; }
    .hero-photo { animation: none; }
}

@media (max-width: 1120px) {
    .brand { min-width: auto; }
    .brand > span:last-child { display: none; }
    .site-nav { gap: 17px; }
    .church-grid { grid-template-columns: repeat(3, 1fr); }
    .generation-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    :root { --header: 76px; }
    .site-header { min-height: var(--header); padding: 9px 22px; }
    .brand-logo { width: 52px; height: 52px; }
    .menu-toggle { display: block; }
    .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 15px 24px 24px; background: var(--ink); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .header-cta { display: none; }
    .site-nav .nav-cta { display: block; margin-top: 14px; padding: 15px; border: 0; background: var(--orange); color: var(--ink); text-align: center; }
    .menu-toggle { min-width: 76px; min-height: 44px; }
    .hero { grid-template-columns: 1fr; min-height: 760px; padding: 100px 25px 55px; }
    /* Celular: faixa nítida com o prédio e o letreiro no alto; o texto fica abaixo, sobre o fundo desfocado. */
    .hero-photo { top: 0; left: 0; height: auto; width: 100%; max-width: none; aspect-ratio: 1100 / 600; background-image: var(--hero-image-mobile, var(--hero-image)); -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); }
    .hero::after { background: linear-gradient(180deg, rgba(10,18,14,0) 0%, rgba(10,18,14,.1) 16%, rgba(10,18,14,.72) 32%, rgba(10,18,14,.9) 48%, rgba(10,18,14,.95) 100%); }
    .hero-content { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
    .agenda-page { padding: 60px 24px 80px; }
    .hero-stat { display: none; }
    .hero h1 { font-size: clamp(50px, 14vw, 75px); }
    .section { padding: 82px 24px; }
    .section-heading, .mission, .agenda-section, .giving, .church-info, .temple-banner { grid-template-columns: 1fr; }
    .temple-banner { gap: 48px; padding: 82px 24px; }
    .temple-media { min-height: 440px; }
    .temple-page-body { padding: 75px 24px 70px; }
    .temple-content > h2 { margin-top: 64px; }
    .temple-follow { padding: 22px; }
    .section-heading { gap: 28px; margin-bottom: 42px; }
    .intro-grid { grid-template-columns: 1fr; }
    .intro-photo { min-height: 390px; }
    .mission { gap: 48px; padding: 80px 24px; }
    .church-grid { grid-template-columns: repeat(2, 1fr); }
    .agenda-photo { min-height: 410px; }
    .agenda-copy { padding: 70px 24px; }
    .leader-feature { grid-template-columns: 1fr; }
    .leader-feature figure { min-height: 680px; }
    .people-grid { grid-template-columns: repeat(2, 1fr); }
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .media-section { padding: 82px 24px; }
    .media-grid { grid-template-columns: 1fr; }
    .media-tile { min-height: 330px; }
    .giving { gap: 50px; padding: 82px 24px; }
    .visit { padding: 82px 24px; }
    .site-footer { grid-template-columns: 1fr; padding: 62px 24px 28px; }
    .copyright { grid-column: auto; }
    .church-info { gap: 45px; padding: 75px 24px; }
    .church-gallery { padding: 75px 24px; }
    .church-gallery > div, .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
    /* No celular a barra do WordPress rola junto com a página; o cabeçalho deve colar no topo. */
    body.admin-bar .site-header { top: 0; }
}

@media (max-width: 540px) {
    .hero-actions, .directory-tools, .instagram-strip { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .church-grid, .generation-grid, .people-grid, .board-grid, .info-cards, .visit-links, .church-gallery > div, .photo-grid { grid-template-columns: 1fr; }
    .church-image { height: 260px; }
    .directory-tools > a { margin-top: 5px; }
    .leader-feature figure { min-height: 520px; }
    .leader-feature blockquote { padding: 50px 28px; }
    .board { margin-top: 75px; }
    .instagram-strip a { margin-left: 0; }
    .footer-links { grid-template-columns: 1fr; }
    .archive-hero { padding: 80px 24px 65px; }
    .church-hero { min-height: 590px; padding: 70px 24px; }
    .temple-media { min-height: 330px; }
    .temple-main { right: 8%; bottom: 22%; }
    .temple-secondary { width: 52%; border-width: 4px; }
    .temple-soon { align-items: flex-start; flex-direction: column; }
}

