/* À volta do conteúdo, em todas as páginas (a principal incluída):
   o botão do menu, a gaveta do telemóvel e o rodapé completo. */

/* ---- navegação fixa em baixo ---- */
.cvd-dock { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 50; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.cvd-dock-in {
    pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 20px; max-width: 100%;
    background: rgba(8,21,39,.84); border: 1px solid rgba(127,211,245,.24); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.cvd-dock a {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; white-space: nowrap; text-decoration: none;
    color: #cfdae8; font-family: "Public Sans", Inter, system-ui, sans-serif; font-size: .88rem; font-weight: 700; transition: background .2s, color .2s;
}
.cvd-dock a svg { color: #7fd3f5; flex-shrink: 0; }
.cvd-dock a:hover { background: rgba(127,211,245,.1); color: #fff; }
.cvd-dock a.is-here { background: rgba(27,168,230,.18); color: #fff; }
.cvd-dock-s { display: none; }
.cvd-dock-brief { padding: 7px 16px 7px 8px !important; color: #fff !important; background: linear-gradient(135deg, rgba(21,112,239,.95), rgba(27,168,230,.95)); box-shadow: 0 8px 24px rgba(21,112,239,.35); margin-right: 4px; }
.cvd-dock-brief:hover { background: linear-gradient(135deg, #175cd3, #1ba8e6) !important; }
.cvd-dock-brief svg { color: #fff !important; }
.cvd-dock-ring { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.cvd-dock-ring > svg:first-child { position: absolute; inset: 0; width: 34px; height: 34px; transform: rotate(-90deg); }
.cvd-dock-ring circle { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 3; }
.cvd-dock-ring circle.v { stroke: #fff; stroke-linecap: round; transition: stroke-dasharray .5s; }
.cvd-dock-ring > svg:last-child { width: 16px; height: 16px; }
.cvd-dock-txt { display: grid; line-height: 1.15; }
.cvd-dock-txt b { font-size: .9rem; }
.cvd-dock-txt small { font-size: .72rem; font-weight: 700; opacity: .85; }
/* O fim da página não fica escondido por baixo da barra. */
body { padding-bottom: 92px; }

@media (max-width: 860px) {
    .cvd-dock { bottom: 0; padding: 0; }
    .cvd-dock-in { width: 100%; justify-content: space-between; gap: 0; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .cvd-dock a { flex-direction: column; gap: 3px; padding: 7px 6px; font-size: .68rem; flex: 1; min-width: 0; }
    .cvd-dock-l { display: none; }
    .cvd-dock-s { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    /* No telemóvel o progresso vê-se no anel; o texto fica só "Briefing". */
    .cvd-dock-brief { flex: 1.2 !important; flex-direction: row !important; justify-content: center; gap: 6px !important; padding: 6px 6px !important; margin-right: 4px; }
    .cvd-dock-ring, .cvd-dock-ring > svg:first-child { width: 30px; height: 30px; }
    .cvd-dock-txt b { font-size: .78rem; }
    .cvd-dock-txt small { display: none; }
    body { padding-bottom: 76px; }
}
@media (max-width: 400px) {
    .cvd-dock a[data-section="clientes"] { display: none; }
}

/* ---- rodapé completo ---- */
.cvd-foot { position: relative; z-index: 2; border-top: 1px solid rgba(127,211,245,.12); background: rgba(5,12,26,.88); color: #8fa1b9; }
.cvd-foot .cvd-logo { width: 122px; height: auto; display: block; filter: brightness(0) invert(1); }
.cvd-foot-grid { display: grid; gap: 30px; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); padding: 64px 0 40px; }
.cvd-foot-grid p { color: #8fa1b9; font-size: .92rem; margin: 14px 0 0; line-height: 1.6; }
.cvd-foot h4 { color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; font-weight: 800; }
.cvd-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: #a9b8cf; }
.cvd-foot ul a { color: #cfdae8; text-decoration: none; }
.cvd-foot ul a:hover { color: #7fd3f5; }
.cvd-foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.08); color: #7d8fa8; font-size: .85rem; }
.cvd-foot-legal a { color: #a9b8cf; text-decoration: none; }
.cvd-foot-legal a:hover { color: #7fd3f5; }
@media (max-width: 900px) { .cvd-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cvd-foot-grid { grid-template-columns: 1fr; padding-top: 48px; } }

@media (prefers-reduced-motion: reduce) {
    .cvd-dock-ring circle.v { transition: none; }
}
