/* --- MODERN CSS RESET & BASIC SETUP --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: #475569; /* Azul-acinzentado MÉDIO */
    background-color: #FFFFFF; /* Fundo Branco */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Import Montserrat for Headings */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@300;400;700&display=swap');

/* Apply Montserrat to Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #1E293B; /* Azul-acinzentado mais escuro para títulos */
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 2rem; color: #004a91; text-align: center;} /* Azul vibrante para títulos de seção */
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #0056b3; } /* Azul vibrante para subtítulos */
h4 { font-size: 1.15rem; margin-bottom: 0.75rem; color: #0056b3; font-weight: 600; } /* Azul vibrante para cards */

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
}

a {
    color: #0056b3; /* Links mantêm azul vibrante */
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #004a91;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITIES & LAYOUT --- */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Espaçamentos Específicos das Seções */
main section#informacoes { padding: 3rem 0; }
main section#sobre { padding: 3rem 0; background-color: #FFFFFF; }
main section#avisos { padding: 3rem 0; }
main section#devocional { padding: 3rem 0; background-color: #FFFFFF; }
main section#midia { padding: 3rem 0; }

/* --- HEADER --- */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #E2E8F0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 80px;
    transition: transform 0.3s ease;
}
header .logo img:hover {
    transform: scale(1.05);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav li {
    margin-left: 3rem;
}

header nav a {
    color: #334155; /* Cor do link do menu (azul-acinzentado escuro) */
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0056b3;
    transition: width 0.3s ease;
}

header nav a:hover {
    color: #0056b3; /* Azul vibrante no hover */
}
header nav a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    height: 75vh;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('imagens/Banner principal.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem; /* Tamanho Desktop */
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem; /* Tamanho Desktop */
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* --- BUTTONS --- */
.cta-button, .cta-button-outline {
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button {
    background-color: #0056b3;
    color: #fff; /* Texto branco no estado normal */
    border-color: #0056b3;
}
.cta-button:hover {
    background-color: #004a91;
    border-color: #004a91;
    color: #fff; /* Garante texto branco no hover */
}

.cta-button-outline {
    background-color: transparent;
    color: #0056b3;
    border-color: #0056b3;
}
.cta-button-outline:hover {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 74, 145, 0.15);
}


/* --- INFO BOXES & CARDS (General Style) --- */
.info-box, .aviso-card, .ministerio-card, .devocional-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #E2E8F0;
}
.info-box:hover, .aviso-card:hover, .ministerio-card:hover, .devocional-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* --- INFO BOXES SECTION (#informacoes) --- */
#informacoes {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 0;
}
#informacoes .info-box {
    width: 48%;
    text-align: center;
}
#informacoes .info-box h3 { font-size: 1.4rem; }
#informacoes .info-box p { font-size: 0.95rem; color: #475569; }
#informacoes .info-box p strong { color: #334155; }

.icon-wrapper {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #E0F5FF 0%, #EFF8FF 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 74, 145, 0.1);
}
.icon-wrapper svg {
    width: 30px;
    height: 30px;
    fill: #0056b3;
}


/* --- SOBRE NÓS SECTION --- */
#sobre { padding: 3rem 0; background-color: #fff; }
.sobre-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.sobre-content img {
    width: 40%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.sobre-content h3 {
    font-size: 1.8rem;
    color: #004a91;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.sobre-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0056b3;
}


/* --- AVISOS SECTION --- */
#avisos { padding: 3rem 0; }
.avisos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.aviso-card {
    padding: 2rem;
    text-align: center;
}
.aviso-card h4 { font-size: 1.2rem; }


/* --- DEVOCIONAL SECTION (Estilo Card) --- */
#devocional {
    padding: 3rem 0;
    background-color: #fff;
}

.devocional-card {
    padding: 3rem;
    max-width: 800px;
    margin: 2rem auto 0 auto;
    text-align: center;
}

