/* =====================================================================
   BASE — variáveis de cor/tipografia, reset, botões, formulários, nav e footer
   Paleta tirada do layout (PDF): azul acinzentado suave + preto nos CTAs
   ===================================================================== */
:root {
    --azul-900: #3c4b5d;
    --azul-800: #4a5d73;
    --azul-700: #5b7088;   /* títulos */
    --azul-600: #71869d;
    --azul-500: #8fa3b8;   /* botões suaves */
    --azul-400: #a7b8ca;
    --azul-300: #bccbd9;   /* navbar */
    --azul-200: #d3e0ec;   /* footer */
    --azul-100: #e8eff6;   /* fundo de cards */
    --azul-50:  #f4f7fb;
    --preto:    #1d1d1f;
    --texto:    #2e3947;
    --muted:    #7a8898;
    --borda:    #c6d5e4;
    --branco:   #ffffff;
    --ok:       #4f9a78;
    --ok-bg:    #e5f4ec;
    --erro:     #c0555b;
    --erro-bg:  #fbe9ea;
    --alerta:   #b8872f;
    --alerta-bg:#fbf2df;
    --info:     #5b7fa6;
    --info-bg:  #e7eff8;
    --dourado:  #c9a86a;

    --raio:     14px;
    --raio-lg:  22px;
    --pill:     999px;
    --arco:     220px 220px 18px 18px;   /* imagem em arco (perfis) */
    --sombra:   0 6px 24px rgba(60, 75, 93, .08);
    --sombra-lg:0 18px 50px rgba(60, 75, 93, .16);
    --fonte:    'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --largura:  1240px;
    --trans:    .22s cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--fonte);
    font-size: 15px;
    line-height: 1.6;
    color: var(--texto);
    background: var(--branco);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--azul-700); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--azul-900); }
