/* ================================================================
   Igreja em Uberaba — Custom Styles
   Bootstrap 5.3 é a base; este arquivo cobre apenas o que
   o Bootstrap não oferece por padrão.
   ================================================================ */

/* ---- Variáveis de marca ---- */
:root {
  --church-green:       #658361;
  --church-green-dark:  #4e6b4a;
  --church-green-light: #eaf4ec;
  --church-section-alt: #f7f8f5;
  --church-text:        #3d3d3d;
  --church-heading:     #1a1a1a;
  --church-muted:       #666;
}

/* ---- Tipografia base ---- */
body {
  font-size: 16px;
  color: var(--church-text);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--church-heading);
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  margin-bottom: 1rem;
}

a {
  color: var(--church-green);
  transition: color 0.25s;
}
a:hover,
a:focus {
  color: var(--church-green-dark);
  text-decoration: none;
}

::selection      { color: #fff; background: var(--church-green); }
::-moz-selection { color: #fff; background: var(--church-green); }

/* ---- Título de seção com traço decorativo ---- */
.section-title {
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--church-green);
  margin: 0.55rem auto 0;
  border-radius: 2px;
}

/* ---- Seção com fundo alternado ---- */
.section-alt {
  background-color: var(--church-section-alt);
}

/* ---- Navbar ---- */
.fh5co-nav {
  background: #fff;
  border-top: 4px solid var(--church-green);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.3s;
}

@media (min-width: 769px) {
  .fh5co-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .fh5co-nav.scrolled {
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.09);
  }
}

/* Desktop: links com animação de underline verde */
.fh5co-nav .nav-link {
  position: relative;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, 0.75);
  padding: 1.75rem 1.25rem;
  transition: color 0.25s;
}

.fh5co-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  width: 50%;
  height: 2px;
  background: var(--church-green);
  margin: 0 auto;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  transform: translateY(6px);
}

.fh5co-nav .nav-link:hover,
.fh5co-nav .nav-item.active .nav-link {
  color: #000;
}

.fh5co-nav .nav-link:hover::after,
.fh5co-nav .nav-item.active .nav-link::after {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: menu empilhado */
@media (max-width: 767.98px) {
  .fh5co-nav .navbar-brand .imglogo {
    width: 44px;
    height: 44px;
  }
  .fh5co-nav .navbar-brand span {
    font-size: 0.9rem !important;
  }
  .fh5co-nav .nav-link {
    padding: 0.6rem 1rem;
  }
  .fh5co-nav .nav-link::after {
    display: none;
  }
  .fh5co-nav .nav-item.active .nav-link {
    color: var(--church-green);
    font-weight: 700;
  }
  .fh5co-nav .navbar-collapse.show .navbar-nav,
  .fh5co-nav .navbar-collapse.collapsing .navbar-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0.5rem 0;
  }
}

/* Oculta elementos injetados pelo main.js */
.js-fh5co-nav-toggle,
#fh5co-offcanvas {
  display: none !important;
}

/* ---- Botão voltar ao topo ---- */
#btn-topo {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--church-green);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(101, 131, 97, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
}
#btn-topo.visible { opacity: 1; visibility: visible; }
#btn-topo:hover   { transform: translateY(-3px); background: var(--church-green-dark); }

/* ---- Banner carousel ---- */
#carouselExample .carousel-item img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
@media (max-width: 768px) {
  #carouselExample .carousel-item img {
    max-height: 260px;
  }
}

/* ---- Cards de evento ---- */
.event-card {
  border-radius: 12px !important;
  border: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Imagem com proporção fixa 16:9 */
.event-card-img {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 16 / 9;
}
.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.event-card:hover .event-card-img img {
  transform: scale(1.06);
}

/* ---- Seção de versículos bíblicos ---- */
#bible-verse-section {
  background: var(--church-section-alt);
  border-top: 1px solid rgba(101, 131, 97, 0.15);
  border-bottom: 1px solid rgba(101, 131, 97, 0.15);
}

.bible-quote-mark {
  font-family: "Libre Baskerville", serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--church-green);
  opacity: 0.18;
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
  user-select: none;
}

#bible-verse-section blockquote {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #4a4a4a;
  border: none;
  padding: 0;
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.9;
}
#bible-verse-section cite {
  font-size: 0.9rem;
  color: var(--church-green);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Setas escuras sobre fundo claro */
#bible-verse-section .carousel-control-prev-icon,
#bible-verse-section .carousel-control-next-icon {
  filter: invert(1) brightness(0.3);
  width: 1.2rem;
  height: 1.2rem;
}
#bible-verse-section .carousel-control-prev,
#bible-verse-section .carousel-control-next {
  width: 3rem;
}

