/* ============================================================
 * COMPONENTES — Cabeçalho, rodapé, cartões, formulários,
 * modais, lightbox e elementos flutuantes
 * ============================================================ */

/* ------------------------------------------------------------
 * 1. CABEÇALHO
 * ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(8, 37, 30, 0.94), rgba(8, 37, 30, 0.88));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-on-dark);
  transition: box-shadow var(--transition), background-color var(--transition);
}

.header.is-scrolled {
  box-shadow: 0 12px 32px -12px rgba(5, 26, 21, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logotipo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background-color var(--transition), color var(--transition);
}

.logo__img-normal,
.logo__img-hover {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex: none;
  padding: 3px;
}

.logo__img-hover {
  display: none;
}

.logo:hover .logo__img-normal {
  display: none;
}

.logo:hover .logo__img-hover {
  display: block;
}

.logo:hover .logo__mark {
  background-color: var(--accent);
  color: var(--primary-darker);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
}

.logo__text small {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Navegação desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  display: inline-block;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-on-dark);
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--accent);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__extra {
  display: none;
}

@media (min-width: 1101px) {
  .nav__extra {
    display: block;
  }
}

/* Botão hambúrguer */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 5;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Fundo escurecido do menu mobile (anexado ao <body>) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) - 2);
  background: rgba(5, 26, 21, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Menu gaveta (mobile / tablet) */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(330px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 18px) 26px 34px;
    background: linear-gradient(180deg, #0a2e25 0%, var(--primary-darker) 100%);
    border-left: 1px solid var(--border-on-dark);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
  }

  body.nav-open .nav {
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li+li {
    border-top: 1px solid rgba(197, 168, 128, 0.12);
  }

  .nav__link {
    display: block;
    padding: 15px 4px;
    font-size: 1rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__extra {
    display: block;
    margin-top: auto;
    padding-top: 28px;
  }

  .nav__extra .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------
 * 2. RODAPÉ
 * ------------------------------------------------------------ */
.footer {
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(197, 168, 128, 0.08), transparent 55%),
    var(--primary-darker);
  color: var(--text-on-dark);
  padding: clamp(64px, 8vw, 96px) 0 32px;
  border-top: 3px solid var(--accent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: 56px;
}

.footer__brand p {
  margin: 18px 0 24px;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-soft);
  max-width: 34ch;
}

.logo--footer .logo__text strong {
  font-size: 1.25rem;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.social-link .icon {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--primary-darker);
  transform: translateY(-4px);
}

.footer__links h4 {
  font-size: 1.12rem;
  color: var(--accent);
  margin-bottom: 22px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-soft);
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-soft);
  margin-bottom: 14px;
}

.footer__address .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  margin-top: 3px;
}

.footer__address a:hover {
  color: var(--accent);
}

.footer__schedule {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--text-on-dark-soft);
}

.footer__day {
  color: var(--accent);
  font-weight: 700;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ------------------------------------------------------------
 * 3. CARTÕES DE EVENTO (AGENDA)
 * ------------------------------------------------------------ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}

.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.event-card--next {
  border-color: var(--accent);
  background:
    linear-gradient(160deg, rgba(197, 168, 128, 0.1), transparent 45%),
    var(--surface);
}

.event-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.6s ease infinite;
}

@keyframes pulse-dot {
  50% {
    opacity: 0.35;
  }
}

