/* public_html/assets/css/main.css - VERSÃO FINAL MENU MOBILE */

:root {
    --color-primary: #0A2A43;
    --color-gold: #D5B25C;
    --color-bg: #FAF9F6;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    --header-height: 90px;
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; font-family: var(--font-body); background-color: var(--color-bg); color: #333; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; width: 100%; }
section, main, .hero-slider, .contact-grid, .mass-container, .downloads-container, .agenda-list { flex: 1; }

/* --- HEADER FIXO --- */
/* --- HEADER FIXO & TRANSPARENTE (VERSÃO CATEDRAL) --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 10px 0; 
    
    /* O SEGREDO DA TRANSPARÊNCIA */
    background: rgba(10, 42, 67, 0.35); /* Azul bem clarinho (35%) */
    backdrop-filter: blur(15px);        /* Vidro fosco forte para ler o texto */
    -webkit-backdrop-filter: blur(15px); /* Para funcionar no iPhone */
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    height: var(--header-height);
    display: flex; align-items: center;
    transition: background 0.3s; /* Suavidade */
}

/* Efeito ao passar o mouse no header (opcional, fica mais escuro para ler melhor) */
.site-header:hover {
    background: rgba(10, 42, 67, 0.85);
}
.header-flex { 
    display: flex; justify-content: space-between; align-items: center; width: 100%; 
    flex-wrap: nowrap; 
}
.logo a { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.logo span { color: var(--color-gold); }

/* --- REGRAS DE VISIBILIDADE --- */
/* Desktop (Padrão) */
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; padding: 5px; } /* Aumentei o tamanho */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

/* Menu Desktop */
.main-nav ul { display: flex; gap: 20px; align-items: center; }
.main-nav a { 
    color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; text-transform: uppercase; 
    letter-spacing: 1px; font-weight: 700; transition: 0.3s; white-space: nowrap; 
    border-bottom: 2px solid transparent; padding-bottom: 4px; 
    text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-gold); border-bottom-color: var(--color-gold); }

/* Botão Desktop */
.desktop-only .btn-outline { 
    border: 1px solid var(--color-gold); color: var(--color-gold); 
    padding: 8px 20px; border-radius: 4px; font-weight: bold; 
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; white-space: nowrap; 
}
.desktop-only .btn-outline:hover { background: var(--color-gold); color: #000; }

/* --- HERO SLIDER --- */
.hero-slider { 
    position: relative; height: 100vh; width: 100%; background: #0A2A43; overflow: hidden; margin-top: 0; 
    display: flex; align-items: center; justify-content: center;
}
.slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; 
    display: flex; align-items: center; justify-content: center; text-align: center; 
    opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; 
    padding-top: 0; 
}
.slide.active, .hero-slider .slide:first-child { opacity: 1; z-index: 2; }

.overlay { position: absolute; inset: 0; background: rgba(10, 42, 67, 0.4); z-index: 1; }
.video-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; z-index: 0; }

.hero-content { 
    position: relative; z-index: 10; color: #fff; max-width: 800px; padding: 20px; 
    margin-top: 80px; 
}
.hero-content h1 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); line-height: 1.2; }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; text-shadow: 0 1px 5px rgba(0,0,0,0.8); font-weight: 300; }
.btn-gold { background: var(--color-gold); color: #000; padding: 15px 35px; text-decoration: none; font-weight: bold; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.btn-gold:hover { transform: translateY(-3px); background: #fff; }

/* Controles */
.slider-dots { position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; transition: 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.dot.active { background: var(--color-gold); transform: scale(1.3); border-color: var(--color-gold); }
.glass-card-container { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 20; width: 90%; max-width: 500px; text-align: center; }
.glass-card { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); padding: 15px 30px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2); display: inline-block; max-width: 100%; word-wrap: break-word; }

