/* Novo design: cabeçalho, rodapé e página inicial (CBEM-0019).
   Tudo usa o prefixo .cb- para não interferir nas demais telas, que seguem no tema Material. */

@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/public-sans-vietnamese.woff2") format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/public-sans-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/public-sans-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --cb-navy: #2B5892;
    --cb-navy-dark: #234a7c;
    --cb-navy-deep: #1c3d6b;
    --cb-sky: #3fb6e8;
    --cb-sky-ink: #0f6087;
    --cb-ink: #0f1b2d;
    --cb-line: #e1e7ef;
}

.cb-header, .cb-hero, .cb-panel, .cb-footer {
    font-family: 'Public Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cb-header a:focus-visible, .cb-header button:focus-visible,
.cb-hero a:focus-visible, .cb-panel a:focus-visible, .cb-panel button:focus-visible,
.cb-footer a:focus-visible {
    outline: 3px solid #f2b705;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Cabeçalho ---------- */

.cb-header {
    background-color: #fff;
    border-bottom: 1px solid var(--cb-line);
    box-shadow: 0 1px 2px rgba(16, 32, 64, .05);
}

.cb-header .cb-header__nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    height: 70px;
    padding: 0 24px !important;
}

.cb-header__left, .cb-header__right {
    display: flex;
    align-items: center;
}

.cb-header__left { gap: 8px; }
.cb-header__right { justify-content: flex-end; gap: 6px; margin: 0; padding: 0; }

.cb-header__left .nav-link {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--cb-navy);
}

.cb-header__left .nav-link:hover { background: #eaf1fa; }

.cb-header__logo { display: flex; }
.cb-header__logo img { height: 52px; width: auto; display: block; }
.cb-header__seas { height: 46px; width: auto; }

.cb-header__acesso, .cb-header__contraste {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0b4ba8;
    cursor: pointer;
}

.cb-header__acesso { padding: 0 12px; font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.cb-header__contraste { width: 40px; justify-content: center; font-size: 18px; }
.cb-header__acesso:hover, .cb-header__contraste:hover { background: #eef3fb; color: #0b4ba8; }

.cb-govbr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #c9d4e4;
    border-radius: 999px;
    background: #fff;
    color: #1b2738;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
}

.cb-govbr:hover { border-color: #0b4ba8; background: #f5f8fd; color: #1b2738; text-decoration: none; }
.cb-govbr strong { color: #0b4ba8; font-weight: 800; }
.cb-govbr svg { flex-shrink: 0; }

@media (max-width: 899.98px) {
    .cb-header__seas { display: none; }
    .cb-header .cb-header__nav { grid-template-columns: 1fr auto; padding: 0 12px !important; }
    .cb-govbr__texto { display: none; }
    .cb-govbr { padding: 0 12px; }
}

@media (max-width: 1279.98px) {
    .cb-header__acesso { display: none; }
}

/* ---------- Faixa azul (hero) ---------- */

.cb-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--cb-navy);
    background-image: radial-gradient(circle at 90% -30%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(180deg, var(--cb-navy), var(--cb-navy-dark));
    padding: 40px 40px 104px;
}

.cb-hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000);
    mask-image: linear-gradient(90deg, transparent 45%, #000);
    pointer-events: none;
}

.cb-hero__cegonha {
    position: absolute;
    right: 6%;
    top: 50%;
    height: 320px;
    width: auto;
    transform: translateY(-58%);
    opacity: .2;
    pointer-events: none;
    user-select: none;
}

.cb-hero__conteudo { position: relative; display: flex; flex-direction: column; gap: 16px; }

.cb-hero__trilha {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #d6e2f2;
}

.cb-hero__trilha a { color: #fff; text-decoration: none; }
.cb-hero__trilha strong { font-weight: 600; color: #fff; }

.cb-hero h1 {
    margin: 0;
    color: #fff !important;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.cb-hero__acoes { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }

.cb-hero .cb-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 26px;
    border-radius: 12px;
    background: #fff;
    color: var(--cb-navy) !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(0, 20, 60, .5);
    transition: transform .15s;
}

.cb-hero .cb-btn-hero:hover { transform: translateY(-1px); color: #1f4474 !important; text-decoration: none; }

.cb-hero__login { display: flex; align-items: center; gap: 8px; font-size: 15px; }

.cb-hero__alerta { margin: 0; max-width: 960px; }

.cb-hero__faixa {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    display: flex;
}

.cb-hero__faixa span { flex: 1; }
.cb-hero__faixa span:nth-child(1) { background: var(--cb-navy); }
.cb-hero__faixa span:nth-child(2) { background: var(--cb-sky); }
.cb-hero__faixa span:nth-child(3) { background: var(--cb-navy-deep); }

@media (max-width: 899.98px) {
    .cb-hero__cegonha { height: 220px; right: -60px; }
}

@media (max-width: 639.98px) {
    .cb-hero { padding: 32px 16px 96px; }
}

/* ---------- Painel com carrossel ---------- */

.cb-panel { position: relative; padding: 0 40px 56px; margin-top: -64px; }

.cb-panel__caixa {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--cb-line);
    border-radius: 20px;
    box-shadow: 0 10px 32px -18px rgba(16, 32, 64, .25);
}

.cb-panel__titulo { display: flex; align-items: center; gap: 12px; }
.cb-panel__titulo::before { content: ""; flex-shrink: 0; align-self: stretch; width: 6px; min-height: 28px; border-radius: 4px; background: var(--cb-navy); }
.cb-panel__titulo h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--cb-ink) !important; }

@media (max-width: 639.98px) {
    .cb-panel { padding: 0 16px 40px; }
    .cb-panel__caixa { padding: 18px; }
    .cb-panel__titulo h2 { font-size: 22px; }
}

.cb-carrossel { display: flex; flex-direction: column; gap: 18px; container-type: inline-size; }

.cb-carrossel__janela {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
}

.cb-carrossel__trilho { display: flex; transition: transform .6s cubic-bezier(.22, .7, .2, 1); }

.cb-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1fr; background: #fff; }

.cb-slide__imagem { position: relative; display: grid; place-items: center; min-height: 240px; padding: 24px; background: var(--cb-tint); }
.cb-slide__imagem::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--cb-color); }
.cb-slide__imagem img { display: block; width: auto; max-width: 75%; max-height: var(--cb-img-h); object-fit: contain; }

