/* ==========================================================
   TFCyber CV — folha de estilos do website
   Tema claro baseado no template "Creative" fornecido:
   secções brancas, faixas azul-marinho (#031344), imagem azul no topo,
   laranja (#f4623a) como destaque, botões em pílula, letras Inter Tight (titulos) / Inter (texto) / JetBrains Mono (detalhes tecnicos).
   ========================================================== */
/* Tipos de letra: carregados no <head> de cada pagina (Google Fonts). */

:root {
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --surface-border: #e3e6ea;
  --surface-border-solid: #dee2e6;
  --line-soft: #e9ecef;
  --accent: #f4623a;          /* laranja do template */
  --accent-2: #c2410c;        /* laranja escuro: texto/ícones sobre fundo claro (contraste 5:1) */
  --accent-dim: #f4623a1c;
  --blue: #3554aa;            /* azul de hover do template */
  --blue-soft: #3554aa;
  --navy: #031344;            /* azul-marinho do template (faixas e botões) */
  --navy-2: #0a1f5a;          /* cartões sobre as faixas azul-marinho */
  --navy-line: #1b3480;
  --text: #212529;
  --text-mid: #495057;
  --text-dim: #5c636a;
  --good: #198754;
  --warn: #b7791f;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }
a { color: var(--blue-soft); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { max-width: 100%; }
button { font-family: inherit; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }

/* ---------- Header / nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #080d1fcc;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, var(--accent), #c94f2a);
  display: flex; align-items: center; justify-content: center;
  color: #170a05;
}
.brand .mark svg { width: 20px; height: 20px; }
.brand .name { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--text); letter-spacing: 0.02em; text-transform: uppercase; }

nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text-mid); text-decoration: none;
  transition: color .15s;
}
nav.main-nav a:hover { color: var(--text); }

.btn {
  font-family: var(--body); font-weight: 600; font-size: 14px; color: #170a05;
  background: var(--accent); padding: 11px 20px; border-radius: 9px; border: none;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn.outline { background: transparent; color: var(--text); border: 1.5px solid var(--surface-border-solid); }
.btn.outline:hover { border-color: var(--accent); color: var(--accent-2); background: transparent; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--surface-border-solid);
  border-radius: 8px; width: 40px; height: 40px; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 1180px) {
  nav.main-nav { position: fixed; inset: 64px 0 auto 0; background: var(--bg-2); border-bottom: 1px solid var(--surface-border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  nav.main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--surface-border); }
  nav.main-nav .btn { margin-top: 12px; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Sections ---------- */
main { overflow-x: clip; }
section { padding-block: 64px; }
section + section { border-top: 1px solid var(--surface-border); }
section.tint { background: linear-gradient(180deg, #0b1631 0%, #0a1229 100%); }

.eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px; }
h2.title { font-size: clamp(26px, 4vw, 38px); }
.lead { color: var(--text-mid); font-size: 16.5px; margin-top: 14px; text-wrap: pretty; }
.section-head { max-width: none; }

/* ---------- Hero ---------- */
.hero { padding-block: 88px 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.hero .kicker { font-family: var(--mono); font-size: 12.5px; color: var(--blue-soft); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.06; }
.hero h1 .accent { color: var(--accent-2); }
.hero p.sub { color: var(--text-mid); font-size: 18.5px; margin-top: 20px; text-wrap: pretty; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.trust-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 56px; color: var(--text-dim); font-size: 13px; }
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--good); }

/* Ilustração decorativa que equilibra o lado direito do hero */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.radar { position: relative; width: min(380px, 100%); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.radar .ring { position: absolute; border-radius: 50%; border: 1px solid var(--surface-border-solid); }
.radar .ring-1 { inset: 0; }
.radar .ring-2 { inset: 14%; }
.radar .ring-3 { inset: 30%; border-color: var(--line-soft); }
.radar .shield-icon { position: relative; z-index: 2; color: var(--accent-2); filter: drop-shadow(0 0 22px var(--accent-dim)); }
.radar .sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-dim) 0deg, transparent 70deg 360deg);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-soft); box-shadow: 0 0 12px var(--blue-soft); }
.radar .dot-a { top: 6%; left: 62%; }
.radar .dot-b { top: 72%; left: 16%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.radar .dot-c { top: 58%; left: 84%; }
@media (prefers-reduced-motion: reduce) { .radar .sweep { animation: none; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Setores: 5 itens não enchem 3 colunas de forma exata — em vez de deixar
   um buraco na última linha, passa a flex e centra a linha incompleta. */
.sectors-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.sectors-grid .card { flex: 1 1 300px; max-width: 380px; }
@media (max-width: 560px) { .sectors-grid .card { max-width: none; } }

.card {
  background: var(--surface); border: 1px solid var(--surface-border-solid);
  border-radius: 14px; padding: 24px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-mid); font-size: 14.5px; }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-dim);
  border: 1px solid var(--surface-border-solid); display: flex; align-items: center; justify-content: center;
  color: var(--accent-2); margin-bottom: 16px;
}
.card ul.feat { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.card ul.feat li { color: var(--text-mid); font-size: 13.5px; padding-left: 18px; position: relative; }
.card ul.feat li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

.badge-num {
  width: 40px; height: 40px; border-radius: 100%; border: 1.5px solid var(--blue);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono);
  font-size: 13px; font-weight: 600; color: var(--blue-soft); margin-bottom: 14px; flex: none;
}