/* --- SEÇÃO SAGRADA & VELA --- */
.sacred-section { padding: 80px 0; background: #fff; position: relative; z-index: 5; }
.sacred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.liturgy-box { background: #f9f9f9; padding: 40px; border-radius: 4px; border-left: 4px solid var(--color-gold); }
.candle-box { text-align: center; position: relative; z-index: 10; }
#candle-container-real { position: relative; width: 80px; height: 300px; margin: 50px auto 20px; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: visible; z-index: 50; touch-action: manipulation; }
.realistic-candle { width: 40px; background: linear-gradient(to right, #fff, #f0f0f0, #ddd); border-radius: 4px 4px 0 0; position: relative; transition: height 1s linear; box-shadow: inset 0 -5px 10px rgba(0,0,0,0.1); z-index: 2; }
.realistic-candle::before { content: ''; position: absolute; top: -6px; left: 0; width: 40px; height: 12px; background: radial-gradient(#fff 40%, #eee 100%); border-radius: 50%; z-index: 3; }
.wick { width: 4px; height: 15px; background: #333; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); border-radius: 2px; z-index: 4; }
.flame-realistic-container { position: absolute; top: -35px; left: 50%; transform: translateX(-50%) scale(0); width: 30px; height: 50px; z-index: 5; transition: all 0.5s ease-out; opacity: 0; filter: blur(1px) drop-shadow(0 0 10px rgba(255, 200, 0, 0.6)); }
.flame-realistic-container:not(.hidden) { transform: translateX(-50%) scale(1); opacity: 1; }
.flame-outer { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(to bottom, rgba(255,200,0,0.8), rgba(255,100,0,0.9) 60%, rgba(255,50,0,0.7)); animation: flameWiggle 3s infinite ease-in-out, flameEnlarge 2s infinite ease-in-out alternate; transform-origin: center bottom; }
.flame-inner { position: absolute; bottom: 2px; left: 50%; width: 14px; height: 20px; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(to bottom, #fff, #80c0ff); box-shadow: 0 0 10px #fff; animation: flameJitter 0.3s infinite linear alternate; opacity: 0.9; }
.candle-base { width: 70px; height: 18px; background: #bbb; border-radius: 50%; margin-top: -9px; z-index: 1; box-shadow: 0 5px 10px rgba(0,0,0,0.3); }
@keyframes flameWiggle { 0%, 100% { transform: rotate(-2deg) translateX(-1px); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; } 25% { transform: rotate(3deg) translateX(2px); } 50% { transform: rotate(-4deg) translateX(-3px); border-radius: 40% 60% 50% 50% / 50% 70% 40% 40%; } 75% { transform: rotate(2deg) translateX(1px); } }
@keyframes flameEnlarge { 0% { height: 90%; } 100% { height: 110%; bottom: 5px; } }
@keyframes flameJitter { 0% { transform: translateX(-52%) scale(1); } 100% { transform: translateX(-48%) scale(1.05); height: 22px; } }

/* --- PÁGINAS INTERNAS --- */
.page-header { background-color: var(--color-primary); color: #fff; padding-top: calc(var(--header-height) + 80px); padding-bottom: 60px; text-align: center; margin-bottom: 40px; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; font-family: var(--font-heading); }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.2rem; }
.article-header { height: 60vh; width: 100%; position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding-bottom: 60px; margin-top: 0; }
.article-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,42,67,0.3), rgba(10,42,67,0.9)); }
.article-title-box { position: relative; z-index: 2; color: #fff; max-width: 900px; margin: 0 auto; padding: 0 20px; text-align: center; width: 100%; }
.article-title-box h1 { font-size: 3rem; line-height: 1.2; font-family: var(--font-heading); margin-top: 80px; }
.article-content { max-width: 800px; margin: -40px auto 80px; background: #fff; padding: 60px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); position: relative; z-index: 5; font-size: 1.2rem; line-height: 1.8; color: #333; width: 95%; }
.article-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }
.back-btn-container { text-align: center; margin-bottom: 60px; }

/* GRID */
.news-grid, .download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card, .download-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.news-card:hover, .download-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-image { height: 220px; width: 100%; background-size: cover; background-position: center; position: relative; }
.category-tag { position: absolute; top: 15px; right: 15px; color: #fff; padding: 6px 14px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; border-radius: 4px; }
.card-content, .card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3, .card-body h3 { font-size: 1.3rem; margin-bottom: 15px; font-family: var(--font-heading); }
.card-content h3 a { color: var(--color-primary); }
.read-more, .btn-download { font-size: 0.85rem; font-weight: 700; color: var(--color-gold); text-transform: uppercase; margin-top: auto; }
.btn-download { background: var(--color-gold); color: #0A2A43; padding: 12px; border-radius: 4px; text-align: center; }
.btn-download:hover { background: #0A2A43; color: #fff; }
.card-icon { background: #f8f9fa; height: 140px; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--color-primary); border-bottom: 1px solid #eee; }
.agenda-list, .contact-grid { margin: 60px auto; }
.event-card { display: flex; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px; border: 1px solid rgba(0,0,0,0.05); }
.date-box { background: var(--color-primary); color: #fff; width: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.day { font-size: 2rem; font-weight: 700; font-family: var(--font-heading); }
.event-details { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.info-box h3, .contact-form h3 { font-family: var(--font-heading); color: var(--color-primary); font-size: 1.8rem; margin-bottom: 20px; }
.icon-circle { width: 50px; height: 50px; background: #f4f8fb; color: var(--color-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-form { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border-top: 5px solid var(--color-gold); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #0A2A43; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-body); }
.btn-submit { width: 100%; padding: 15px; background: var(--color-primary); color: #fff; border: none; font-weight: bold; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: 0.3s; }
.btn-submit:hover { background: #0f3d61; }
.map-container { margin-top: 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); height: 300px; }
iframe { width: 100%; height: 100%; border: 0; }

/* TOAST & ACESSIBILIDADE */
.toast-container { position: fixed; top: 100px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 300px; background: #fff; border-left: 5px solid #333; box-shadow: 0 5px 15px rgba(0,0,0,0.2); padding: 15px 20px; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; animation: slideInRight 0.3s ease-out forwards; opacity: 0; }
.toast.success { border-left-color: #27ae60; } .toast.success i { color: #27ae60; }
.toast.error { border-left-color: #c0392b; } .toast.error i { color: #c0392b; }
.toast-content { display: flex; align-items: center; gap: 12px; font-weight: bold; color: #333; }
.toast-close { background: none; border: none; cursor: pointer; color: #999; font-size: 1.1rem; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }

.acc-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999999; display: flex; flex-direction: column-reverse; gap: 10px; align-items: flex-end; }
.acc-btn { width: 60px; height: 60px; border-radius: 50%; background: #0A2A43; color: #fff; border: 2px solid #D5B25C; font-size: 2rem; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.acc-btn:hover { transform: scale(1.1); }
.acc-menu { display: none; flex-direction: column; gap: 10px; margin-bottom: 5px; }
.acc-menu.show { display: flex !important; animation: fadeInUp 0.3s; }
.acc-option { width: 50px; height: 50px; border-radius: 50%; background: #fff; color: #0A2A43; border: 1px solid #ddd; font-weight: bold; cursor: pointer; font-size: 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
body.high-contrast { --color-bg: #000 !important; --color-primary: #ffff00 !important; --color-gold: #fff !important; color: #fff !important; background-color: #000 !important; }
body.high-contrast .site-header { background: #000 !important; border-bottom: 1px solid #fff; }
body.high-contrast a { color: #ffff00 !important; text-decoration: underline; }
body.high-contrast .btn-gold { background: #ffff00 !important; color: #000 !important; }
body.high-contrast .glass-card, body.high-contrast .liturgy-box, body.high-contrast .download-card, body.high-contrast .news-card, body.high-contrast .article-content, body.high-contrast .contact-form, body.high-contrast .info-box { background: #111 !important; border: 1px solid #fff !important; color: #fff !important; }
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4, body.high-contrast p, body.high-contrast strong { color: #fff !important; }

/* --- FOOTER --- */
.site-footer { background: var(--color-primary); color: #fff; padding: 60px 0 20px; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-col h3 { color: var(--color-gold); margin-bottom: 20px; font-size: 1.2rem; font-family: var(--font-heading); }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-weight: 700; }
.footer-col a { color: #aaa; transition: 0.3s; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; color: #666; }

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .site-header { background: rgba(10, 42, 67, 0.95); padding: 15px 0; }
    /* CORREÇÃO DA DUPLICIDADE: */
    .desktop-only { display: none !important; } 
    .mobile-menu-btn { display: block; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
    
    /* Menu Gaveta */
    .main-nav { 
        position: fixed; top: var(--header-height); left: 0; width: 100%; 
        background: #0A2A43; overflow: hidden; max-height: 0; 
        transition: max-height 0.4s ease-out; border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 999; 
    }
    .main-nav.open { max-height: 450px; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
    .main-nav a { display: block; padding: 15px; font-size: 1rem; }
    .mobile-only { display: block !important; } 
    
    .hero-content h1 { font-size: 2rem; margin-top: 0; }
    .sacred-grid, .contact-grid, .news-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { flex-direction: column; text-align: center; }
    
    .article-title-box h1 { font-size: 2rem; }
    .article-content { padding: 30px 20px; margin-top: -20px; width: 95%; }
    .event-card { flex-direction: column; }
    .date-box { width: 100%; flex-direction: row; gap: 10px; padding: 15px; justify-content: center; }
    
    #candle-container-real { height: 250px; margin-top: 20px; }
}