h1, h2, h3, h4 { color: var(--azul-700); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--borda); margin: 1.5rem 0; }
::selection { background: var(--azul-300); color: var(--preto); }
:focus-visible { outline: 3px solid var(--azul-400); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 22px; }
.container-sm { max-width: 820px; }
.secao { padding: 48px 0; }
.secao-titulo { text-align: center; margin-bottom: 34px; }
.secao-titulo h1, .secao-titulo h2 { font-weight: 500; color: var(--azul-700); margin-bottom: 4px; }
.secao-titulo p { color: var(--azul-500); font-size: .85rem; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------------
   BOTÕES
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .62em 1.5em;
    border: 1.5px solid transparent;
    border-radius: var(--pill);
    font: 500 .9rem/1.2 var(--fonte);
    cursor: pointer;
    transition: all var(--trans);
    white-space: nowrap;
    text-decoration: none;
    background: var(--azul-500); color: var(--branco);
}
.btn:hover { background: var(--azul-600); color: var(--branco); transform: translateY(-1px); box-shadow: var(--sombra); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.desabilitado { opacity: .5; pointer-events: none; }
.btn-escuro { background: var(--preto); color: var(--branco); }
.btn-escuro:hover { background: #000; }
.btn-contorno { background: transparent; color: var(--azul-700); border-color: var(--azul-500); }
.btn-contorno:hover { background: var(--azul-100); color: var(--azul-900); }
.btn-contorno-escuro { background: transparent; color: var(--preto); border-color: var(--preto); }
.btn-contorno-escuro:hover { background: var(--preto); color: var(--branco); }
.btn-claro { background: var(--branco); color: var(--azul-700); border-color: var(--borda); }
.btn-claro:hover { background: var(--azul-50); color: var(--azul-900); }
.btn-perigo { background: var(--erro); }
.btn-perigo:hover { background: #a3434a; }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #3f8163; }
.btn-sm { padding: .42em 1.05em; font-size: .8rem; }
.btn-lg { padding: .85em 2em; font-size: 1rem; }
.btn-bloco { width: 100%; }
.btn-icone {
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: transparent; color: var(--azul-700); border: 1.5px solid var(--borda);
    cursor: pointer; transition: all var(--trans); font-size: 1rem;
}
.btn-icone:hover { background: var(--azul-100); color: var(--azul-900); }
.btn-link { background: none; border: 0; padding: 0; color: var(--azul-700); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------------------------------------------------------------------
   FORMULÁRIOS
   --------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-grid .col-2 { grid-column: span 2; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-grid .campo { margin-bottom: 0; }
.campo label, .rotulo { font-size: .82rem; font-weight: 500; color: var(--azul-700); }
.campo small, .ajuda { font-size: .75rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=url],
select, textarea {
    width: 100%;
    padding: .7em 1em;
    border: 1.5px solid var(--borda);
    border-radius: 12px;
    background: var(--branco);
    font: 400 .9rem/1.4 var(--fonte);
    color: var(--texto);
    transition: border-color var(--trans), box-shadow var(--trans);
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b7088' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.4em; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul-500); box-shadow: 0 0 0 4px rgba(143, 163, 184, .22); }
input::placeholder, textarea::placeholder { color: #a9b5c2; }
input[type=file] { font: .82rem var(--fonte); color: var(--muted); padding: .6em; border: 1.5px dashed var(--borda); border-radius: 12px; width: 100%; background: var(--azul-50); }
input[type=file]::file-selector-button { border: 0; background: var(--azul-500); color: #fff; padding: .45em 1em; border-radius: var(--pill); margin-right: 10px; font: 500 .8rem var(--fonte); cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--azul-700); flex-shrink: 0; }
.senha-wrap { position: relative; }
.senha-wrap input { padding-right: 3em; }
.senha-wrap .ver-senha { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--azul-500); cursor: pointer; font-size: 1.1rem; padding: 6px; }
.forca-senha { height: 5px; border-radius: 5px; background: var(--azul-100); overflow: hidden; margin-top: 4px; }
.forca-senha span { display: block; height: 100%; width: 0; transition: all var(--trans); }
.acoes-form { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .35em .9em; border: 1.5px solid var(--borda); border-radius: var(--pill); font-size: .78rem; color: var(--azul-700); background: var(--branco); cursor: pointer; transition: all var(--trans); user-select: none; }
.chip:hover { border-color: var(--azul-500); }
.chip input { display: none; }
.chip:has(input:checked), .chip.ativo { background: var(--azul-700); border-color: var(--azul-700); color: #fff; }

/* ---------------------------------------------------------------------
   NAVBAR (pílula flutuante, como no layout)
   --------------------------------------------------------------------- */
.topo { position: sticky; top: 0; z-index: 100; padding: 14px 18px 0; }
.nav-pilula {
    max-width: calc(var(--largura) + 40px); margin: 0 auto;
    display: flex; align-items: center; gap: 18px;
    background: rgba(188, 203, 217, .93);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: var(--pill);
    padding: 8px 10px 8px 24px;
    box-shadow: 0 6px 22px rgba(60, 75, 93, .10);
}
.marca { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--branco); letter-spacing: .3px; white-space: nowrap; text-shadow: 0 1px 2px rgba(60,75,93,.18); }
.marca:hover { color: var(--branco); }
.marca i { font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; white-space: nowrap; padding: .45em .75em; border-radius: var(--pill); font-size: .8rem; font-weight: 500; color: var(--azul-900); transition: all var(--trans); }
.nav-links a:hover, .nav-links a.ativo { background: rgba(255, 255, 255, .55); color: var(--preto); }
.nav-acoes { display: flex; align-items: center; gap: 6px; }
.nav-acoes .btn-icone { border-color: transparent; color: var(--azul-900); background: rgba(255,255,255,.35); position: relative; }
.nav-acoes .btn-icone:hover { background: rgba(255,255,255,.7); }
.btn-login { background: var(--azul-600); color: #fff; padding: .5em 1.9em; }
.bolinha { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--erro); color: #fff; font-size: .65rem; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--azul-300); }
.avatar-btn { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: var(--pill); background: rgba(255,255,255,.5); border: 0; cursor: pointer; font: 500 .8rem var(--fonte); color: var(--azul-900); }
.avatar-btn:hover { background: rgba(255,255,255,.8); }
.menu-mobile { display: none; }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 240px; background: var(--branco); border: 1px solid var(--borda); border-radius: 16px;
    box-shadow: var(--sombra-lg); padding: 8px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--trans); z-index: 200;
}
.dropdown.aberto .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: .6em .8em; border-radius: 10px; font: 400 .85rem var(--fonte); color: var(--texto); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--azul-50); color: var(--azul-900); }
.dropdown-menu i { color: var(--azul-500); width: 18px; }
.dropdown-cabecalho { padding: .6em .8em .8em; border-bottom: 1px solid var(--azul-100); margin-bottom: 6px; }
.dropdown-cabecalho strong { display: block; color: var(--azul-900); font-size: .9rem; }
.dropdown-cabecalho small { color: var(--muted); font-size: .75rem; }
.dropdown-sep { height: 1px; background: var(--azul-100); margin: 6px 0; }
.dropdown-notif { width: 340px; max-height: 440px; overflow-y: auto; }
.notif-mini { display: block !important; padding: .7em .8em !important; border-bottom: 1px solid var(--azul-50); }
.notif-mini strong { font-size: .8rem; color: var(--azul-900); display: block; font-weight: 600; }
.notif-mini span { font-size: .75rem; color: var(--muted); }
.notif-mini.nao-lida { background: var(--azul-50); }

/* Seletor de cidade no topo */
.seletor-cidade { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.5); border-radius: var(--pill); padding: 2px 4px 2px 12px; }
.seletor-cidade i { color: var(--azul-700); font-size: .85rem; }
.seletor-cidade select { border: 0; background-color: transparent; padding: .35em 2em .35em .2em; font-size: .78rem; font-weight: 500; color: var(--azul-900); max-width: 170px; box-shadow: none; }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.rodape { background: var(--azul-200); margin-top: 60px; border-radius: 26px 26px 0 0; padding: 46px 0 22px; color: var(--azul-900); }
.rodape-grid { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 50px; align-items: start; }
.rodape h4 { font-size: .92rem; color: var(--preto); font-weight: 500; margin-bottom: 12px; }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin-bottom: 4px; }
.rodape a { color: var(--azul-900); font-size: .8rem; }
.rodape a:hover { color: var(--preto); text-decoration: underline; }
.rodape-slogan { font-style: italic; font-size: .8rem; align-self: center; justify-self: end; max-width: 280px; color: var(--azul-800); }
.rodape-base { border-top: 1.5px solid var(--azul-500); margin-top: 38px; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .75rem; color: var(--azul-800); }
.rodape-redes { display: flex; gap: 12px; font-size: 1.15rem; }
.rodape-redes a { color: var(--azul-500); font-size: 1.15rem; }
.faixa-teste { background: var(--preto); color: #f1f1f1; text-align: center; font-size: .72rem; padding: 6px 12px; letter-spacing: .2px; }
.faixa-teste strong { color: var(--dourado); }

/* ---------------------------------------------------------------------
   UTILITÁRIOS
   --------------------------------------------------------------------- */
.flex { display: flex; } .flex-col { flex-direction: column; } .wrap { flex-wrap: wrap; }
.centro { align-items: center; } .entre { justify-content: space-between; } .fim { justify-content: flex-end; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 20px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 28px; }
.texto-centro { text-align: center; } .texto-dir { text-align: right; }
.muted { color: var(--muted); } .pequeno { font-size: .8rem; } .negrito { font-weight: 600; }
.azul { color: var(--azul-700); } .preco { color: var(--azul-600); font-weight: 600; }
.oculto { display: none !important; }
.w-100 { width: 100%; }