/* ---------- Check list ---------- */
.check-list { columns: 2; column-gap: 40px; margin-top: 18px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; break-inside: avoid; margin-bottom: 18px; }
@media (max-width: 700px) { .check-list { columns: 1; } }
.check-item .dot {
  width: 28px; height: 28px; border-radius: 100%; background: var(--accent-dim); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; color: var(--accent-2);
}
.check-item .dot svg { width: 13px; height: 13px; }
.check-item b { display: block; font-size: 15.5px; font-family: var(--display); font-weight: 700; }
.check-item p { color: var(--text-mid); font-size: 14px; margin-top: 3px; }

/* ---------- Steps (metodologia) ---------- */
.steps { display: flex; gap: 0; align-items: flex-start; width: 100%; margin-top: 30px; }
.step { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; text-align: center; }
.step .circ { width: 54px; height: 54px; border-radius: 100%; border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.step p { font-size: 13px; color: var(--text-mid); margin-top: 11px; max-width: 22ch; }
.step-arrow { flex: 0 1 64px; color: var(--accent); font-size: 20px; padding-top: 16px; text-align: center; }
@media (max-width: 760px) {
  .steps { flex-direction: column; align-items: flex-start; }
  .step-arrow { display: none; }
  .step { flex: none; flex-direction: row; text-align: left; width: auto; gap: 14px; }
  .step p { max-width: none; }
}

/* ---------- Mapa de ameaças ---------- */
.threat { margin-top: 30px; }
.threat-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.threat-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 100px;
  font-family: var(--mono); font-size: 12px; color: var(--text-mid);
  background: #0d1834; border: 1px solid var(--surface-border-solid);
}
.threat-pill .dot { width: 8px; height: 8px; border-radius: 100%; background: var(--text-dim); flex: none; }
.threat[data-state="ok"] .threat-pill .dot { background: var(--good); box-shadow: 0 0 0 3px #4fd1a52a; }
.threat[data-state="wait"] .threat-pill .dot { background: var(--warn); }
.threat-source { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); }

