/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
    --color-black: #0a0a0a;
    --color-wine: #5e0b15;
    --color-gold: #d4af37;
    --color-white: #ffffff;
    --color-gold-hover: #f1d06e;
    --color-whatsapp: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-white);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-black);
}

/* =========================================
   2. BACKGROUND SLIDER
   ========================================= */
.background-slider {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.background-slider img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.background-slider img.active { opacity: 1; }

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(94, 11, 21, 0.6));
}

/* =========================================
   3. HOME (TITULO E BOTÕES)
   ========================================= */
/* Aumente o container para o título ter espaço lateral no PC */
.container {
    text-align: center;
    width: 95%;
    max-width: 900px; /* Aumentado para o nome Grand Divina caber */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--color-gold-hover);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    line-height: 1.2;
    /* NO PC: Força o título a nunca quebrar */
    white-space: nowrap !important;
}

header p {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: #ddd;
}

/* Esconde a quebra de linha no computador */
.mobile-break {
    display: none !important;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px;
}

.btn {
    text-decoration: none;
    color: var(--color-white);
    border: 1px solid var(--color-gold);
    padding: 15px 20px; /* Ajustado para centralizar */
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center; /* Centralização real */
    align-items: center;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}


.btn:hover {
    background: var(--color-wine);
    border-color: var(--color-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn span { 
    z-index: 2; 
    white-space: nowrap; 
    font-size: 0.8rem; 
    /* ADICIONE AS LINHAS ABAIXO: */
    display: flex;
    align-items: center;
    color: var(--color-white); /* Garante que o ícone seja branco */
}

.btn span .fa-whatsapp {
    margin-left: 8px; /* Espaço entre o texto e o ícone */
    font-size: 1rem;  /* Tamanho ajustado para parecer um caractere comum */
}

.btn .icon {
    position: absolute;
    right: 20px;
    color: var(--color-gold);
    font-size: 0.8rem;
}

/* Animação Shine */
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shine 10s infinite ease-in-out;
}

@keyframes shine {
    0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; }
}

.links .btn:nth-child(1)::after { animation-delay: 0s; }
.links .btn:nth-child(2)::after { animation-delay: 0.25s; }
.links .btn:nth-child(3)::after { animation-delay: 0.5s; }
.links .btn:nth-child(4)::after { animation-delay: 0.75s; }

/* Animações de Entrada */
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   4. MODAL DA GALERIA (CORRIGIDO)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) saturate(150%);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease; /* Ajustado para 0.8s */
}


.modal.show { display: flex; opacity: 1; }

/* CAIXA DO MODAL */
.modal-content {
    position: relative;
    width: 95%;
    max-width: 1000px;
    height: 85vh; 
    display: flex;
    flex-direction: row; 
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    background: rgba(15, 15, 15, 0.95);
    border-radius: 8px;
    overflow: visible !important;
    
    /* REGRAS DE OURO PARA NÃO PISCAR: */
    transition: all 0.8s ease; 
    opacity: 0; 
}

.modal.show .modal-content {
    opacity: 1;
}

.modal.show .cta-btn {
    animation: slideUpBtn 0.8s ease forwards;
}

.gallery-slide {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
}

/* LADO ESQUERDO: IMAGEM (60%) */
.slide-image {
    flex: 0 0 60% !important;
    width: 60% !important;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out;
}

.slide-image.fade-out {
    opacity: 0 !important;
}

.slide-image img, .slide-image video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* LADO DIREITO: TEXTO (40%) */
.slide-info {
    flex: 0 0 40% !important;
    width: 40% !important;
    padding: 30px;
    display: flex;
    flex-direction: column;
    /* justify-content: flex-start mantém o texto no topo */
    justify-content: flex-start !important; 
    background: linear-gradient(135deg, #1a0508, #000);
    border-left: 2px solid var(--color-wine);
    overflow-y: auto;
    overflow-x: hidden;
}

.slide-info h2 {
    font-family: 'Cinzel', serif;
    color: var(--color-gold);
    font-size: clamp(0.8rem, 1.6vw, 2rem); 
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    text-align: left;

    /* REGRAS DE QUEBRA INTELIGENTE */
    white-space: pre-line;       /* Permite quebra de linha se necessário */
    word-wrap: break-word;     /* Força a quebra se uma palavra for muito longa */
    overflow-wrap: break-word; /* Garante que não vaze de jeito nenhum */
    max-width: 100%;           /* Respeita o limite da borda */
    display: block;
    
}

.capacity-highlight {
    font-family: 'Cinzel', serif;
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.slide-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
    
    /* Troque 'justify' por 'left' se quiser evitar os buracos brancos */
    text-align: justify; 
    
    white-space: justify;
    /* Adiciona hifenização se você decidir manter o justify no futuro */
}

#modal-title, #modal-desc, #modal-cap, .capacity-highlight {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

/* Botão Neon */
.cta-btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--color-wine);
    color: white;
    text-decoration: none;
    border: 1px solid var(--color-gold);
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    width: fit-content;
    
    /* MÁGICA: O margin-top auto joga o botão para o fim da caixa sempre */
    margin-top: auto !important; 
    margin-bottom: 20px;
    
    position: relative;
    overflow: hidden;
    z-index: 1;
    flex-shrink: 0;
    
    /* Transições simples de cor e brilho */
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover { background: var(--color-gold); color: black; }