.devocional-card h3 {
    font-size: 1.6rem;
    color: #475569;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.devocional-card p {
    font-size: 1.1rem;
    color: #64748B;
    margin-bottom: 0;
}

/* --- MÍDIA SECTION --- */
#midia { padding: 3rem 0; }
#midia > .container > p { margin-bottom: 3rem; color: #475569; text-align: center; }

#midia h3 {
    font-size: 1.5rem;
    color: #0056b3;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E2E8F0;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}


.video-grid {
    text-align: center;
    margin-bottom: 4rem;
}
.video-grid iframe {
    width: 100%;            /* Ocupa a largura disponível */
    max-width: 800px;       /* Mas trava em 800px para não ficar gigante */
    aspect-ratio: 16 / 9;   /* <--- O SEGREDO: Força o formato retangular correto do YouTube */
    height: auto;           /* Garante que a altura se ajuste automaticamente */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.foto-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.07);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.foto-wrapper:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.fotos-grid img {
    width: 100%;
    height: 220px; /* Altura Desktop */
    object-fit: cover;
    border-radius: 0;
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.foto-wrapper:hover img {
    transform: scale(1.08);
}


/* --- FOOTER --- */
footer#contato {
    background-color: #1E293B;
    color: #94A3B8;
    padding: 5rem 0 0 0;
    text-align: left;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-info .logo-footer {
    height: 70px;
    margin-bottom: 2rem;
}
.footer-info h4 {
    color: #E2E8F0;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.footer-info p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #94A3B8;
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #334155;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: #E2E8F0;
}
.social-icons a:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}
.social-icons a:hover svg { fill: #fff; }

.footer-map iframe {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    border: 0;
    filter: grayscale(20%);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #334155;
    padding: 2rem 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #94A3B8;
}
.footer-bottom-links a {
    color: #94A3B8;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}
.footer-bottom-links a:hover { color: #fff; }

/* --- CRÉDITOS WSOUZAMARKETING --- */
.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #94A3B8;
    margin-left: 1.5rem;
}
.developer-credit strong {
    color: #E2E8F0; /* Destaca o nome da agência */
    font-weight: 700;
}
.agency-logo {
    height: 25px; /* Tamanho igual ao da farmácia */
    margin-left: 5px;
    opacity: 0.85;
    transition: 0.3s;
}
.agency-logo:hover {
    opacity: 1;
}

/* --- PAGE STYLES (Ministérios, Oração, Contribuir, Termos, Política) --- */
#ministerios-page, #form-page, #contribuir-page, #legal-page {
    padding: 3rem 0; /* Padding reduzido */
    min-height: 60vh;
}

#ministerios-page > p, #form-page > p, #contribuir-page > p, #legal-page > p:first-of-type {
    text-align: center;
    max-width: 700px;
    margin: -1rem auto 3.5rem auto;
    font-size: 1.1rem;
    color: #64748B;
}

