/* ==========================================================================
   1. Reset e Fundo Tecnológico (Inspirado no Folder Institucional)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;

    /* Gradiente que simula a iluminação azul de fundo da peça gráfica */
    background: radial-gradient(circle at 50% 25%, #f0fdf4 0%, #e0f2fe 50%, #bae6fd 100%);
    background-attachment: fixed;
}

/* Rede molecular discreta gerada no fundo */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.15;
    pointer-events: none;
    background-image: radial-gradient(#0ea5e9 1.5px, transparent 1.5px), 
                      radial-gradient(#10b981 1.5px, transparent 1.5px);
    background-size: 44px 44px;
    background-position: 0 0, 22px 22px;
}

/* ==========================================================================
   2. Estrutura do Layout e Caixa de Texto Premium
   ========================================================================== */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.logo-principal-box {
    margin-bottom: 2rem;
}

.logo-principal {
    max-width: 100%;
    height: auto;
    width: 290px;
}

/* Efeito fosco (Glassmorphism) para isolar o texto dos brilhos do fundo */
.historia-box {
    max-width: 780px;
    margin-bottom: 2rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.2rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.03);
}

.subtitulo {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #047857;
    margin-bottom: 1.2rem;
}

.texto-destaque {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #0f172a;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.texto-destaque strong { font-weight: 700; color: #0284c7; }
.texto-secundario { font-size: 0.94rem; line-height: 1.75; color: #334155; margin-bottom: 1.2rem; }
.texto-secundario strong { color: #0f172a; }

/* ==========================================================================
   3. Seção do Portal (Imagem Destaque e Interseção dos Cards)
   ========================================================================== */
.portal-secao {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 4rem;
}

.secao-porco {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* Força a imagem a ficar grande e imponente no monitor */
.img-porco-principal {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(14, 165, 233, 0.18));
}

/* Os cartões avançam exatamente por cima da base circular azul da imagem */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 720px;
    margin-top: -85px; /* Puxa os cartões para cobrir a base da imagem */
    position: relative;
    z-index: 5;
}

/* Transição suave para telas menores e smartphones */
@media (max-width: 720px) {
    .img-porco-principal {
        max-width: 105%;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: -30px; /* Reduz a sobreposição no celular para preservar o rosto do porco */
        padding: 0 1rem;
    }
}

/* ==========================================================================
   4. Cards Corporativos (Pure White)
   ========================================================================== */
.card-link {
    position: relative;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 2.6rem 1.5rem;
    border-radius: 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.indicator {
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrapper {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-card { max-height: 100%; width: auto; object-fit: contain; }
.btn-text { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; transition: color 0.3s ease; }

/* Micro-interações de Hover */
.card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(14, 165, 233, 0.15);
    border-color: #ffffff;
}
.card-link:hover .indicator { opacity: 1; }

.card-sauvet:hover { border-color: #bae6fd; }
.bg-blue { background-color: #0ea5e9; }
.card-sauvet:hover .btn-text { color: #0ea5e9; }

.card-souvfarmaco:hover { border-color: #a7f3d0; }
.bg-green { background-color: #10b981; }
.card-souvfarmaco:hover .btn-text { color: #10b981; }

/* ==========================================================================
   5. Rodapé Integrado
   ========================================================================== */
.footer {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: #475569;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-top: auto;
}