.event-card__day {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.event-card__time {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.event-card__time .icon {
  width: 19px;
  height: 19px;
  color: var(--accent-dark);
}

.event-card__time::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.event-card__title {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.event-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  flex: 1;
}

/* ------------------------------------------------------------
 * 4. CARTÕES DE DEVOCIONAL (BLOG)
 * ------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card__meta .icon {
  width: 13px;
  height: 13px;
}

.blog-card__author {
  color: var(--accent-deep);
}

.blog-card__title {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.blog-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 22px;
  flex: 1;
}

/* ------------------------------------------------------------
 * 5. CARTÕES DE BOLETIM
 * ------------------------------------------------------------ */
.bulletins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.bulletin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.bulletin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.bulletin-card__info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.bulletin-card__icon {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulletin-card__icon .icon {
  width: 22px;
  height: 22px;
}

.bulletin-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

.bulletin-card__title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-top: 3px;
}

.bulletin-card__btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.bulletin-card__btn .icon {
  width: 18px;
  height: 18px;
}

.bulletin-card__btn:hover {
  background-color: var(--accent);
  color: var(--primary-darker);
  transform: scale(1.08);
}

/* ------------------------------------------------------------
 * 6. CARTÕES DE LIDERANÇA
 * ------------------------------------------------------------ */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 28px;
}

.leader-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.leader-card__photo {
  aspect-ratio: 3 / 4;
  max-height: 300px;
  width: 100%;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.leader-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.5s var(--ease);
}

.leader-card:hover .leader-card__photo img {
  transform: scale(1.05);
}

.leader-card__info {
  padding: 22px 18px;
}

.leader-card__name {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.leader-card__role {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* ------------------------------------------------------------
 * 7. GALERIA + LIGHTBOX
 * ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.07);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: 22px;
  text-align: left;
  background: linear-gradient(to top, rgba(5, 26, 21, 0.88) 0%, rgba(5, 26, 21, 0.25) 55%, transparent 100%);
  color: var(--text-light);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay {
  opacity: 1;
}

.gallery__legend {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.gallery__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery__action .icon {
  width: 13px;
  height: 13px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 26, 21, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox__figure {
  position: relative;
  z-index: 2;
  max-width: min(1100px, 92vw);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}

.lightbox.is-open .lightbox__figure {
  transform: none;
}

.lightbox__img {
  max-height: 76vh;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  margin-top: 18px;
  text-align: center;
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.lightbox__btn {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color var(--transition), color var(--transition);
}

.lightbox__btn:hover {
  background: var(--accent);
  color: var(--primary-darker);
}

.lightbox__btn--prev {
  left: clamp(8px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__btn--next {
  right: clamp(8px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__btn--close {
  top: 20px;
  right: 20px;
}

.lightbox__count {
  position: absolute;
  z-index: 3;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
}

/* ------------------------------------------------------------
 * 8. MODAL DE CONTEÚDO (DEVOCIONAIS)
 * ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 26, 21, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  z-index: 2;
  width: min(740px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 52px);
  transform: scale(0.94) translateY(14px);
  transition: transform 0.4s var(--ease);
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface-soft);
  transition: background-color var(--transition), color var(--transition);
}

.modal__close:hover {
  background: var(--primary);
  color: var(--text-light);
}

.modal__title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  padding-right: 48px;
  margin-bottom: 12px;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.modal__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.modal__meta .icon {
  width: 14px;
  height: 14px;
}

.modal__meta-author {
  color: var(--accent-deep);
}

/* Tipografia de leitura longa */
.prose p {
  margin-bottom: 1.2em;
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--text);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose>p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.1em;
  line-height: 0.85;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--accent-deep);
}

/* ------------------------------------------------------------
 * 9. FORMULÁRIOS
 * ------------------------------------------------------------ */
.form-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 42px);
}

.form-card h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.form-card>p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 28px;
}

.field {
  margin-bottom: 20px;
}

.field__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--surface-soft);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.input:focus {
  border-color: var(--accent-dark);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.18);
}

.input.is-invalid {
  border-color: var(--error) !important;
  background-color: rgba(179, 38, 30, 0.02) !important;
}

.input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.18) !important;
}

/* Grid de motivos de oração em formato de cards clicáveis */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.reason-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  user-select: none;
}

.reason-card__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.reason-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color var(--transition);
}

.reason-card:hover {
  border-color: var(--accent-dark);
  background-color: var(--surface);
}

.reason-card:focus-within {
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.18);
}

.reason-card:has(.reason-card__input:checked) {
  background-color: var(--primary);
  border-color: var(--accent);
}

.reason-card:has(.reason-card__input:checked) .reason-card__name {
  color: var(--accent);
}

.reason-grid.is-invalid .reason-card {
  border-color: var(--error);
  background-color: rgba(179, 38, 30, 0.02);
}

.reason-grid.is-invalid .reason-card:has(.reason-card__input:checked) {
  background-color: var(--primary);
  border-color: var(--accent);
}

.input::placeholder {
  color: var(--text-soft);
}

textarea.input {
  resize: vertical;
  min-height: 130px;
}

/* Checkbox customizado para formulários */
.field--checkbox {
  margin-top: 12px;
  margin-bottom: 16px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark);
  cursor: pointer;
}

.checkbox-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

/* Campo honeypot — invisível para pessoas, isca para robôs de spam */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.form-status--error {
  background: rgba(179, 38, 30, 0.08);
  color: var(--error);
  border: 1px solid rgba(179, 38, 30, 0.25);
}

/* Barra de filtro/busca das listagens */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.count-label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.search-box {
  position: relative;
  width: min(360px, 100%);
}

.search-box .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-soft);
  pointer-events: none;
}

.search-box .input {
  padding-left: 44px;
  border-radius: var(--radius-full);
}

/* ------------------------------------------------------------
 * 10. CARTÕES DE INFORMAÇÃO (CONTATO)
 * ------------------------------------------------------------ */
.info-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

