/* Variáveis CSS */
:root {
    --primary-color: #0d6efd; /* Azul Padrão Bootstrap */
    --secundary-color: #F1870F; /* Laranja forte para Doação (Cor dos links/texto) */
    --whatsapp-color: #25d366; /* Verde WhatsApp */
    /* NOVAS VARIÁVEIS PARA A NAV */
    --nav-initial-bg: #ffffff; /* Fundo branco inicial */
    --nav-padding-y: 1rem; /* Padding vertical aumentado */
    --button-nav-bg: #25a2af; /* Novo Azul/Ciano para o Botão "Doe Agora" */
}

@font-face {
    font-family: 'poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'poppins';
    src: url('../fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Estilo Base */
*{
    font-family: 'poppins', sans-serif;
}

/* ---------------------------------------------------------------------- */
/* ESTILOS DA BARRA DE NAVEGAÇÃO */
/* ---------------------------------------------------------------------- */

.container{
    max-width: 1300px;
}

.navbar {
    /* Usando variáveis para o fundo e padding */
    background-color: var(--nav-initial-bg) !important; /* Fundo Branco (Anulando bg-dark) */
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: background-color 0.3s;
    z-index: 1050; 
    /* Mais Padding Vertical */
    font-size: 1.5rem;
}

/* Ajusta as cores do texto da navegação e logo para Laranja (donate-color) */
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .text-brand-link, /* Classe para links e logo não-Bootstrap que precisam ser Laranja */
.navbar a.text-white {
    color: var(--secundary-color) !important; 
}

/* Garante que o link ativo no nav fique visível no fundo branco */
.navbar .nav-link.active {
    color: var(--primary-color) !important; 
    font-weight: bold;
}

.navbar .nav-item .nav-link:hover {
    color: #922a04 !important; /* Laranja mais claro (variaçâo de --secundary-color) */
    transition: color 0.2s ease; 
}

.navbar .nav-item .nav-link {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
    font-weight: bold;
}

.navbar .nav-img {
    margin: 0 5px 0 20px;
}

/* Estilo do Botão de Doação na Navbar (Azul/Ciano com Texto Branco) */
.btn-donate-nav {
    background-color: var(--button-nav-bg) !important;
    border-color: var(--button-nav-bg) !important;
    color: #ffffff !important; /* Texto branco */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 50rem !important; /* Arredondado - rounded-pill */
    padding: 0.5rem 1.5rem !important;
    font-size: 1.5rem !important;
}

.btn-donate-nav:hover {
    background-color: #1f8a95 !important; 
    border-color: #1f8a95 !important; 
    transform: translateY(-1px);
}

.btn-donate-nav:active {
    background-color: #00000000 !important; 
    color: #000000 !important;
    border-color: #1f8a95 !important; 
    border: 4px solid #1f8a95 !important;
}

.navbar.scrolled {
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

/* ---------------------------------------------------------------------- */
/* ESTILOS DA HERO SECTION (CARROSSEL) */
/* ---------------------------------------------------------------------- */

.hero-section {
    height: 100vh;
    position: relative;
}

.logo-instituto-topo{
    width: 30%;
    top: 20%;
    left: 90%;
    position: absolute;

}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 53%;
}

/* Overlay para escurecer a imagem e destacar o texto */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.37);
    z-index: 1;
}

/* Garante que o conteúdo do texto fique acima do overlay */
.carousel-caption {
    z-index: 2;
    color: white;
    padding: 0; /* Remove padding padrão do Bootstrap */
}

/* Estilo do Botão de Doação (no carrossel) */
.btn-donate {
    background-image: linear-gradient(to right, #F4F4F4, #d6d6d6);
    color: var(--secundary-color);
    font-weight: 900;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1.5rem;
    pointer-events: none;
    border: none;
}

.btn-donate-container {
    position: relative;
    padding-top: 50px;
    display: inline-block;
}

.btn-donate-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -5%;
    width: 80px;
    height: 80px;
}

.btn-donate-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.btn-donate-link-wrapper:hover .btn-donate-icon {
    transform: translateX(-50%) translateY(-10px);
    transition: transform 0.2s ease;
}



