/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* LIMITADOR GERAL */
.container-max {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOPBAR */
.topbar {
    width: 100%;
    background: #0c3a63;
    color: white;
    padding: 6px 0;
    font-size: 14px;
}

.topbar-content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.telefone {
    white-space: nowrap;
}

.topbar .social-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.webmail-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 4px 14px;
    border-radius: 4px;
    margin-right: 6px;
    cursor: pointer;
    font-size: 13px;
}

.webmail-btn:hover {
    background: rgba(255,255,255,0.35);
}

.social-group img {
    width: 18px;
    height: 18px;
    display: block;
}

/* HEADER */
.header {
    width: 100%;
    background: white;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}

.header-content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.logo {
    height: 70px;
    max-width: 100%;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu li a {
    text-decoration: none;
    color: #123456;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* BANNER / CONTEÚDO PRINCIPAL (INDEX) */
.banner {
    background: #e9ecef;
    padding: 60px 0;
}

.banner-content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.texto {
    width: 50%;
    min-width: 280px;
}

.texto h1 {
    font-size: 42px;
    color: #0c3a63;
    font-weight: 700;
}

.linha {
    width: 60px;
    height: 4px;
    background: #0ba36b;
    margin: 14px 0 22px;
}

.texto p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 28px;
    font-size: 15px;
}

.btn-verde {
    background: #0ba36b;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn-verde:hover {
    background: #098c5c;
}

.imagem {
    width: 50%;
    display: flex;
    justify-content: center;
}

.imagem img {
    width: 100%;
    max-width: 600px;
    border-radius: 6px;
    display: block;
}

/* HERO UNIDADES – BANNER CHEIO */
.hero-unidades {
    width: 100%;
    min-height: 320px;
    background-image: url("img/Prancheta-1.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* telas maiores: banner mais alto pra ficar bonito */
@media (min-width: 992px) {
    .hero-unidades {
        min-height: 380px;
    }
}

/* tablets: ajusta um pouco a altura */
@media (max-width: 991px) and (min-width: 577px) {
    .hero-unidades {
        min-height: 300px;
        background-position: center top;
    }
}

/* celular: foca mais no centro da imagem */
@media (max-width: 576px) {
    .hero-unidades {
        min-height: 220px;
        background-position: center;
    }
}




/* UNIDADES – LOGO CENTRAL */
.unidades-top-logo {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.unidades-top-logo img {
    width: 260px;
    max-width: 70%;
}

/* GRID DE UNIDADES */
.unidades-grid-container {
    max-width: 1400px;
    margin: auto;
    padding: 20px 20px 60px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.unidade-card {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.unidade-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 70, 0.55);
    transition: 0.3s;
}

.unidade-card span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
    letter-spacing: 1px;
    text-align: center;
    padding: 0 8px;
}

.unidade-card:hover::after {
    background: rgba(0, 40, 70, 0.35);
}

/* FOOTER */
.footer {
    background: #153a63;
    color: white;
    padding: 40px 0;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
}

.footer-left {
    width: 40%;
}

.footer-logo {
    width: 200px;
    max-width: 100%;
    margin-bottom: 20px;
}

.footer-left p {
    margin: 6px 0;
    font-size: 15px;
}

.footer-right {
    width: 50%;
}

.footer-right h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-right p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 15px;
}

.footer-right iframe {
    width: 100%;
    height: 260px;
    border-radius: 6px;
    border: 0;
}

/* =========================
   RESPONSIVIDADE
   ========================= */

/* 1200px pra baixo: ajusta gaps */
@media (max-width: 1200px) {
    .menu {
        gap: 20px;
    }

    .hero-unidades-subtitle {
        font-size: 40px;
    }

    .hero-unidades-pill span {
        font-size: 44px;
    }
}

/* 992px pra baixo: quebra colunas e empilha hero / banner */
@media (max-width: 992px) {

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .menu {
        justify-content: flex-start;
        row-gap: 8px;
    }

    .banner-content {
        flex-direction: column;
    }

    .texto, .imagem {
        width: 100%;
    }

    .hero-unidades-content {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-unidades-medica {
        justify-content: center;
        width: 100%;
    }

    .hero-unidades-medica img {
        max-height: 320px;
    }

    .unidades-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }
}

/* 768px pra baixo: compacta mais texto e topo */
@media (max-width: 768px) {
    .topbar-content {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .hero-unidades-subtitle {
        font-size: 32px;
    }

    .hero-unidades-pill {
        padding: 14px 26px;
    }

    .hero-unidades-pill span {
        font-size: 34px;
    }

    .unidade-card {
        height: 140px;
    }
}

/* 576px pra baixo: 1 coluna, tudo centralizado */
@media (max-width: 576px) {
    .menu {
        gap: 14px;
        font-size: 14px;
    }

    .texto h1 {
        font-size: 32px;
    }

    .banner {
        padding: 40px 0;
    }

    .hero-unidades-content {
        padding: 40px 20px 50px;
    }

    .hero-unidades-medica img {
        max-height: 260px;
    }

    .unidades-grid-container {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 30px 0;
    }
}

/* BANNER DO PROCESSO SELETIVO */
.banner-seletivo {
    width: 100%;
    height: 380px;
    background: url("img/Banner-1-v3.webp") no-repeat center center;
    background-size: cover;
}

@media(max-width: 768px) {
    .banner-seletivo {
        height: 220px;
        background-position: center;
    }
}


.conteudo-seletivo {
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
}

.conteudo-seletivo h2 {
    font-size: 26px;
    font-weight: 600;
}

.linha-titulo {
    width: 90px;
    height: 3px;
    background: #0ba36b;
    margin: 10px auto 30px;
}

/* GRID FIXO COM QUADRADOS */
.cards-seletivo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    justify-items: center;
}

/* QUADRADO FIXO */
.card {
    width: 220px;
    height: 220px;
    background: #066633;
    border-radius: 6px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    transition: 0.2s;
}

.card i {
    font-size: 40px;
    margin-bottom: 10px;
}

.card p {
    font-weight: 700;
    margin-bottom: 5px;
}

.card a {
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.card:hover {
    background: #05552a;
    transform: translateY(-3px);
}

/* MOBILE */
@media (max-width: 480px) {
    .card {
        width: 180px;
        height: 180px;
    }

    .card i {
        font-size: 32px;
    }
}