/* ---- Vídeos (proporção 16:9) ---- */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  cursor: pointer;
  background: #111;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-thumbnail {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-wrapper:hover .video-thumbnail {
  transform: scale(1.04);
}
.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 44px;
  color: #fff;
  background: #cc0000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s, transform 0.2s;
}
.video-wrapper:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ---- Tabs de playlist ---- */
.playlist-tabs {
  scrollbar-width: thin;
  scrollbar-color: var(--church-green) #e0e0e0;
}
.playlist-tabs::-webkit-scrollbar        { height: 4px; }
.playlist-tabs::-webkit-scrollbar-thumb  { background: var(--church-green); border-radius: 4px; }
.playlist-tabs::-webkit-scrollbar-track  { background: #e0e0e0; }

.playlist-tabs .nav-link {
  color: #555;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.playlist-tabs .nav-link:hover {
  background-color: var(--church-green-light);
  border-color: var(--church-green);
  color: #333;
}
.playlist-tabs .nav-link.active {
  background-color: var(--church-green);
  border-color: var(--church-green);
  color: #fff;
}

.playlist-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.playlist-scroll-btn {
  display: none;
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  width: 32px; height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--church-green);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  padding: 0;
}
.playlist-scroll-btn:hover    { background-color: var(--church-green-light); border-color: var(--church-green); }
.playlist-scroll-btn:disabled { opacity: 0.25; cursor: default; }
@media (max-width: 768px) {
  .playlist-scroll-btn { display: flex; }
}

/* ---- Lista de mensagens (partial_mensagens) ---- */
.mensagem {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0;
}
.mensagem:last-child {
  border-bottom: none;
}
.mensagem .data     { text-align: center; min-width: 50px; }
.mensagem .dia      { font-size: 24px; font-weight: bold; color: #333; }
.mensagem .mes      { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.05em; }
.mensagem .conteudo { flex-grow: 1; }
.mensagem .titulo   { font-size: 15px; color: #1a1a1a; font-weight: 500; }
.mensagem .autor    { font-size: 13px; color: #666; margin-top: 2px; }
.icone-youtube      { color: #ff0000; font-size: 2.6rem; }

/* ---- Skeleton loader ---- */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skel-block {
  display: block;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
}
.skel-item { pointer-events: none; }

/* ---- Agenda ---- */
.mes-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}
.mes-header:first-child { margin-top: 0; }

.mes-badge {
  background: var(--church-green);
  color: #fff;
  border-radius: 20px;
  padding: 4px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.mes-header-line {
  flex: 1;
  height: 1px;
  background: rgba(101, 131, 97, 0.22);
}

.agenda-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-left: 4px solid var(--church-green);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.agenda-item:hover {
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.agenda-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  background: var(--church-green-light);
  border-radius: 8px;
  padding: 8px 10px;
}
.agenda-day .day-num  { font-size: 1.6rem; font-weight: 700; color: var(--church-green); line-height: 1; }
.agenda-day .day-name { font-size: 0.68rem; text-transform: uppercase; color: #666; letter-spacing: 0.06em; margin-top: 3px; }

.agenda-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.agenda-title { font-size: 1rem; font-weight: 600; color: #1a1a1a; margin-bottom: 5px; line-height: 1.3; }
.agenda-date  { font-size: 0.82rem; color: var(--church-muted); display: flex; align-items: center; gap: 5px; }
.agenda-empty { text-align: center; padding: 3rem 0; color: #aaa; }

/* ---- Contato ---- */
.contatos-info {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}
.contatos-info li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
  color: #3d3d3d;
  line-height: 1.55;
}
.contatos-info li i {
  position: absolute;
  top: 0.25em; left: 0;
  font-size: 17px;
  color: var(--church-green);
  opacity: 0.75;
}
.contatos-info li a { color: #3d3d3d; }

/* ---- Sobre — cards de crença ---- */
.crenca-card {
  background: #fff;
  border: 1px solid rgba(101, 131, 97, 0.15);
  border-top: 3px solid var(--church-green);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.2s;
}
.crenca-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
.crenca-card-icon {
  font-size: 2rem;
  color: var(--church-green);
  margin-bottom: 1rem;
  display: block;
}
.crenca-card-text {
  font-size: 0.97rem;
  color: #4a4a4a;
  line-height: 1.85;
  margin: 0;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 3px solid var(--church-green);
}

/* Bloco superior: redes sociais */
.footer-top {
  background: var(--church-section-alt);
  padding: 1.25rem 0;
}

.footer-brand-name {
  font-family: "Libre Baskerville", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--church-green);
  margin: 0.4rem 0 0.1rem;
  letter-spacing: 0.02em;
}

.footer-brand-sub {
  font-size: 0.875rem;
  color: var(--church-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* Ícones de redes sociais */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(101, 131, 97, 0.35);
  color: #555;
  font-size: 1.05rem;
  margin: 0 5px;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.footer-social:hover {
  background-color: var(--church-green);
  border-color: var(--church-green);
  color: #fff;
  transform: translateY(-3px);
}

/* Bloco de reuniões */
.footer-meetings {
  background: #fff;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(101, 131, 97, 0.12);
}

.footer-meeting-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--church-heading);
  margin-bottom: 0.2rem;
}

.footer-meeting-time {
  font-size: 0.9rem;
  color: var(--church-green);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.footer-meeting-addr {
  font-size: 0.85rem;
  color: var(--church-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Copyright */
.footer-copy {
  background: var(--church-green);
  color: rgba(255, 255, 255, 0.88);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

