/* ===================================================
   RESET + BASE
=================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body{
  font-family: "Montserrat", sans-serif;
  color: #1f1f1f;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================================
   VARIÁVEIS
=================================================== */
:root{
  --primary: #e74c3c;
  --dark: #1c1c1c;
  --light: #f7f9fc;
  --text-light: #aaa;

  --radius: 16px;
  --shadow: 0 10px 25px rgba(0,0,0,0.10);
  --container: 1200px;
}

/* ===================================================
   CONTAINER
=================================================== */
.container{
  width: min(92%, var(--container));
  margin: 0 auto;
}

/* ===================================================
   SEÇÕES
=================================================== */
.section{ padding: 70px 0; }
.bg-light{ background: var(--light); }

.section-header{ text-align: center; margin-bottom: 40px; }
.section-header h2{
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}
.section-subtitle{
  color: #666;
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto;
}

/* ===================================================
   BOTÕES
=================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid transparent;
}
.btn-fit{
  width: fit-content;
  margin: 20px auto 0 auto;
  display: block;
}

.btn-primary{
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(0.97);
}

/* Ghost no HERO (branco) */
.btn-ghost{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.6);
}

/* Ghost em fundos claros (escuro) */
.bg-light .btn-ghost,
.section .btn-ghost{
  color: #1f1f1f;
  border-color: rgba(0,0,0,0.18);
}
.bg-light .btn-ghost:hover,
.section .btn-ghost:hover{
  border-color: rgba(0,0,0,0.35);
}

/* ===================================================
   NAVBAR
=================================================== */
.navbar{
  position: fixed;
  inset: 0 0 auto 0;
  height: 70px;
  background: rgba(28, 28, 28, 0.95);
  backdrop-filter: blur(6px);
  z-index: 1000;
}
.navbar-inner{
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

/* Logo */
.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img{ height: 52px; }

.texto-logo .igreja{
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-light);
  display: block;
}
.texto-logo .nome{
  font-family: "Playlist Script", cursive;
  font-size: 28px;
  color: #fff;
  line-height: 1;
}

/* Menu desktop */
.menu{
  display: flex;
  gap: 22px;
  align-items: center;
}
.menu a{
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s ease;
}
.menu a:hover{ color: var(--primary); }

.live-btn{
  background: var(--primary);
  padding: 8px 16px;
  border-radius: 999px;
}

/* Botão hambúrguer (desktop escondido) */
.menu-toggle{
  display: none;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  user-select: none;
}

/* Botão fechar (só mobile) */
.menu-close{
  display: none;
  width: 100%;
  text-align: right;
  padding: 14px 18px 6px;
  font-size: 22px;
  opacity: 0.9;
}

/* Overlay */
.nav-overlay{
  display: none;
}



/* ===================================================
   HERO
=================================================== */
.hero{
  min-height: 52vh;
  padding-top: 70px;
  background: url("img/membrosigj.jpeg") center/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  color: #fff;
}
.overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.hero-content{
  position: relative;
  z-index: 1;
  padding: 22px 0;
}
.hero-content h1{
  font-size: clamp(26px, 5vw, 52px);
  font-weight: 600;
}
.hero-content p{
  margin-top: 14px;
  opacity: 0.95;
  font-size: 1.05rem;
}
.hero-actions{
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================
   SOBRE
=================================================== */
.about-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}
.about-text p{
  font-size: 1rem;
  line-height: 1.75;
  color: #2a2a2a;
}
.about-media{ display: flex; justify-content: center; }
.about-photo{
  width: 100%;
  max-width: 420px;     /* controla o tamanho no desktop */
  height: 260px;        /* define altura fixa pra não “crescer” */
  border-radius: var(--radius);
  overflow: hidden;     /* importante pra recortar a imagem */
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
}

.about-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;    /* corta sem deformar */
  display: block;       /* remove “espaço” embaixo da imagem */
}

/* ===================================================
   CARDS (HORÁRIOS)
=================================================== */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: 0.2s ease;
}
.card:hover{ transform: translateY(-4px); }
.card h3{ font-size: 18px; margin-bottom: 10px; }
.card-line{ margin: 8px 0; }
.card-muted{ margin-top: 10px; color: #666; font-size: 14px; }

/* =============================
AGENDA
============================= */

.agenda-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:30px;
}

.agenda-card{
  background:#fff;
  border-radius:14px;
  padding:22px;
  box-shadow:var(--shadow);
  text-align:center;
  border:1px solid rgba(0,0,0,0.05);
  transition:0.3s;
}

.agenda-card:hover{
  transform:translateY(-4px);
}

