@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* ==============================
   VARIÁVEIS
============================== */
:root {
  --primary-font: 'Inter', sans-serif;
  --logo-font: 'Funnel Sans', sans-serif;
  --primary-color: #e0d3a4;
  --primary-hover: #ffe085;
  --text-color: #f5f5f5;
  --text-secondary: #bfbfbf;
  --text-muted: #ccc;
  --background-dark: #141414;
}

/* ==============================
   RESET GLOBAL
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--primary-font);
  color: var(--text-color);
  overflow-y: auto;
  height: auto;
}

/* ==============================
   SCROLL NORMAL
============================== */
html {
  scroll-behavior: smooth;
}

.snap-container {
  height: auto;
  overflow-y: visible;
}

.snap-section {
  height: auto;
  position: relative;
}

/* ==============================
   HEADER E MAIN COM IMAGEM1 - FUNDO EXPANDIDO
============================== */
.header-main-container {
  background-image: url("imagem1.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%;
  padding: 4rem 6% 0 6%;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ==============================
   HEADER
============================== */
.header-container {
  width: 100%;
  padding: 5px 35px 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

#logo{
  width: 15%;
}

/* Linha do header */
.header-line {
  border: none;
  border-bottom: 1.3px solid white;
  width: 95%;
  margin: 0 auto;
}

/* ==============================
   NAVEGAÇÃO
============================== */
.nav-list {
  list-style: none;
  display: flex;
  gap: 6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
  padding-bottom: 0.1px;
  font-weight: 600;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-hover);
}

/* ==============================
   MAIN
============================== */
.main {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.text-section {
  max-width: 460px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;  
  font-size: 3.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 20px;
}

.description {
  font-size: clamp(0.9rem, 1vw, 1rem); 
  line-height: 1;
  color: var(--text-color);
  margin-bottom: 40px;
}

.cta-button {
  background: var(--primary-hover);
  color: #735d5b;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  align-self: flex-start;
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 211, 107, 0.3);
}

/* ==============================
   SECTION COM IMAGEM2 - LAYOUT CORRIGIDO
============================== */
.como-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  padding: 80px 11%;
  background-image: url('imagem2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Overlay para melhor legibilidade */
.como-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.como-left, .como-right {
  position: relative;
  z-index: 2;
}

.como-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-box {
  width: 100%;
  max-width: 750px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.video-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.como-text {
  margin-top: 18px;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #f5f5f5;
  max-width: 700px;
}

.como-right {
  width: 355px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  bottom: 8rem;
}

.como-title {
  font-family: var(--logo-font);
  font-weight: 800;
  font-size: 4rem;
  line-height: 0.9;
  color: #f5f5f5;
  margin: 0 0 30px 0;
  text-align: left;
  letter-spacing: -0.8px;
}

.como-description {
  max-width: 100%;
  color: #f5f5f5;
  font-size: 1.1rem;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  margin-bottom: 0;
}

/* ==============================
   NOVA SECTION: PRIMEIRA IGREJA
============================== */
.igreja-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  padding: 80px 11%;
  background-image: url('imagem3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  z-index: 0;
}

/* Overlay */
.igreja-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Conteúdo acima do overlay */
.igreja-left, .igreja-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Lado esquerdo - texto */
.igreja-left {
  max-width: 30%;
  bottom: 2.8rem; 
}

.igreja-title {
  font-family: var(--logo-font);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 0.95;
  color: #f5f5f5;
  margin: 0 0 20px 0;
  text-align: left;
}

.igreja-description {
  max-width: 100%;
  color: #f5f5f5;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Lado direito - vídeo */
.igreja-right {
  width: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.igreja-video-box {
  width: 100%;
  max-width: 750px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.igreja-video-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==============================
   ANIMAÇÕES GLOBAIS
============================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ==============================
   RESPONSIVIDADE
============================== */

/* Tablets */
@media (max-width: 900px) {
  .header-main-container {
    padding: 30px 50px 0 50px;
  }

  .main {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }

  .title {
    font-size: 2.4rem;
  }

  .cta-button {
    align-self: center;
  }

  .como-section, .igreja-section {
    flex-direction: column;
    gap: 40px;
    padding: 60px 5%;
  }

  .como-right, .igreja-left {
    width: 100%;
    align-items: center;
  }

  .como-title, .igreja-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
  }

  .como-description, .igreja-description {
    text-align: center;
    max-width: 100%;
  }
  
  .video-box, .igreja-video-box {
    max-width: 100%;
  }
}

/* Celulares - DESIGN ANIMADO E MELHORADO */
@media (max-width: 600px) {
  /* Header Mobile Melhorado */
  .header-main-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 25px 15px 0 15px;
    height: 100vh;
    background-image: url("imagem1-mobile.jpg");
    justify-content: flex-start;
    animation: fadeInUp 1s ease-out;
  }

  .header-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0;
    animation: slideInLeft 0.8s ease-out;
  }

  #logo {
    width: 140px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  }

  .nav-list {
    gap: 25px;
    font-size: 0.9rem;
    animation: slideInRight 0.8s ease-out 0.3s both;
  }

  .nav-link {
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-hover);
    transition: width 0.3s ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .header-line {
    width: 100%;
    margin: 20px 0;
    animation: slideInLeft 0.8s ease-out 0.5s both;
  }

  .main {
    padding: 0 15px;
    height: auto;
    flex: 1;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.7s both;
  }

  .text-section {
    max-width: 100%;
    margin-top: 0;
    text-align: center;
    align-items: center;
  }

  .title {
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 25px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: float 3s ease-in-out infinite;
  }

  /* Remove quebras de linha do description no mobile */
  .description br {
    display: none;
  }

  .description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.9s both;
  }

  .cta-button {
    align-self: center;
    width: 100%;
    max-width: 300px;
    padding: 18px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 35px;
    background: linear-gradient(135deg, var(--primary-hover), #ffd700);
    color: #5a4a42;
    box-shadow: 0 8px 25px rgba(224, 211, 107, 0.4);
    transition: all 0.4s ease;
    animation: pulse 2s infinite 1.5s;
  }

  .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(224, 211, 107, 0.6);
  }

  /* Seção "Como tudo começou" - ANIMADA */
  .como-section {
    flex-direction: column-reverse;
    gap: 35px;
    padding: 70px 20px;
    min-height: auto;
    background-image: url('imagem2-mobile.jpg');
    animation: fadeInUp 1s ease-out;
  }

  .como-right {
    width: 100%;
    bottom: 0;
    align-items: center;
    text-align: center;
    order: 1;
    animation: slideInLeft 0.8s ease-out both;
  }

  .como-left {
    order: 2;
    width: 100%;
    animation: slideInRight 0.8s ease-out 0.3s both;
  }

  .como-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .como-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .video-box {
    max-width: 100%;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
  }

  .video-box:hover {
    transform: scale(1.02);
  }

  .como-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-top: 25px;
    padding: 0 10px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
  }

  /* Seção "Primeira Igreja" - ANIMADA */
  .igreja-section {
    flex-direction: column-reverse;
    gap: 35px;
    padding: 70px 20px;
    min-height: auto;
    background-image: url('imagem3-mobile.jpg');
    animation: fadeInUp 1s ease-out;
  }

  .igreja-left {
    max-width: 100%;
    bottom: 0;
    align-items: center;
    text-align: center;
    order: 1;
    animation: slideInRight 0.8s ease-out both;
  }

  .igreja-right {
    width: 100%;
    order: 2;
    animation: slideInLeft 0.8s ease-out 0.3s both;
  }

  .igreja-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .igreja-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .igreja-video-box {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
  }

  .igreja-video-box:hover {
    transform: scale(1.02);
  }

  /* Ajustes gerais para mobile */
  .snap-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Overlays melhorados */
  .como-section::before,
  .igreja-section::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  }

  /* Efeito de entrada para todas as seções */
  .snap-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
  }

  .snap-section:nth-child(1) { animation-delay: 0.1s; }
  .snap-section:nth-child(2) { animation-delay: 0.3s; }
  .snap-section:nth-child(3) { animation-delay: 0.5s; }
}

/* Mobile Pequeno (até 375px) - OTIMIZADO */
@media (max-width: 375px) {
  .header-main-container {
    padding: 20px 12px 0 12px;
  }

  .nav-list {
    gap: 20px;
    font-size: 0.85rem;
  }

  #logo {
    width: 120px;
  }

  .title {
    font-size: 2.1rem;
  }

  .como-title,
  .igreja-title {
    font-size: 2.4rem;
  }

  .como-section,
  .igreja-section {
    padding: 60px 15px;
  }

  .cta-button {
    max-width: 280px;
    padding: 16px 28px;
    font-size: 1.1rem;
  }
}

/* Efeito de scroll suave para elementos */
@media (prefers-reduced-motion: no-preference) {
  .snap-section > * {
    animation: fadeInUp 0.8s ease-out both;
  }
}