/* =========================
   RESET BÁSICO
========================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

body {
    color: #222;
    background: #fff;
}

/* =========================
   ESTRUTURA
========================= */
.container {
    width: min(1200px, 90%);
    margin: auto;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}


.logo img {
    height: 60px;
}

/* ISSO empurra tudo para a direita */
.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

/* MENU */
.main-nav {
    display: flex;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    align-items: right;
}

.main-nav a {
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    color: #1f3b1f;
    font-weight: 500;
}

.main-nav a.active {
    color: #1faa59;
}

.main-nav a:hover {
    color: #1faa59;
}

/* DROPDOWN "SOBRE" - DESKTOP */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 0.8rem 1rem;
    margin-top: 0; /* evita "buraco" entre o item e o dropdown */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 190px;
}

.submenu li + li {
    margin-top: 0.6rem; /* espaçamento vertical entre itens do submenu */
}

.submenu a {
    font-size: 13px;
    white-space: nowrap;
    padding: 0.2rem 0; /* aumenta a área clicável */
}

.has-submenu:hover > .submenu {
    display: block;
}

/* SOCIAIS */
.social {
    display: flex;
    gap: 1rem;
}

.social a {
    text-decoration: none;
    color: #1f3b1f;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #1f3b1f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social a:hover {
    color: #fff;
    background: #1faa59;
    border-color: #1faa59;
}

/* BOTÃO MOBILE (ESCONDIDO NO DESKTOP) */
.menu-toggle {
    display: none;
    background: #222;
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}


/* =========================
   HERO HOME
========================= */
.hero {
    position: relative;
    height: 100vh;
    background: url("../img/slider/bg-3.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 420px;
    margin-right: 8%;
}

.hero-label {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.85;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin: 16px 0;
}

.hero-content h1 strong {
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.hero-content small {
    font-size: 14px;
}

/* =========================
   INSTITUCIONAL
========================= */
.institucional {
    padding: 5rem 0;
}

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

.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 1.4rem;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 1rem;
}

.card p {
    font-size: 16px;
    line-height: 1.75;
    color: #666;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: #111;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    font-size: 14px;
}


/* =========================
   SLIDER HERO HOME
========================= */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center; /* centraliza os dois slides horizontalmente */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 480px;
    margin-right: 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin: 16px 0;
}

.hero-label {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.85;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
}

.hero-content small {
    font-size: 14px;
    opacity: 0.85;
}

/* CONTROLES */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 10;
}

.nav.prev {
    left: 20px;
}

.nav.next {
    right: 20px;
}


/* =========================
   HERO PÁGINA INTERNA (QUEM SOMOS, ETC.)
========================= */
.page-hero {
    position: relative;
    height: 280px;
    margin-top: 80px; /* altura do header fixo */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-quem-somos {
    /* ajuste o caminho da imagem da cruz aqui, se for diferente */
    background-image: url("assets/img/slider/bg-3.jpg");
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.page-hero-inner {
    position: relative;
    color: #fff;
    text-align: center;
}

.page-hero-inner h1 {
    font-size: 36px;
    letter-spacing: 4px;
}

/* CONTEÚDO QUEM SOMOS */
.quem-somos-conteudo {
    padding: 4rem 0 5rem;
}

.quem-somos-texto {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: left;
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}

.quem-somos-texto p + p {
    margin-top: 1rem;
}

.quem-somos-logos {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* alinha pela base dos logos */
    gap: 3.5rem;
    margin-top: 4rem;  /* espaço entre texto e logos */
    margin-bottom: 2.5rem; /* respiro antes do footer */
    flex-wrap: wrap;
}

.quem-somos-logos img {
    display: block;
    max-height: 60px;
    width: auto;
}

/* PÁGINA NOSSOS PASTORES */
.pastores-page {
    padding: 6rem 0 5rem;
    margin-top: 80px; /* compensa o header fixo, já que aqui não há hero com imagem */
}

.pastores-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pastores-header h1 {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
}

.pastores-header hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    max-width: 500px;
    margin: 0 auto;
}

.pastores-texto {
    max-width: 900px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.pastores-texto h2 {
    font-size: 18px;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.pastores-texto h3 {
    font-size: 16px;
    margin-top: 1.6rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.pastores-texto p {
    margin-top: 0.2rem;
}

/* PÁGINA DE CONTATO */
.contato-social {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.contato-social a {
    color: #1faa59;
    font-size: 28px;
    transition: color 0.2s ease;
}

.contato-social a:hover {
    color: #1f3b1f;
}

.contato-info {
    max-width: 600px;
    margin: 0 auto 3.5rem;
    text-align: center;
    font-size: 15px;
    color: #555;
}

.contato-bloco + .contato-bloco {
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid #e0e0e0;
}

.contato-info h2 {
    font-size: 16px;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contato-info p {
    margin: 0;
}

.contato-mapa {
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

.contato-mapa iframe {
    width: 100%;
    max-width: 600px;
    height: 320px;
    border: 0;
}

/* =========================
     MOBILE
  ========================= */
@media (max-width: 900px) {

    .slide {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin: 0;
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 16px;
    }


    /* HERO */
    .hero {
        justify-content: center;
        text-align: center;
        padding: 0 1.5rem;
    }

    .hero-content {
        max-width: 100%;
        margin: 0;
    }

    .hero-content h1 {
        font-size: 42px;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-content small {
        font-size: 13px;
    }

    /* GRID INSTITUCIONAL */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .card img {
        height: 200px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 14px;
    }

    .main-nav,
    .social {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        right: 1.5rem;
        background: #fff;
        padding: 1rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .main-nav.active > ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* submenu no mobile: aparece em coluna junto ao menu */
    .submenu {
        position: static;
        box-shadow: none;
        margin-top: 0.3rem;
        padding-left: 0; /* alinha a caixa do submenu com os demais itens */
        display: block;
    }

    /* recuo só no texto, para ficar organizado sob "Sobre" */
    .submenu a {
        padding-left: 1.2rem;
    }

}

/* MOBILE PEQUENO */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 15px;
    }

}