/*
Theme Name: Carreira Hospitalar
Description: Tema leve do Carreira Hospitalar (vagas, cursos e carreira na saúde). Sem dependências, sem jQuery, fontes do sistema.
Version: 1.0.0
Author: Carreira Hospitalar
Text Domain: carreirahospitalar
Requires PHP: 7.4
*/

/* Tudo do tema usa o prefixo ch- para não colidir com o CSS dos LPs da Revidia (.container, .single-container...). */
:root {
    --ch-verde: #0E9F9A;
    --ch-teal: #0B7480;
    --ch-azul: #1D4ED8;
    --ch-grad: linear-gradient(120deg, #12B5A6 0%, #0B7480 55%, #1D4ED8 100%);
    --ch-tinta: #0A2530;
    --ch-texto: #22343C;
    --ch-suave: #5B6B73;
    --ch-linha: #E2EAEC;
    --ch-fundo: #F4F8F8;
    --ch-branco: #fff;
    --ch-raio: 16px;
    --ch-sombra: 0 6px 24px rgba(10, 37, 48, .07);
    --ch-max: 1180px;
    --ch-fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ch-fundo);
    color: var(--ch-texto);
    font-family: var(--ch-fonte);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ch-teal); }
a:hover { color: var(--ch-azul); }

.ch-wrap { width: 100%; max-width: var(--ch-max); margin: 0 auto; padding: 0 16px; }
.ch-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ch-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; background: #fff; padding: 8px 12px; border-radius: 8px; width: auto; height: auto; clip: auto; }

/* ---------------------------------------------------------------- cabeçalho */
.ch-header { background: var(--ch-branco); border-bottom: 1px solid var(--ch-linha); position: sticky; top: 0; z-index: 900; }
.ch-header::before { content: ""; display: block; height: 3px; background: var(--ch-grad); }
.ch-header-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.ch-logo { display: flex; align-items: center; flex: 0 0 auto; }
.ch-logo img { height: 38px; width: auto; display: block; }
.ch-nav { margin-left: auto; }
.ch-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ch-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ch-tinta); text-decoration: none; font-weight: 600; font-size: 15px; }
.ch-nav a:hover, .ch-nav .current-cat > a, .ch-nav .current-menu-item > a { background: #E3F4F2; color: var(--ch-teal); }
.ch-btn-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--ch-tinta); cursor: pointer; }
.ch-btn-ico:hover { background: var(--ch-fundo); }
.ch-btn-ico svg { width: 22px; height: 22px; }
.ch-menu-btn { display: none; }
.ch-busca { display: none; border-top: 1px solid var(--ch-linha); padding: 12px 0; }
.ch-busca.is-open { display: block; }
.ch-form { display: flex; gap: 8px; }
.ch-form input[type=search] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--ch-linha); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; }
.ch-form button { height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ch-grad); color: #fff; font-weight: 700; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 860px) {
    .ch-header-in { height: 60px; gap: 8px; }
    .ch-logo img { height: 32px; }
    .ch-busca-btn { margin-left: auto; }
    .ch-menu-btn { display: inline-flex; }
    .ch-nav { display: none; position: absolute; left: 0; right: 0; top: 63px; background: #fff; border-bottom: 1px solid var(--ch-linha); box-shadow: var(--ch-sombra); margin: 0; }
    .ch-nav.is-open { display: block; }
    .ch-nav ul { flex-direction: column; padding: 8px 16px 14px; gap: 0; }
    .ch-nav a { padding: 12px 8px; border-bottom: 1px solid var(--ch-fundo); border-radius: 0; }
}

/* ---------------------------------------------------------------- estrutura */
.ch-main { padding: 28px 0 48px; }
.ch-titulo-sec { display: flex; align-items: center; gap: 10px; margin: 36px 0 16px; font-size: 22px; line-height: 1.25; color: var(--ch-tinta); }
.ch-titulo-sec::before { content: ""; width: 6px; height: 24px; border-radius: 4px; background: var(--ch-grad); }
.ch-titulo-sec a { margin-left: auto; font-size: 14px; font-weight: 700; text-decoration: none; }

