/*
====================================================
 ARQUIVO: style.css
 PROJETO: Hospital da Restauração — Portal de Exames
 VERSÃO: 3.2 (Produção)
 FOCO: UX/UI, Acessibilidade, Responsividade e Escalabilidade
====================================================
*/

/* ==================================================
   1. DESIGN SYSTEM — VARIÁVEIS GLOBAIS
   → Centraliza identidade visual e facilita manutenção
================================================== */
:root {
    /* Paleta Institucional */
    --color-primary: #004d99;
    /* Azul HR */
    --color-secondary: #007bff;
    /* Azul de interação */
    --color-background: #f4f7fa;
    /* Fundo geral */
    --color-surface: #ffffff;
    /* Superfícies */

    /* Texto */
    --color-text-dark: #2f2f2f;
    --color-text-muted: #6b7280;
    --color-text-light: #ffffff;

    /* Tipografia */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', 'Poppins', sans-serif;

    /* Bordas */
    --radius-lg: 24px;
    --radius-md: 16px;

    /* Sombras */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 12px 30px rgba(0, 77, 153, 0.35);

    /* Animações */
    --transition: 0.3s ease;
}

/* ==================================================
   2. RESET E BASE GLOBAL
================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.6;

    display: flex;
    flex-direction: column;
}

/* Acessibilidade — leitores de tela */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ==================================================
   3. HEADER INSTITUCIONAL
================================================== */
.main-header {
    position: relative;
    height: 340px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: var(--color-text-light);
    overflow: hidden;
    z-index: 0;

}

/* Imagem institucional (marca d’água) */
.main-header::before {
    content: '';
    position: absolute;
    inset: 0;

    background: url('../img/1_hospital_da_restauracao__2_-674242.png') center / cover no-repeat;

    filter: blur(2px) brightness(0.9);
    opacity: 0.75;
    z-index: -2;
}

/* Overlay azul institucional */
.main-header::after {
    content: '';
    position: absolute;
    inset: 0;

    background: linear-gradient(180deg,
            rgba(0, 77, 153, 0.85),
            rgba(0, 77, 153, 0.45));
    z-index: -1;
}

/* ==================================================
   LOGOS INSTITUCIONAIS
================================================== */
.header-logos {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 40px;
    z-index: 3;
}

/* Base comum dos logos */
.logo {
    height: 80px;
    width: auto;
    aspect-ratio: 3 / 1;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Logo HR */
.logo-hr {
    background-image: url('../img/logo-hr.png');
    height: 100px;
    /* ⬆ aumente aqui */

}

/* Logo Secretaria de Saúde PE */
.logo-secretaria {
    background-image: url('../img/logo_secretariaPe.png');
    height: 78px;
}

/* Textos do Header */
.hospital-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.portal-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 10px;
}

/* ==================================================
   4. CONTEÚDO PRINCIPAL
================================================== */
.main-content {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* Marca d’água no corpo
.main-content::before {
    content: '';
    position: absolute;
    inset: 0;

    background: url('../img/1_hospital_da_restauracao__2_-674242.png')
                center / 70% no-repeat;

    opacity: 0.08;
    z-index: -1;
}*/

/* ==================================================
   5. GRID DE OPÇÕES (EXAMES)
================================================== */
.exam-options {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;

    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;

    align-items: start;
}

/* Card clicável */
.option-card {
    text-decoration: none;
    text-align: center;
    transition: transform var(--transition);
}

.option-card:hover {
    transform: translateY(-4px);
}

/* Ícone do card */
.card-icon {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;

    margin: 0 auto 15px;
    padding: 12px;

    border-radius: var(--radius-lg);
    background-color: #e9f0f9;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    box-shadow: var(--shadow-soft);
    transition: transform var(--transition),
        box-shadow var(--transition);
}

.option-card:hover .card-icon {
    transform: scale(1.08);
    box-shadow: var(--shadow-strong);
}

/* ==================================================
   TIPOS DE EXAMES (ÍCONES)
================================================== */
.image-card .card-icon {
    background-image: url('../img/exame_de_imagem.png');
}

.lab-card .card-icon {
    background-image: url('../img/exame_de_laboratorio.png');
}

/* 🔹 NOVO ÍCONE — BIÓPSIA */
.biopsy-card .card-icon {
    background-image: url('../img/iconBiopsia.png');
}

/* ==================================================
   TEXTO DOS CARDS
================================================== */
.card-label {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;

    color: var(--color-primary);

    margin-top: 14px;
    margin-bottom: 8px;

    min-height: 4.2rem;
    /* alinhamento visual */

    display: flex;
    align-items: center;
    justify-content: center;

    letter-spacing: 0.3px;
    transition: color var(--transition);
}

.option-card:hover .card-label {
    color: var(--color-secondary);
}

.card-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==================================================
   6. FOOTER
================================================== */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;

    padding: 15px;
    font-size: 0.85rem;
}

/* ==================================================
   7. RESPONSIVIDADE
================================================== */
@media (max-width: 768px) {
    .portal-title {
        font-size: 1.8rem;
    }

    .exam-options {
        gap: 30px;
    }

    .card-icon {
        max-width: 180px;
    }

    .card-label {
        font-size: 1.35rem;
        min-height: auto;
    }

    .header-logos {
        padding: 0 20px;
    }

    .logo {
        height: 66px;
    }
}