/* ESTILO INSPIRADO EM WEEGO VIAGENS 
   Foco: Modernidade, Minimalismo e Experiência do Usuário (UX)
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* 1. RESET E REGRAS TOTAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif; /* Fonte moderna como a da Weego */
    background-color: #f8fafc; /* Fundo off-white azulado, muito elegante */
    color: #1e293b; /* Cinza escuro em vez de preto puro */
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. CABEÇALHO (ESTILO GLASSMORPHISM) */
header {
    background-color: rgba(14, 3, 39, 0.95); /* Azul marinho profundo com transparência */
    backdrop-filter: blur(12px); /* Efeito de vidro embaçado ao rolar */
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #f5c518; /* Dourado no hover */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 3. BANNER PRINCIPAL (HERO) */
#banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), #0e0327), url('capa da igreja.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 160px 0 120px;
}

#banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

#banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.btn-ofertas {
    display: inline-block;
    background-color: #f5c518;
    color: #0e0327 !important;
    padding: 15px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 35px;
    box-shadow: 0 10px 25px rgba(245, 197, 24, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-ofertas:hover {
    background-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* 4. FAIXA DE PRÓXIMO CULTO (FULL WIDTH) */
#aviso-programado {
    background-color: #ffffff; /* Fundo branco limpo */
    color: #0e0327;
    width: 100%; /* Largura total da tela */
    margin: 0; /* Remove as margens laterais e o recuo negativo se preferir */
    padding: 60px 0; /* Espaçamento interno vertical */
    text-align: center;
    position: relative;
    z-index: 10;
    /* Uma sombra sutil apenas na parte de baixo para dar profundidade */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    border-bottom: 1px solid #eee;
}

/* Centraliza o conteúdo dentro da faixa larga */
#aviso-programado .container {
    max-width: 1200px;
    margin: 0 auto;
}

#titulo-amarelo {
    color: #f5c518;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

#departamento-texto {
    font-size: 2.2rem; /* Texto maior para aproveitar a largura */
    font-weight: 700;
    margin-bottom: 10px;
    color: #0e0327;
    letter-spacing: -1px;
}

#responsavel-nome {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 400;
}

/* Ajuste para Celular */
@media (max-width: 768px) {
    #departamento-texto {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    #aviso-programado {
        padding: 40px 0;
    }
}

/* --- SEÇÃO DE HORÁRIOS VERTICAIS (ESTILO WEEGO) --- */

.titulo-sessao {
    text-align: center;
    font-size: 1.8rem;
    color: #0e0327;
    margin-bottom: 1rem;
    font-weight: 700;
}

.horarios-grid-vertical {
    display: flex; /* Mudamos de Grid para Flex para facilitar a linha única */
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
    /* Regras para o scroll no celular */
    overflow-x: auto; 
    scroll-snap-type: x mandatory; /* Faz o card "travar" centralizado ao deslizar */
    -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone */
}

/* Remove a barra de scroll feia em navegadores modernos, mantendo a função */
.horarios-grid-vertical::-webkit-scrollbar {
    display: none;
}

.horario-card-v {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
    
    /* Ajuste crucial para a linha única */
    flex: 0 0 220px; /* Não estica, não encolhe, mantém 220px de largura */
    scroll-snap-align: center; /* Alinha o card no meio da tela ao dar o swipe */
    
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
}

.horario-card-v:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #f5c518;
}

.icon-topo {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: #f8fafc;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1; /* Faz o corpo ocupar o espaço central */
}

.dia-semana {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0e0327;
    margin-bottom: 8px;
}

.desc-culto {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hora-badge {
    background-color: #0e0327;
    color: #f5c518;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(14, 3, 39, 0.2);
    margin-top: auto; /* Joga o horário para a base do card */
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .horarios-grid-vertical {
        justify-content: flex-start; /* Alinha à esquerda para o scroll começar certo */
        padding-left: 20px; /* Dá um respiro na margem esquerda */
        padding-right: 20px; /* Garante que o último card não cole no final */
    }
    
    .titulo-sessao {
        font-size: 1.5rem;
        text-align: left;
        padding-left: 20px;
    }

    .horario-card-v {
        flex: 0 0 180px; /* Largura reduzida para caber melhor no celular */
        min-width: 180px;
    }
}


/* 5. SEÇÕES GERAIS */
.section-content {
    padding: 30px 0; /* Espaço reduzido entre seções */
}

.section-content h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #0e0327;
}

