/* =========================================
   VARIÁVEIS DE CORES
   ========================================= */
:root {
    --azul-consultivo: #46bece;
    --branco-fundo: #ffffff;
    --preto-titulo: #000000;
    
    --cinza-texto: #4A5568; 
    --cinza-borda: #E2E8F0;
    --fundo-hover: #F8FAFC;
}

/* =========================================
   RESET E TRAVA DE ROLAGEM
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* Isso proíbe a página de ter barra de rolagem */
    font-family: 'Inter', sans-serif;
    background-color: var(--branco-fundo);
    color: var(--cinza-texto);
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   ESTRUTURA PRINCIPAL (FLEXBOX)
   ========================================= */
.portal-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empurra header pro topo e footer pra base */
    height: 100vh;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================
   CABEÇALHO
   ========================================= */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo img {
    height: 100px; /* Você pode aumentar ou diminuir esse valor até achar o tamanho ideal */
    max-width: 100%;
    object-fit: contain;
}

.btn-agendar {
    background-color: var(--preto-titulo);
    color: var(--branco-fundo);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-agendar:hover {
    background-color: var(--azul-consultivo);
}

/* =========================================
   CONTEÚDO CENTRAL
   ========================================= */
.portal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1; /* Ocupa todo o espaço restante no meio */
    text-align: center;
}

.texto-destaque {
    max-width: 800px;
    margin-bottom: 60px;
}

.texto-destaque h1 {
    color: var(--preto-titulo);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.texto-destaque p {
    font-size: 1.25rem;
    color: var(--cinza-texto);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   NAVEGAÇÃO MODULAR (CARDS)
   ========================================= */
.portal-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

.nav-card {
    flex: 1;
    text-align: left;
    text-decoration: none;
    padding: 30px;
    border: 1px solid var(--cinza-borda);
    border-radius: 8px;
    background-color: var(--branco-fundo);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--azul-consultivo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-card:hover {
    background-color: var(--fundo-hover);
    border-color: var(--azul-consultivo);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.card-numero {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--azul-consultivo);
    margin-bottom: 15px;
}

.nav-card h3 {
    color: var(--preto-titulo);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.nav-card p {
    color: var(--cinza-texto);
    font-size: 0.9rem;
}

/* =========================================
   RODAPÉ
   ========================================= */
.portal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    border-top: 1px solid var(--cinza-borda);
    font-size: 0.85rem;
}

.footer-item {
    flex: 1;
}

.direitos {
    text-align: center;
    color: #A0AEC0;
}

.footer-item:last-child {
    text-align: right;
}

.link-intranet {
    color: var(--cinza-texto);
    text-decoration: none;
    transition: color 0.3s;
}

.link-intranet:hover {
    color: var(--azul-consultivo);
}

/* =========================================
   RESPONSIVO BÁSICO
   ========================================= */
@media (max-width: 900px) {
    html, body {
        overflow: auto; /* Devolve a rolagem apenas para o celular */
        height: auto;
    }
    .portal-wrapper {
        height: auto;
        padding: 20px;
    }
    .portal-nav {
        flex-direction: column;
    }
    .portal-footer {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        height: auto;
        padding-top: 20px;
        text-align: center;
    }
    .footer-item:last-child {
        text-align: center;
    }
    .texto-destaque h1 {
        font-size: 2.5rem;
    }
}