/* ===================================================================
   NAVBAR DO SITE PÚBLICO — Igreja Filhos da Promessa
   Compartilhado entre index.php raiz, /loja/*, /evento/*, etc
   =================================================================== */

.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0 !important;
    min-height: 90px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Espaço pro conteúdo embaixo da navbar fixa */
body { padding-top: 90px; }

.navbar-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1400px !important;   /* segue a margem do site */
    margin: 0 auto !important;
    padding: 0 2rem;
    height: 90px;
}

/* Esquerda: logo + redes coladinhas */
.navbar-left {
    display: flex !important;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    flex-grow: 0 !important;
}

/* Spacer flexível que empurra o menu para a direita */
.navbar-spacer {
    flex: 1 1 auto !important;
    min-width: 2rem;
}

/* Direita: menu — margin-left auto empurra para o canto direito */
.navbar-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    flex-shrink: 0;
    flex-grow: 0 !important;
    margin-left: auto !important;
}

.navbar-right .menu-desktop {
    display: none;
}
@media (min-width: 992px) {
    .navbar-right .menu-desktop {
        display: flex !important;
        align-items: center;
    }
}

.navbar-right .navbar-nav {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
}
/* Cor padrão dos itens do menu */
.navbar-nav .nav-link {
    color: #2c2c2c;
}

/* Logo controlado (não pode passar de 70px de altura, nunca!) */
.logo-vertical {
    display: flex;
    align-items: center;
    max-height: 70px;
}
.logo-vertical a {
    display: flex;
    align-items: center;
    max-height: 70px;
    line-height: 1;
}
.logo-vertical img {
    max-height: 70px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}
.logo-placeholder {
    font-size: 2.5rem;
    color: var(--cor-primaria, #C41E3A);
}

/* Redes sociais — estilo "baixo relevo" cinza, ganham cor no hover */
.redes-sociais {
    display: flex;
    gap: .4rem;
    align-items: center;
}
.rede-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: .95rem;
    background: #ececec;
    color: #6c757d;
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, .08),
        inset -2px -2px 4px rgba(255, 255, 255, .8);
    transition: background-color .25s ease, color .25s ease,
                transform .15s ease, box-shadow .25s ease;
}
.rede-social:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.rede-social.facebook:hover  { background: #1877f2; }
.rede-social.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.rede-social.youtube:hover   { background: #ff0000; }
.rede-social.whatsapp:hover  { background: #25d366; }
.rede-social.email:hover     { background: #0078d4; }
.rede-social.phone:hover     { background: #C41E3A; }

/* Itens do menu */
.navbar-nav .nav-link {
    padding: .5rem 1.1rem !important;
    border-radius: 100px;
    transition: all .15s ease;
    font-weight: 500;
}
.navbar-nav .nav-link:hover {
    background: rgba(196, 30, 58, .08);
    color: var(--cor-primaria, #C41E3A) !important;
}

/* Toggle mobile */
.navbar-toggler {
    border: 0;
    padding: .4rem;
}
.navbar-toggler:focus { box-shadow: none; }

/* Responsivo */
@media (max-width: 991px) {
    .navbar-container { padding: 0 1rem; }
    .logo-vertical img { max-height: 50px !important; }
    .navbar-left { gap: 15px; }
    .redes-sociais { display: none !important; }
}

@media (max-width: 576px) {
    .navbar-container { padding: 0 .75rem; }
    .logo-vertical img { max-height: 44px !important; }
}
