/* =====================================================================
   site.css  —  Camada global partilhada por todas as páginas
   (carregada depois de style.css; sobrepõe tipografia, nav e footer)
   ===================================================================== */

:root {
  --navy: #0a1b3d;
  --navy-2: #102650;
  --brand: #0057ff;
  --brand-dark: #0043c7;
  --brand-cyan: #1e9bff;
  --ink: #0b1220;
  --text: #3b4658;
  --muted: #6b7587;
  --line: #e4e8ef;
  --mist: #f5f7fb;
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --nav-h: 76px;
}

body {
  font-family: var(--font-body) !important;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.sec-title,
.news-card-title,
.article-title {
  font-family: var(--font-head);
}

::selection {
  background: rgba(0, 87, 255, 0.16);
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: #c3cad6; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9aa4b5; }

/* O cursor personalizado foi descontinuado */
.cursor, .cursor-ring { display: none !important; }

/* ── Navegação ─────────────────────────────────────────────────────── */
nav#navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

nav#navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 27, 61, 0.35);
}

#navbar .nav-inner {
  height: var(--nav-h);
  max-width: 1240px;
  padding: 0 24px;
  gap: 32px;
}

.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-brand img { height: 36px; width: auto; display: block; }

#navbar .nav-links { gap: 30px; margin-left: auto; }

#navbar .nav-links > a,
#navbar .inst-trigger {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

#navbar .nav-links > a::after { bottom: -8px; }
#navbar .nav-links > a:hover,
#navbar .inst-trigger:hover { color: var(--ink); }
#navbar .nav-links > a.is-active,
#navbar .inst-trigger.is-active { color: var(--brand); }
#navbar .nav-links > a.is-active::after { transform: scaleX(1); }

.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-dark); }

@media (max-width: 1080px) {
  #navbar .nav-links { gap: 22px; }
}

@media (max-width: 960px) {
  #navbar .nav-links { display: none; }
  #navbar .mobile-toggle { display: flex; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-brand img { height: 30px; }
  :root { --nav-h: 66px; }
}

/* Menu mobile */
.mobile-nav {
  justify-content: flex-start;
  align-items: stretch;
  padding: calc(var(--nav-h) + 24px) 24px 32px;
}
.mobile-nav > a,
.mnav-group-toggle {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  justify-content: space-between;
  padding: 16px 4px;
}
.mnav-group-toggle.open .mnav-chevron { transform: rotate(180deg); }
.mnav-close { top: 14px; right: 18px; z-index: 2; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #aab4c6;
  padding: 72px 24px 0;
}

.sf-inner { max-width: 1240px; margin: 0 auto; }

.sf-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
}

.sf-brand img { height: 34px; width: auto; display: block; margin-bottom: 20px; }
.sf-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 340px; }

.sf-social { display: flex; gap: 10px; margin-top: 24px; }
.sf-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.2s;
}
.sf-social a:hover { background: var(--brand); }

.sf-col { display: flex; flex-direction: column; gap: 12px; }
.sf-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}
.sf-col a,
.sf-col span {
  font-size: 0.9rem;
  color: #aab4c6;
  text-decoration: none;
  transition: color 0.2s;
}
.sf-col a:hover { color: #fff; }

.sf-contact a,
.sf-contact span { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.sf-contact i { color: var(--brand-cyan); font-size: 1.05rem; line-height: 1.35; }

.sf-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  color: #7f8aa0;
}

@media (max-width: 960px) {
  .sf-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 56px; }
  .sf-top { grid-template-columns: 1fr; }
}

/* ── WhatsApp fixo ─────────────────────────────────────────────────── */
.whatsapp-fixo {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(18, 140, 70, 0.55);
  transition: transform 0.2s;
}
.whatsapp-fixo:hover { transform: translateY(-2px); color: #fff; }

/* ── Feedback do formulário de contacto ────────────────────────────── */
.form-feedback {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}
.fb-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.fb-erro { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* ══════════════════════════════════════════════════════════════════
   Componentes partilhados (home e páginas institucionais)
   ══════════════════════════════════════════════════════════════════ */

.h-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.h-section { padding: 112px 0; }
.h-section--mist { background: var(--mist); }
.h-section--dark { background: var(--navy); color: #c5cedd; }

/* ── Tipografia ────────────────────────────────────────────────────── */
.h-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.h-eyebrow--light { color: #7cc0ff; }

.h-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 640px;
}
.h-title--light { color: #fff; }

.h-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
}

.h-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}
.h-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.h-head--center .h-title { max-width: 720px; }
.h-head-aside {
  max-width: 420px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}
.h-head-aside--light { color: #a9b5c9; }

.h-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.h-link i { transition: transform 0.2s; }
.h-link:hover i { transform: translateX(4px); }

/* ── Botões ────────────────────────────────────────────────────────── */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.h-btn--primary { background: var(--brand); color: #fff; }
.h-btn--primary:hover { background: var(--brand-dark); }
.h-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.h-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.h-btn--white { background: #fff; color: var(--navy); }
.h-btn--white:hover { background: #e8efff; }
.h-btn--block { width: 100%; }
.h-btn:disabled { opacity: 0.7; cursor: wait; }

/* ── CTA ───────────────────────────────────────────────────────────── */
.h-cta {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(30, 155, 255, 0.35) 0%, rgba(30, 155, 255, 0) 55%),
    linear-gradient(120deg, #0a1b3d 0%, #0b2a6b 55%, #0048d6 100%);
  color: #fff;
  padding: 88px 0;
}
.h-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.h-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 620px;
  margin-bottom: 12px;
}
.h-cta p { color: #c4d2ec; font-size: 1.02rem; }
.h-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

@media (max-width: 900px) {
  .h-section { padding: 80px 0; }
  .h-head, .h-cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .h-head--center { align-items: center; }
}

@media (max-width: 600px) {
  .h-cta-actions, .h-cta-actions .h-btn { width: 100%; }
}

/* ── Clientes ──────────────────────────────────────────────────────── */
.h-clients { padding: 88px 0 96px; border-bottom: 1px solid var(--line); }

.h-clients-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
}
.h-clients-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 480px;
  line-height: 1.3;
}
.h-clients-head p { max-width: 420px; color: var(--text); line-height: 1.65; font-size: 0.95rem; }

.h-logos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.h-logos li {
  height: 132px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.h-logos img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s, opacity 0.3s;
}
.h-logos li:hover img { filter: none; opacity: 1; }

@media (max-width: 1100px) { .h-logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .h-clients-head { flex-direction: column; align-items: flex-start; gap: 20px; } }
@media (max-width: 600px) { .h-logos { grid-template-columns: repeat(2, 1fr); } .h-logos li { height: 110px; } }

/* ── Movimento reduzido ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal2 { opacity: 1 !important; transform: none !important; transition: none !important; }
}
