/* =======================================================================
   DESIGN SYSTEM INSTITUCIONAL - AACS SAÚDE MATO GROSSO
   Identidade Visual Derivada do Brasão Oficial
   ======================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    /* PALETA DERIVADA DA LOGO OFICIAL */
    --primary: #0B2545;         /* Azul Marinho Nobre Oficial */
    --primary-dark: #07192F;    /* Azul Profundo (Menu/Rodapé) */
    --primary-light: #EBF2FA;   /* Azul Gelo Suave */
    
    --gold: #C59B27;            /* Dourado Imperial do Brasão */
    --gold-dark: #A6801B;       /* Dourado Envelhecido / Hover */
    --gold-light: #FCF7E8;      /* Fundo Dourado Suave / Destaques */
    
    --health-green: #1B7A43;    /* Verde Saúde da Fita Lateral */
    --health-green-light: #E9F7EF;
    
    --success: #16A34A;         /* Verde Transparência / Positivo */
    --danger: #DC2626;          /* Vermelho Alerta / Déficit */
    --warning: #D97706;         /* Avisos / Convocação */
    
    /* FUNDOS E SUPERFÍCIES */
    --bg-white: #FFFFFF;        /* Branco Puro */
    --bg-ice: #F8F9FA;          /* Cinza Gelo Suave */
    --border-color: #E2E8F0;    /* Bordas Suaves */
    
    /* TIPOGRAFIA */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* FORMAS E ELEVAÇÃO */
    --radius: 8px;              /* Bordas Levemente Arredondadas */
    --radius-lg: 12px;
    --shadow-soft: 0 4px 18px rgba(11, 37, 69, 0.06);
    --shadow-hover: 0 10px 28px rgba(11, 37, 69, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: #2D3748;
    background-color: var(--bg-ice);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =======================================================================
   BARRA SUPERIOR (TOP-BAR)
   ======================================================================= */
.top-header {
    background: var(--primary-dark);
    color: #A0AEC0;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 2px solid var(--gold);
}

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

.top-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-header-sep {
    color: #4A5568;
    margin: 0 2px;
}

@media (max-width: 900px) {
    .top-header-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .top-header-left {
        justify-content: center;
        font-size: 12px;
    }
}

.top-header a {
    color: #CBD5E0;
    font-weight: 500;
}

.top-header a:hover {
    color: var(--gold);
}

/* =======================================================================
   MENU FIXO NO TOPO (STICKY HEADER)
   ======================================================================= */
.navbar {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(11, 37, 69, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 19px;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.brand-badge {
    background: var(--primary);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 14px;
    letter-spacing: 1px;
    border: 1px solid var(--gold);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    color: #4A5568;
    font-weight: 600;
    font-size: 13.5px;
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.2s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =======================================================================
   BOTÕES CORPORATIVOS MODERNOS
   ======================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--gold);
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
    border-color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 15px;
    border-radius: var(--radius);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary);
}

/* =======================================================================
   MURAL DE CONTAGEM REGRESSIVA (ASSEMBLEIA)
   ======================================================================= */
.assembly-countdown-bar {
    background: linear-gradient(135deg, #07192F 0%, #0B2545 100%);
    color: #FFFFFF;
    padding: 18px 0;
    border-bottom: 2px solid var(--gold);
}

.assembly-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.assembly-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.assembly-tag {
    background: var(--gold);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assembly-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
}

.assembly-meta {
    font-size: 13px;
    color: #CBD5E0;
}

.countdown-clock {
    display: flex;
    gap: 10px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(197, 155, 39, 0.35);
    border-radius: var(--radius);
    padding: 6px 14px;
    min-width: 64px;
    text-align: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
    display: block;
}

.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #E2E8F0;
    letter-spacing: 0.5px;
}

.no-assembly-bar {
    background: #EDF2F7;
    color: #4A5568;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-color);
}

/* =======================================================================
   HERO / BANNER "FILIE-SE JÁ"
   ======================================================================= */
.hero-cta {
    background: linear-gradient(135deg, rgba(7, 25, 47, 0.94), rgba(11, 37, 69, 0.94));
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 85px 0;
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--gold);
}

.hero-cta h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.hero-cta h1 span {
    color: var(--gold);
}

