/* 
   EVANGELISMO PAGE STYLES — Samsung Inspired Redesign
   Aesthetics: Premium, Modern, Professional, Clean
   Colors: Maintaining Igreja Atos Palette (Purples/Violets)
*/

/* --- Page Specific Resets (Unified Dark Mode) --- */
.evangelismo-page {
    background-color: #050408 !important; /* Fundo escuro premium unificado para toda a página */
    color: #fff;
    perspective: 2000px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Removido o scroll-snap global pois ele causa "trancos" na rolagem em páginas contínuas longas */
}

/* --- Section Globals for Unique Scroll Snap --- */
section {
    position: relative;
    min-height: 80vh; /* Reduced from 100vh to remove 'void' spaces */
    padding: 80px 0;  /* Standardized padding for harmonic breathing room */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent !important; /* Sem cores chapadas por seção */
    will-change: transform, opacity;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), 
                opacity 0.6s ease;
    z-index: 1;
}

/* Sequencing */
#evangelismo-hero { z-index: 10; }
#nossa-missao { z-index: 5; }
#como-fazemos { z-index: 5; }
#hub-inscricao { z-index: 5; padding: 120px 0; }
#banners { z-index: 5; min-height: auto; padding: 100px 0; }
#nossos-departamentos { 
    z-index: 5; 
    min-height: auto; 
    padding: 60px 0; 
}

footer {
    scroll-snap-align: none;
}

/* Hero Section Adjusts - Immersive Premium */
#evangelismo-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    filter: blur(4px) brightness(0.6);
    transform: scale(1.05); /* Avoid blur bleeding */
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 12, 18, 0.9) 0%, rgba(124, 58, 237, 0.4) 50%, rgba(13, 12, 18, 0.9) 100%);
    z-index: 2;
}

.hero-content-inner {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.4), rgba(192, 132, 252, 0.4));
    padding: 8px 24px;
    border-radius: 100px;
    border: 1px solid rgba(192, 132, 252, 0.6);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

.hero-glass-panel h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.hero-glass-panel .subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 25px;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

.hero-glass-panel .description {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.btn-glow-pulse {
    display: inline-block;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    position: relative;
    border: none;
    text-decoration: none;
}

.btn-glow-pulse:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.8);
    color: #fff;
}

/* --- Section Titles --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-header .divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Mission Section - Overlapped Parallax --- */
#nossa-missao {
    padding: 150px 0;
    background: transparent;
    overflow: hidden;
}

.relative-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.mission-visual-large {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 65%;
    height: 700px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.parallax-image {
    width: 100%;
    height: 120%; /* Extra height for parallax scroll */
    background-size: cover;
    background-position: center;
    transform: translateY(-10%); /* Starting position for parallax */
}

.image-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #050408 0%, rgba(5,4,8,0) 40%);
}

.mission-glass-card {
    background: rgba(13, 12, 18, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 70px 60px;
    width: 55%;
    position: relative;
    z-index: 5;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), -20px 20px 60px rgba(124, 58, 237, 0.15);
}

.mission-glass-card h2 {
    color: #fff;
}

.mission-glass-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .relative-container {
        flex-direction: column;
    }
    .mission-visual-large {
        position: relative;
        width: 100%;
        height: 400px;
        transform: none;
        top: 0;
        border-radius: var(--radius-lg);
    }
    .image-overlay-gradient {
        background: linear-gradient(180deg, #050408 0%, rgba(5,4,8,0) 40%);
    }
    .mission-glass-card {
        width: 90%;
        margin-top: -100px; /* Overlap from bottom on mobile */
        padding: 40px 30px;
    }
}

/* --- "Como Fazemos" Section (Flex Accordion Redesign) --- */
#como-fazemos {
    padding: 120px 0;
    background-color: transparent;
    overflow: hidden;
}

.accordion-gallery {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin: 50px auto 0;
    gap: 15px;
    padding: 0 20px;
}

.accordion-panel {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-xl);
    color: #fff;
    cursor: pointer;
    flex: 0.5; /* narrow by default */
    overflow: hidden;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-panel.active {
    flex: 5; /* expands widely */
    cursor: default;
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.4);
}

/* Backgrounds - High-End Gradients simulating images/vibes */
.panel-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

/* Base dark overlay */
.accordion-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 12, 18, 0) 0%, rgba(13, 12, 18, 0.9) 100%);
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.accordion-panel.active::after {
    opacity: 0.95;
    background: linear-gradient(180deg, rgba(13, 12, 18, 0.2) 0%, rgba(124, 58, 237, 0.8) 100%);
}