.info-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  margin-bottom: 22px;
}

.info-card h4 .icon {
  color: var(--accent-dark);
  width: 20px;
  height: 20px;
}

.info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item__icon {
  color: var(--accent-dark);
  margin-top: 3px;
}

.info-item__icon .icon {
  width: 19px;
  height: 19px;
}

.info-item__text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 3px;
}

.info-item__text p,
.info-item__text a {
  font-size: var(--fs-sm);
  color: var(--text);
}

.info-item__text a:hover {
  color: var(--accent-deep);
}

/* Cartão escuro com horários de culto */
.schedule-card {
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(197, 168, 128, 0.14), transparent 55%),
    var(--primary);
  border-color: var(--primary-dark);
  color: var(--text-on-dark);
}

.schedule-card h4 {
  color: var(--accent);
}

.schedule-card h4 .icon {
  color: var(--accent);
}

.schedule-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--fs-sm);
}

.schedule-card strong {
  color: var(--accent);
  font-weight: 700;
}

/* Mapa */
.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 330px;
  background-color: var(--surface-soft);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
}

/* ------------------------------------------------------------
 * 11. TOAST, VOLTAR AO TOPO E WHATSAPP
 * ------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  background: var(--primary-dark);
  color: var(--text-light);
  border: 1px solid var(--border-on-dark);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s ease;
  max-width: min(92vw, 480px);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.toast--error .icon {
  color: #ff8a80;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-fab);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  border: 1px solid var(--border-on-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition),
    background-color var(--transition), color var(--transition);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--accent);
  color: var(--primary-darker);
}

.wa-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: var(--z-fab);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-fab .icon {
  width: 26px;
  height: 26px;
}

.wa-fab:hover {
  transform: translateY(-4px) scale(1.04);
}

/* ------------------------------------------------------------
 * 12. AVISOS — MURAL, FAMÍLIA DE ORAÇÃO E CARROSSEL DA HOME
 * ------------------------------------------------------------ */

/* Mural de avisos (página Avisos) */
.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.notice-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.notice-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.notice-card__type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.notice-card__type .icon {
  width: 15px;
  height: 15px;
}

.notice-card__title {
  font-size: 1.28rem;
}

.notice-card__msg {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  flex: 1;
}

.notice-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background-color: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.notice-chip .icon {
  width: 13px;
  height: 13px;
  color: var(--accent-dark);
}

.notice-card--past {
  opacity: 0.66;
  border-top-color: var(--border);
}

.notice-card--past:hover {
  opacity: 0.92;
}

/* Quadro da família de oração da semana */
.prayer-card {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  margin-bottom: 40px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-on-dark);
  background:
    radial-gradient(70% 120% at 90% 0%, rgba(197, 168, 128, 0.16), transparent 55%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-darker) 100%);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.prayer-card__icon {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prayer-card__icon .icon {
  width: 28px;
  height: 28px;
}

.prayer-card__kicker {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.prayer-card__name {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text-light);
  margin-bottom: 4px;
}

.prayer-card__period {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-light);
}

.prayer-card__msg {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-soft);
  max-width: 62ch;
}

@media (max-width: 640px) {
  .prayer-card {
    flex-direction: column;
    text-align: center;
  }

  .prayer-card__msg {
    margin-inline: auto;
  }
}

/* Carrossel de avisos (página inicial, abaixo do hero) */
.ticker {
  background:
    radial-gradient(50% 130% at 85% 0%, rgba(197, 168, 128, 0.12), transparent 60%),
    linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-bottom: 1px solid var(--border-on-dark);
  padding: 30px 0 24px;
  color: var(--text-light);
}

.ticker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.ticker__label .icon {
  width: 17px;
  height: 17px;
}

.ticker__viewport {
  overflow: hidden;
}

.ticker__track {
  display: flex;
  transition: transform 0.55s var(--ease);
}

.ticker__slide {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px;
}

.ticker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticker__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-on-dark);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.ticker__chip .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.ticker__chip--type {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-darker);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker__chip--type .icon {
  color: var(--primary-darker);
}

.ticker__chip--hot {
  border-color: var(--accent);
  color: var(--accent);
}

.ticker__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--text-light);
}

.ticker__msg {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-soft);
  max-width: 90ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticker__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.ticker__dots {
  display: flex;
  gap: 8px;
}

.ticker__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  transition: background-color var(--transition), width var(--transition);
}

.ticker__dot[aria-current="true"] {
  background: var(--accent);
  width: 26px;
}

.ticker__arrows {
  display: flex;
  gap: 8px;
}

.ticker__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.ticker__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-darker);
}

.ticker__arrow .icon {
  width: 16px;
  height: 16px;
}