/* =========================================================
   Engematron · site público
   Mobile-first. Cores derivadas do logo (azul #0487BA, cinza #414143).
   ========================================================= */
:root {
    --brand: #0487BA;
    --brand-600: #036C95;
    --brand-050: #E7F4FA;
    --brand-ink: #035C80;      /* azul para texto sobre fundo claro */
    --brand-light: #3DB4E6;    /* azul para fundos escuros */
    --ink: #14181C;
    --ink-2: #414143;
    --muted: #5E6A75;
    --line: #E3E8EC;
    --bg: #FFFFFF;
    --bg-soft: #F4F6F8;
    --steel: #0F1A22;
    --steel-2: #1A2833;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(20, 24, 28, .18);
    --shadow-sm: 0 2px 10px -4px rgba(20, 24, 28, .12);
    --header-h: 68px;
    --font-head: "Poppins", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-body);
    color: var(--ink-2);
    background: var(--bg);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-head {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
}

a { color: var(--ink); text-decoration-color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }

img { max-width: 100%; }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn { font-family: var(--font-head); font-weight: 500; border-radius: 999px; padding: .7rem 1.4rem; }
.btn-sm { padding: .4rem .9rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-outline-light:hover { color: var(--ink); }
.btn-outline-ink { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1EBE5A; color: #fff; }

/* ---------- Topo ---------- */
.topbar {
    background: var(--steel);
    color: rgba(255, 255, 255, .75);
    font-size: .85rem;
}
.topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.topbar a:hover { color: var(--brand-light); }
.topbar .bi { color: var(--brand-light); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.site-header .logo img { height: 38px; width: auto; display: block; }

.main-nav { display: none; }
.main-nav a {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .95rem;
    color: var(--ink);
    text-decoration: none;
    padding: .5rem .8rem;
    border-radius: 8px;
    position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); background: var(--bg-soft); }
.main-nav a.active::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem;
    height: 2px; background: var(--brand); border-radius: 2px;
}

.btn-menu {
    border: 0; background: var(--bg-soft); width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--ink);
}

@media (min-width: 992px) {
    :root { --header-h: 80px; }
    .site-header .logo img { height: 46px; }
    .main-nav { display: flex; gap: .15rem; margin-left: auto; }
    .btn-menu { display: none; }
}

/* Menu mobile (offcanvas) */
.offcanvas-menu { max-width: 86vw; }
.offcanvas-menu .nav-link {
    font-family: var(--font-head); font-weight: 500; font-size: 1.1rem;
    color: var(--ink); padding: .85rem 0; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
}
.offcanvas-menu .nav-link::after { content: "\F285"; font-family: "bootstrap-icons"; color: var(--muted); font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background: var(--steel) center/cover no-repeat;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: flex-end;
    padding: 7rem 0 3.5rem;
    isolation: isolate;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(14, 18, 22, .35) 0%, rgba(14, 18, 22, .85) 70%, rgba(14, 18, 22, .95) 100%);
}
@media (min-width: 992px) {
    .hero { align-items: center; padding: 6rem 0; }
    .hero::before {
        background: linear-gradient(90deg, rgba(14, 18, 22, .95) 0%, rgba(14, 18, 22, .78) 45%, rgba(14, 18, 22, .15) 100%);
    }
}
.hero h1 { color: #fff; font-size: clamp(2rem, 6.5vw, 3.6rem); font-weight: 700; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--brand-light); }
.hero .lead { color: rgba(255, 255, 255, .82); max-width: 52ch; font-size: clamp(1rem, 2.6vw, 1.2rem); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 600; font-size: .78rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.hero .eyebrow, .section-dark .eyebrow { color: var(--brand-light); }

.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-tags span {
    font-size: .82rem; padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .06);
}

/* ---------- Seções ---------- */
.section { padding: 4.5rem 0; }
@media (min-width: 992px) { .section { padding: 6.5rem 0; } }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--steel); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 700; }
.section-sub { color: var(--muted); max-width: 60ch; }
.section-dark .section-sub { color: rgba(255, 255, 255, .7); }

