/* TEXTURA NOISE */
@keyframes noise {
    0%, 100% { background-position: 0 0; }
    10% { background-position: -5% -10%; }
    20% { background-position: -15% 5%; }
    30% { background-position: 7% -25%; }
    40% { background-position: 20% 25%; }
    50% { background-position: -25% 10%; }
    60% { background-position: 15% 5%; }
    70% { background-position: 0% 15%; }
    80% { background-position: 25% 35%; }
    90% { background-position: -10% 10%; }
}

.texture::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESET E BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background-color: #E5E5E5;
    color: var(--dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Bunya', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover { background-color: var(--primary-light); }

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
    border-bottom: none;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background: rgba(37, 37, 37, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.3), 0 1px 0 rgba(239, 180, 23, 0.4), 0 2px 12px rgba(239, 180, 23, 0.15);
    border-bottom: 1px solid rgba(239, 180, 23, 0.4);
}

.header.scrolled {
    background-color: rgba(37, 37, 37, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

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

.nav-link {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
}

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

.nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.75rem;
    cursor: pointer;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-small {
    height: 220px;
    background-color: var(--dark);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-logo {
    height: 80px;
    margin: 0 auto 1.5rem;
}

.hero-title {
    font-family: 'Bunya', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-phrase {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
    line-height: 1.6;
}

.hero-phrase .highlight {
    color: var(--primary);
    font-weight: 600;
}

/* HERO — posições do texto (data-pos) */

/* coluna: esquerda — cancela margin:0 auto do .container e limita largura */
.hero[data-pos$="-esq"] { justify-content: flex-start; }
.hero[data-pos$="-esq"] .hero-content {
    margin: 0;
    text-align: left;
    padding-left: clamp(1.5rem, 6vw, 6rem);
    max-width: min(560px, 55%);
}
.hero[data-pos$="-esq"] .hero-overlay { background: linear-gradient(to right, rgba(0,0,0,.75), rgba(0,0,0,.2) 55%, transparent); }

/* coluna: direita — margem auto à esquerda empurra para a direita */
.hero[data-pos$="-dir"] { justify-content: flex-end; }
.hero[data-pos$="-dir"] .hero-content {
    margin: 0;
    text-align: right;
    padding-right: clamp(1.5rem, 6vw, 6rem);
    max-width: min(560px, 55%);
}
.hero[data-pos$="-dir"] .hero-overlay { background: linear-gradient(to left, rgba(0,0,0,.75), rgba(0,0,0,.2) 55%, transparent); }

/* linha: topo */
.hero[data-pos^="topo-"] { align-items: flex-start; }
.hero[data-pos^="topo-"] .hero-content { padding-top: clamp(4rem, 10vh, 8rem); }
.hero[data-pos="topo-centro"] .hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.15) 55%, transparent); }

/* linha: baixo */
.hero[data-pos^="baixo-"] { align-items: flex-end; }
.hero[data-pos^="baixo-"] .hero-content { padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero[data-pos="baixo-centro"] .hero-overlay { background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.15) 55%, transparent); }

/* logo: alinha com o texto quando no canto */
.hero[data-pos$="-esq"] .hero-logo { margin: 0 0 1.5rem; }
.hero[data-pos$="-dir"] .hero-logo { margin: 0 0 1.5rem auto; }

/* frase: remove margin auto (do padrão) nos cantos */
.hero[data-pos$="-esq"] .hero-phrase,
.hero[data-pos$="-dir"] .hero-phrase { margin: 0; }

/* CULTOS */
.cultos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.culto-card {
    background-color: #2e2e2e;
    color: var(--white);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    padding-top: 240px;
    margin-top: 160px;
}

.culto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(239, 180, 23, 0.4), 0 0 20px rgba(239, 180, 23, 0.15);
}

