:root {
    --bg: #faf6ee;
    --muted: #94a3b8;
    --acc2: #ffd21f;
    --text: #003265;
}

/* Reset b�sico */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

/* Header / Navega��o */
header {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(180%) blur(50px);
    background: rgba(250, 246, 238, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    z-index: 10;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 800;
    letter-spacing: .2px;
}

.brand span {
    font-size: 1.05rem;
}

.menu {
    display: flex;
    gap: 18px;
    align-items: center;
}

.menu a {
    color: var(--text);
    text-decoration: none;
    font-size: .95rem;
    opacity: .9;
}

.menu a:hover {
    opacity: 1;
}

/* Bot�o */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--acc2);
    color: #003265;
    text-decoration: none;
    font-weight: 600;
}

/* Hero */
.hero {
    padding: 320px 0 80px;
    border-bottom: 1px solid rgba(45, 75, 118, 0.15);
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("imagens/fundo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 2rem;
    margin: 0 0 8px;
}

.hero p {
    color: var(--muted);
    max-width: 780px;
}

/* Se��es e t�tulos */
section {
    padding: 48px 0;
    border-bottom: 1px solid rgba(84, 126, 186, 0.12);
}

h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
}

/* Cards gen�ricos (usado em Eventos + Voluntariado) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: #003366;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 16px;
    color: #faf6ee;
}

/* Utilit�rios */
.muted {
    color: var(--muted);
}

.two-col {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
}

@media (max-width: 800px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Formul�rio */
label {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    margin: .5rem 0 .2rem;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: white;
    color: var(--text);
}

textarea {
    min-height: 120px;
}

.mt-12 {
    margin-top: 12px;
}

/* Rodap� */
footer {
    padding: 28px 0;
    color: var(--muted);
}

/* Ajustes finos espec�ficos da se��o de eventos */
#events-container .card h3 {
    margin-bottom: 8px;
}

#events-container .card p {
    margin: 4px 0;
}

/* Bot�o Ver descri��o */
.btn-desc {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: var(--acc2);
    color: #003265;
    font-weight: 600;
    font-size: .9rem;
}

.btn-desc:hover {
    filter: brightness(.92);
}

/* �rea expandida da descri��o */
.descricao-wrapper {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 10px;
}

.menu a#login-link,
.menu a#admin-link {
    font-weight: 600;
}

.menu a#logout-link {
    color: #b91c1c;
}

.btn-outline {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid #0b3a6f;
    color: #0b3a6f;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline:hover {
    background: #0b3a6f;
    color: #fff;
}

/* Card de estado vazio (mais harmônico) */
.card-empty {
    background: #fff9e6;
    /* amarelo bem claro */
    border-left: 6px solid #ffd21f;
    border-radius: 14px;
    padding: 16px;
}

/* Texto */
.card-empty h3,
.card-empty p {
    color: #003265;
}

.card-empty p {
    opacity: 0.8;
}

.botao-igreja {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== MOBILE HEADER FIX ====== */
@media (max-width: 768px) {

    header .container {
        padding: 0 14px;
    }

    header nav {
        display: flex;
        flex-direction: column;
        /* empilha brand + menu */
        align-items: center;
        gap: 10px;
    }

    header nav .brand {
        width: 100%;
        text-align: center;
    }

    header nav .brand span {
        display: block;
        font-size: 20px;
        line-height: 1.15;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    header nav .menu {
        width: 100%;
        max-width: 420px;
        /* centraliza e limita largura */
        margin: 0 auto;
        /* centraliza o bloco */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 14px;
    }

    header nav .menu a {
        font-size: 16px;
        padding: 6px 8px;
    }

    /* Ícone do perfil */
    header nav .menu img.botao-igreja {
        width: 28px;
        height: 28px;
        object-fit: contain;
        display: block;
    }
}