/* Ajustes do site Igreja de Deus Missões Mundiais – Região Lusófona sobre o tema Churche */
:root {
  /* vermelho do logótipo da Church of God */
  --main-h: 4;
  --main-s: 76%;
  --main-l: 49%;
  /* azul escuro da cruz */
  --black: 245 45% 18%;
  --soft: #f6f3ef;
}

/* marca */
.site-brand { gap: 12px; text-decoration: none; }
.site-brand__logo { width: 54px; height: 54px; object-fit: contain; flex: none; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.15; color: #fff; }
.site-brand__text strong { font-family: var(--heading-font); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; }
.site-brand__text small { font-size: .8rem; opacity: .85; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 575px) {
  .site-brand__logo { width: 44px; height: 44px; }
  .site-brand__text strong { font-size: 1.05rem; }
  .site-brand__text small { font-size: .68rem; }
}

/* menu com 8 itens */
.site-nav { gap: 26px; }
@media (max-width: 1599px) { .site-nav { gap: 18px; } .site-nav .nav-menu__link { font-size: .95rem; } }
@media (max-width: 1499px) { .header .header-button a { padding-left: 18px !important; padding-right: 18px !important; } .site-brand__text strong { font-size: 1.15rem; } }
@media (min-width: 1200px) and (max-width: 1699px) { .header .site-brand__text { display: none; } }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid rgba(255,255,255,.6);
  color: #fff; font-weight: 700; border-radius: 50px; font-size: .9rem;
}
.lang-switch:hover { background: hsl(var(--main)); border-color: hsl(var(--main)); color: #fff; }

/* secções */
.bg-soft { background: var(--soft); }
.verse { border-left: 4px solid hsl(var(--main)); padding: 18px 24px; font-size: 1.15rem; font-style: italic; background: #fff; color: hsl(var(--black)); }
.pending { background: #fff7e6; border: 1px dashed #e6a700; padding: 12px 16px; color: #6b4e00; display: flex; gap: 8px; align-items: flex-start; }
.rounded-img { width: 100%; border-radius: 6px; }
.wide-photo img { width: 100%; max-height: 640px; object-fit: cover; }
.wide-photo figcaption { margin-top: 10px; font-size: .95rem; color: hsl(var(--body)); }
.leader-sign { font-style: italic; color: hsl(var(--main)); font-weight: 600; }
.stat-box { background: #fff; padding: 30px 20px; text-align: center; height: 100%; }
.stat-box .odometer { font-size: clamp(2.4rem, 4vw, 3.6rem); color: hsl(var(--main)); line-height: 1; }
.stat-box p { margin-top: 8px; font-size: 1.1rem; color: hsl(var(--black)); }
.history-title { font-size: clamp(2.6rem, 5vw, 4.375rem) !important; }
.banner-title span { color: #fff; }
.cta-band { padding: 120px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 50, .72); z-index: -1; }

/* actividades */
.event-when { min-width: 210px; }
.event-date i { font-size: 3rem; }
.event-meta li { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.ev-nav a { font-weight: 600; color: hsl(var(--black)); display: inline-flex; gap: 6px; align-items: center; }
.ev-nav a:hover { color: hsl(var(--main)); }

/* galeria */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gal-item { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.06); }
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.gal-filter { border: 1px solid hsl(var(--black) / .2); background: #fff; padding: 8px 16px; font-size: .92rem; font-weight: 600; color: hsl(var(--black)); }
.gal-filter.active, .gal-filter:hover { background: hsl(var(--main)); border-color: hsl(var(--main)); color: #fff; }
.gal-block { margin-bottom: 56px; }
.gal-block__title { font-size: 1.6rem; font-weight: 400; margin-bottom: 18px; text-transform: uppercase; }
.gal-block__title small { font-family: var(--body-font); font-size: .95rem; text-transform: none; color: hsl(var(--body)); margin-left: 8px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.vid-item video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vid-item figcaption { font-size: .95rem; margin-top: 6px; }

/* onde estamos */
.map-wrap { position: relative; }
.map-wrap iframe { width: 100%; height: 440px; border: 0; filter: saturate(.8); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.map-legend a, .chip { display: inline-block; padding: 6px 14px; background: hsl(var(--main) / .1); color: hsl(var(--main)); font-weight: 600; font-size: .9rem; }
.map-legend a:hover, .chip:hover { background: hsl(var(--main)); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.country-row .service-thumb img { width: 300px; height: 210px; object-fit: cover; }
.country-ph { width: 300px; height: 210px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.country-ph img { width: 110px !important; height: auto !important; opacity: .5; }
@media (max-width: 767px) { .country-row .service-thumb img, .country-ph { width: 100%; } }

/* sermões */
.sermon-card { background: #fff; border: 1px solid hsl(var(--black) / .1); height: 100%; display: flex; flex-direction: column; transition: box-shadow .3s; }
.sermon-card:hover { box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.sermon-card__cover { position: relative; display: block; aspect-ratio: 3 / 2.2; overflow: hidden; background: var(--soft); }
.sermon-card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sermon-card__cover i { font-size: 4rem; color: hsl(var(--main)); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sermon-card__badge { position: absolute; top: 10px; left: 10px; background: hsl(var(--main)); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; }
.sermon-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.sermon-card__title { font-family: var(--body-font); font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.sermon-card__title a { color: hsl(var(--black)); }
.sermon-card__meta { font-size: .85rem; color: hsl(var(--body)); margin-bottom: 14px; }
.sermon-card__actions { margin-top: auto; display: flex; gap: 18px; }
.sermon-card__actions a { font-weight: 600; color: hsl(var(--main)); display: inline-flex; align-items: center; gap: 5px; }

/* apoio */
.challenge-card { background: #fff; border-top: 4px solid hsl(var(--main)); padding: 30px 26px; box-shadow: 0 6px 26px rgba(0,0,0,.05); }
.challenge-card__n { font-family: var(--heading-font); font-size: 2.6rem; color: hsl(var(--main)); display: block; line-height: 1; margin-bottom: 12px; }

/* contactos */
.wa-inline { color: #128c4a; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.footer-about { opacity: .85; max-width: 420px; }
.footer .site-brand__text { color: #fff; }

/* botão flutuante WhatsApp */
.wa-float { position: fixed; left: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 999; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; transform: scale(1.06); }

.mfp-title { font-size: .9rem; }
.banner-title { font-size: clamp(3rem, 7.2vw, 8rem) !important; line-height: .95 !important; }
@media (min-width: 1200px) { .banner-wrapper > div:first-child { max-width: 62%; } }
.leader-card { background: hsl(var(--black)); color: #fff; }
.leader-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.leader-card__body { padding: 22px 24px; }
.leader-card__body h4 { color: #fff; font-weight: 400; font-size: 1.8rem; margin-bottom: 4px; }
.leader-card__body p { color: hsl(var(--main)); font-weight: 600; }
.country-row .service-content { flex: 1; min-width: 260px; max-width: 640px; }
@media (max-width: 991px) {
  .history-wrap { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
  .history-item { flex-direction: column; align-items: flex-start !important; gap: 4px !important; }
  .history-title { font-size: 2.4rem !important; }
  .event-when { min-width: 0; }
}

/* --- revisão responsiva (v2) --- */
.stat-num { font-size: clamp(2.2rem, 4.5vw, 3.8rem); color: hsl(var(--main)); line-height: 1; display: block; }
.img-cover { height: 340px; object-fit: cover; }
@media (max-width: 767px) { .img-cover { height: 220px; } }
/* hero: em ecrãs < 1200 o texto da direita passa para baixo do título */
@media (max-width: 1199px) {
  .banner-content { position: static !important; margin-top: 28px !important; max-width: 560px; }
  .banner-wrapper > div:first-child { max-width: 100%; }
}
/* lista de actividades no telemóvel: a seta não precisa de linha própria */
@media (max-width: 767px) {
  .event-item { flex-wrap: wrap; gap: 6px; }
  .event-bottom { display: none !important; }
  .event-title { font-size: 1.35rem !important; }
  .event-date { font-size: 2.6rem !important; }
}
/* filtros da galeria: deslizar na horizontal no telemóvel */
@media (max-width: 767px) {
  .gal-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .gal-filter { white-space: nowrap; flex: none; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .vid-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1199px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
/* e-mails longos não partem a meio da palavra de forma estranha */
.contact-ip-content a, .footer a[href^="mailto"] { overflow-wrap: anywhere; }
@media (max-width: 575px) {
  .contact-ip-wrapper { padding: 24px 18px !important; }
  .contact-ip-content a.tw-text-lg { font-size: 1rem !important; }
  .breadcrumb-title { font-size: 2.6rem !important; }
  .section-title { font-size: 2rem !important; }
}
/* espaço para o botão do WhatsApp não tapar o rodapé */
.footer-bottom { padding-bottom: 60px; }
@media (min-width: 768px) { .footer-bottom { padding-bottom: 0; } .footer-copyright-wrapper { padding-left: 70px; } }
/* tablet: cartões de contacto com altura uniforme */
.contact-ip-wrapper.h-100 { height: calc(100% - 30px) !important; }
.toggle-mobileMenu { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }

/* --- doutrinas e ensino pastoral --- */
.doc-note { display: flex; gap: 8px; align-items: center; color: hsl(var(--body)); font-style: italic; margin-bottom: 24px; }
.doc-toc { position: sticky; top: 160px; background: var(--soft); padding: 24px 22px; margin-bottom: 40px; }
.doc-toc__label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: hsl(var(--main)); margin-bottom: 12px; }
.doc-toc ul { display: flex; flex-direction: column; gap: 4px; }
.doc-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; font-weight: 600; color: hsl(var(--black)); line-height: 1.3; }
.doc-toc a span { font-family: var(--heading-font); color: hsl(var(--main)); font-weight: 400; font-size: 1.1rem; }
.doc-toc a:hover, .doc-toc a.active { color: hsl(var(--main)); }
.doc-sec { padding-bottom: 64px; scroll-margin-top: 150px; }
.doc-sec__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid hsl(var(--black) / .08); padding-bottom: 14px; margin-bottom: 26px; }
.doc-sec__n { font-family: var(--heading-font); font-size: 2.6rem; line-height: 1; color: hsl(var(--main)); }
.doc-sec__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; text-transform: uppercase; margin: 0; flex: 1; min-width: 200px; }
.doc-toggle { border: 1px solid hsl(var(--main)); color: hsl(var(--main)); background: #fff; font-weight: 600; font-size: .9rem; padding: 6px 16px; }
.doc-toggle:hover { background: hsl(var(--main)); color: #fff; }
.doc-creed { counter-reset: creed; display: flex; flex-direction: column; gap: 14px; }
.doc-creed > li { counter-increment: creed; position: relative; background: #fff; border-left: 4px solid hsl(var(--main)); box-shadow: 0 4px 20px rgba(0,0,0,.05); padding: 18px 22px 18px 72px; }
.doc-creed > li::before { content: counter(creed, decimal-leading-zero); position: absolute; left: 20px; top: 16px; font-family: var(--heading-font); font-size: 1.7rem; color: hsl(var(--main)); line-height: 1; }
.doc-creed p, .doc-acc__body p, .doc-text p, .doc-card p { font-size: 1.05rem; line-height: 1.7; }
.doc-creed p + p, .doc-acc__body p + p, .doc-text p + p, .doc-card p + p { margin-top: 10px; }
.doc-text { background: #fff; padding: 4px 0; }
.doc-text + .doc-card, .doc-card + .doc-card, .doc-card + .doc-text { margin-top: 18px; }
.doc-count { color: hsl(var(--body)); margin-bottom: 14px; font-size: .95rem; }
.doc-acc { border: 1px solid hsl(var(--black) / .1); background: #fff; }
.doc-acc + .doc-acc { margin-top: 8px; }
.doc-acc summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 14px 18px; font-weight: 700; color: hsl(var(--black)); font-size: 1.05rem; line-height: 1.35; }
.doc-acc summary::-webkit-details-marker { display: none; }
.doc-acc__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--main) / .1); color: hsl(var(--main)); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.doc-acc__t { flex: 1; }
.doc-acc summary i { flex: none; color: hsl(var(--main)); transition: transform .25s; }
.doc-acc[open] summary i { transform: rotate(180deg); }
.doc-acc[open] summary, .doc-acc summary:hover { color: hsl(var(--main)); }
.doc-acc__body { padding: 0 18px 18px 66px; }
.doc-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.doc-list li { position: relative; padding-left: 20px; line-height: 1.6; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; background: hsl(var(--main)); border-radius: 50%; }
.doc-card { background: #fff; border-top: 4px solid hsl(var(--main)); box-shadow: 0 6px 26px rgba(0,0,0,.05); padding: 24px 26px; }
.doc-card h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 12px; }
@media (max-width: 991px) {
  .doc-toc { position: static; padding: 16px; margin-bottom: 32px; }
  .doc-toc ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .doc-toc a { padding: 6px 12px; background: #fff; font-size: .9rem; }
}
@media (max-width: 575px) {
  .doc-creed > li { padding: 16px 16px 16px 56px; }
  .doc-creed > li::before { left: 14px; font-size: 1.4rem; }
  .doc-acc summary { padding: 12px 14px; gap: 10px; font-size: 1rem; }
  .doc-acc__body { padding: 0 14px 16px 14px; }
  .doc-card { padding: 20px 18px; }
  .doc-sec__n { font-size: 2rem; }
}

/* menu com 9 itens: uma linha só em todos os ecrãs grandes */
.site-nav .nav-menu__link, .header .header-button a { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1299px) {
  .site-nav { gap: 12px; }
  .site-nav .nav-menu__link { font-size: .88rem; }
  .header .header-right { gap: 12px !important; }
  .header .header-button a { padding-left: 14px !important; padding-right: 14px !important; font-size: .9rem; }
}
/* o índice das doutrinas fica fixo ao rolar: o overflow hidden do body impedia o sticky */
body.overflow-x-hidden { overflow-x: clip !important; }
#scrollSmoother-container { overflow: clip !important; }