/* Ajuste específico para reduzir espaço entre Horários e Escalas */
#horarios {
    padding-bottom: 25px;
}

#escalas {
    padding-top: 25px;
}

/* 6. MOLDURA DA ESCALA (O FOCO DO SITE) */
.moldura-escala {
    background: #ffffff;
    padding: 12px;
    border-radius: 30px; /* Bordas muito arredondadas (Estilo Weego) */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    max-width: 950px;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.moldura-escala:hover {
    transform: translateY(-10px); /* Efeito flutuante */
}

.img-full {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* --- SEÇÃO DE LIÇÕES (ESTILO WEEGO PREMIUM) --- */

.licoes-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.licao-card-v {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden; /* Garante que a imagem não saia do card */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    text-align: center;
}

.licao-card-v:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #f5c518;
}

.capa-wrapper {
    width: 100%;
    height: 380px; /* Aumentei um pouco a altura para acomodar capas verticais inteiras */
    overflow: hidden;
    background-color: #ffffff; /* Fundo branco puro para que o espacinho do lado não apareça */
    padding: 20px; /* Adiciona um respiro em volta da imagem para não colar na borda */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9; /* Linha sutil para separar a foto do texto */
}

.capa-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ESSE É O SEGREDO: Imagem fica inteira sem cortes */
    transition: transform 0.5s ease;
}



.licao-card-v:hover .capa-img {
    transform: scale(1.1); /* Zoom suave na foto no hover */
}

.licao-body {
    padding: 25px;
}

.licao-body h3 {
    color: #0e0327;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.licao-body p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-pdf {
    display: inline-block;
    background-color: #f5c518;
    color: #0e0327;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: 0.3s;
    border: 2px solid #f5c518;
}

.btn-pdf:hover {
    background-color: transparent;
    color: #0e0327;
}

/* Ajuste para o celular (mantendo 1 lição por vez no scroll ou empilhado) */
@media (max-width: 768px) {
    .licoes-grid-premium {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .capa-wrapper {
        height: 300px;
    }
}

/* 8. FORMULÁRIO DE CONTATO */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #0e0327;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f5c518;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: #f5c518;
    color: #0e0327;
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.btn-submit:hover {
    background-color: #e5a517;
    transform: translateY(-2px);
}

/* 9. CALENDÁRIO E FOOTER */
.calendario-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

footer {
    background-color: #0e0327;
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.social-links a {
    color: #f5c518;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid rgba(245, 197, 24, 0.3);
    border-radius: 12px;
    transition: 0.3s;
}

.social-links a:hover {
    background: #f5c518;
    color: #0e0327;
    border-color: #f5c518;
}

/* 10. BOTÃO FLUTUANTE WHATSAPP */
.btn-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.btn-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* 11. RESPONSIVIDADE PARA CELULAR */
@media (max-width: 768px) {
    #banner h1 { font-size: 2.2rem; }
    header .container { flex-direction: column; gap: 15px; }
    nav ul { 
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: rgba(14, 3, 39, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
    }
    nav ul.active {
        left: 0;
    }
    .hamburger {
        display: flex;
        position: absolute;
        right: 16px;
        top: 18px;
        z-index: 1005;
    }
    #aviso-programado { padding: 30px; margin-top: -50px; }
    .section-content { padding: 30px 0; }
    .contact-form {
        padding: 20px;
    }
    .btn-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* responsividade para celular */
@media (max-width: 480px) {
    #banner h1 { font-size: 1.8rem; }
    .titulo-sessao { font-size: 1.3rem; }
    .horarios-grid-vertical {
        grid-template-columns: 1fr; /* 1 coluna em telas muito pequenas */
        gap: 10px;
    }
    .horario-card-v {
        max-width: 100%;
    }
    .contact-form {
        padding: 15px;
    }
    .btn-submit {
        padding: 12px;
        font-size: 0.9rem;
    }
    footer {
        padding: 40px 0 20px;
        font-size: 0.9rem;
    }
}