/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2D3748;
    line-height: 1.7;
    scroll-behavior: smooth;
    background-color: #F7FAFC;
}

/* Header e Navegação */
.fixed {
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.md\:hidden {
    position: relative;
    z-index: 1001;
}

#mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Seções */
section {
    scroll-margin-top: 5rem;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.hero-section {
    height: 100vh;
    position: relative;
    background-position: center;
    background-size: cover;
}

/* Ajustes para botão Nossa Missão */
#home {
    z-index: 1;
}

#home .relative {
    z-index: 2;
}

#home a[href="#about"] {
    position: relative;
    z-index: 10;
    display: inline-block;
    pointer-events: auto;
}

#home .absolute {
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Cards e Elementos */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Botões e Links */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #3182CE;
    color: white;
}

.btn-primary:hover {
    background-color: #2C5282;
}

nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #3B82F6;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Efeitos de Scroll e Animações */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Seção de Doações */
.donation-section {
    background: #F7FAFC;
    padding: 5rem 0;
}

.donation-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
}

/* Formulário de Contato */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3182CE;
}

:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Footer */
footer {
    background-color: rgba(255,255,255,0.1) 0%;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-contact .material-icons {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
}

/* Seção Impacto */
.impact {
    background: linear-gradient(to bottom, #F7FAFC, #EDF2F7);
    padding: 5rem 2rem;
    text-align: center;
}

.impact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2D3748;
}

.impact p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #4A5568;
}

/* Hero Donate */
.hero-donate {
    background: linear-gradient(135deg, #6B46C1, #4299E1);
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-donate h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-donate p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Seção de Doações */
.donation-options {
    text-align: center;
    padding: 4rem 2rem;
}

.donation-options h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2D3748;
}

.donation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.donation-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.donation-card img {
    width: 90px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.donation-card:hover img {
    transform: scale(1.05);
}

.donation-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2D3748;
}

.donation-card p {
    margin-bottom: 1rem;
    color: #4A5568;
    line-height: 1.6;
}

.donation-card strong {
    display: block;
    font-size: 1.4rem;
    color: #4299E1;
    margin: 1rem 0;
    font-weight: 600;
}

.qrcode {
    width: 180px;
    margin: 1.5rem auto 0 auto;
    border-radius: 8px;
    padding: 8px;
    background: #F7FAFC;
}

/* Estilos específicos da página Nossa História */
.historia-header {
    background-image: url('images/igreja-fachada.jpg');
    background-size: cover;
    background-position: center;    
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3182CE;
    text-align: center;
    margin-top: 80px;
}

.historia-header h1 {
    font-size: 3rem;
    font-weight: bold;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.5);*/
}

.historia-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.historia-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #3182CE;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid #3182CE;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -17px;
}

.right::after {
    left: -17px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h2 {
    color: #3182CE;
    margin-bottom: 10px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .right {
        left: 0;
    }

    .left::after, 
    .right::after {
        left: 15px;
    }
}

.pastores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.pastor-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 300px;
    transition: transform 0.3s ease;
}

.pastor-card:hover {
    transform: translateY(-5px);
}

.pastor-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.pastor-info {
    padding: 1.5rem;
    text-align: center;
}

.pastor-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.pastor-info p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .historia-header h1 {
        font-size: 2.5rem;
    }

    .pastores {
        padding: 2rem 1rem;
    }

    .pastor-card {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid #fff;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }

    .left::after, .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }
}

.high-contrast {
    --text-color: #000000;
    --bg-color: #FFFFFF;
    --link-color: #0000EE;
}

/* Seção de Eventos */
.eventos-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-btn.active {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.evento-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.evento-card:hover {
    transform: translateY(-2px);
}

.evento-card .dia {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 8px;
}

.evento-card .horario {
    color: #4b5563;
    margin-bottom: 8px;
}

.evento-card .titulo {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.calendario-btn {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.calendario-btn:hover {
    background: #1d4ed8;
}

@media (max-width: 640px) {
    .eventos-container {
        padding: 15px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

/* Remover estilos das tabs */
.tab-content,
.tab-content.active,
.tab-btn.active {
    display: initial;
}

/* Header transparente no scroll */
header {
    transition: background-color 0.3s ease;
}

header.transparent {
    background-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
}