/*
Theme Name: Hospital Gênesis Theme
Theme URI: https://cmhgenesis.com.br
Author: Equipe de Desenvolvimento Gênesis
Author URI: https://cmhgenesis.com.br
Description: Tema customizado de alta performance, focado em UI/UX e conversão.
Version: 1.0.0
Text Domain: genesis
*/

:root {
    /* Cores Institucionais */
    --genesis-dark: #082041;   /* Primária */
    --genesis-light: #85A6CC;  /* Secundária */
    --genesis-accent: #c0392b; /* Ação/Erro */
    
    /* Cores de Texto e Fundo */
    --text-main: #2c3e50;
    --bg-page: #F4F7FC;
    --white: #FFFFFF;
    
    /* Feedback */
    --status-success-bg: #d4edda; --status-success-text: #155724;
    --status-warning-bg: #fff3cd; --status-warning-text: #856404;
    
    /* UI Kit */
    --shadow-card: 0 10px 30px rgba(0,0,0,0.04);
    --radius-card: 20px;
    --radius-btn: 30px;
    --radius-input: 12px;
    --transition: all 0.3s ease;

    /* Espaçamentos e Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset Básico & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Utilitários de Layout */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Acessibilidade para Screen Readers */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Links e Botões Base */
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   HEADER & NAVEGAÇÃO GLOBAL
   ========================================= */
.site-header {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 50px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--genesis-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    color: var(--genesis-light);
}

.header-btn-cta {
    background: var(--genesis-accent);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-btn-cta:hover {
    background: #a32a1d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.25);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--genesis-dark);
    cursor: pointer;
}

/* =========================================
   RODAPÉ GLOBAL (LAYOUT DEFINITIVO)
   ========================================= */
.site-footer {
    background-color: var(--genesis-dark);
    color: #fff;
    padding: 60px 0;
    margin-top: auto;
    border-top: 4px solid var(--genesis-light);
    font-size: 0.95rem; /* Tamanho de fonte legível */
}

/* Container Flex Principal */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centraliza verticalmente */
    gap: 40px; /* Espaço generoso entre colunas */
    width: 100%;
}

/* --- Coluna 1: Endereço --- */
.footer-item.location-info {
    flex: 1;
    text-align: left;
    min-width: 280px; /* Garante que não amontoe o endereço */
}

.info-group {
    display: flex;
    align-items: flex-start; /* Alinha ícone com a primeira linha */
    gap: 15px;
    margin-bottom: 20px;
}
.info-group:last-child { margin-bottom: 0; }

.info-group i {
    color: var(--genesis-light);
    font-size: 1.2rem;
    margin-top: 4px; /* Ajuste fino para alinhar com o topo do texto */
    min-width: 20px; /* Espaço fixo para ícone */
}

.info-text p {
    margin: 0;
    line-height: 1.5;
    color: #e0e6ed;
}

/* --- Coluna 2: Diretor Técnico (Centro) --- */
.footer-item.technical-director {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* As Bordas Verticais Exatas */
    border-left: 1px solid rgba(255,255,255,0.15);
    border-right: 1px solid rgba(255,255,255,0.15);
    
    /* Padding lateral para afastar das bordas */
    padding: 0 40px; 
    min-width: 250px;
}

.icon-director {
    font-size: 2rem;
    color: var(--genesis-light);
    margin-bottom: 15px;
}

.director-info strong {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.director-info span {
    display: block;
    font-size: 1rem;
    color: #e0e6ed;
}

.director-info small {
    display: block;
    font-size: 0.85rem;
    color: #aabdd1;
    margin-top: 3px;
}

/* --- Coluna 3: Créditos (Direita) --- */
.footer-item.copyright-info {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end; /* Garante alinhamento à direita */
    min-width: 280px;
}

.copy-text {
    margin: 0;
    color: #e0e6ed;
    font-weight: 400;
}

.dev-badge {
    font-size: 0.9rem;
    color: #aabdd1;
    display: flex;
    flex-direction: column; /* Empilha texto e link */
    align-items: flex-end;
}

.dev-badge span {
    margin-bottom: 3px;
}

.dev-badge a {
    color: var(--genesis-light);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.dev-badge a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Responsividade (Tablets e Celulares) --- */
@media (max-width: 1024px) {
    .footer-row {
        flex-direction: column; /* Empilha as colunas */
        text-align: center;
        gap: 50px;
    }

    .footer-item.location-info, 
    .footer-item.copyright-info {
        text-align: center;
        align-items: center; /* Centraliza itens no mobile */
        min-width: auto;
    }
    
    .info-group {
        justify-content: center; /* Centraliza ícone e texto */
        text-align: left; /* Mantém a leitura do endereço alinhada */
    }

    /* Remove bordas laterais e adiciona horizontais no mobile */
    .footer-item.technical-director {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 30px 0;
        width: 100%;
    }
}

/* --- Responsividade Header Mobile --- */
@media (max-width: 900px) {
    .mobile-menu-toggle { display: block; }
    
    .nav-list { 
        display: none; 
    } 
    
    .nav-list.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; 
        left: 0; 
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        z-index: 998;
    }
    
    .header-btn-cta { display: none; } 
}

/* --- RODAPÉ INSTITUCIONAL (DEFINITIVO) --- */
.maintenance-footer {
    margin-top: auto;
    width: 100%;
    background-color: var(--genesis-dark);
    color: var(--white);
    padding: 50px 20px;
    border-top: 4px solid var(--genesis-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 Colunas iguais */
    gap: 40px;
    align-items: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

/* Ícones do Rodapé */
.footer-col i {
    color: var(--genesis-light);
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

/* Ajuste fino para o ícone alinhar com o texto */
.info-item i {
    margin-top: 4px;
}

/* Coluna Central (Diretor) */
.technical-info {
    text-align: center;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 20px;
}

.technical-info .icon-large {
    font-size: 2.2rem;
    margin-bottom: 15px;
    margin-right: 0;
    width: auto;
    opacity: 0.9;
}

.technical-info strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
}

.crm {
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 5px;
}

/* Coluna Direita (Créditos) */
.credits-info {
    text-align: right;
    align-items: flex-end;
    font-size: 0.9rem;
}

.dev-badge {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dev-badge span {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.dev-badge a {
    color: var(--genesis-light);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.dev-badge a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr; /* Empilha tudo em 1 coluna */
        text-align: center;
        gap: 50px;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .technical-info {
        border: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 40px 0;
    }

    .info-item {
        justify-content: center;
        text-align: left; /* Mantém o texto do endereço alinhado para leitura fácil */
    }
    
    .credits-info {
        align-items: center;
        text-align: center;
    }
    
    .dev-badge {
        align-items: center;
    }
}