/*
Theme Name: Igreja de Deus em Brasília
Description: Tema personalizado com a página institucional da Igreja de Deus em Brasília.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: idb-brasilia
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  --forest: #000000;
  --cream: #f7f5ef;
  --warm: #ede7dc;
  --ink: #202b27;
  --muted: #66716a;
  --white: #fff;
  --line: rgba(32, 43, 39, .13);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --container: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #d6a86b; outline-offset: 4px; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 1000; padding: 10px 14px; background: var(--white); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,239,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--cream); background: var(--forest); border-radius: 50%; font-size: 23px; }
.brand strong, .brand small { display: block; line-height: 1.35; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.main-nav a { font-size: 12px; font-weight: 600; color: #464747; transition: color .2s; }
.main-nav a:hover { color: #9b6b3e; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px 0; background: var(--forest); }
.hero { position: relative; min-height: 610px; display: flex; align-items: center; color: var(--white); background: #000000; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("https://images.unsplash.com/photo-1438232992991-995b7058bbb3?auto=format&fit=crop&w=2200&q=85") center 48% / cover; transform: scale(1.015); }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(10, 0, 0,.64) 52%, rgba(33, 36, 35, 0.2) 100%); }
.hero-content { padding-block: 100px 125px; }
.eyebrow { margin: 0 0 18px; color: #d6d6d6; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.eyebrow-dark { color: #868686; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(44px, 6vw, 76px); }
h1 em, h2 em { color: #868686; font-weight: 500; }
.hero-copy { max-width: 490px; margin-bottom: 30px; color: rgba(255,255,255,.82); font-size: 15px; }
.hero-actions, .contact-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 12px; padding: 12px 19px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--forest); background: var(--cream); }
.button-light:hover { background: white; }  
.button-outline { color: white; border-color: rgba(255,255,255,.55); background: transparent; }
.button-outline:hover { background: rgba(255,255,255,.1); }
.button-dark { color: white; background: var(--forest); }
.hero-note { position: absolute; right: max(24px, calc((100% - var(--container))/2)); bottom: 30px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); font-size: 11px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #c5d9bf; box-shadow: 0 0 0 5px rgba(221, 221, 220, 0.13); }
.section { padding-block: 100px; }
.section-muted { background: #eeeee6; }
.section-warm { background: var(--warm); }
.section-dark { color: white; background: var(--forest); }
h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 49px); }
.about-copy > p:not(.eyebrow), .events-intro > p:not(.eyebrow), .media-layout > div > p:not(.eyebrow), .location-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 10px; color: var(--forest); font-size: 12px; font-weight: 700; border-bottom: 1px solid #868686; padding-bottom: 6px; }
.about-grid { display: grid; grid-template-columns: .95fr 1fr; align-items: center; gap: 9%; }
.about-image { position: relative; min-height: 465px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 60%), url("images/idb-inicio.png") center / cover; }
.image-caption { position: absolute; bottom: 28px; left: 28px; color: white; }
.image-caption span, .image-caption strong { display: block; }
.image-caption span { font-size: 9px; letter-spacing: .2em; }
.image-caption strong { margin-top: 6px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.about-copy h2 { margin-bottom: 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 340px; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.heading-light h2 em { color: #d8d8d8; }
.heading-light > p { color: rgba(255,255,255,.68); }
.card-grid { display: grid; gap: 18px; }
.schedule-grid { grid-template-columns: repeat(3, 1fr); }
.declaracao-grid { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 25px; border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 27px; }
.icon-description { display: flex; align-items: center; gap: 14px; }
.icon-description .card-icon { flex-shrink: 0; }
.icon-description p { margin: 0; }
.card-number { color: #868686; font-size: 10px; letter-spacing: .1em; }
.info-card h3 { margin-bottom: 9px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.info-card p { margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--forest); font-size: 11px; font-weight: 700; }
.card-meta span { padding: 6px 9px; background: #e8ede5; }
.ministry-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),260px)); justify-content: center; }
.ministry-card { min-height: 220px; padding: 23px; border: 1px solid rgba(255,255,255,.16); transition: background .2s, transform .2s; }
.ministry-card:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.ministry-card .card-icon { margin-bottom: 25px; color: white; background: rgba(255,255,255,.12); }
.ministry-card h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.ministry-card p { margin-bottom: 0; color: rgba(255,255,255,.67); font-size: 12px; }
.pastor-card { display: none; min-width: 0; overflow: hidden; background: #eeeee6; }
.pastor-photo { display: grid; min-height: 320px; place-items: center; color: #808080; background: linear-gradient(135deg,#e7e7e7,#cecece); font-family: var(--serif); font-size: 48px; }
.pastor-photo img { width: 100%; height: 100%; object-fit: cover; }
.pastor-info { padding: 22px; }
.pastor-info h3 { margin-bottom: 3px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.pastor-role { display: block; margin-bottom: 12px; color: #868686; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pastor-info p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.events-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10%; }
.events-intro > p:not(.eyebrow) { max-width: 340px; }
.event-list { border-top: 1px solid rgba(48, 48, 48, 0.16); }
.event-item { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; padding: 23px 0; border-bottom: 1px solid rgba(39, 39, 39, 0.16); }
.event-date { text-align: center; color: var(--forest); }
.event-date strong { display: block; font-family: var(--serif); font-size: 31px; font-weight: 500; line-height: 1; }
.event-date small { display: block; margin-top: 7px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-info h3 { margin-bottom: 5px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.event-info p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.event-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(44, 44, 44, 0.2); border-radius: 50%; }
.media-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 10%; }
.media-layout > div > p:not(.eyebrow) { max-width: 400px; margin-bottom: 25px; }
.video-placeholder { position: relative; display: flex; min-height: 320px; align-items: center; justify-content: center; color: white; background: linear-gradient(0deg,rgba(0, 0, 0, 0.78),rgba(0, 0, 0, 0.08)), url("https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=1400&q=85") center / cover; }
.play-button { display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.16); }
.video-caption { position: absolute; bottom: 22px; left: 24px; }
.video-caption small, .video-caption strong { display: block; }
.video-caption small { margin-bottom: 5px; font-size: 9px; letter-spacing: .16em; }
.video-caption strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.location-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 10%; }
.location-grid > div > p:not(.eyebrow) { max-width: 390px; }
.address-block { display: flex; align-items: start; gap: 14px; margin: 28px 0; }
.address-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; color: var(--forest); }
.address-block strong { font-size: 12px; }
.address-block p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.map-placeholder { height: 365px; overflow: hidden; background: #dfe5da; }
.map-placeholder iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-band { padding-block: 55px; color: white; background: #000000; }
.contact-inner { display: flex; align-items: left; justify-content: start; gap: 35px; }
.contact-inner .eyebrow { margin-bottom: 8px; }
.contact-inner h2 { margin-bottom: 7px; font-size: 34px; }
.contact-inner p:not(.eyebrow) { margin-bottom: 0; color: rgba(255,255,255,.7); font-size: 12px; }
.site-footer { padding-top: 35px; color: white; background: #000000; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-bottom: 30px; }
.brand-footer small { color: rgba(255,255,255,.6); }
.back-top { font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.52); font-size: 10px; }
.empty-state { grid-column: 1 / -1; padding: 20px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
/* Abas de Missão, Visão e Valores */
.values-tabs { margin-top:30px; border-top:1px solid var(--line); }
.values-tab-list { display:flex; flex-wrap:wrap; gap:8px; padding-top:18px; }
.values-tab { flex:1 1 0; min-width:0; padding:12px 14px; border:1px solid rgba(32,43,39,.18); border-radius:3px; color:var(--ink); background:transparent; font:600 12px var(--sans); cursor:pointer; transition:color .2s,background .2s,border-color .2s; }
.values-tab:hover { border-color:var(--forest); }
.values-tab.is-active { color:white; background:var(--forest); border-color:var(--forest); }
.values-panel { padding:20px 2px 0; color:var(--muted); font-size:13px; }
.values-panel p { margin:0; }
.values-panel ul { margin:0; padding-left:20px; }
.values-panel li + li { margin-top:7px; }
.values-panel[hidden] { display:none; }