.agenda-data{
  display:inline-block;
  font-weight:600;
  color:var(--primary);
  margin-bottom:8px;
}

.agenda-card h3{
  font-size:1.05rem;
}

/* destaque eventos especiais */

.agenda-card.destaque{
  border:2px solid var(--primary);
}

.agenda-card.encontro{
  background:var(--primary);
  color:white;
}

.agenda-card.encontro .agenda-data{
  color:white;
}

/* ===================================================
   MÍDIAS
=================================================== */
.midias{ text-align: center; }
.midias-icons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.midias-icons a{
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
  border: 1px solid rgba(0,0,0,0.06);
}
.midias-icons img{ width: 32px; height: 32px; }
.midias-icons a:hover{ transform: translateY(-6px); }

/* ===================================================
   CONTATO
=================================================== */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}
.contact-card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.05);
}
.contact-line{ margin: 10px 0; font-size: 1.02rem; }
.contact-actions{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-note .contact-box{
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.05);
  background:
    radial-gradient(900px 280px at 20% 10%, rgba(231,76,60,0.18), transparent 60%),
    radial-gradient(900px 280px at 80% 40%, rgba(30,136,229,0.12), transparent 60%),
    #fff;
}
.contact-box h3{ margin-bottom: 8px; }
.contact-box p{ color: #444; }

/* ===================================================
   NOVOS MEMBROS
=================================================== */
.hero-novos-membros{
  background: url("img/membrosigj.jpeg") center/cover no-repeat;
  min-height: 42vh;
}

.novos-membros-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.novos-membros-info{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-card,
.form-card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.05);
}

.info-card h3{
  margin-bottom: 10px;
  font-size: 20px;
}

.info-card p{
  color: #444;
  line-height: 1.7;
}

.form-novos-membros{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group{
  display: flex;
  flex-direction: column;
}

.form-group label{
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea{
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  transition: 0.2s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(231,76,60,0.10);
}

.form-group textarea{
  resize: vertical;
  min-height: 120px;
}

.form-note{
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.form-card .btn{
  margin-top: 8px;
  align-self: flex-start;
}

.obrigado-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 30px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.obrigado-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obrigado-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #111;
}

.obrigado-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

.obrigado-frase {
    font-weight: 600;
    color: #222;
}

.obrigado-buttons {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .obrigado-card {
        padding: 40px 20px;
    }

    .obrigado-card h2 {
        font-size: 1.6rem;
    }

    .obrigado-buttons {
        flex-direction: column;
    }

    .obrigado-buttons .btn,
    .obrigado-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 900px){
  .novos-membros-grid{
    grid-template-columns: 1fr;
  }

  .form-row{
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   LIVE
=================================================== */
.live-box{
    width:100%;
    max-width:900px;
    margin:30px auto 0 auto;
    aspect-ratio:16/9;
    background:#000;
    border-radius:16px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.live-box iframe{
    width:100%;
    height:100%;
    border:0;
}

/* ===================================================
   FOOTER
=================================================== */
.footer{
  background: var(--dark);
  color: var(--text-light);
  padding: 25px 0;
  text-align: center;
}
.footer-inner p{ font-size: 14px; }

/* ===================================================
   HISTÓRIA (conteúdo)
=================================================== */
.historia-content{
  max-width: 820px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: #2a2a2a;
}

.historia-content p + p{
  margin-top: 14px;
}

.quote-box{
  margin-top: 18px;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
}

.video-historia {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-historia iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================================
   HERO - PÁGINA HISTÓRIA
=================================================== */
.hero-historia{
  background: url("img/imagemigjtoda.jpg") center/cover no-repeat;
  min-height: 42vh;
}

/* ===================================================
   RESPONSIVIDADE + MENU MOBILE (com :target)
=================================================== */
@media (max-width: 900px){
  .menu-toggle{ display: inline-block; }

  /* menu vira gaveta */
  .menu{
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 70px 0 10px; /* espaço da navbar */
    text-align: center;
    transition: 0.25s ease;
    z-index: 1200;
  }

  /* botão fechar aparece no mobile */
  .menu-close{
    display: block;
    position: absolute;
    top: 10px;
    right: 12px;
    width: auto;
    padding: 10px 12px;
  }

  .menu a{
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
  }

  /* overlay */
  .nav-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 1100;
  }

  /* quando o #menu é o target (URL termina em #menu), abre */
  #menu:target{
    right: 0;
  }
  #menu:target ~ .nav-overlay{
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .cards-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ min-height: 220px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .live-box{ height: 260px; }
  .section{ padding: 60px 0; }
}