/* ================================================
   HEADER + FOOTER — Estilos compartilhados públicos
   Carregado via cab/header.php em todas as páginas.
   ================================================ */

/* ========================
   HEADER
   ======================== */

.header-moderno {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(0, 127, 149, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.header-moderno.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* --- Internal pages: white header override ---
   Page-specific CSS files still carry old teal header blocks.
   .header-solid (added on non-index pages) forces white bg + dark text. */
.header-moderno.header-solid {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0, 127, 149, 0.12) !important;
}

.header-moderno.header-solid.scrolled {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.header-moderno.header-solid .nav-link {
  color: #2a2118 !important;
  font-family: "Open Sans", sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px !important;
}

.header-moderno.header-solid .nav-link:hover {
  background: rgba(0, 127, 149, 0.08) !important;
  color: #007f95 !important;
}

.header-moderno.header-solid .nav-link.active {
  background: rgba(0, 127, 149, 0.1) !important;
  color: #007f95 !important;
  font-weight: 600 !important;
}

.header-moderno.header-solid .nav-link::after {
  display: none !important;
}

.header-moderno.header-solid .btn-portal {
  color: #007f95 !important;
  border: 1.5px solid rgba(0, 127, 149, 0.3) !important;
  background: transparent !important;
}

.header-moderno.header-solid .btn-portal:hover {
  background: rgba(0, 127, 149, 0.08) !important;
  border-color: #007f95 !important;
  color: #007f95 !important;
}

.header-moderno.header-solid .nav-mobile-toggle span {
  background: #1f505a !important;
}

.nav-moderno {
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* --- Brand (logo mark + text) --- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-name {
  font-family: "Merriweather", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: #1f505a;
}

.nav-brand-sub {
  font-family: "Open Sans", sans-serif;
  font-size: 10.5px;
  color: #6b5a48;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* --- Nav Links --- */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}

.nav-item {
  margin: 0;
}

.nav-item-cta-mobile {
  display: none;
}

.nav-link {
  color: #2a2118;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(0, 127, 149, 0.08);
  color: #007f95;
}

.nav-link.active {
  background: rgba(0, 127, 149, 0.1);
  color: #007f95;
  font-weight: 600;
}

.nav-link::after {
  display: none;
}

/* --- Actions (Portal Membros) --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #007f95;
  border: 1.5px solid rgba(0, 127, 149, 0.3);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-portal:hover {
  background: rgba(0, 127, 149, 0.08);
  border-color: #007f95;
  color: #007f95;
}

/* --- Mobile Toggle --- */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1110;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #1f505a;
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
}

/* X state */
.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================
   HEADER — MOBILE (<=767px)
   ======================== */
@media (max-width: 767px) {
  .nav-container {
    padding: 0.6rem 1rem;
  }

  .nav-brand-sub {
    display: none;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile-toggle {
    display: flex;
    position: relative;
  }

  .nav-actions {
    margin-right: 0.5rem;
  }

  .btn-portal {
    padding: 0.4rem 0.7rem;
    font-size: 11.5px;
  }

  .nav-item {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-item:last-of-type:not(.nav-item-cta-mobile) {
    border-bottom: none;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #1a1a1a;
    padding: 0.85rem 0;
    border-radius: 0;
    background: none;
    opacity: 0;
    transform: translateY(15px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      color 0.2s;
  }

  .nav-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link.active {
    color: #007f95;
    font-weight: 700;
    background: none;
  }

  .nav-link:hover {
    color: #007f95;
    background: none;
  }

  /* Stagger animation */
  .nav-menu.active .nav-item:nth-child(1) .nav-link {
    transition-delay: 0.06s;
  }
  .nav-menu.active .nav-item:nth-child(2) .nav-link {
    transition-delay: 0.1s;
  }
  .nav-menu.active .nav-item:nth-child(3) .nav-link {
    transition-delay: 0.14s;
  }
  .nav-menu.active .nav-item:nth-child(4) .nav-link {
    transition-delay: 0.18s;
  }
  .nav-menu.active .nav-item:nth-child(5) .nav-link {
    transition-delay: 0.22s;
  }
  .nav-menu.active .nav-item:nth-child(6) .nav-link {
    transition-delay: 0.26s;
  }

  /* CTA no drawer mobile */
  .nav-item-cta-mobile {
    display: block;
    border-bottom: none;
    padding-top: 1.25rem;
  }

  .nav-cta-mobile {
    display: block;
    background: #007f95;
    color: #fff;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(15px);
    transition:
      opacity 0.3s ease 0.3s,
      transform 0.3s ease 0.3s,
      background 0.3s;
  }

  .nav-menu.active .nav-cta-mobile {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-cta-mobile:hover {
    background: #1f505a;
    color: #fff;
  }

  /* Internal pages: mobile drawer override */
  .header-moderno.header-solid .nav-menu {
    background: #fff !important;
  }

  .header-moderno.header-solid .nav-link {
    color: #1a1a1a !important;
    font-family: "Merriweather", Georgia, serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    padding: 0.85rem 0 !important;
    border-radius: 0 !important;
    background: none !important;
  }

  .header-moderno.header-solid .nav-link:hover {
    color: #007f95 !important;
    background: none !important;
  }

  .header-moderno.header-solid .nav-link.active {
    color: #007f95 !important;
    font-weight: 700 !important;
    background: none !important;
  }
}

/* Body padding para compensar header fixo */
body {
  padding-top: 72px;
}

@media (max-width: 767px) {
  body {
    padding-top: 58px;
  }
}

/* Hero: puxa para trás do header */
.hero-section {
  margin-top: -72px;
  padding-top: 0;
}

@media (max-width: 767px) {
  .hero-section {
    margin-top: -58px;
  }
}

/* ========================
   FOOTER
   ======================== */

.footer-new {
  background: linear-gradient(180deg, #1f2a2e 0%, #131c1f 100%);
  color: #d8d4cc;
  padding: 3.5rem 2rem 1.5rem;
  font-family: "Open Sans", sans-serif;
}

.footer-new-inner {
  max-width: 1140px;
  margin: 0 auto;
}

/* --- Grid 4 colunas --- */
.footer-grid-new {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

/* --- Coluna Marca --- */
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-text-name {
  font-family: "Merriweather", Georgia, serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.footer-brand-text-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 300px;
}

.footer-social-new {
  display: flex;
  gap: 0.5rem;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-icon:hover {
  background: #007f95;
  color: #fff;
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
}

/* --- Coluna Navegar --- */
.footer-new h4 {
  font-family: "Merriweather", Georgia, serif;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  padding: 0.2rem 0;
}

.footer-nav-list a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.7;
}

.footer-nav-list a:hover {
  color: #bce8f0;
}

/* --- Coluna Horários --- */
.footer-cult-line {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.footer-cult-line:last-of-type {
  border-bottom: none;
}

.footer-cult-day {
  font-weight: 600;
  color: #bce8f0;
}

.footer-cult-hour {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  color: #fff;
}

.footer-cult-note {
  margin-top: 0.75rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Coluna Visite-nos --- */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.footer-contact-list li svg {
  color: rgba(190, 232, 240, 0.7);
  flex-shrink: 0;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: #bce8f0;
}

/* Mapa miniatura */
.footer-map {
  margin-top: 0.75rem;
  background: repeating-linear-gradient(
    45deg,
    #2a3a3f 0 10px,
    #1f2a2e 10px 20px
  );
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-map-icon {
  margin-bottom: 0.25rem;
}

.footer-map a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: #bce8f0;
  font-weight: 600;
  font-size: 11.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-map a:hover {
  color: #fff;
}

/* --- Faixa legal inferior --- */
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.15rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal-center {
  text-align: center;
}

.footer-legal-right {
  text-align: right;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  align-items: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #bce8f0;
}

.footer-legal-sep {
  opacity: 0.4;
}

.footer-legal .mtco-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
}

.footer-legal .mtco-tag strong {
  color: #bce8f0;
}

/* ========================
   FOOTER — MOBILE (<=767px)
   ======================== */
@media (max-width: 767px) {
  .footer-new {
    padding: 2.5rem 1.25rem 1.25rem;
  }

  .footer-grid-new {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-legal-center {
    text-align: center;
  }

  .footer-legal-right {
    text-align: center;
    justify-content: center;
  }
}

/* Tablet (<=991px) */
@media (max-width: 991px) {
  .footer-grid-new {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ========================
   FLOATING ACTIONS + BACK TO TOP
   Widgets compartilhados em todas as páginas.
   ======================== */

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.floating-actions.hidden {
  transform: translateX(150%);
  opacity: 0;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.floating-btn-whatsapp {
  background: #25d366;
  animation: pulse-whatsapp 2s ease-in-out infinite;
}

.floating-btn-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #f77737 100%);
  animation: pulse-instagram 2.5s ease-in-out infinite;
}

.floating-btn-youtube {
  background: #ff0000;
  animation: pulse-youtube 3s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
  }
}

@keyframes pulse-instagram {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(131, 58, 180, 0.6);
  }
}

@keyframes pulse-youtube {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(253, 29, 29, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(253, 29, 29, 0.6);
  }
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #007f95;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  text-decoration: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #1f505a;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 127, 149, 0.3);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* VLibras */
.vw-plugin-top-wrapper {
  z-index: 1060;
}

@media (max-width: 767px) {
  .floating-actions {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .vw-plugin-top-wrapper {
    bottom: 70px !important;
  }
}

@media (max-width: 479px) {
  .floating-btn {
    width: 44px;
    height: 44px;
  }

  .floating-btn svg {
    width: 20px;
    height: 20px;
  }
}
