/* Global Styles */
body {
    font-family: 'Josefin Sans', sans-serif;
    /* Default text font */
}

/* Typography */
.font-display {
    font-family: 'Montserrat', sans-serif;
    /* For titles and headings */
}

/* Buttons */
.btn-cta-small {
    background: linear-gradient(90deg, #C9A227, #E8D5A3, #D4AF37);
    color: #0a0a0a;
    /* Dark text for contrast */
    padding: 10px 20px;
    border-radius: 5px;
    /* Slightly rounded corners */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    /* Consistent with nav */
}

.btn-cta-small:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.6);
}

.btn-main-gold {
    background: linear-gradient(90deg, #C9A227, #E8D5A3, #D4AF37);
    color: #0a0a0a;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.btn-main-gold:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.8);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.btn-outline-white:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid rgba(201, 162, 39, 0.5);
    color: #C9A227;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.btn-outline-gold:hover {
    border-color: #C9A227;
    background: rgba(201, 162, 39, 0.1);
}

/* Hero Carousel Card Fixed Size */
.hero-card-item {
    width: 365px;
    height: 465px;
    border-radius: 15px;
    overflow: hidden;
    /* Garante que o conteúdo seja cortado pelas bordas arredondadas */
}

.hero-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Garante que a imagem preencha o card sem distorcer */
    display: block;
    /* Remove qualquer espaço extra que o navegador possa adicionar */
}

/* Responsividade Mobile - Foco em Precisão (Desktop Mantido Intacto) */
@media (max-width: 768px) {

    /* 1. Cards do Hero reduzidos em mais 15% para dar respiro ao fundo */
    .hero-card-item {
        width: 109px !important;
        /* 128px * 0.85 */
        height: 145px !important;
        /* 170px * 0.85 */
    }

    /* 2. Botões de ação do Hero com escala reduzida */
    .btn-main-gold,
    .btn-outline-white {
        padding: 10px 18px !important;
        font-size: 10px !important;
        letter-spacing: 1px !important;
        width: 100% !important;
        /* Faz os botões ocuparem o espaço total horizontalmente */
    }

    .hero-action-buttons {
        justify-content: space-between !important;
        /* Distribui os botões horizontalmente */
    }

    /* 3. Header: Inverter Posição Hamburger e Botão */
    header .container {
        display: flex !important;
        justify-content: space-between !important;
    }

    .brand-logo-text {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        margin-right: 12px;
    }

    header button.lg\:hidden {
        order: 3;
    }

    /* Correção do Botão Header (CTAs quebrados) */
    .btn-cta-small {
        padding: 8px 12px !important;
        font-size: 9px !important;
        white-space: nowrap;
    }

    /* 5. Engenharia de Layout do Hero Mobile */
    .hero-bottom-controls {
        flex-direction: column !important;
        gap: 25px !important;
        bottom: 30px !important;
    }

    .hero-action-buttons {
        /* Ajuste para que os botões fiquem lado a lado */
        width: 100% !important;
        /* Ocupa a largura total */
        flex-direction: row !important;
        /* Alinha horizontalmente */
        order: 2;
        /* Botões ficam abaixo da barra */
    }

    .hero-action-buttons a {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-progress-container {
        width: 100% !important;
        order: 1;
        /* Barra fica acima dos botões */
    }

    /* 6. Splash Screen Mobile - Centralização e Lado a Lado */
    .brand-placeholder {
        font-size: 1.6rem !important;
        /* Ajuste para caber em uma linha */
        text-align: center !important;
        white-space: nowrap !important;
    }

    #splash-text {
        text-align: center !important;
    }

    /* 7. Reordenar Destaque no Mobile: Card -> Miniaturas -> Info */
    .featured-grid-mobile {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 8. Ajustes de Espaçamento Hero (Evitar sobreposição de texto e cards) */
    .hud-content {
        transform: translateY(-8vh);
        /* Sobe o texto em aproximadamente 8-10% da altura da tela */
    }

    #hero-selector-wrapper {
        transform: translateY(20vh) !important;
        /* Baixa o carrossel (original era 15vh + 10vh adicionais) */
    }
}

/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.brand-placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    /* Adjust as needed */
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: splashPulse 2s ease-in-out infinite;
}

#splash-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(201, 162, 39, 0.15);
    border-radius: 2px;
    margin-top: 32px;
    overflow: hidden;
}

#splash-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #C9A227, #E8D5A3, #D4AF37);
    border-radius: 2px;
    animation: splashProgress 2.5s ease-out forwards;
}

#splash-text {
    margin-top: 16px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(201, 162, 39, 0.5);
    animation: splashFadeIn 1s ease 0.3s both;
}

@keyframes splashPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes splashProgress {
    0% {
        width: 0%;
    }

    30% {
        width: 45%;
    }

    60% {
        width: 70%;
    }

    90% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Correção Crítica de Botões Flutuantes no Celular */
@media (max-width: 640px) {
    .floating-actions {
        bottom: 20px;
        left: 20px;
        right: 20px;
        flex-direction: row-reverse;
        /* Inverte a ordem visual */
        justify-content: space-between;
        /* Um em cada ponta */
        pointer-events: none;
        /* Permite clicar no que está atrás se necessário */
    }

    .btn-float {
        pointer-events: auto;
        /* Reativa o clique apenas nos botões */
        width: 48px;
        /* Ajuste leve no tamanho para mobile */
        height: 48px;
    }
}

.btn-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Lógica de Visibilidade do Botão Subir: Escondido por padrão */
#scrollToTop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.btn-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
}

.btn-scroll-top {
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-scroll-top:hover {
    background-color: #1a1a1a;
    border-color: white;
}

/* Mobile Menu Drawer */
#mobile-menu-overlay {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 80%;
    /* Ocupa 80% da largura no celular */
    max-width: 320px;
    height: calc(100vh - 20px);
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    /* Borda dourada HUD */
    z-index: 999999;
    display: none;
    flex-direction: column;
    padding: 30px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Ajuste para o conteúdo do menu mobile */
#mobile-menu-overlay .mobile-nav-content {
    max-height: calc(100vh - 120px);
    /* Deixa espaço para o botão de fechar e um pouco de respiro */
    overflow-y: auto;
    /* Adiciona scroll se o conteúdo exceder a altura */
}

.mobile-nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    transition: all 0.3s;
    /* Mantém a transição para hover/active */
    opacity: 1;
    /* Garante que os links estejam visíveis por padrão */
}

.mobile-nav-link:active {
    color: #C9A227;
    padding-left: 10px;
}

.close-menu-btn {
    align-self: flex-end;
    margin-bottom: 40px;
    color: #C9A227;
    background: none;
    border: none;
}