/* Cartões de solução */
.solucao {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    position: relative;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.solucao:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.solucao .num {
    position: absolute; top: 1.2rem; right: 1.4rem;
    font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; line-height: 1;
    color: var(--bg-soft);
}
.solucao .icone {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--brand-050); color: var(--brand-ink); font-size: 1.6rem; margin-bottom: 1.1rem;
}
.solucao h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.solucao p { color: var(--muted); font-size: .95rem; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.check-list li::before {
    content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: -.05rem;
    color: #fff; background: var(--brand); width: 1.3rem; height: 1.3rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1rem; line-height: 1;
}

.foto-destaque { position: relative; }
.foto-destaque img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.foto-destaque .selo {
    position: absolute; left: -0.5rem; bottom: 1.5rem; background: var(--brand); color: #fff;
    border-radius: var(--radius-sm); padding: .9rem 1.1rem; box-shadow: var(--shadow);
    font-family: var(--font-head); font-weight: 600; line-height: 1.25; max-width: 220px;
}
@media (min-width: 992px) { .foto-destaque .selo { left: -1.5rem; } }

/* ---------- SIG ---------- */
.sig-img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sig-badge {
    display: inline-flex; align-items: center; gap: .5rem; background: rgba(61, 180, 230, .12);
    color: var(--brand-light); border: 1px solid rgba(61, 180, 230, .35); border-radius: 999px;
    padding: .3rem .8rem; font-size: .8rem; font-weight: 600;
}
.sig-recursos { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 576px) { .sig-recursos { grid-template-columns: 1fr 1fr; } }
.sig-recurso {
    display: flex; gap: .8rem; align-items: flex-start; padding: 1rem;
    border-radius: var(--radius-sm); background: var(--steel-2); border: 1px solid rgba(255, 255, 255, .06);
}
.sig-recurso .bi { color: var(--brand-light); font-size: 1.35rem; line-height: 1.2; }
.sig-recurso strong { color: #fff; display: block; font-family: var(--font-head); font-weight: 500; }
.sig-recurso span { font-size: .88rem; }

/* ---------- Cartões de post ---------- */
.post-card {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); text-decoration: none; color: inherit;
    transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.post-card .capa { position: relative; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.post-card .capa img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .capa img { transform: scale(1.04); }
.post-card .capa .sem-imagem { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: #c6cdd3; }
.post-card .corpo { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.08rem; margin: .5rem 0 .4rem; }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.post-card .meta { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.post-card .ler { margin-top: auto; padding-top: 1rem; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); }
.post-card .ler .bi { transition: transform .2s; display: inline-block; }
.post-card:hover .ler .bi { transform: translateX(4px); }

.tag-tipo {
    display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    padding: .2rem .55rem; border-radius: 6px; background: var(--brand-050); color: var(--brand-ink);
}
.tag-tipo.projeto { background: #E8F0FB; color: #1F4E8C; }

/* ---------- Carrossel (scroll-snap, arrasta no celular) ---------- */
.carrossel { position: relative; }
.carrossel-track {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: 0; padding: .25rem .1rem 1.25rem; margin: 0 -.1rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carrossel-track::-webkit-scrollbar { display: none; }
.carrossel-item { flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 576px) { .carrossel-item { flex-basis: 62%; } }
@media (min-width: 768px) { .carrossel-item { flex-basis: calc((100% - 1rem) / 2); } }
@media (min-width: 1200px) { .carrossel-item { flex-basis: calc((100% - 2rem) / 3); } .carrossel-track { gap: 1rem; } }
.carrossel-nav { display: flex; gap: .5rem; }
.carrossel-nav button {
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
    display: grid; place-items: center; font-size: 1.1rem; color: var(--ink); transition: all .2s;
}
.carrossel-nav button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.carrossel-nav button:disabled { opacity: .35; }
.carrossel-dots { display: flex; justify-content: center; gap: .4rem; }
.carrossel-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: #cfd6dc; padding: 0; transition: all .25s; }
.carrossel-dots button.ativo { width: 24px; background: var(--brand); }

/* ---------- Clientes ---------- */
.clientes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 576px) { .clientes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .clientes-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.cliente-logo {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    height: 110px; display: flex; align-items: center; justify-content: center; padding: .75rem 1rem;
    overflow: hidden; transition: box-shadow .25s, transform .25s;
}
/* O logo sempre cabe no quadro: ocupa a área útil sem distorcer */
.cliente-logo img {
    display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain;
    filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s;
}
.cliente-logo:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cliente-logo:hover img { filter: none; opacity: 1; }
@media (hover: none) { .cliente-logo img { filter: none; opacity: 1; } }

/* ---------- Atalhos (downloads / área do cliente) ---------- */
.atalho {
    display: flex; gap: 1.1rem; align-items: flex-start; height: 100%;
    padding: 1.6rem; border-radius: var(--radius); text-decoration: none;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: all .25s;
}
.atalho:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink-2); }
.atalho .icone { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--ink); color: var(--brand); }
.atalho.destaque { background: var(--ink); color: rgba(255, 255, 255, .75); border-color: var(--ink); }
.atalho.destaque h3 { color: #fff; }
.atalho.destaque .icone { background: var(--brand); color: #fff; }
.atalho h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.atalho .ir { font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-top: .6rem; display: inline-flex; gap: .35rem; align-items: center; color: var(--brand-ink); }
.atalho.destaque .ir { color: var(--brand-light); }

/* ---------- Contato ---------- */
.contato-item { display: flex; gap: .9rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: rgba(255, 255, 255, .78); }
.contato-item:hover { color: #fff; }
.contato-item .icone { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--steel-2); color: var(--brand-light); font-size: 1.2rem; }
.contato-item small { display: block; color: rgba(255, 255, 255, .5); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.contato-item strong { color: #fff; font-weight: 500; }

.form-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); color: var(--ink-2); }
@media (min-width: 768px) { .form-card { padding: 2.2rem; } }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: #d5dce2; padding: .7rem .9rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-600); box-shadow: 0 0 0 .25rem rgba(4, 135, 186, .25); }
.form-label { font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cabeçalho de páginas internas ---------- */
.page-head {
    background: var(--steel); color: rgba(255, 255, 255, .75); padding: 3rem 0 2.5rem; position: relative; overflow: hidden;
}
.page-head::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    border: 40px solid rgba(61, 180, 230, .14);
}
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; margin: .4rem 0 .5rem; }
.page-head .eyebrow { color: var(--brand-light); }
.breadcrumbs { font-size: .85rem; }
.breadcrumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-light); }

/* Filtros em "chips" */
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line);
    text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; background: #fff; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.ativo { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Post (detalhe) ---------- */
.post-capa { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.post-texto { font-size: 1.07rem; color: var(--ink-2); }
.post-texto p { margin-bottom: 1.2rem; }
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 768px) { .galeria { grid-template-columns: repeat(3, 1fr); } }
.galeria a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria a:hover img { transform: scale(1.05); }

/* Galeria: foto centralizada com tamanho limitado + faixa de miniaturas */
.lightbox {
    border: 0; padding: 0; background: transparent; color: #fff;
    width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh;
}
.lightbox::backdrop { background: rgba(8, 14, 19, .95); }
.lightbox .lb-wrap {
    height: 100%; max-width: 1200px; margin: 0 auto; padding: .75rem .75rem 1rem;
    display: flex; flex-direction: column; gap: .75rem;
}
.lightbox .lb-topo { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.lightbox .lb-contador { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .8); padding-left: .25rem; }
.lightbox .lb-palco { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-foto {
    display: block; max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .7); background: #1a2833;
}
@media (min-width: 768px) {
    .lightbox .lb-wrap { padding: 1.25rem 1.5rem 1.5rem; }
    /* No computador a foto fica menor que a tela, com espaço para as setas */
    .lightbox .lb-palco { padding: 0 4.5rem; }
    .lightbox .lb-foto { max-height: min(100%, 72vh); }
}
.lightbox .lb-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12);
    color: #fff; font-size: 1.3rem; display: grid; place-items: center; flex: 0 0 auto; transition: background .2s;
}
.lightbox .lb-btn:hover { background: var(--brand); }
.lightbox .lb-ant, .lightbox .lb-prox { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lightbox .lb-ant { left: .25rem; }
.lightbox .lb-prox { right: .25rem; }
@media (max-width: 767.98px) {
    .lightbox .lb-ant, .lightbox .lb-prox { background: rgba(0, 0, 0, .45); }
}

.lightbox .lb-miniaturas { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .25rem .35rem; scrollbar-width: thin; flex: 0 0 auto; }
.lightbox .lb-miniaturas > :first-child { margin-left: auto; }
.lightbox .lb-miniaturas > :last-child { margin-right: auto; }
.lightbox .lb-miniaturas button {
    flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
    background: #1a2833; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s;
}
@media (min-width: 768px) { .lightbox .lb-miniaturas button { width: 92px; height: 66px; } }
.lightbox .lb-miniaturas button:hover { opacity: .8; }
.lightbox .lb-miniaturas button.ativa { opacity: 1; outline-color: var(--brand-light); }
.lightbox .lb-miniaturas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox.unica .lb-ant, .lightbox.unica .lb-prox, .lightbox.unica .lb-miniaturas { display: none; }

/* ---------- Downloads / documentos ---------- */
.arquivo {
    display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s;
}
.arquivo + .arquivo { margin-top: .6rem; }
.arquivo:hover { box-shadow: var(--shadow-sm); }
.arquivo .icone { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); font-size: 1.45rem; }
.arquivo .info { flex: 1; min-width: 0; }
.arquivo .titulo { font-family: var(--font-head); font-weight: 500; color: var(--ink); line-height: 1.3; word-break: break-word; }
.arquivo .detalhes { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .2rem; }
.arquivo .desc { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.arquivo .btn-baixar { flex: 0 0 auto; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
@media (min-width: 576px) { .arquivo .btn-baixar { width: auto; height: auto; padding: .55rem 1.1rem; display: inline-flex; gap: .4rem; border-radius: 999px; } }

.projeto-card {
    display: block; height: 100%; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line);
    background: #fff; text-decoration: none; color: var(--ink-2); transition: all .25s;
}
.projeto-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink-2); border-color: transparent; }
.projeto-card h3 { font-size: 1.1rem; margin: .5rem 0 .3rem; }
.projeto-card .codigo { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .bi { font-size: 2.6rem; color: #c3cad0; display: block; margin-bottom: .6rem; }

/* ---------- Login ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 2.5rem 1rem; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 576px) { .auth-card { padding: 2.5rem 2.25rem; } }

/* ---------- Rodapé ---------- */
.site-footer { background: #0A1218; color: rgba(255, 255, 255, .62); font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: var(--brand-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .logo img { height: 38px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .83rem; }
.social { display: flex; gap: .55rem; }
.social a {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem;
    background: rgba(255, 255, 255, .06); color: #fff; transition: all .2s;
}
.social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45); text-decoration: none; transition: transform .2s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* Notificações e confirmações (SweetAlert2) */
.swal2-container { font-family: var(--font-body); }
.swal2-popup.confirmacao { border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; width: min(26rem, calc(100vw - 2rem)); }
.swal2-popup.confirmacao .swal2-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.swal2-popup.confirmacao .swal2-html-container { color: var(--muted); font-size: .95rem; }
.swal2-popup.confirmacao .swal2-actions { gap: .5rem; }
.swal2-popup.notificacao { border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .75rem 1rem; }
.swal2-popup.notificacao .swal2-title { font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--ink); }
.swal2-popup.notificacao .swal2-timer-progress-bar { background: var(--brand); }
/* No celular a notificação fica no topo, ocupando a largura */
@media (max-width: 575.98px) {
    .swal2-container.swal2-top-end { padding: .5rem; }
    .swal2-container.swal2-top-end > .swal2-popup.notificacao { width: 100%; }
}

/* Mensagens */
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.alert { border-radius: var(--radius-sm); border: 0; }
.alert-success { background: var(--brand-050); color: #034A66; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.pagination .page-link { color: var(--ink); border-radius: 8px !important; margin: 0 .15rem; border-color: var(--line); }
.pagination .active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