.ch-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #E3F4F2; color: var(--ch-teal); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.ch-pill:hover { background: var(--ch-teal); color: #fff; }
.ch-meta { color: var(--ch-suave); font-size: 14px; }

/* cards */
.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ch-card { background: #fff; border-radius: var(--ch-raio); overflow: hidden; box-shadow: var(--ch-sombra); display: flex; flex-direction: column; transition: transform .15s ease; }
.ch-card:hover { transform: translateY(-3px); }
.ch-card-img { display: block; aspect-ratio: 16 / 9; background: var(--ch-linha); overflow: hidden; }
.ch-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; }
.ch-card h2, .ch-card h3 { margin: 0; font-size: 18px; line-height: 1.35; color: var(--ch-tinta); }
.ch-card h2 a, .ch-card h3 a { color: inherit; text-decoration: none; }
.ch-card h2 a:hover, .ch-card h3 a:hover { color: var(--ch-teal); }
.ch-card p { margin: 0; color: var(--ch-suave); font-size: 15px; line-height: 1.5; }

/* destaque da home */
.ch-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.ch-hero-main { position: relative; border-radius: 20px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; background: var(--ch-tinta); box-shadow: var(--ch-sombra); }
.ch-hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,37,48,.05) 20%, rgba(10,37,48,.92) 100%); }
.ch-hero-txt { position: relative; z-index: 1; padding: 26px; color: #fff; }
.ch-hero-txt h2 { margin: 10px 0 6px; font-size: 30px; line-height: 1.2; }
.ch-hero-txt h2 a { color: #fff; text-decoration: none; }
.ch-hero-txt p { margin: 0; color: #DDEBEE; font-size: 16px; }
.ch-hero-txt .ch-pill { background: #fff; }
.ch-hero-lista { display: flex; flex-direction: column; gap: 14px; }
.ch-mini { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--ch-sombra); }
.ch-mini-img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ch-linha); }
.ch-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-mini h3 { margin: 4px 0 0; font-size: 15px; line-height: 1.35; }
.ch-mini h3 a { color: var(--ch-tinta); text-decoration: none; }
.ch-mini h3 a:hover { color: var(--ch-teal); }

@media (max-width: 960px) {
    .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body { font-size: 16.5px; }
    .ch-grid { grid-template-columns: 1fr; gap: 16px; }
    .ch-hero-main { min-height: 300px; }
    .ch-hero-txt h2 { font-size: 23px; }
    .ch-hero-txt { padding: 20px; }
    .ch-hero-txt p { display: none; }
    .ch-hero-main::after { background: linear-gradient(180deg, rgba(10,37,48,.1) 10%, rgba(10,37,48,.95) 100%); }
    .ch-mini { grid-template-columns: 96px 1fr; }
}

/* cabeçalho de arquivo/busca */
.ch-arq-head { background: #fff; border-radius: 20px; padding: 26px 24px; box-shadow: var(--ch-sombra); margin-bottom: 24px; position: relative; overflow: hidden; }
.ch-arq-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ch-grad); }
.ch-arq-head h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.2; color: var(--ch-tinta); }
.ch-arq-head p { margin: 0; color: var(--ch-suave); }