/* Um pastor por página do carrossel. */
.pastor-carousel { width:100%; max-width:560px; margin-inline:auto; }
.pastor-track { display:grid; grid-template-columns:minmax(0,1fr); }
.pastor-card.is-active { display:block; animation:pastor-fade-in .22s ease-out; }
.pastor-carousel-controls { display:flex; align-items:center; justify-content:center; gap:22px; margin-top:18px; }
.carousel-arrow { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:50%; color:var(--ink); background:transparent; font-size:20px; cursor:pointer; transition:color .2s,background .2s; }
.carousel-arrow:hover { color:white; background:var(--forest); }
.carousel-arrow:disabled { opacity:.35; cursor:not-allowed; }
.pastor-carousel-status { min-width:52px; color:var(--muted); font-size:12px; text-align:center; font-variant-numeric:tabular-nums; }
@keyframes pastor-fade-in { from { opacity:.55; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

@media (max-width: 980px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 11px; }
  .brand small { display: none; }
  .about-grid, .media-layout, .location-grid { gap: 6%; }
}
@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); background: var(--cream); box-shadow: 0 12px 18px rgba(0,0,0,.06); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 8px; font-size: 13px; }
  .hero { min-height: 590px; }
  .hero-content { padding-block: 90px 110px; }
  .hero-shade { background: linear-gradient(90deg,rgba(0, 0, 0, 0.86),rgba(0, 0, 0, 0.48)); }
  .hero-note { right: 18px; bottom: 20px; }
  .section { padding-block: 70px; }
  .about-grid, .events-layout, .media-layout, .location-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-image { min-height: 340px; order: 2; }
  .about-copy { order: 1; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 15px; }
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-grid { gap: 12px; }
  .declaracao-grid { grid-template-columns: 1fr; }
  .declaracao-grid { gap: 12px; }
  .ministry-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 10px; }
  .pastor-carousel { max-width: 100%; }
  .ministry-card { min-height: 205px; padding: 17px; }
  .pastor-photo, .pastor-photo img { min-height: 250px; height: 250px; }
  .events-layout { gap: 25px; }
  .event-item { grid-template-columns: 55px 1fr auto; gap: 12px; }
  .event-info h3 { font-size: 18px; }
  .video-placeholder { min-height: 260px; }
  .map-placeholder { height: 300px; }
  .contact-inner, .footer-main { align-items: flex-start; flex-direction: column; }
  .contact-inner { gap: 22px; }
  .footer-main { gap: 17px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 400px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .event-item { grid-template-columns: 48px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pastor-card.is-active { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Seções independentes da área Sobre */
.about-sections { display: grid; gap: 80px; }
.about-section + .about-section { padding-top: 80px; border-top: 1px solid var(--line); }
.about-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: start; gap: 6%; }
.about-image { display: block; width: 100%; height: 465px; min-height: 0; object-fit: cover; object-position: center; background: none; }
.about-copy { min-width: 0; }
.about-copy .hero-copy { max-width: none; }
.about-copy .declaracao-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .about-sections { gap: 48px; }
  .about-section + .about-section { padding-top: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-image { height: auto; aspect-ratio: 4 / 3; order: 0; }
  .about-copy { order: 0; }
  .about-copy .declaracao-grid { grid-template-columns: 1fr; }
}
/* Menu selecionável da área Sobre. */
#sobre .about-sections { gap: 32px; }
#sobre .about-menu { display: flex; flex-wrap: wrap; gap: 8px; }
#sobre .about-section + .about-section { padding-top: 0; border-top: 0; }
#sobre .about-section[hidden] { display: none; }
#sobre .about-section:focus-visible { outline: 3px solid #d6a86b; outline-offset: 4px; }
@media (max-width: 760px) {
  #sobre .about-menu .values-tab { flex-basis: 100%; }
}

/* Compatibilidade com a barra de administração do WordPress. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
.idb-content { min-height: 50vh; }
.idb-content img { max-width: 100%; height: auto; }
.idb-content a { text-decoration: underline; }
.idb-content .page-links, .idb-content .navigation { margin-block: 24px; }