.threat-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.threat-stats .stat { background: var(--surface); border: 1px solid var(--surface-border-solid); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num.stat-text { font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.stat-label { color: var(--text-mid); font-size: 13px; margin-top: 5px; }
@media (max-width: 900px) { .threat-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-num { font-size: 25px; } .stat-num.stat-text { font-size: 19px; } }

.threat-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.threat-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 820px) { .threat-side { grid-template-columns: 1fr; } }
.threat-panel { background: var(--surface); border: 1px solid var(--surface-border-solid); border-radius: 16px; padding: 18px; }
.threat-panel h3 { font-size: 15.5px; margin-bottom: 12px; }
.threat-map-panel { padding: 14px 14px 12px; }

.map-box { position: relative; background: #0a1330; border-radius: 12px; overflow: hidden; }
.map-box svg { display: block; width: 100%; height: auto; }
.home-label { font-family: var(--mono); font-size: 10px; fill: var(--blue-soft); letter-spacing: 0.04em; }
.bubble { transition: fill-opacity .15s, stroke .15s; cursor: pointer; }
g.hl .bubble { fill-opacity: 1; stroke: #ffffff; stroke-width: 1.6; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; opacity: 0; } }

.map-tip {
  position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 2px;
  background: #050a1a; border: 1px solid var(--surface-border-solid); border-radius: 10px;
  padding: 9px 12px; font-size: 12.5px; color: var(--text-mid); max-width: 240px;
  box-shadow: 0 8px 24px #0009;
}
.map-tip strong { color: var(--text); font-family: var(--display); font-size: 13.5px; }
.map-tip .tip-dim { color: var(--text-dim); font-size: 11.5px; }
.map-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 20px; background: #0a1330cc; color: var(--text-mid); font-size: 14px;
}
.map-empty p:first-child { color: var(--text); font-family: var(--display); font-weight: 700; font-size: 16px; }

.map-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 6px 2px; font-size: 12px; color: var(--text-mid); font-family: var(--mono); }
.legend-title { color: var(--text-dim); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 100%; display: inline-block; }

.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank-row { padding: 7px 8px; border-radius: 9px; outline: none; }
.rank-row:hover, .rank-row:focus-visible { background: #14244a; }
.rank-row:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.rank-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.rank-val { color: var(--text-mid); font-variant-numeric: tabular-nums; }
.rank-bar { height: 6px; border-radius: 3px; background: #0d1834; margin-top: 6px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; border-radius: 3px; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--surface-border); font-size: 13px; }
.feed-row:last-child { border-bottom: 0; }
.feed-ip { color: var(--blue-soft); font-size: 12px; }
.feed-cc { color: var(--text-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-when { color: var(--text-dim); font-size: 12px; white-space: nowrap; }

.threat-table { margin-top: 18px; background: var(--surface); border: 1px solid var(--surface-border-solid); border-radius: 14px; padding: 4px 18px; }
.threat-table summary { cursor: pointer; padding: 13px 0; font-weight: 600; font-size: 14.5px; color: var(--text-mid); }
.threat-table summary:hover { color: var(--text); }
.table-scroll { overflow-x: auto; padding-bottom: 14px; max-height: 420px; overflow-y: auto; }
.threat-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.threat-table th, .threat-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--surface-border); }
.threat-table thead th { position: sticky; top: 0; background: var(--surface); color: var(--text-dim); font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.threat-table tbody th { font-weight: 500; color: var(--text); }
.threat-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.threat-note { margin-top: 18px; font-size: 12.5px; color: var(--text-dim); text-wrap: pretty; }

/* ---------- CTA banner ---------- */
.cta-banner {
  margin-top: 24px; border-radius: 16px; padding: 30px 28px;
  background: linear-gradient(120deg, #241338, #0f1c3d);
  border: 1px solid var(--surface-border-solid);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cta-banner h3 { font-size: 20px; }
.cta-banner p { color: var(--text-mid); font-size: 14px; margin-top: 6px; max-width: 48ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 28px; align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

form.contact-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--surface-border-solid); border-radius: 16px; padding: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-mid); }
.field input, .field select, .field textarea {
  background: #0d1834; border: 1px solid var(--surface-border-solid); border-radius: 9px;
  color: var(--text); font-family: var(--body); font-size: 14.5px; padding: 11px 13px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--text-dim); }
.form-status { font-size: 13.5px; border-radius: 9px; padding: 11px 13px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #0f2e26; color: var(--good); border: 1px solid #1c5544; }
.form-status.err { background: #2e1712; color: #ff9d80; border: 1px solid #6b3524; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Telefone com indicativo + verificação por SMS ---------- */
.phone-row { display: flex; gap: 8px; }
.phone-row .phone-country { flex: 0 0 190px; min-width: 0; }
.phone-row input { flex: 1; min-width: 0; }
.btn-verify { flex: none; padding-inline: 16px; font-size: 13px; }
.btn-verify[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 520px) {
  .phone-row { flex-wrap: wrap; }
  .phone-row .phone-country { flex: 1 1 auto; }
  .phone-row input { flex: 1 1 100%; }
  .btn-verify { flex: 1 1 100%; }
}
.otp-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.otp-row input { max-width: 180px; letter-spacing: 3px; text-align: center; font-weight: 700; }
.otp-row .btn { flex: none; font-size: 13px; padding-inline: 16px; }
.otp-status { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; min-height: 1.2em; }
.otp-status.ok { color: var(--good); }
.otp-status.err { color: #ff9d80; }
.turnstile-row { margin-top: 12px; }
.turnstile-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
button.btn[disabled] { opacity: .55; cursor: not-allowed; }
button.btn[disabled]:hover { background: var(--accent); }

.contact-info { display: grid; gap: 16px; align-content: space-between; }
.contact-info .card { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .card .icon { margin-bottom: 0; }
.contact-info .card b { display: block; font-size: 14.5px; }
.contact-info .card .val { color: var(--text-mid); font-size: 13.5px; margin-top: 3px; }

footer.site-footer {
  padding-block: 40px 64px; color: var(--text-dim); font-size: 12.5px;
  background:
    radial-gradient(700px 260px at 15% 0%, var(--accent-dim) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg-2) 45%, #05070f 100%);
}
.hr-fade { height: 1px; border: 0; margin: 0 0 32px; background: linear-gradient(90deg, var(--accent) 0%, var(--line-soft) 40%, transparent 90%); }
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--accent-2); }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 42px; height: 42px; border-radius: 100%;
  background: var(--surface); border: 1px solid var(--surface-border-solid); color: var(--text); display: flex;
  align-items: center; justify-content: center; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* Sem dados reais ainda: esconder os painéis vazios */
.threat:not([data-state="ok"]) .threat-side,
.threat:not([data-state="ok"]) .threat-table,
.threat:not([data-state="ok"]) .map-legend { display: none; }

/* ==========================================================
   TEMA CLARO (template Creative) — camada de estilo
   Só cores, fundos, tipografia e botões. A estrutura e os
   conteúdos do site não mudam.
   ========================================================== */

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; color: var(--text); }
h1, h2.title { font-weight: 400; }
.card h3, .cta-banner h3, .threat-panel h3 { font-weight: 700; }
a { color: var(--blue); }
a:hover { color: var(--accent-2); }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; color: var(--accent-2); }
.eyebrow::before { background: var(--accent); }
h2.title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; }
/* Barra por baixo dos títulos, como o "divider" do template */
h2.title::after { content: ""; display: block; width: 3.25rem; height: .2rem; background: currentColor; margin-top: 1.1rem; }
.lead { font-size: 15.5px; color: var(--text-mid); }
.card p, .check-item p { font-size: 14px; }

/* ---------- Cabeçalho: barra branca com sombra ---------- */
header.site-header { background: #ffffffee; border-bottom: 0; box-shadow: 0 .5rem 1rem rgba(0,0,0,.12); }
.brand .name { color: var(--text); font-family: var(--display); }
nav.main-nav a { font-family: var(--display); font-weight: 700; font-size: 13.5px; color: #6c757d; }
nav.main-nav a:hover { color: var(--accent-2); }
nav.main-nav a.btn { color: #fff; }
.menu-toggle { color: var(--text); background: #fff; border-color: var(--surface-border-solid); }
@media (max-width: 1180px) {
  nav.main-nav { background: #fff; border-bottom: 1px solid var(--surface-border-solid); box-shadow: 0 .5rem 1rem rgba(0,0,0,.12); }
  nav.main-nav a { border-bottom-color: var(--surface-border); }
}

/* ---------- Botões em pílula ---------- */
.btn {
  font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--navy); border: 2px solid var(--navy); border-radius: 10rem; padding: 12px 24px;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.block { border-radius: 10rem; }
button.btn[disabled], .btn[disabled] { opacity: .5; }
button.btn[disabled]:hover { background: var(--navy); border-color: var(--navy); }
.hero .btn, .hero .actions .btn { padding: 16px 32px; font-size: 13px; }

/* ---------- Faixas escuras (topo, ameaças, oferta inicial) ---------- */
.hero, #ameacas, #comecar {
  --text: #ffffff;
  --text-mid: rgba(255,255,255,.84);
  --text-dim: rgba(255,255,255,.66);
  --surface: var(--navy-2);
  --surface-2: #0f2a75;
  --surface-border: #1b348066;
  --surface-border-solid: var(--navy-line);
  --line-soft: #1b3480;
  --accent-2: #ff9a78;
  --accent-dim: #f4623a2e;
  --blue: #8fb4ff;
  --blue-soft: #8fb4ff;
  --good: #6fe0b6;
  color: var(--text);
}
.hero a, #ameacas a, #comecar a { color: #cfe0ff; }
.hero a.btn, #ameacas a.btn, #comecar a.btn { color: var(--navy); }
.hero .btn, #comecar .btn { background: #fff; border-color: #fff; color: var(--navy); }
.hero .btn:hover, #comecar .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.hero .btn.outline, #comecar .btn.outline { background: transparent; color: #fff; border-color: #fff; }
.hero .btn.outline:hover, #comecar .btn.outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero h1, #ameacas h2, #ameacas h3, #comecar h2, #comecar h3 { color: #fff; }

/* ---------- Secções ---------- */
section { padding-block: 72px; }
section + section { border-top: 0; }
section.tint { background: #f8f9fa; }
#ameacas, #comecar { background: var(--navy); }

/* ---------- Topo com imagem azul ---------- */
.hero {
  padding-block: 96px 80px;
  background:
    linear-gradient(180deg, rgba(3,19,68,.28) 0%, rgba(3,19,68,.50) 100%),
    url("../img/bg-masthead.jpg") center / cover no-repeat;
}
.hero h1 { font-weight: 400; line-height: 1.15; font-size: clamp(32px, 5vw, 54px); }
.hero h1 .accent { color: #ffb199; }
.hero p.sub { color: #fff; font-size: 17px; }
.trust-row { color: rgba(255,255,255,.85); }
.radar .ring { border-color: rgba(255,255,255,.38); }
.radar .ring-3 { border-color: rgba(255,255,255,.28); }
.radar .shield-icon { color: #fff; filter: drop-shadow(0 0 22px rgba(255,255,255,.45)); }
.radar .sweep { background: conic-gradient(from 0deg, rgba(255,154,120,.35) 0deg, transparent 70deg 360deg); }
.radar .dot { background: #bcd4ff; box-shadow: 0 0 12px #bcd4ff; }

/* ---------- Cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--surface-border-solid); border-radius: 10px; box-shadow: 0 .125rem .5rem rgba(0,0,0,.06); }
#ameacas .card, #comecar .card { box-shadow: none; }
.card h3 { color: var(--text); }
.card .icon { background: var(--accent-dim); border-color: transparent; color: var(--accent-2); }
.badge-num { border-color: var(--blue); color: var(--blue); font-family: var(--display); font-weight: 700; }
.check-item b { color: var(--text); }
.check-item .dot { border-color: var(--accent); color: var(--accent-2); }
.step .circ { border-color: var(--blue); color: var(--text); font-weight: 700; }
.step p b { color: var(--text); }
.step-arrow { color: var(--accent); }

/* ---------- Oferta inicial ---------- */
.cta-banner { background: linear-gradient(120deg, #0a1f5a, #14348f); border-color: var(--navy-line); }
.cta-banner h3 { color: #fff; }

/* ---------- Contacto ---------- */
form.contact-form { background: #fff; border: 1px solid var(--surface-border-solid); border-radius: 10px; box-shadow: 0 .25rem 1rem rgba(0,0,0,.07); }
.field label { color: var(--text-mid); font-family: var(--display); }
.field input, .field select, .field textarea { background: #fff; color: var(--text); border: 1px solid #ced4da; border-radius: 6px; font-family: var(--body); }
.field input::placeholder, .field textarea::placeholder { color: #8a929a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(53,84,170,.2); }
.form-status.ok { background: #e8f6ef; color: #146c43; border-color: #b6e2cc; }
.form-status.err { background: #fdecea; color: #b02a37; border-color: #f5c2c7; }
.otp-status.err { color: #b02a37; }
.contact-info .card b { color: var(--text); }

/* ---------- Rodapé claro ---------- */
footer.site-footer { background: #f8f9fa; border-top: 1px solid var(--surface-border-solid); color: var(--text-dim); }
.hr-fade { background: linear-gradient(90deg, var(--accent) 0%, #dee2e6 40%, transparent 90%); }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent-2); }
.back-to-top { background: #fff; color: var(--navy); border-color: var(--surface-border-solid); box-shadow: 0 .25rem .75rem rgba(0,0,0,.15); }

/* ---------- Mapa de ameaças sobre a faixa azul-marinho ---------- */
.threat-pill { background: #07194f; border-color: var(--navy-line); color: rgba(255,255,255,.85); }
.threat-source { color: rgba(255,255,255,.62); }
.map-box { background: #020c30; border: 1px solid var(--navy-line); }
.threat-map-panel, .threat-panel, .threat-table, .threat-stats .stat { box-shadow: none; }
#threat-svg > path { stroke: #2b4aa0; }
.home-label { fill: #cfe0ff; }
.map-empty { background: rgba(2,12,48,.86); }
.rank-row:hover, .rank-row:focus-visible { background: #12297a; }
.rank-bar { background: #07194f; }
.threat-table thead th { background: var(--navy-2); }
.legend-title { color: rgba(255,255,255,.62); }
.threat-note { color: rgba(255,255,255,.7); }
.map-tip { background: #020a2b; border-color: var(--navy-line); }

/* Aperta o menu em ecrãs médios */
@media (min-width: 1181px) and (max-width: 1300px) {
  nav.main-nav { gap: 16px; }
  nav.main-nav a { font-size: 12.5px; }
  nav.main-nav a.btn { padding: 10px 16px; font-size: 11.5px; }
}
@media (max-width: 520px) { .hero .btn, .hero .actions .btn { padding: 14px 22px; font-size: 12px; } }

/* ==========================================================
   NIS2 & DORA — secção na página inicial e páginas dedicadas
   ========================================================== */

/* ---------- Secção "Conformidade regulatória" (página inicial) ---------- */
.reg-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.reg-tag { font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); background: var(--accent-dim); border-radius: 100px; padding: 5px 12px; margin-bottom: 14px; }
.reg-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.reg-card ul.feat { margin: 14px 0 24px; }
.reg-link { margin-top: auto; }
.reg-help-title { margin: 40px 0 6px; font-size: 18px; }
.reg-help { margin-top: 14px; }
.reg-help .card h3 { font-size: 15.5px; }

/* ---------- Topo das páginas dedicadas ---------- */
.page-hero {
  color: #fff; padding-block: 64px 56px;
  background:
    linear-gradient(180deg, rgba(3,19,68,.55) 0%, rgba(3,19,68,.82) 100%),
    url("../img/bg-masthead.jpg") center / cover no-repeat;
}
.page-hero h1 { color: #fff; font-weight: 400; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.2; max-width: 22em; text-wrap: balance; }
.page-hero .eyebrow { color: #ffb199; }
.page-hero .eyebrow::before { background: #ffb199; }
.page-hero .sub { color: rgba(255,255,255,.9); font-size: 16.5px; margin-top: 18px; max-width: 62ch; }
.page-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero .btn { background: #fff; border-color: #fff; color: var(--navy); }
.page-hero .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.page-hero .btn.outline { background: transparent; color: #fff; border-color: #fff; }
.page-hero .btn.outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: #ffb199; }

/* ---------- Corpo do guia: índice lateral + artigo ---------- */
.doc-section { padding-block: 56px 72px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 13.5px; }
.toc-title { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--surface-border-solid); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-mid); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--accent-2); border-left-color: var(--accent); }
@media (max-width: 980px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: #f8f9fa; border: 1px solid var(--surface-border-solid); border-radius: 10px; padding: 16px 18px; }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; border-left: 0; }
  .toc a { padding: 6px 0; border-left: 0; margin-left: 0; }
}
@media (max-width: 520px) { .toc ol { grid-template-columns: 1fr; } }

.doc { min-width: 0; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; font-weight: 700; margin: 52px 0 16px; padding-top: 8px; scroll-margin-top: 96px; }
.doc h2:first-child { margin-top: 0; }
.doc h2::after { content: ""; display: block; width: 3rem; height: .2rem; background: var(--accent); margin-top: .8rem; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 30px 0 10px; }
.doc p { margin: 0 0 16px; color: var(--text-mid); font-size: 15px; }
.doc p strong, .doc li strong, .doc li b { color: var(--text); }
.doc a { color: var(--blue); text-underline-offset: 3px; }
.doc a:hover { color: var(--accent-2); }
.doc .note { font-size: 13px; color: var(--text-dim); }
.doc ul, .doc ol { color: var(--text-mid); font-size: 15px; }

/* ---------- Factos-chave ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 20px; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { background: #f8f9fa; border: 1px solid var(--surface-border-solid); border-top: 3px solid var(--accent); border-radius: 8px; padding: 16px 18px; }
.fact-k { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.fact-v { font-size: 14px; line-height: 1.55; color: var(--text); }
@media (max-width: 880px) { .facts, .facts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts, .facts-3 { grid-template-columns: 1fr; } }

/* ---------- Caixas de destaque ---------- */
.callout { border-left: 4px solid var(--blue); background: #eef2fb; border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 20px 0; font-size: 14.5px; color: var(--text-mid); }
.callout b { color: var(--text); }
.callout.warn { border-left-color: var(--accent); background: #fff3ee; }

/* ---------- Calendário (linha do tempo) ---------- */
.timeline { list-style: none; margin: 22px 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--surface-border-solid); }
.tl-item { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; padding: 0 0 22px 26px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-item.is-past::before { border-color: var(--accent); background: var(--accent); }
.tl-date { font-family: var(--display); font-weight: 700; font-size: 13.5px; color: var(--text); padding-top: 2px; }
.tl-body { font-size: 14.5px; color: var(--text-mid); line-height: 1.6; }
.tl-body b { color: var(--text); }
@media (max-width: 560px) { .tl-item { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--surface-border-solid); border-radius: 8px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--surface-border); color: var(--text-mid); line-height: 1.5; }
.doc-table thead th { background: var(--navy); color: #fff; font-family: var(--display); font-size: 12.5px; letter-spacing: .04em; border-bottom: 0; }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tbody tr:nth-child(even) td { background: #fafbfc; }
.doc-table td:first-child { color: var(--text); }

/* ---------- Cartões, pilares, listas ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.mini-card { background: #fff; border: 1px solid var(--surface-border-solid); border-radius: 10px; padding: 20px 22px; box-shadow: 0 .125rem .5rem rgba(0,0,0,.05); }
.mini-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.mini-card p { margin: 0; font-size: 14px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.pillars .mini-card:last-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.check-ul { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 10px; }
.check-ul li { position: relative; padding-left: 26px; line-height: 1.6; }
.check-ul li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.num-list, .method { margin: 14px 0 22px; padding-left: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.num-list li, .method li { counter-increment: n; position: relative; padding-left: 44px; line-height: 1.6; font-size: 15px; color: var(--text-mid); }
.num-list li::before, .method li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 12.5px; }
.method li b, .num-list li b { color: var(--text); }

/* ---------- Perguntas frequentes ---------- */
.faq { display: grid; gap: 10px; margin: 18px 0 8px; }
.faq details { background: #fff; border: 1px solid var(--surface-border-solid); border-radius: 8px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent-2); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--blue); }
.faq details p { margin: 0 0 16px; font-size: 14.5px; }

/* ---------- CTA e fontes ---------- */
.doc-cta { margin: 44px 0 10px; }
.doc-cta h3 { margin: 0; color: #fff; font-size: 19px; }
.doc-cta p { margin: 6px 0 0; color: rgba(255,255,255,.85); font-size: 14px; }
.doc-cta .btn { background: #fff; border-color: #fff; color: var(--navy); }
.doc-cta .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.sources { font-size: 14px; padding-left: 20px; display: grid; gap: 6px; }
.sources li { color: var(--text-mid); }

/* Menu: nunca parte o texto em duas linhas */
nav.main-nav a, .brand .name { white-space: nowrap; }

/* Botões "Pedir diagnóstico": ao passar o rato ficam com a cor do botão
   "Conhecer os serviços" (laranja com texto azul-marinho). */
nav.main-nav a.btn:hover,
.hero .btn.outline:hover,
.page-hero .btn.outline:hover {
  background: var(--accent); border-color: var(--accent); color: var(--navy);
}

/* ---------- Cabeçalho e rodapé: cores originais (tema escuro) ----------
   Repõe as cores que o menu e o rodapé tinham antes do tema claro. O resto
   do site mantém o tema claro. */
header.site-header, footer.site-footer {
  --bg: #080d1f;
  --bg-2: #0b1330;
  --surface: #101d3c;
  --surface-2: #152548;
  --surface-border: #26386688;
  --surface-border-solid: #2b3d6b;
  --line-soft: #20345e;
  --accent: #ef6c45;
  --accent-2: #ff9068;
  --accent-dim: #ef6c4522;
  --blue: #4f95d6;
  --text: #f4f7fc;
  --text-mid: #b9c6e2;
  --text-dim: #7c8bb0;
  color-scheme: dark;
}
header.site-header {
  background: #080d1ff2; backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border); box-shadow: none;
}
.brand .name { color: #f4f7fc; }
nav.main-nav a { color: #b9c6e2; }
nav.main-nav a:hover { color: #f4f7fc; }
nav.main-nav a.btn { background: #ef6c45; border-color: #ef6c45; color: #170a05; }
nav.main-nav a.btn:hover { background: #f4623a; border-color: #f4623a; color: var(--navy); }
.menu-toggle { color: #f4f7fc; background: none; border-color: #2b3d6b; }
@media (max-width: 1180px) {
  nav.main-nav { background: #0b1330; border-bottom: 1px solid #26386688; box-shadow: none; }
  nav.main-nav a { border-bottom-color: #26386688; }
}
footer.site-footer {
  border-top: 0; color: #7c8bb0;
  background:
    radial-gradient(700px 260px at 15% 0%, #ef6c4522 0%, transparent 60%),
    linear-gradient(180deg, #080d1f 0%, #0b1330 45%, #05070f 100%);
}
footer.site-footer .hr-fade { background: linear-gradient(90deg, #ef6c45 0%, #20345e 40%, transparent 90%); }
footer a { color: #7c8bb0; }
footer a:hover { color: #ff9068; }
nav.main-nav a.btn { justify-content: center; }

/* Três cartões de conformidade: no tablet, o terceiro ocupa a linha toda */
@media (min-width: 561px) and (max-width: 900px) { .reg-grid.grid-3 > :last-child { grid-column: 1 / -1; } }

/* ---------- Seletor de idioma (PT / EN): lista pendente ao lado do botão "Pedir diagnóstico" ---------- */
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-dd { position: relative; }
.lang-dd summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 11px; border: 1px solid #2b3d6b; border-radius: 10rem;
  font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: #b9c6e2;
  transition: border-color .15s, color .15s;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover, .lang-dd[open] summary { border-color: #5a74b8; color: #f4f7fc; }
.lang-dd summary:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
.lang-dd .chev { transition: transform .15s; }
.lang-dd[open] .chev { transform: rotate(180deg); }
.lang-dd .flag { display: block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff26; flex: none; }
.lang-dd ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: #0b1330; border: 1px solid #2b3d6b; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.lang-dd li { margin: 0; }
.lang-dd li a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  font-family: var(--display); font-size: 13px; font-weight: 700; color: #b9c6e2; text-decoration: none;
}
.lang-dd li a:hover, .lang-dd li a:focus-visible { background: #152548; color: #f4f7fc; outline: 0; }
.lang-dd li a[aria-current="true"] { color: #f4f7fc; }
.lang-dd li a[aria-current="true"]::after { content: "✓"; margin-left: auto; color: #ff9068; font-size: 12px; }
/* O menu móvel abre logo abaixo do cabeçalho */
@media (max-width: 1180px) {
  nav.main-nav { inset: 100% 0 auto 0; }
  .nav-right { gap: 10px; }
}
/* Com a lista de idiomas ao lado do botão, o menu precisa de ser um pouco mais compacto */
@media (min-width: 1301px) {
  nav.main-nav { gap: 16px; }
  nav.main-nav a { font-size: 12.5px; }
  nav.main-nav a.btn { padding: 11px 18px; font-size: 11.5px; }
  .nav-right { gap: 12px; }
}

/* Top sources + Latest activity ficam dentro do bloco "Ver todos os paises em tabela" */
.threat-table .threat-side { margin: 6px 0 18px; }

/* Utilitarios (substituem estilos inline, para a CSP nao precisar de 'unsafe-inline') */
.mt-28 { margin-top: 28px; }
.mt-56 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }

/* Ligacao "Saltar para o conteudo" (so aparece com o teclado) */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 1000; background: #fff; color: #031344; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.skip-link:focus { top: 12px; outline: 2px solid var(--accent); outline-offset: 2px; }

/* Ligacao de apoio dentro de um cartao */
.card-cta { margin-top: 14px; font-size: 14px; font-weight: 600; }
.card-cta a { color: #b8441f; text-decoration: underline; text-underline-offset: 3px; }
.card-cta a:hover { color: #8f3216; }

/* Pagina 404: rodape sempre em baixo */
.err { min-height: 100vh; display: flex; flex-direction: column; }
.err main { flex: 1; background: #031344; }

/* Botao "Enviar mensagem": azul normalmente; laranja com texto azul so quando o rato esta por cima */
button#form-submit.btn:hover,
button#form-submit.btn[disabled]:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }

/* ---------- Rodapé: dois escritórios lado a lado (Portugal | Cabo Verde) ---------- */
.foot-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 0 24px; }
.foot-offices .office { padding: 18px 22px; border: 1px solid #26386688; border-radius: 12px; background: #ffffff08; }
.foot-offices h3 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #ff9068; font-family: var(--mono); font-weight: 600; }
.foot-offices p { margin: 0 0 8px; font-size: .92rem; line-height: 1.6; color: #b9c6e2; }
.foot-offices p:last-child { margin-bottom: 0; }
.foot-offices a { color: #b9c6e2; }
.foot-offices a:hover { color: #ff9068; }
.site-footer .foot-grid { padding-top: 16px; border-top: 1px solid #26386688; }
@media (max-width: 640px) { .foot-offices { grid-template-columns: 1fr; gap: 14px; } }

/* Contacto: os 3 cartões repartem a altura da coluna do formulário em partes iguais */
.contact-info { grid-template-rows: repeat(3, 1fr); align-content: stretch; }
.contact-info .card { align-items: center; }
.contact-info .card .icon { flex-shrink: 0; }