/* Garante a renderização do ícone do Font Awesome */
.fa-whatsapp {
    display: inline-block !important;
    font-family: "FontAwesome" !important;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Efeito Glow Botão */
@keyframes liquidGlow { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 150%; height: 300%; background: radial-gradient(circle, rgba(212, 175, 55, 0.8) 0%, transparent 50%); animation: liquidGlow 4s linear infinite; z-index: -1; }
.cta-btn::after { content: ''; position: absolute; inset: 2px; background: var(--color-wine); z-index: -1; transition: background 0.3s; }
.cta-btn:hover::after { background: transparent; }

@keyframes slideUpBtn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* LOGOS (CARROSSEL) */
#partners-logos {
    margin-top: auto;
    width: 100%;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 15px;
    background: rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
}

.partners-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    display: block;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollLogos 15s linear infinite;
}

.logo-track img {
    height: 50px;
    margin: 0 15px;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

@keyframes scrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SETAS E FECHAR */
.nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 3000 !important;
    transition: 0.3s;
}
.prev { left: -70px !important; } /* Fora da caixa no PC */
.next { right: -70px !important; } /* Fora da caixa no PC */
.nav-btn:hover { background: var(--color-wine); color: #fff; transform: translateY(-50%) scale(1.1); }

.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    color: white; font-size: 40px; font-weight: bold;
    cursor: pointer; z-index: 1100;
}

/* --- REGRA EXCLUSIVA PARA FEEDBACKS (ADAPTATIVO - DESKTOP) --- */
.modal-content.full-gallery {
    width: min-content !important; /* Força o modal a ter a largura exata da imagem */
    max-width: 90vw !important;
    height: auto !important;
    max-height: 90vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    
    /* Ajustes para o Brilho Colado */
    background: #0a0a0a !important; 
    border: none !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.5) !important;
    border-radius: 8px;
    padding: 2px; /* Reduzi para a borda ficar mais fina e delicada */
    position: relative;
    overflow: hidden !important;
    z-index: 1;
}

/* O Rastro Dourado Giratório - Velocidade ajustada para 6s (mais devagar) */
.modal-content.full-gallery::before {
    content: '';
    position: absolute;
    width: 250%; /* Aumentado para garantir cobertura em fotos verticais */
    height: 250%;
    background: conic-gradient(
        transparent, 
        var(--color-gold), 
        transparent 30%
    );
    animation: rotateGlow 6s linear infinite; /* 6 segundos para passar devagar */
    z-index: -2;
}