.cb-slide__texto { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 22px 28px; }
.cb-slide__pos { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--cb-ink-slide); }
.cb-slide__texto h3 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--cb-ink) !important; }
.cb-slide__texto p { margin: 0; font-size: 18px; line-height: 1.55; color: #4a4f63; }

.cb-slide__link {
    align-self: flex-start;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--cb-ink-slide);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.cb-slide__link:hover { filter: brightness(.92); text-decoration: none; }

.cb-slide--navy { --cb-color: var(--cb-navy); --cb-tint: #eef3fa; --cb-ink-slide: var(--cb-navy); }
.cb-slide--sky { --cb-color: var(--cb-sky); --cb-tint: #eef8fd; --cb-ink-slide: var(--cb-sky-ink); }

@container (min-width: 820px) {
    .cb-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cb-slide__imagem { min-height: 340px; }
    .cb-slide__texto { padding: 40px 48px; }
}

.cb-carrossel__progresso { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .05); }
.cb-carrossel__progresso div { height: 100%; width: 0; background: var(--cb-navy); }

.cb-carrossel__controles { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cb-carrossel__pontos { display: flex; gap: 8px; flex-wrap: wrap; }

.cb-carrossel__ponto {
    height: 12px;
    width: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c9d6e8;
    cursor: pointer;
    transition: width .3s, background .3s;
}

.cb-carrossel__ponto[aria-current="true"] { width: 36px; background: var(--cb-navy); }

.cb-carrossel__botoes { display: flex; gap: 8px; }

.cb-carrossel__botao {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #d3dde9;
    border-radius: 12px;
    background: #fff;
    color: var(--cb-navy);
    cursor: pointer;
}

.cb-carrossel__botao:hover { background: #eaf1fa; }
.cb-carrossel__botao--principal { border: 0; background: var(--cb-navy); color: #fff; }
.cb-carrossel__botao--principal:hover { background: var(--cb-navy-dark); }
.cb-carrossel [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .cb-carrossel__trilho { transition: none; }
}

/* ---------- Rodapé ---------- */

.cb-footer.footer {
    background-color: var(--cb-navy) !important;
    color: #fff;
    padding: 0;
    border: 0;
}

.cb-footer__linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding: 16px 40px;
    font-size: 14px;
    line-height: 1.4;
}

.cb-footer__orgao { display: flex; align-items: center; gap: 12px; }
.cb-footer__brasao { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: #fff; }
.cb-footer__brasao img { height: 30px; width: auto; }
.cb-footer__orgao div { display: flex; flex-direction: column; }
.cb-footer__orgao strong { font-size: 14px; }
.cb-footer__contatos { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.cb-footer a, .cb-footer span, .cb-footer strong { color: #fff; }
.cb-footer__contatos a { font-weight: 700; }
.cb-footer__privacidade { display: flex; align-items: center; gap: 8px; }

@media (max-width: 639.98px) {
    .cb-footer__linha { padding: 16px; }
}

/* ---------- Alto contraste ---------- */

body.alto-contraste .cb-hero { background: #000; background-image: none; }
body.alto-contraste .cb-hero__dots, body.alto-contraste .cb-hero__cegonha, body.alto-contraste .cb-hero__faixa { display: none; }
body.alto-contraste .cb-hero .cb-btn-hero { background: #000 !important; color: #fff !important; border: 1px solid #fff !important; box-shadow: none; }
body.alto-contraste .cb-panel__caixa, body.alto-contraste .cb-slide, body.alto-contraste .cb-slide__imagem { background: #000; border-color: #fff; }
body.alto-contraste .cb-slide__imagem::before { background: #fff; }
body.alto-contraste .cb-slide__imagem img { background: #fff; }
body.alto-contraste .cb-panel__titulo::before { background: #fff; }
body.alto-contraste .cb-footer.footer { background-color: #000 !important; border-top: 1px solid #fff; }
body.alto-contraste .cb-hero h1, body.alto-contraste .cb-panel__titulo h2, body.alto-contraste .cb-slide__texto h3 { color: #fff !important; }
body.alto-contraste .cb-slide__link { background: #000; color: #fff !important; border: 1px solid #fff; }
