/* Variáveis Principais */
:root {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --gold: #d4af37;
    --gold-hover: #b5952f;
    --font-title: 'Playfair Display', serif;
    --font-text: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-text); line-height: 1.6; }

/* Header e Navegação */
header { background: rgba(18, 18, 18, 0.95); padding: 20px 50px; display: flex; justify-content: space-between; align-items: center; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.logo-animada { text-align: center; animation: pulsar 3s infinite alternate; }
.logo-animada h1 { font-family: var(--font-title); color: var(--gold); font-size: 28px; letter-spacing: 2px; text-transform: uppercase; }
.logo-animada span { font-size: 12px; color: #aaa; letter-spacing: 5px; }

@keyframes pulsar {
    0% { transform: scale(1); text-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    100% { transform: scale(1.05); text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

nav ul { list-style: none; display: flex; gap: 20px; }
nav a { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
nav a:hover { color: var(--gold); }

/* Botão PWA */
#btnInstall { background-color: var(--gold); color: #000; border: none; padding: 10px 20px; font-weight: bold; border-radius: 5px; cursor: pointer; transition: 0.3s; }
#btnInstall:hover { background-color: var(--gold-hover); }

/* Slider de Fotos */
.slider-container { max-width: 100%; position: relative; margin-top: 80px; }
.slide { display: none; position: relative; }
.slide img { width: 100%; height: 80vh; object-fit: cover; filter: brightness(0.6); }
.slide-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--gold); font-family: var(--font-title); font-size: 4vw; font-weight: bold; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); text-align: center; width: 100%; }

.prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 24px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; background-color: rgba(0,0,0,0.3); }
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: var(--gold); color: #000; }

.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* Seções Gerais */
.conteudo-extra { padding: 80px 20px; text-align: center; min-height: 50vh; }
.conteudo-extra h2 { color: var(--gold); font-family: var(--font-title); font-size: 36px; margin-bottom: 20px; }

/* Agenda */
.agenda-lista { display: flex; flex-direction: column; gap: 15px; max-width: 600px; margin: 0 auto; }
.agenda-item { background: #222; padding: 20px; border-left: 5px solid var(--gold); border-radius: 4px; text-align: left; }
.agenda-item h3 { color: var(--gold); margin-bottom: 5px; }

/* Galeria Grid */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; padding: 0 10px; }
.galeria-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; cursor: pointer; border: 3px solid rgba(255, 255, 255, 0.4); }
.galeria-grid img:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5); border-color: var(--gold); }

/* Contato */
.form-contato { display: flex; flex-direction: column; gap: 15px; max-width: 500px; margin: 0 auto; }
.form-contato input, .form-contato textarea { width: 100%; padding: 15px; background: #222; border: 1px solid #444; color: #fff; border-radius: 4px; font-family: var(--font-text); }
.form-contato button { padding: 15px; background: var(--gold); color: #000; font-weight: bold; border: none; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.form-contato button:hover { background: var(--gold-hover); }

/* =========================================
   BOTÕES FLUTUANTES (Voltar ao Topo e WhatsApp)
   ========================================= */

/* Botão Voltar ao Topo (Direita) */
#btnTopo { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 99; border: none; outline: none; background-color: rgba(34, 34, 34, 0.8); color: var(--gold); cursor: pointer; padding: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 24px; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease; opacity: 0.8; }
#btnTopo:hover { background-color: rgba(212, 175, 55, 0.9); color: #000; transform: translateY(-5px); opacity: 1; }

/* Botão Animado do WhatsApp (Esquerda) */
#btn-whatsapp { position: fixed; bottom: 20px; left: 20px; width: 55px; height: 55px; background-color: transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 100; text-decoration: none; animation: pulse-whatsapp 2s infinite; transition: transform 0.3s ease; }
#btn-whatsapp svg { width: 55px; height: 55px; drop-shadow: 0 4px 12px rgba(0,0,0,0.5); }
#btn-whatsapp:hover { transform: scale(1.1); animation: none; }

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); border-radius: 50%; }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); border-radius: 50%; }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); border-radius: 50%; }
}

/* Footer */
footer { background-color: #0a0a0a; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #333; }
.dev-logo { color: #666; font-size: 14px; }
.dev-logo strong { color: var(--gold); font-family: var(--font-text); }

/* ======== RESPONSIVIDADE MOBILE ======== */
@media screen and (max-width: 768px) {
    header { 
        flex-direction: column; 
        padding: 15px 10px; 
        gap: 15px; 
    }
    
    /* Configuração do menu clássico ajustado no mobile */
    nav { width: 100%; }
    
    nav ul { 
        display: flex !important; 
        flex-wrap: wrap;
        justify-content: center; 
        gap: 10px 15px; 
    }
    
    nav a {
        font-size: 14px; 
    }
    
    .slider-container { margin-top: 120px; }
    
    footer { flex-direction: column; gap: 20px; text-align: center; }
    .slide-text { font-size: 24px; padding: 0 20px; }
    
    /* Galeria Forçada a 2 Colunas no Celular */
    .galeria-grid { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
    }
    
    /* Botões flutuantes adaptados para mobile */
    #btnTopo { width: 45px; height: 45px; font-size: 20px; bottom: 15px; right: 15px; }
    #btn-whatsapp { bottom: 15px; left: 15px; width: 50px; height: 50px; }
    #btn-whatsapp svg { width: 50px; height: 50px; }
}

/* Fundo da tela de carregamento */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #ffffff; /* Cor de fundo da tela */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que fique por cima de tudo */
    transition: opacity 0.5s ease;
}

.loader-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo do Logo */
.loader-logo {
    width: 80px; /* Ajuste o tamanho do seu logo */
    height: auto;
    position: absolute;
}

/* O Círculo Girando (Spinner) */
.spinner {
    width: 120px; /* Deve ser maior que o logo */
    height: 120px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db; /* Cor da parte que gira */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Classe para esconder o loader */
.fade-out {
    opacity: 0;
    pointer-events: none;
}