/* Variáveis de Cores e Configurações Globais */
:root {
    --primary-blue: #08408b;
    --secondary-blue: #1c5bb5;
    --light-blue: #eef4fc;
    --accent-red: #d1122a;
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}
.space-70{
    width: 70%;
}
.space-50{
    width: 50%;
}
.space-60{
    width: 50%;
}

/* ===== HEADER ====== */
header{
    width: 100%;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 99;
    box-shadow: 0px 20px 30px 9px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out; 
}
/* Nova classe que o JavaScript vai usar para esconder o menu */
.header-hidden {
    transform: translateY(-100%);
}
.menu-toggle {
    display: none; 
}
#header-ul{
    list-style: none;
    display: flex;
}
#header-ul li {
    margin: 10px 30px;
    font-size: 18px;
}
.alt-header-li{
    width: 200px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0px 10px;
    background-color: white;
    color: var(--accent-red);
    font-weight: bold;
    border: 0px solid transparent;
    border-radius: 20px;
}
.alt-header-li img{
    width: 20px;
}
.nav-link {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    padding-bottom: 5px; /* Espaço para a linha de highlight */
    border-bottom: 3px solid transparent; 
}

.nav-link:hover,
.nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid var(--accent-red); /* Linha de destaque */
}

/* ===== BELOW HEADER ===== */
#below-header{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    height: 150px;
    padding: 20px;
    margin-top: 50px;
}
#below-header img{
    height: 110px;
}
#below-header p{
    color: var(--primary-blue);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===== LOGIN ===== */
#login{
    width: 100%;
    height: 713px;
    position: relative; /* Essencial para prender o carrossel absoluto aqui dentro */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* A propriedade background-image foi removida daqui */
}

/* Novo Carrossel de Fundo */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Joga o carrossel para o fundo */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0; /* Inicia invisível */
    transition: opacity 1.5s ease-in-out; /* Transição de fade suave de 1.5s */
}

.hero-slide.active {
    opacity: 1; /* Torna a imagem ativa visível */
}

/* Garante que o formulário e o espaço fiquem ACIMA das imagens de fundo */
.space-70, #login-form {
    position: relative;
    z-index: 10; 
}

#login-form{
    width: 300px;
    height: 300px;
    background-color: var(--primary-blue);
    border: 0px solid transparent;
    border-radius: 25px;
}

#login-form{
    width: 300px;
    height: 300px;
    background-color: var(--primary-blue);
    border: 0px solid transparent;
    border-radius: 25px;
}
.login-form-header{
    background-color: white;
    color: var(--accent-red);
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    border: 0px solid transparent;
    border-radius: 25px;
    margin-bottom: 20px;
}
.login-input{
    width: calc(100% - 60px);
    height: 35px;
    margin: 10px 30px;
    background-color: white;
    color: var(--secondary-blue);
    border: 0px solid transparent;
    border-radius: 15px;
    padding-left: 15px;
    font-size: 16px;
}
.login-button{
    cursor: pointer;
    color: var(--accent-red);
    font-weight: bold;
    padding: 0;
    transition: all 0.2s;
}
.login-button:hover{
    background-color: #ddd;
}

/* ===== MISSION ===== */
#mission{
    width: 100%;
    height: 600px;
    background-image: url('images-site/mission-bg.jpeg');
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-blue);
    text-transform: uppercase;
}
.mission-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 50%;
}
.mission-text h2{
    width: 90%;
    font-size: 26px;
    color: var(--accent-red);
}
.mission-text p{
    width: 90%;
    margin: 18px;
    font-weight: 600;
}

/* ===== RECOGNITION ===== */
#recognition{
    background-color: var(--primary-blue);
    width: 100%;
    height: 600px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#recognition h2{
    text-transform: uppercase;
    font-size: 30px;
}
#recognition p{
    text-transform: uppercase;
    font-size: 24px;
    font-weight: normal;
}
#recognition-ul{
    margin-top: 20px;
    list-style: none;
    display: flex;
}
#recognition-ul li{
    color: var(--primary-blue);
    background-color: white;
    margin: 20px;
    width: 200px;
    height: 200px;
    border: 0px solid transparent;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#recognition-ul li img{
    width: 100%;
}

/* ===== ADVANTAGES ===== */
#advantages{
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 500px;
    gap: 100px;
}
.advantage-title{
    font-size: 34px;
    text-transform: uppercase;
    color: var(--accent-red);
}
.advantage-card{
    background-color: var(--primary-blue);
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    text-transform: uppercase;
    border: 0px solid transparent;
    border-radius: 20px;
}
.advantage-card img{
    width: 50%;
}