/* paginação */
.ch-pag { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 34px 0 0; }
.ch-pag .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; color: var(--ch-tinta); text-decoration: none; font-weight: 700; box-shadow: var(--ch-sombra); }
.ch-pag .page-numbers.current { background: var(--ch-grad); color: #fff; }

/* ---------------------------------------------------------------- artigo */
.ch-art { max-width: 780px; margin: 0 auto; }
.ch-art-head { margin: 0 0 18px; }
.ch-art-head h1 { margin: 12px 0 10px; font-size: 36px; line-height: 1.2; color: var(--ch-tinta); letter-spacing: -.01em; }
.ch-art-img { margin: 0 0 24px; border-radius: 18px; overflow: hidden; box-shadow: var(--ch-sombra); }
.ch-art-img img { display: block; width: 100%; height: auto; }
.ch-conteudo { background: #fff; border-radius: 20px; padding: 30px 32px; box-shadow: var(--ch-sombra); overflow-wrap: break-word; }
.ch-conteudo > *:first-child { margin-top: 0; }
.ch-conteudo h2 { margin: 1.8em 0 .6em; font-size: 26px; line-height: 1.3; color: var(--ch-tinta); }
.ch-conteudo h3 { margin: 1.5em 0 .5em; font-size: 20px; line-height: 1.35; color: var(--ch-tinta); }
.ch-conteudo p, .ch-conteudo ul, .ch-conteudo ol { margin: 0 0 1.1em; }
.ch-conteudo ul, .ch-conteudo ol { padding-left: 1.3em; }
.ch-conteudo li { margin: .35em 0; }
.ch-conteudo blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--ch-teal); background: #EEF8F7; border-radius: 0 12px 12px 0; }
.ch-conteudo table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.ch-conteudo th, .ch-conteudo td { border: 1px solid var(--ch-linha); padding: 9px 11px; text-align: left; }
.ch-conteudo th { background: var(--ch-fundo); }
.ch-conteudo iframe, .ch-conteudo video { max-width: 100%; }
@media (max-width: 600px) {
    .ch-art-head h1 { font-size: 27px; }
    .ch-conteudo { padding: 22px 18px; border-radius: 16px; }
    .ch-conteudo h2 { font-size: 22px; }
    .ch-conteudo h3 { font-size: 18.5px; }
}
.ch-relacionados { max-width: var(--ch-max); margin: 10px auto 0; }

/* página institucional */
.ch-pagina { max-width: 820px; margin: 0 auto; }
.ch-pagina h1 { font-size: 32px; line-height: 1.2; color: var(--ch-tinta); margin: 0 0 18px; }

/* formulário de contato (Contact Form 7) */
.ch-conteudo .wpcf7 input[type=text], .ch-conteudo .wpcf7 input[type=email], .ch-conteudo .wpcf7 textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--ch-linha); border-radius: 12px; font: inherit; font-size: 16px; }
.ch-conteudo .wpcf7 input[type=submit] { padding: 13px 26px; border: 0; border-radius: 12px; background: var(--ch-grad); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* 404 / vazio */
.ch-vazio { text-align: center; background: #fff; border-radius: 20px; padding: 48px 20px; box-shadow: var(--ch-sombra); }
.ch-vazio h1 { margin: 0 0 8px; color: var(--ch-tinta); }
.ch-vazio .ch-form { max-width: 520px; margin: 20px auto 0; }

/* ---------------------------------------------------------------- rodapé */
.ch-footer { background: var(--ch-tinta); color: #C3D6DA; margin-top: 40px; font-size: 15px; }
.ch-footer::before { content: ""; display: block; height: 3px; background: var(--ch-grad); }
.ch-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.ch-footer img { height: 36px; width: auto; }
.ch-footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 12px; }
.ch-footer ul { list-style: none; margin: 0; padding: 0; }
.ch-footer li { margin: 0 0 8px; }
.ch-footer a { color: #C3D6DA; text-decoration: none; }
.ch-footer a:hover { color: #fff; }
.ch-footer p { margin: 12px 0 0; line-height: 1.6; }
.ch-footer-base { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 24px; font-size: 13.5px; color: #94ADB3; }
@media (max-width: 760px) {
    .ch-footer-in { grid-template-columns: 1fr 1fr; }
    .ch-footer-sobre { grid-column: 1 / -1; }
}

/* LPs (Revidia e vagas-lp): fundo branco como antes da troca de tema. */
body.single-revidia_lp { background: #fff; }
[dir="rtl"] .ch-titulo-sec::before, [dir="rtl"] .ch-arq-head::before { left: auto; right: 0; }
[dir="rtl"] .ch-conteudo ul, [dir="rtl"] .ch-conteudo ol { padding-left: 0; padding-right: 1.3em; }