/* Ministérios Page */
.ministerio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.ministerio-card { padding: 2rem; }
.ministerio-card p { min-height: 0; }
.info-label { font-weight: 600; color: #1E293B; margin-top: 0.5rem; display: inline-block; }

/* Oração Page (Form) */
.prayer-form {
    max-width: 750px;
    margin: 2rem auto 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border: 1px solid #E2E8F0;
}
.form-group { margin-bottom: 1.75rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #334155;
    font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #CBD5E0;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #334155;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group-checkbox { display: flex; align-items: center; margin-bottom: 2rem; }
.form-group-checkbox input { margin-right: 0.8rem; width: 18px; height: 18px; accent-color: #0056b3; }
.form-group-checkbox label { font-weight: 400; color: #334155; margin-bottom: 0; }
.prayer-form .cta-button { width: 100%; text-align: center; }

/* Contribuir Page */
.contribuir-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.contribuir-grid .info-box { width: 100%; text-align: left; }
.contribuir-grid .info-box .icon-wrapper { margin-left: 0; }
.contribuir-grid .info-box p { margin-bottom: 1rem; }
.contribuir-grid .info-box strong { color: #1E293B; }
.chave-pix {
    font-weight: 600;
    font-size: 1.1rem;
    color: #004a91;
    background: #F8FAFC;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1.5rem !important;
    border: 1px dashed #CBD5E0;
    display: block;
}
.contribuir-grid .info-box .cta-button-outline { margin-top: 1rem; }

/* Legal Pages (Termos, Política) */
#legal-page h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E2E8F0;
    color: #004a91;
}
#legal-page p { margin-bottom: 1rem; }
#legal-page strong { color: #1E293B; }

/* ESTILOS DO COUNTDOWN TIMER */
#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    min-width: 60px;
    border: 1px solid #e2e8f0;
}

.timer-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.timer-label {
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#timer-expired {
    /* Estilos definidos inline no HTML */
}
/* FIM DOS ESTILOS DO COUNTDOWN TIMER */

/* ESTILOS DO POP-UP DE COOKIES */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #334155;
    color: #E2E8F0;
    padding: 1rem 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none; /* JS controla a exibição */
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

#cookie-consent-banner p {
    margin-bottom: 0;
    line-height: 1.5;
}

#cookie-consent-banner a {
    color: #90cdf4;
    text-decoration: underline;
    font-weight: 600;
}
#cookie-consent-banner a:hover {
    color: #fff;
}

#cookie-consent-banner .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    white-space: nowrap;
}
/* FIM DOS ESTILOS DO POP-UP */


/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .container { max-width: 960px; }
    header nav li { margin-left: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-map { order: -1; }
    .footer-info { text-align: center; }
    .footer-info .logo-footer { margin-left: auto; margin-right: auto; }
    .social-icons { justify-content: center; }
    .sobre-content { gap: 2rem; }
    .sobre-content img { width: 35%; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .hero-content h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 1.5rem;}

    header .container { flex-direction: column; gap: 1rem; }
    header nav ul { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
    header nav li { margin-left: 0; }
    header nav a { font-size: 0.95rem; }

    main section:not(.hero),
    main section#informacoes,
    main section#sobre,
    main section#avisos,
    main section#devocional,
    main section#midia,
    #ministerios-page,
    #form-page,
    #contribuir-page,
    #legal-page {
        padding: 2.5rem 0;
    }

    #informacoes { flex-direction: column; gap: 1.5rem; }
    #informacoes .info-box { width: 100%; padding: 2rem; }

    .sobre-content {
        flex-direction: column;
        text-align: center;
    }
    .sobre-content > div {
         text-align: center;
    }
    .sobre-content img {
         width: 70%;
         max-width: 300px;
         margin-bottom: 1.5rem;
         margin-left: auto;
         margin-right: auto;
    }
    .sobre-content h3::after {
         left: 50%;
         transform: translateX(-50%);
    }

    .avisos-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .fotos-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .fotos-grid img { height: 200px; } /* Altura mobile média */

    .ministerio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contribuir-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .footer-bottom .container { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-bottom-links { margin-top: 0.5rem; }
    .footer-bottom-links a { margin: 0 0.75rem; }
    
    /* Ajuste mobile para o crédito */
    .developer-credit { margin-left: 0; margin-top: 0.5rem; }

    /* Estilo mobile do pop-up de cookies */
    #cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    #cookie-consent-banner .cta-button {
        margin-top: 1rem;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-content h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .hero { height: 65vh; }
    .hero-content p { font-size: 1rem; }

    .cta-button, .cta-button-outline { padding: 0.8rem 1.5rem; font-size: 0.85rem; }

    .fotos-grid { grid-template-columns: 1fr; }
    .fotos-grid img { height: 220px; } /* Altura mobile pequena */

    .prayer-form { padding: 2rem; }
}