/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 0.5rem;
}

/* Variáveis CSS */
:root {
  --primary-color: #B8956A;
  --secondary-color: #8B7355;
  --neutral-light: #F5F5F5;
  --neutral-dark: #333333;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

svg {
  fill: #B8956A;
}

.white {
  color: var(--white);
  fill: var(--white);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  border: none;
  color: var(--neutral-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu {
  margin: 0;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--neutral-dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--neutral-light) 0%, #E8E0D6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.igreja-text {
  display: block;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.presbiteriana-text {
  display: block;
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0.5rem 0;
}

.juquia-text {
  display: block;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.anos-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.anos-number {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.anos-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--primary-color);
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--neutral-dark);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Instituto Section */
.instituto-section {
  padding: 4rem 0;
  background: var(--white);
}

.instituto-card {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.instituto-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.instituto-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.instituto-card p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Sobre Section */
.sobre-section {
  padding: 5rem 0;
  background: var(--neutral-light);
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.sobre-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.sobre-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.sobre-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.sobre-card p {
  margin-bottom: 1.5rem;
  color: var(--neutral-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

a:hover {
  border-bottom-color: var(--primary-color);
}

/* História Section */
.historia-section {
  padding: 5rem 0;
  background: var(--white);
}

.historia-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.historia-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.historia-content p {
  margin-bottom: 1.5rem;
}

/* Fé e Prática Section */
.fe-pratica-section {
  padding: 5rem 0;
  background: var(--neutral-light);
}

.fe-pratica-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.fe-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--neutral-dark);
}

.fe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.fe-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.fe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.fe-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Pilares Section */
.pilares-section {
  padding: 5rem 0;
  background: var(--white);
}

.pilares-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.pilares-section > .container > p {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.pilares-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.pilares-grid .pilar-card {
  flex: 1 1 30%;
  min-width: 280px;
}

.pilar-card {
  background: var(--neutral-light);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 3px solid transparent;
}

.pilar-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.pilar-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Reuniões Section */
.reunioes-section {
  padding: 5rem 0;
  background: var(--neutral-light);
}

.reunioes-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.reunioes-section > .container > p {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.reunioes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.reuniao-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.reuniao-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.reuniao-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.horario {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.badge {
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Redes Section */
.redes-section {
  padding: 5rem 0;
  background: var(--white);
}

.redes-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.redes-section > .container > p {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.rede-card {
  background: var(--neutral-light);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 3px solid transparent;
}

.rede-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.rede-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Projetos Section */
.projetos-section {
  padding: 5rem 0;
  background: var(--neutral-light);
}

.projetos-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.projetos-section > .container > p {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.projeto-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.projeto-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.projeto-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Morrinho Section */
.morrinho-section {
  padding: 5rem 0;
  background: var(--white);
}

.morrinho-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.morrinho-content {
  display: grid;
  grid-template-columns: .5fr 2fr;
  gap: 1rem;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}



.morrinho-content p {
  margin-bottom: 1.5rem;
}

.morrinho-content .btn-primary {
  background: var(--primary-color);
  color: var(--white);
  margin-top: 1rem;
}

.morrinho-content .btn-primary:hover {
  background: var(--secondary-color);
}

/* Contribua Section */
.contribua-section {
  padding: 5rem 0;
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.contribua-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contribua-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contribua-section .btn-primary {
  background: var(--white);
  color: var(--primary-color);
}

.contribua-section .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Footer */
.footer {
  background: var(--neutral-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-section address {
  font-style: normal;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
}

/* NOVO ESTILO PARA O RODAPÉ */

.footer-brand {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #555;
}

.footer-brand a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 1rem;
}

.footer-brand a:hover {
  border-bottom: none; /* Remove o sublinhado do hover no link geral */
}

.footer-brand .footer-logo-fill {
  fill: var(--primary-color); /* Garante que o logo tenha a cor correta no rodapé */
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.footer-brand a:hover .footer-brand-name {
  color: var(--primary-color);
}

/* ESTILOS PARA CRÉDITOS NO RODAPÉ */

.footer-credit {
  font-size: 0.8rem;
  color: #999; /* Cor sutil para não competir com o copyright */
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

.footer-credit a {
  color: #ccc; /* Cor um pouco mais clara para indicar que é um link */
  border-bottom: 1px solid transparent;
  display: inline-flex; /* Garante que o link se comporte bem no fluxo */
}

.footer-credit a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    padding-left: 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 1rem 0;
  }
  
  .nav-menu a {
    font-size: 1.2rem;
  }
  
  .hero-title .igreja-text,
  .hero-title .juquia-text {
    font-size: 2rem;
  }
  
  .hero-title .presbiteriana-text {
    font-size: 2.5rem;
  }
  
  .anos-number {
    font-size: 5rem;
  }
  
  .anos-text {
    font-size: 1.8rem;
  }
  
  .anos-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .instituto-card {
    padding: 2rem;
  }
  
  .instituto-card h2 {
    font-size: 2rem;
  }
  
  .sobre-grid,
  .fe-grid,
  .reunioes-grid,
  .redes-grid,
  .projetos-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }

  /* Adicione este código dentro de @media (max-width: 768px) */

  .morrinho-content {
    grid-template-columns: 1fr; /* Faz o grid ter apenas uma coluna */
    gap: 2rem; /* Aumenta o espaço entre a imagem e o texto */
    text-align: center; /* Centraliza o texto no mobile */
  }

  .morrinho-content svg {
    max-width: 200px; /* Define um tamanho máximo para o SVG */
    width: 100%; /* Garante que ele seja responsivo */
    height: auto; /* Mantém a proporção */
    margin: 0 auto; /* Centraliza o SVG */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-title .igreja-text,
  .hero-title .juquia-text {
    font-size: 1.5rem;
  }
  
  .hero-title .presbiteriana-text {
    font-size: 2rem;
  }
  
  .anos-number {
    font-size: 4rem;
  }
  
  .anos-text {
    font-size: 1.5rem;
  }
  
  .sobre-card,
  .fe-card,
  .reuniao-card,
  .projeto-card {
    padding: 1.5rem;
  }
  
  .instituto-card {
    padding: 1.5rem;
  }
  
  .instituto-card h2 {
    font-size: 1.5rem;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Estilo da timeline */
.timeline {
  position: relative;
  margin: 2rem auto;
  padding: 2rem 0;
  width: 90%;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #014e82;
}

.timeline ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.timeline li:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline li:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline li .content {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline li .content p {
  font-size: .9rem;
}

.timeline li:nth-child(odd) .content {
  margin-right: 30px;
}

.timeline li:nth-child(even) .content {
  margin-left: 30px;
}

.timeline li::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #014e82;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #014e82;
}

.timeline li:nth-child(odd)::before {
  right: -10px;
}

.timeline li:nth-child(even)::before {
  left: -10px;
}

.timeline img {
  max-width: 120px;
  border-radius: 10px;
  margin-bottom: .5rem;
}

.timeline .pastor {
  font-weight: bold;
  margin: 0;
}

.timeline .ano {
  font-size: .9rem;
  font-style: italic;
  margin-top: .5rem;
  color: #666;
}

/* Responsivo */
@media (max-width: 768px) {
  .timeline::before {
    left: 15px;
  }
  .timeline li,
  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    left: 0;
    width: 100%;
    text-align: left;
    padding-left: 45px; /* Aumenta o espaço para o conteúdo não sobrepor a linha */
    padding-right: 15px;
  }
  
  /* 3. Move o ponto de cada item para cima da linha vertical */
  .timeline li::before {
    left: 8px; 
  }
  
  /* 4. Remove margens laterais conflitantes do conteúdo interno */
  .timeline li .content,
  .timeline li:nth-child(odd) .content,
  .timeline li:nth-child(even) .content {
    margin: 0 0 2rem 0;
  }
}

.pastores-filhos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.pastores-filhos .item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pastores-filhos .item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.pastores-filhos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pastores-filhos .item:hover img {
  transform: scale(1.08);
}

.pastores-filhos .informacoes {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  text-align: center;
  transition: background 0.4s ease;
}

.pastores-filhos .item:hover .informacoes {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.pastores-filhos .pastor {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

.intro-pastores-detalhe {
  padding: 3rem 1rem;
  background: #fff;
  color: #333;
}

.intro-pastores-detalhe .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #014e82; /* tom institucional */
}

.intro-pastores-detalhe .intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.pastor-destaque {
  max-width: 800px;
  margin: 0 auto;
  background: #f7f7f7;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.pastor-destaque .pastor-nome {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #222;
}

.pastor-destaque blockquote {
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid #014e82;
  font-style: italic;
  color: #444;
}