/* ===== UNITS ===== */
#units{
    width: 100%;
    height: 650px;
    background-image: url('images-site/units.jpeg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 30px;
    gap: 200px;
    color: var(--accent-red);
}
.units-list{
    display: flex;
    flex-direction: column;
}
.unit-info{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 5px;
}
.unit-info p{
    color: var(--secondary-blue);
    font-size: 18px;
}
.unit-info p img{
    width: 20px;
}

/* ===== HEALTH PLANS ===== */
#heath-plan {
    width: 100%;
    height: 600px; /* Altura ajustada para dar destaque ao carrossel */
    background-color: var(--primary-blue);
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
}

.carousel-btn {
    width: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    transform: scale(1.1); /* Efeito de hover nas setas */
}

.carousel-track-wrapper {
    width: 80%;
    overflow: hidden; /* Esconde as logos que estão fora da visualização */
    margin: 0 20px;
}

.carousel-track {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 60px; /* Espaço entre as logos */
}

.carousel-track li {
    flex: 0 0 auto; /* Impede que as logos sejam espremidas */
}

.carousel-track img {
    height: 100px; /* Ajuste a altura das logos conforme a necessidade */
    object-fit: contain;
}


/* ===== WORK WITH US ===== */
.info-pattern{
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.info-pattern div{
    width: 40%;
    text-align: center;
}
.info-pattern div h2{
    font-size: 50px;
    margin-bottom: 20px;
}
.info-pattern div p{
    font-size: 20px;
}
.info-pattern-blue{
    margin-top: 20px;
    background-color: var(--primary-blue);
    color: white;
    padding: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}
.info-pattern-blue:hover{
    background-color: white;
    color: var(--primary-blue);
}
.info-pattern-white{
    margin-top: 20px;
    background-color: white;
    color: var(--primary-blue);
    padding: 20px;
    border: 2px solid white;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}
.info-pattern-white:hover{
    background-color: var(--primary-blue);
    color: white;
}


/* ===== NEWSPAPPER ===== */
#newspapper{
    background-color: var(--primary-blue);
    color: white;
}
#work-with-us{
    background-color: white;
    color: var(--primary-blue);
}

/* ===== INSTAGRAM ===== */
#instagram{
    width: 100%;
    height: 800px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#instagram h4{
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 20px;
}
#instagram h1{
    font-size: 44px;
}
#instagram p{
    font-size: 18px;
    color: #888;
}
.insta-link-wrapper {
	display: block;
	max-width: 900px;
	margin: 50px auto;
	background-color: #fff;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.insta-link-wrapper:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}
.insta-header {
	display: flex;
	align-items: center;
	padding-bottom: 25px;
	border-bottom: 1px solid #dbdbdb;
}
.profile-pic {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 40px;
}
.profile-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.profile-info h2 {
	font-size: 28px;
	font-weight: 500;
	margin: 0 0 10px 0;
}
.profile-stats {
	display: flex;
	gap: 30px;
	font-size: 16px;
}
.follow-button {
	margin-left: auto;
	background-color: #0095f6;
	color: white;
	padding: 8px 24px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
}
.follow-button i {
	margin-right: 5px;
}
.insta-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding-top: 25px;
}
.gallery-item {
	width: 100%;
	padding-top: 100%;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}
.gallery-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* ===== FOOTER ===== */
footer{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 500px;
    background-color: var(--primary-blue);
    color: #ccc;
}
#footer-div{
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 80%;
    gap: 200px;
}
.footer-ul img{
    width: 150px;
}
.footer-ul{
    list-style: none;
    font-size: 12px;
}
.footer-ul li{
    margin-bottom: 10px;
}
.footer-ul-title{
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}
#footer{
    width: 80%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 50px;
}
#footer-social-media img{
    width: 20px;
    transition: all 0.2s;
}
#footer-social-media img:hover{
    width: 25px;;
    transform: scale(1.1);
}

/* ==========================================================================
   REGRAS DE RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1600px) and (min-width: 1367px) {
    body {
        zoom: 0.85; 
    }

    /* Fallback exclusivo para o Firefox */
    @-moz-document url-prefix() {
        body {
            transform: scale(0.85);
            transform-origin: top center;
            /* Compensação da largura: 100 / 0.85 = 117.64% */
            width: 117.64%; 
            overflow-x: hidden;
        }
    }

    /* Gaps intermediários (entre os 200px do Full HD e os 80px do HD) */
    #below-header { gap: 140px; }
    #advantages { gap: 70px; }
    #units { gap: 140px; }
    #footer-div { gap: 140px; }
}

