/* --- TEMA FIXO: BRANCO PURO (RESPONSIVO) --- */
:root {
    --bg-body: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    
    /* O DOURADO (Igual ao topo) */
    --accent: #b08d55;        
    --accent-dark: #8c6b3a;

    --border: #e5e5e5;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* --- NAVEGAÇÃO --- */
nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
}

.nav-flex {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    position: relative;
}

.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 48px; width: auto; }
.logo-text strong { font-family: var(--font-heading); font-size: 1.3rem; color: #000; }
.logo-text span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: block; }

.nav-links { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-links a { 
    text-decoration: none; color: var(--text-main); font-weight: 500; 
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; 
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-donativos {
    background: var(--accent);
    color: white !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}
.nav-links .nav-donativos:hover { background: var(--accent-dark) !important; color: white !important; }

.btn-menu { display: none; }

/* --- HERO --- */
.hero {
    position: relative;
    padding: 140px 0;
    text-align: center;
    background-color: #f4f4f4;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: url('images/fundo.png'); 
    background-size: cover; background-position: center;
    opacity: 0.4; filter: desaturate(20%); z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-family: var(--font-heading); font-size: 3.8rem; margin-bottom: 15px;
    color: #111; font-weight: 600; line-height: 1.1;
}
.hero p { font-size: 1.3rem; color: #444; margin-bottom: 40px; }

.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.btn-primary, .btn-outline {
    padding: 12px 32px; border-radius: 4px; text-decoration: none; font-weight: 600;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
    display: inline-block;
}
.btn-primary { background: var(--accent); color: white; border: none; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: white; border: 1px solid var(--text-main); color: var(--text-main); }
.btn-outline:hover { background: var(--text-main); color: white; }

/* --- SECÇÕES --- */
.section-spacing { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 10px; color: var(--accent); }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; font-style: italic; font-family: var(--font-heading); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }

/* --- CARDS --- */
.card {
    background: #ffffff; border: 1px solid var(--border); border-radius: 8px;
    padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s;
}
.card:hover { transform: translateY(-5px); }

.event-image { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; background: #eee; }
.event-type { font-size: 0.7rem; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.card h3 { font-family: var(--font-heading); font-size: 1.6rem; color: #222; margin: 10px 0; }
.event-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

.event-inscricao-btn {
    display: block; width: 100%; text-align: center; padding: 12px;
    border: 1px solid var(--accent); color: var(--accent);
    text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
    text-decoration: none; font-weight: 600;
}
.event-inscricao-btn:hover { background: var(--accent); color: white; }

.status-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; padding-top: 15px; border-top: 1px solid var(--border); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.green { background-color: #7a9e5c; } .yellow { background-color: #dcb059; } .red { background-color: #c46d6d; }

/* INFO CARDS (Títulos Dourados) */
.info-card h3 { font-family: var(--font-heading); font-size: 1.6rem; color: var(--accent); margin-top: 0; margin-bottom: 15px; }
.info-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }
.clean-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.clean-table th { text-align: left; border-bottom: 1px solid #333; padding: 8px 5px; font-size: 0.9rem; }
.clean-table td { border-bottom: 1px solid var(--border); padding: 10px 5px; font-size: 0.9rem; color: var(--text-muted); }
.clean-list li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }

/* --- FOOTER (DOURADO APLICADO) --- */
.footer-contact { 
    background: #ffffff; 
    border-top: 4px solid var(--accent); /* LINHA DOURADA NO TOPO */
    padding: 70px 0; 
    margin-top: 60px; 
}
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }

/* Títulos do rodapé agora são Dourados */
.contact-grid h3 { 
    font-family: var(--font-heading); 
    font-size: 1.5rem; 
    color: var(--accent); /* Cor Dourada */
    margin-bottom: 20px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-grid p { margin: 8px 0; color: var(--text-muted); }

.footer-link { color: var(--text-muted); text-decoration: none; word-break: break-all; transition: 0.3s; }
.footer-link:hover { color: var(--accent); text-decoration: underline; }

.location-link { display: block; }
.link-hint { font-size: 0.75rem; color: #aaa; margin-top: 4px; display: block; font-style: italic; }
.location-link:hover .link-hint { color: var(--accent); }

.site-login { margin-top: 20px; }
.btn-admin { background: none; border: none; color: #ccc; cursor: pointer; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.btn-admin:hover { color: var(--accent); }

/* --- ADMIN --- */
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(255,255,255,0.95); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-card { width: 90%; max-width: 400px; background: white; padding: 30px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; }
.admin-form-actions { display: flex; gap: 10px; }
.admin-form-actions button { flex: 1; }

/* --- HERO PÁGINAS INTERNAS --- */
.page-hero {
    background: #f8f5f0;
    border-bottom: 1px solid var(--border);
    padding: 60px 0 50px;
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent);
    margin: 0 0 10px;
    font-weight: 600;
}
.page-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-style: italic;
    margin: 0;
}

/* Link ativo no nav */
.nav-links .nav-active {
    color: var(--accent) !important;
    font-weight: 600;
}

/* =========================================
   ALOJAMENTO CARDS
   ========================================= */
.alojamento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.aloj-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.aloj-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.aloj-image {
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #e8e0d4;
}

.aloj-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 3px;
}

.aloj-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aloj-cap {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.aloj-cap strong { color: var(--text-main); }

.aloj-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #222;
    margin: 0 0 10px;
}

.aloj-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.aloj-features {
    list-style: none;
    padding: 0; margin: 0 0 22px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.aloj-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.aloj-features li::first-letter { color: var(--accent); font-weight: 700; }

.aloj-btn {
    display: block;
    text-align: center;
    padding: 11px 20px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.2s;
    margin-top: auto;
}
.aloj-btn:hover { background: var(--accent); color: white; }

/* =========================================
   � TABELA DE AGENDA
   ========================================= */
.agenda-tabela-section { margin-bottom: 20px; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.agenda-tabela-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.agenda-tabela {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.93rem;
}

.agenda-tabela thead {
    background: #f8f5f0;
}

.agenda-tabela th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.agenda-tabela td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.agenda-tabela tbody tr:last-child td { border-bottom: none; }

.agenda-tabela tbody tr:hover { background: #fdfaf6; }

.agenda-tabela .evento-nome {
    font-weight: 600;
    color: var(--text-main);
}

.agenda-tabela .evento-data {
    color: var(--text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.tabela-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f0ebe2;
    color: var(--accent-dark);
}

.tabela-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tabela-status .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.tabela-status .dot.green  { background: #28a745; }
.tabela-status .dot.yellow { background: #ffc107; }
.tabela-status .dot.red    { background: #dc3545; }

.tabela-inscricao-btn {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 0.82rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.tabela-inscricao-btn:hover { background: var(--accent-dark); }
.tabela-inscricao-btn.disabled {
    background: #ddd;
    color: #999;
    pointer-events: none;
}

/* =========================================   📅 CALENDÁRIO DE DISPONIBILIDADE
   ========================================= */
.calendario-section { margin-top: 20px; }

.cal-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.cal-legenda {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.cal-leg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cal-dot {
    width: 14px; height: 14px;
    border-radius: 3px;
    display: inline-block;
}
.cal-dot.disponivel { background: #d4edda; border: 1px solid #aad4b5; }
.cal-dot.ocupado    { background: #f5c2c7; border: 1px solid #e8a0a8; }
.cal-dot.passado    { background: #f0f0f0; border: 1px solid #ddd; }

.cal-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.cal-nav-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--text-main);
    transition: background 0.2s, border-color 0.2s;
}
.cal-nav-btn:hover { background: #f8f5f0; border-color: var(--accent); }

.cal-wrap {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.cal-mes {
    flex: 1;
    min-width: 340px;
    max-width: 480px;
}

.cal-mes-titulo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-main);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.cal-dia-header {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 2px;
}

.cal-dia {
    text-align: center;
    padding: 12px 4px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: default;
    line-height: 1;
    transition: opacity 0.15s;
}
.cal-dia.vazio { background: transparent; }
.cal-dia.passado {
    background: #f7f7f7;
    color: #bbb;
}
.cal-dia.disponivel {
    background: #eaf6ec;
    color: #2d6e3e;
    font-weight: 500;
}
.cal-dia.disponivel:hover { background: #c8eacd; }
.cal-dia.ocupado {
    background: #fce4e6;
    color: #a52834;
    font-weight: 600;
    position: relative;
}
.cal-dia.ocupado::after {
    content: "";
    display: block;
    width: 4px; height: 4px;
    background: #c0392b;
    border-radius: 50%;
    margin: 2px auto 0;
}
.cal-dia.hoje {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    font-weight: 700;
}

.cal-dia.ocupado { cursor: pointer; }

.cal-popup {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 12px 16px;
    min-width: 180px;
    max-width: 240px;
    z-index: 9999;
    animation: fadeInUp 0.15s ease;
}
.cal-popup-motivo {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 4px;
}
.cal-popup-datas {
    font-size: 0.82rem;
    color: var(--text-muted);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Lista de períodos ocupados no painel admin */
.ocup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fdfaf6;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
    gap: 12px;
}
.ocup-motivo {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}
.ocup-del-btn {
    background: white;
    border: 1px solid #e8a0a8;
    color: #a52834;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background 0.15s;
}
.ocup-del-btn:hover { background: #fce4e6; }

/* =========================================   �📱 MOBILE & TABLET (Menu Corrigido)
   ========================================= */
@media (max-width: 768px) {
    .btn-menu {
        display: block;
        background: transparent;
        border: 1px solid var(--border);
        padding: 8px 16px;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-main);
        cursor: pointer;
        border-radius: 4px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 1px solid var(--border);
        gap: 15px;
        z-index: 2000;
    }

    .nav-links.active { display: flex; }

    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 10px; font-size: 1rem; border-bottom: 1px solid #f0f0f0; }

    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 20px; }
    .btn-primary, .btn-outline { width: 100%; }
    .grid-2 { grid-template-columns: 1fr; }
    .section-spacing { padding: 60px 0; }
    .card { padding: 20px; }
    .contact-grid { text-align: center; }
    .agenda-tabela th, .agenda-tabela td { padding: 12px 10px; font-size: 0.85rem; }
    .col-inscricao { display: none; }
}