.hero-cta p {
    font-size: 17px;
    max-width: 800px;
    margin: 0 auto 35px auto;
    color: #E2E8F0;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =======================================================================
   ESTRUTURA DE SEÇÕES INTERCALADAS (STRIPING VISUAL)
   ======================================================================= */
.lp-section {
    padding: 75px 0;
}

/* Alternância elegante de fundos conforme solicitado */
.lp-section:nth-of-type(odd) {
    background-color: var(--bg-white);
}

.lp-section:nth-of-type(even) {
    background-color: var(--bg-ice);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border: 1px solid rgba(197, 155, 39, 0.25);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
}

/* =======================================================================
   CARDS FLUTUANTES (DESIGN SYSTEM CORPORATIVO)
   ======================================================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #CBD5E0;
}

/* =======================================================================
   MURAL DE AVISOS
   ======================================================================= */
.mural-card {
    border-left: 4px solid var(--primary);
}

.mural-urgente {
    border-left-color: var(--danger);
    background: #FFFDFD;
}

.mural-convocacao {
    border-left-color: var(--gold);
    background: #FFFDF7;
}

.mural-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-tag {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-urgente { background: #FEE2E2; color: #991B1B; }
.tag-convocacao { background: #FEF3C7; color: #92400E; }
.tag-informativo { background: #EBF2FA; color: var(--primary); }

/* =======================================================================
   NOTÍCIAS (ESTILO BLOG COM CARDS FLUTUANTES)
   ======================================================================= */
.news-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.news-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #E2E8F0;
}

.news-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 12.5px;
    color: #A0AEC0;
    margin-bottom: 8px;
    font-weight: 500;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.news-excerpt {
    color: #4A5568;
    font-size: 14px;
    margin-bottom: 18px;
    flex: 1;
    line-height: 1.6;
}

/* Galeria Responsiva da Notícia */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 145px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* =======================================================================
   HALL DE DIRETORES
   ======================================================================= */
.director-card {
    text-align: center;
    position: relative;
    cursor: pointer;
}

.director-popup {
    display: none;
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    width: 330px;
    max-width: 88vw;
    background: var(--bg-white);
    border: 1px solid #CBD5E0;
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 14px 34px rgba(11, 37, 69, 0.22);
    z-index: 110;
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
    color: #2D3748;
}

.director-card:hover .director-popup {
    display: block;
}

.director-popup h5 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.director-popup .popup-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-top: 10px;
    margin-bottom: 3px;
    display: block;
}

.director-avatar {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px auto;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.12);
}

.director-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.director-role {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.btn-bio-hint {
    font-size: 12px;
    color: #718096;
    text-decoration: underline;
}

/* =======================================================================
   CONVÊNIOS (CARDS FLUTUANTES COM POPUP SUAVE)
   ======================================================================= */
.convenio-card {
    text-align: center;
    position: relative;
    cursor: pointer;
}

.convenio-logo {
    height: 85px;
    max-width: 160px;
    object-fit: contain;
    margin: 0 auto 14px auto;
}

.convenio-popup {
    display: none;
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    max-width: 88vw;
    background: var(--bg-white);
    border: 1px solid #CBD5E0;
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 12px 32px rgba(11, 37, 69, 0.18);
    z-index: 100;
    text-align: left;
    font-size: 13px;
}

.convenio-card:hover .convenio-popup {
    display: block;
}

/* =======================================================================
   PORTAL DE TRANSPARÊNCIA
   ======================================================================= */
.transparencia-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-soft);
}

.stat-box.positive { border-top-color: var(--success); }
.stat-box.negative { border-top-color: var(--danger); }

.stat-label {
    font-family: var(--font-heading);
    font-size: 12px;
    color: #718096;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    margin: 6px 0;
}

.stat-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.badge-green { background: #DCFCE7; color: #15803D; }
.badge-red { background: #FEE2E2; color: #991B1B; }

/* =======================================================================
   MODAIS FLUTUANTES
   ======================================================================= */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 25, 47, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    background: var(--bg-white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #A0AEC0;
}

.modal-close:hover {
    color: var(--primary);
}

/* =======================================================================
   RODAPÉ (INSTITUCIONAL CORPORATIVO)
   ======================================================================= */
.site-footer {
    background: var(--primary-dark);
    color: #A0AEC0;
    padding: 60px 0 25px 0;
    font-size: 14px;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-bottom: 45px;
}

.footer-brand {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    font-size: 13px;
    color: #718096;
}

/* =======================================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ======================================================================= */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 70px;
    background: #07192F;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    pointer-events: none;
}

.whatsapp-floating-btn:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 24px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-bottom: 2px solid var(--gold);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-cta h1 {
        font-size: 28px;
    }

    .assembly-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .hero-cta {
        padding: 55px 0;
    }

    .hero-cta h1 {
        font-size: 23px;
        line-height: 1.3;
    }

    .hero-cta p {
        font-size: 14px;
    }

    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .countdown-clock {
        flex-wrap: wrap;
        gap: 6px;
    }

    .countdown-item {
        min-width: 58px;
        padding: 4px 10px;
    }

    .countdown-number {
        font-size: 18px;
    }

    .pre-footer-logo-img {
        width: 140px;
        height: 140px;
    }

    .pre-footer-title {
        font-size: 18px;
    }

    .pre-footer-subtitle {
        font-size: 14px;
    }

    .whatsapp-floating-btn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* =======================================================================
   SEÇÃO INSTITUCIONAL DE DESTAQUE DA MARCA (PRÉ-RODAPÉ)
   ======================================================================= */
.pre-footer-brand-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 50%, #EDF2F7 100%);
    border-top: 1px solid #E2E8F0;
    border-bottom: 4px solid var(--gold);
    padding: 70px 0;
    text-align: center;
}

.pre-footer-logo-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 22px;
}

.pre-footer-logo-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--gold);
    box-shadow: 0 14px 40px rgba(11, 37, 69, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #FFFFFF;
}

.pre-footer-logo-img:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 48px rgba(11, 37, 69, 0.26);
}

.pre-footer-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}

.pre-footer-subtitle {
    font-size: 15.5px;
    color: #4A5568;
    max-width: 700px;
    margin: 0 auto 28px auto;
    line-height: 1.6;
}

.pre-footer-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