@media (max-width: 1366px) and (min-width: 1101px) {
    body {
        zoom: 0.75; 
    }

    @-moz-document url-prefix() {
        body {
            transform: scale(0.75);
            transform-origin: top center;
            width: 133.33%; 
            overflow-x: hidden;
        }
    }
    #below-header { gap: 80px; }
    #advantages { gap: 40px; }
    #units { gap: 80px; }
    #footer-div { gap: 80px; }
}

@media (max-width: 1100px) {
    #header-ul li { margin: 10px 15px; font-size: 16px; }
    #below-header { gap: 30px; }
    #advantages { gap: 20px; }
    .advantage-card { width: 260px; height: 280px; font-size: 14px; }
    #units { gap: 40px; }
    #footer-div { gap: 40px; }
}

@media (max-width: 768px) {
    #login, #mission, #recognition, #advantages, #units, #heath-plan, 
    .info-pattern, #instagram, footer {
        height: auto !important;
        min-height: auto;
        padding: 50px 20px;
    }

    /* ===== HEADER MOBILE ===== */
    header {
        height: auto;
        flex-direction: column;
        align-items: flex-end; /* Alinha o botão hambúrguer à direita */
        padding: 10px 20px;
    }
    
    .menu-toggle {
        display: block !important; /* Exibe o botão apenas no mobile */
        font-size: 28px;
        color: white;
        cursor: pointer;
        user-select: none;
    }

    #header-ul {
        display: none; /* Oculta o menu por padrão no mobile */
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 15px 0 5px 0;
    }

    .alt-header-li{
        justify-content: center;
        gap: 20px;
    }
    #header-ul.active {
        display: flex; /* Exibido quando clicado via JavaScript */
    }

    #header-ul li {
        margin: 12px 0;
        width: 100%;
    }

    /* ===== SEÇÕES DA PÁGINA ===== */
    #below-header {
        flex-direction: column;
        gap: 15px;
        height: auto;
        text-align: center;
        padding: 30px 20px;
    }
    #below-header img { height: 80px; }

    /* Login */
    #login { flex-direction: column; background-position: center; }
    .space-70, .space-50, .space-60 { display: none !important; } /* Remove blocos invisíveis de padding */
    #login-form { width: 100%; max-width: 340px; }

    /* Quem Somos (Missão) */
    #mission { background-image: none; background-color: var(--light-blue); }
    .mission-text { width: 100%; }
    .mission-text h2 { font-size: 22px; }
    .mission-text p { font-size: 14px; margin-bottom: 0px; }

    /* Reconhecimento */
    #recognition-ul { flex-direction: column; gap: 20px; }
    #recognition-ul li { margin: 0; }

    /* Vantagens */
    #advantages { flex-direction: column; gap: 20px; }
    .advantage-title { text-align: center; font-size: 28px; }
    .advantage-card { width: 100%; max-width: 340px; height: auto; padding: 40px 20px; }

    /* Unidades */
    #units { background-image: none; background-color: #f9f9f9; flex-direction: column; gap: 30px; text-align: center; }
    .units-list { gap: 25px; }
    .unit-info h2{ font-size: 24px; }
    .unit-info p img{ width: 15px; }

    /* Carrossel de Convênios */
    .carousel-track-wrapper { width: 75%; margin: 0 10px; }
    .carousel-track { gap: 30px; }
    .carousel-track img { height: 45px; }
    .carousel-btn { width: 30px; }

    /* Padrões de Texto (Trabalhe conosco / Notícias) */
    .info-pattern div { width: 100%; }
    .info-pattern div h2 { font-size: 32px; }

    /* Instagram Grid */
    #instagram h1 { font-size: 28px; text-align: center; }
    .insta-link-wrapper { padding: 15px; margin: 20px 10px; }
    .profile-pic { width: 70px; height: 70px; margin-right: 15px; }
    .profile-info h2 { font-size: 20px; }
    .profile-stats { gap: 15px; font-size: 13px; }
    .follow-button { display: none; } /* Esconde em telas muito estreitas para salvar espaço */
    .insta-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* ===== FOOTER ===== */
    #footer-div {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        width: 100%;
    }
    #footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
        width: 100%;
    }
}