.culto-card-foto {
    position: absolute;
    top: -160px;
    left: 0;
    right: 0;
    height: 400px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.culto-card-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.culto-card-icone {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 10px rgba(239, 180, 23, 0.9), 0 0 30px rgba(239, 180, 23, 0.6), 0 0 60px rgba(239, 180, 23, 0.3);
}

.culto-card-icone i {
    font-size: 1.5rem;
    color: var(--dark);
}

.culto-card-body {
    padding: 1.5rem 2rem 2rem;
}

.culto-card-body h3 {
    font-family: 'Bunya', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.culto-card-body p { color: #aaa; font-size: 0.9rem; }

/* EVENTOS */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.evento-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.evento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.evento-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.evento-card-img i {
    font-size: 3rem;
    color: var(--primary);
}

.evento-card-body { padding: 1.5rem; }

.evento-data {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.evento-titulo {
    font-family: 'Bunya', sans-serif;
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

.evento-desc { font-size: 0.9rem; color: #555; }

/* PILARES (Quem Somos) */
.pilares {
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.pilares .container {
    position: relative;
    z-index: 1;
}

.pilares-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pilares-conteudo {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.pilares-titulo-secao {
    font-family: 'Bunya', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pilar {
    color: var(--white);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.pilar-texto {
    flex: 1;
}

.pilar p {
    text-align: justify;
    margin-top: 0.5rem;
}

.pilares-imagem {
    overflow: hidden;
}

.pilares-imagem img {
    width: 55%;
    display: block;
    margin: 0 auto;
    margin-bottom: -80px;
}

.pilar-icone {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(239, 180, 23, 0.9), 0 0 30px rgba(239, 180, 23, 0.6), 0 0 60px rgba(239, 180, 23, 0.3);
}

.pilar-icone i { font-size: 1.5rem; color: var(--primary); }

.pilar-titulo {
    font-family: 'Bunya', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 400;
    margin: 0 0 0.5rem;
}

.pilar-titulo strong { color: var(--white); }

.pilar p { line-height: 1.8; font-weight: 300; }

/* CULTOS LISTA (Próximos Cultos) */
.cultos-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.culto-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.culto-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.culto-item-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary);
    color: var(--dark);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    min-width: 60px;
    box-shadow: 0 0 10px rgba(239, 180, 23, 0.9), 0 0 25px rgba(239, 180, 23, 0.5);
}

.culto-item-dia { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; }
.culto-item-numero { font-size: 1.75rem; font-weight: 700; line-height: 1; }

.culto-item-info h3 {
    font-family: 'Bunya', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.culto-item-info span { font-size: 0.9rem; color: #666; }
.culto-item-info i { margin-right: 0.3rem; }

/* EVENTOS VAZIO */
.eventos-vazio {
    text-align: center;
    padding: 4rem 2rem;
    color: #aaa;
}

.eventos-vazio i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.eventos-vazio p { font-size: 1rem; line-height: 1.8; }

/* CONTATO */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contato-form-wrap h2,
.contato-info h2 {
    font-family: 'Bunya', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contato-form input,
.contato-form textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.contato-form input:focus,
.contato-form textarea:focus { border-color: var(--primary); }

.contato-form .btn {
    align-self: flex-start;
}

.contato-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contato-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.contato-links i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contato-mapa { border-radius: 12px; overflow: hidden; }

/* FOOTER */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--white);
    transition: color 0.2s;
    min-width: 60px;
    max-width: 110px;
}

.footer-social a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(239, 180, 23, 0.8), 0 0 20px rgba(239, 180, 23, 0.4);
}
.footer-social i { font-size: 1.75rem; }
.footer-social span {
    font-size: 0.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.3;
}

.footer-address {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-address a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #aaa;
    transition: color 0.2s;
}

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

.footer-copy { font-size: 0.8rem; color: #666; }

/* RESPONSIVO */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 260px;
        background-color: var(--dark);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
    }

    .nav-menu.open { display: flex; }
    .nav-toggle { display: block; }

    .contato-grid { grid-template-columns: 1fr; gap: 2rem; }
    .pilares-layout { grid-template-columns: 1fr; }
    .pilares-imagem { display: none; }
    .pilar p { padding-left: 0; }
    .footer-social { gap: 1.25rem 1.75rem; }
    .cultos-grid { grid-template-columns: 1fr; max-width: 360px; }
    .culto-card { margin-top: 140px; padding-top: 180px; }
    .culto-card-foto { height: 320px; top: -140px; }
}
