/* ==========================================================================
   css/componentes.css
   Objetivo: Estiliza巽達o do Header (Menu) e Footer (Rodap辿) - Mobile-First.
   ========================================================================== */

/* ==========================================================================
   1鏝�� CABE�ALHO (HEADER) - Estilo Moderno e Fixo (Mobile-First)
   ========================================================================== */

/* CORRE��O: O container pai agora segura o efeito fixo e o vidro fosco */
#header-component {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); /* Fundo semi-transparente */
    backdrop-filter: blur(12px);                 /* Efeito de vidro fosco */
    -webkit-backdrop-filter: blur(12px);         /* Suporte para Safari */
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    width: 100%;
    
    
}



/* O header interno agora cuida apenas do alinhamento dos links */
header {
    padding: 1rem;
    display: flex;
    flex-direction: row; 
    justify-content: space-around;
    align-items: center;
    
    text-align: center;
    height: auto;
    
}

/* Nome da Marca / Logotipo */
header p a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cor-preto);
    letter-spacing: -0.5px;
    text-decoration: none;
}

header nav {
    display: flex;
    flex-direction: row;
    

}

/* Lista de Links do Menu */
header nav ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    
}




header nav ul li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto-mutado);
    text-decoration: none;
    position: relative;
    padding: 0.3rem 0;
    transition: var(--transicao);
}



/* Efeito moderno da linha crescendo ao passar o mouse */
header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cor-azul-claro);
    transition: var(--transicao);
}

header nav ul li a:hover {
    color: var(--cor-preto);
}

header nav ul li a:hover::after {
    width: 100%;
}


/* aqui dentro apenas na subheader */
#subheader-component {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.85); /* Fundo semi-transparente */
    backdrop-filter: blur(12px);                 /* Efeito de vidro fosco */
    -webkit-backdrop-filter: blur(12px);         /* Suporte para Safari */
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    
    
}
nav {
    display: flex;
    flex-direction: row;
    

}

/* Lista de Links do Menu */
nav ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    
}




nav ul li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto-mutado);
    text-decoration: none;
    position: relative;
    padding: 0.3rem 0;
    transition: var(--transicao);
}



/* Efeito moderno da linha crescendo ao passar o mouse */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cor-azul-claro);
    transition: var(--transicao);
}

nav ul li a:hover {
    color: var(--cor-preto);
}

nav ul li a:hover::after {
    width: 100%;
}


/*fim da subheader*/



/* Bot杮o de Destaque do Menu (WhatsApp) */
header p last-of-type a, 
header > p:nth-of-type(2) a {
    display: inline-block;
    background-color: var(--cor-preto);
    color: #FFFFFF !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--raio-borda);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transicao);
}

header p last-of-type a:hover,
header > p:nth-of-type(2) a:hover {
    background-color: var(--cor-azul-claro);
    transform: translateY(-1px);
}



/* ==========================================================================
   2鏝�� RODAP� (FOOTER) - Estilo para Celular
   ========================================================================== */
footer {
    background-color: var(--cor-preto);
    color: #FFFFFF;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

footer p {
    color: #CCCCCC;
    margin-bottom: 0.5rem;
}

footer strong {
    color: #FFFFFF;
}

/* T枖tulos das se巽探es do rodap辿 */
footer nav p strong,
footer div p strong {
    color: var(--cor-azul-claro);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

/* Listas do rodap辿 */
footer ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

footer ul li {
    margin-bottom: 0;
}

footer ul li a {
    color: #AAAAAA;
    font-size: 0.95rem;
    transition: var(--transicao);
}

footer ul li a:hover {
    color: #FFFFFF;
    padding-left: 4px; /* Pequeno efeito ao passar o mouse */
}

/* ==========================================================================
   3鏝�� RESPONSIVIDADE (MEDIA QUERY) - Telas Grandes (Computador)
   ========================================================================== */
@media (min-width: 768px) {
    
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%; /* Alinhamento mais interno nas laterais */
    }

    header nav ul {
        gap: 2rem;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 4rem 5%;
    }

    footer > div, footer > nav {
        flex: 1;
    }
}