.bg-1 { background: linear-gradient(135deg, #2c1a4d 0%, #150a21 100%); }
.bg-2 { background: linear-gradient(135deg, #1f1b3d 0%, #0d0c12 100%); }
.bg-3 { background: linear-gradient(135deg, #3d1b38 0%, #1a0a16 100%); }
.bg-4 { background: linear-gradient(135deg, #1b283d 0%, #0a111a 100%); }
.bg-5 { background: linear-gradient(135deg, #3d2c1b 0%, #1a100a 100%); }

.accordion-panel:hover .panel-bg {
    transform: scale(1.05);
}

.panel-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 30px;
    gap: 20px;
}

.panel-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    /* Center it when panel is small */
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.accordion-panel.active .panel-icon {
    position: relative;
    bottom: 0;
    left: 0;
    transform: none;
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.panel-text {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; /* prevent interaction when hidden */
    white-space: nowrap; /* keep text from wrapping weirdly during expansion */
    overflow: hidden;
    /* For absolute positioning when inactive to avoid messing with flex layout */
    position: absolute;
    left: 110px; /* space for icon + gap */
    right: 30px;
}

.accordion-panel.active .panel-text {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
    left: 0;
    right: 0;
    white-space: normal;
}

.panel-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.panel-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .accordion-gallery {
        height: 600px;
    }
    .accordion-panel.active {
        flex: 3;
    }
}

@media (max-width: 768px) {
    .accordion-gallery {
        flex-direction: column;
        height: 600px; /* fixed height for the whole block on mobile */
        padding: 0 15px;
    }

    .accordion-panel {
        flex: 0.5;
        align-items: flex-start; /* align top instead of bottom for mobile text */
    }

    .accordion-panel.active {
        flex: 4;
    }

    .panel-content {
        flex-direction: row; /* keep icon and text side by side */
        padding: 20px;
    }

    .panel-icon {
        position: absolute;
        top: 50%;
        left: 20px;
        bottom: auto;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.2rem;
    }

    .accordion-panel.active .panel-icon {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }

    .panel-text {
        left: 80px;
    }

    .panel-text h3 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .panel-text p {
        font-size: 0.95rem;
    }
}

/* --- Hub de Inscrição Neon (Chamada + Formulário) --- */
#hub-inscricao {
    position: relative;
    padding: 140px 0;
    background: transparent;
    overflow: hidden;
    color: #fff;
}

.mesh-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(192, 132, 252, 0.1) 0%, transparent 40%);
    filter: blur(60px);
    z-index: 1;
    animation: pulseMesh 15s infinite alternate;
}

@keyframes pulseMesh {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

.hub-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.glowing-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.form-glass-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 60px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.6);
}

#formVoluntario {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-group-neon {
    position: relative;
    width: 100%;
}

.input-group-neon.full-width {
    grid-column: 1 / -1;
}

.input-group-neon input,
.input-group-neon textarea {
    width: 100%;
    padding: 20px 20px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.input-group-neon textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group-neon label {
    position: absolute;
    left: 20px;
    top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 3;
}

/* Floating Label Logic */
.input-group-neon input:focus,
.input-group-neon textarea:focus,
.input-group-neon input:not(:placeholder-shown),
.input-group-neon textarea:not(:placeholder-shown) {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(0, 0, 0, 0.6);
}

.input-group-neon input:focus + label,
.input-group-neon textarea:focus + label,
.input-group-neon input:not(:placeholder-shown) + label,
.input-group-neon textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--primary-light);
    background: #09080e; /* match dark bg */
    padding: 0 8px;
    border-radius: 4px;
}

.input-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-md);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.input-group-neon input:focus ~ .input-glow,
.input-group-neon textarea:focus ~ .input-glow {
    opacity: 0.6;
}

.btn-neon-submit {
    align-self: center;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 20px 50px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-neon-submit:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

.btn-neon-submit i {
    transition: transform 0.3s ease;
}

.btn-neon-submit:hover i {
    transform: translateX(5px);
}

/* --- Holographic Banners --- */
.holographic-section {
    background: transparent;
    padding: 100px 0;
}

.holographic-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.holo-banner {
    background: #15111c; /* Fundo sólido bem escuro para garantir leitura */
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.holo-banner:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 40px rgba(124, 58, 237, 0.1);
}

/* Mouse tracking radial gradient (simulated via CSS hover for now) */
.holo-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
}

.holo-banner:hover .holo-glow {
    transform: scale(1.5) translate(-20px, 20px);
    background: radial-gradient(circle, rgba(192, 132, 252, 0.2) 0%, transparent 70%);
}

.holo-content {
    position: relative;
    z-index: 2;
}

.holo-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 25px;
    background: rgba(124, 58, 237, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.holo-banner h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.holo-banner p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-saiba-mais-neon {
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.btn-saiba-mais-neon::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-light);
}

.holo-banner:hover .btn-saiba-mais-neon::after {
    width: 100%;
}

/* --- Entrance Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .holographic-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #evangelismo-hero {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-glass-panel {
        padding: 40px 20px;
    }
    
    .form-glass-container {
        padding: 40px 20px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .holographic-container {
        grid-template-columns: 1fr;
    }
}

}

/* Ajustes Finais para o Tema Unificado (Departamentos e Footer) */
.evangelismo-page #nossos-departamentos h3 {
    color: #fff;
    opacity: 0.9;
}

.evangelismo-page footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.evangelismo-page footer p, 
.evangelismo-page footer .address p {
    color: rgba(255, 255, 255, 0.6);
}

.evangelismo-page nav ul li a {
    color: #fff !important;
}

.evangelismo-page header {
    background: rgba(5, 4, 8, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}