.btn-donate:hover {
    color: var(--secundary-color);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------- */
/* ÍCONE FLUTUANTE */
/* ---------------------------------------------------------------------- */

/* Ícone flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1);
}


.carousel-caption .display-4,
.carousel-caption .lead {
    color: white !important;
}

/* Estilo para a caixa de depoimento branca */
.depoimento-box {
    background-color: #ffffff; /* Fundo branco */
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.depoimento-box:hover {
    transform: translateY(-5px); /* Efeito de elevação leve no hover */
}

/* Ajuste para o texto principal do depoimento */
.depoimento-box p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Garante que o texto dentro da caixa de depoimento seja escuro */
.depoimento-box .text-dark {
    color: #343a40 !important; 
}

/* Container principal para o botão e o chat */
.whatsapp-chat-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    /* Adiciona transição para suavizar a mudança de estado */
    transition: all 0.4s ease-in-out; 
}

/* Botão flutuante (a bolinha) */
.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde WhatsApp */
    color: #FFF;
    border-radius: 50%; /* Faz ser uma bolinha */
    text-align: center;
    font-size: 30px;
    line-height: 60px; /* Centraliza verticalmente o ícone */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    display: flex; /* Para centralizar o ícone com flexbox */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease; /* Transição para o hover */
}

.whatsapp-float-btn:hover {
    transform: scale(1.05);
}

.whatsapp-float-btn i {
    /* Garante que o ícone Boxicons tenha um tamanho adequado */
    font-size: 30px; 
}

/* Caixa de diálogo (o chat em si) */
.chat-dialog {
    position: absolute; /* Posiciona relativo ao container */
    bottom: 0;
    right: 0;
    width: 60px; /* Começa com o tamanho do botão */
    height: 60px; /* Começa com o tamanho do botão */
    background-color: #f7f7f7; /* Cor de fundo da caixa */
    border-radius: 50%; /* Começa como uma bolinha */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Esconde o conteúdo antes de expandir */
    opacity: 0; /* Começa invisível */
    visibility: hidden; /* Garante que não interfira com cliques */
    transform: scale(0); /* Começa bem pequeno */
    transform-origin: bottom right; /* Animação expande do canto inferior direito */
    transition: all 0.4s ease-in-out, transform 0.4s ease-in-out, opacity 0.4s ease-in-out; /* Transições para animação */
    display: flex; /* Usa flexbox para layout interno */
    flex-direction: column;
}

/* Estado ativo: quando o botão é clicado */
.whatsapp-chat-container.active .whatsapp-float-btn {
    opacity: 0; /* Esconde o botão da bolinha */
    visibility: hidden;
    transform: scale(0.5); /* Diminui um pouco o botão antes de desaparecer */
}

.whatsapp-chat-container.active .chat-dialog {
    opacity: 1; /* Torna o chat visível */
    visibility: visible;
    width: 300px; /* Largura final da caixa de diálogo */
    height: 200px; /* Altura final da caixa de diálogo */
    border-radius: 10px; /* Borda final da caixa */
    transform: scale(1); /* Expande para o tamanho normal */
}

/* Estilos internos da caixa de diálogo */
.chat-header {
    background-color: #128C7E; /* Verde escuro para o cabeçalho */
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-title {
    font-weight: bold;
    font-size: 1.1em;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.chat-body {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* Permite que o corpo ocupe o espaço restante */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    align-items: center;
}

.chat-send-btn {
    background-color: #25D366; /* Verde brilhante para o botão de ação */
    border-color: #25D366;
    color: white; /* Garante texto branco */
}

.chat-send-btn:hover {
    background-color: #1FAF59;
    border-color: #1FAF59;
}

.navbar-nav .nav-link {
    color: #F1870F;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
}

/* Estilo para quando a página está ativa */
.navbar-nav .nav-link.active-nav {
    background-color: #B0D69B; 
    color: white !important; 
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-donate-nav {
    background-color: #25a2af; /* Ciano/Azul */
    color: white;
    padding: 8px 20px;
}

/* --- FOOTER MOBILE FIXO (REDES SOCIAIS) --- */

.footer-mobile-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Fundo Branco, limpo para redes sociais */
    z-index: 1000; 
    height: 55px; /* Altura reduzida, apenas para os ícones */
    display: none; 
}

/* Estilo para os links individuais de redes sociais */
.footer-mobile-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
}

/* Estilo para as imagens dos ícones */
.social-icon-img {
    width: 40px; /* Tamanho do ícone */
    height: 40px;
}


@media (max-width: 1000px) {

    .footer-mobile-fixed {
        position: fixed;
        top: 1.5%;
        left: 25%;
        width: 50%;
        z-index: 10000;
        height: 55px;
        display: flex;
        justify-content: center; 
    }

    .display-3, 
    .display-4 {
        font-size: 2.5rem !important;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        font-size: 25px; /* Tamanho do ícone Boxicons */
    }

    /* Container Pai (para mudar a posição fixa) */
    .whatsapp-chat-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-chat-container.active .chat-dialog {
        width: 250px; 
        height: 220px;
    }

    .depoimento {
        font-size: 0.8rem !important; 
    }

    .logo-instituto-topo{
        width: 50%;
        top: 13%;
        left: 50%;
        position: absolute;
    }
    .navbar .nav-img {
        display: none;
    }
}