/* Fundo interno que define a borda */
.modal-content.full-gallery::after {
    content: '';
    position: absolute;
    inset: 1px; /* Deve ser igual ao padding do pai para a borda ser perfeita */
    background: #0a0a0a;
    border-radius: 3px;
    z-index: -1;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Esconde o texto/botão no modo feedback */
.modal-content.full-gallery .slide-info {
    display: none !important;
}

.modal-content.full-gallery .slide-image {
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important; /* REMOVIDO o espaço preto entre foto e borda */
    line-height: 0; /* Remove espaço fantasma abaixo da imagem */
}

.modal-content.full-gallery .slide-image img,
.modal-content.full-gallery .slide-image video {
    width: auto !important;
    height: auto !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    border-radius: 6px; /* Arredondamento igual ao do fundo interno */
    display: block;
}

/* Setas posicionadas sobre a foto */
.modal-content.full-gallery .prev { left: 15px !important; z-index: 10; }
.modal-content.full-gallery .next { right: 15px !important; z-index: 10; }

/* =========================================
   5. RESPONSIVIDADE MOBILE
   ========================================= */
@media (max-width: 768px) {
    .container {
        justify-content: flex-end; /* Empurra para baixo */
        padding-bottom: 100px;
    }

      header h1 { 
        /* NO MOBILE: Permite que o texto ocupe duas linhas */
        white-space: normal !important; 
        font-size: 2rem; 
        line-height: 1.1; 
        margin-bottom: 0.5rem;
        max-width: 300px; /* Força a quebra no lugar certo */
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ativa a quebra de linha entre 'DIVINA' e 'EVENTOS' no celular */
    .mobile-break {
        display: block !important; /* Ativa o <br> no celular */
    }

   .container {
        max-width: 500px; /* No celular ele pode voltar a ser estreito */
    }
    
    /* Modal Mobile */
    .modal-content {
        flex-direction: column !important;
        height: auto !important;
        max-height: 85vh !important;
        width: 95% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: #000 !important;
        display: block !important;

    }

   /* Garante que a imagem dentro do feedback mantenha a proporção original */
    .modal-content.full-gallery .slide-image img,
    .modal-content.full-gallery .slide-image video {
        height: auto !important;
        max-height: 85vh !important; /* Garante que a foto caiba na tela */
        object-fit: contain !important; /* Mostra a foto inteira sem cortar */
    }

    /* Como a altura agora é dinâmica, as setas precisam centralizar no novo tamanho */
    .modal-content.full-gallery .nav-btn {
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .modal-content.full-gallery {
        display: flex !important; /* Volta para flex para centralizar a imagem */
        justify-content: center;
        align-items: center;
    }

    .modal-content.full-gallery .slide-image {
        height: auto !important;
        max-height: 80vh !important;
    }

    .gallery-slide { flex-direction: column; height: auto; }


    .slide-image {
        flex: none !important;
        width: 100% !important;
        height: 250px !important; /* Altura fixa para garantir espaço para o texto/logos */
        position: sticky; /* Opcional: mantém a foto no topo enquanto rola o texto */
        top: 0;
        z-index: 10;
    }

   .slide-image.fade-out {
    opacity: 0 !important;

    }

    .slide-info {
        flex: none !important;
        width: 100% !important;
        padding: 20px !important;
        background: #000 !important;
        border-left: none !important;
        border-top: 2px solid var(--color-wine);
        display: flex;
        flex-direction: column;
    }

    .slide-info h2 { font-size: 1.4rem; text-align: left; }
    .slide-info p { text-align: left; }

    .cta-btn { width: 100%; margin-bottom: 30px; }

        .btn span {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        /* Ajuste de ouro: removendo o padding fixo e usando margem negativa no ícone */
        padding-right: 0 !important; 
        text-align: center;
        position: relative;
    }

    /* Centraliza o ícone do Whats como se fosse um caractere, sem empurrar o texto */
    .btn span .fa-whatsapp {
        font-size: 0.9rem !important;
        margin-left: 8px;
        display: inline-block;
    }

    /* A seta dourada fica flutuando à direita sem atrapalhar o centro */
    .btn .icon {
        position: absolute !important;
        right: 15px !important;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7rem !important;
    }


    /* Setas dentro da imagem no Mobile */
    .nav-btn {
        width: 40px !important; height: 40px !important;
        background: rgba(0,0,0,0.6) !important;
        top: 125px !important; /* Metade da altura da imagem (250px) */
    }
    .prev { left: 10px !important; }
    .next { right: 10px !important; }
    
    .close-btn { top: 10px; right: 15px; font-size: 30px; }
}

/* =========================================
   6. RODAPÉ E EXTRAS
   ========================================= */
.footer-fixed {
    position: fixed; bottom: 20px; left: 0; width: 100%;
    text-align: center; z-index: 100;
}
.footer-fixed p, 
.footer-fixed a {
    font-size: 0.5rem; 
    color: rgba(255,255,255,0.5) !important;
    letter-spacing: 1px; 
    white-space: nowrap;
    text-decoration: none !important; /* Remove o sublinhado */
    border: none !important;         /* Remove bordas residuais */
}


.version-tag {
    position: fixed; bottom: 5px; right: 5px;
    background: rgba(94, 11, 21, 0.9); color: #d4af37;
    font-size: 8px; padding: 4px 8px;
    border: 1px solid #d4af37; z-index: 9999;
}
.version-tag .tooltip-text { visibility: hidden; width: 150px; background: #111; color: #fff; position: absolute; bottom: 120%; right: 0; padding: 5px; font-size: 10px; }
.version-tag:hover .tooltip-text { visibility: visible; }
