:root {
  --ink: #10202a;
  --muted: #58707a;
  --line: #d8e5e8;
  --panel: #f6fbfb;
  --white: #ffffff;
  --brand: #0098b8;
  --brand-dark: #006a84;
  --accent: #67b246;
  --sun: #f0c35a;
  --shadow: 0 20px 50px rgba(16, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Header — 2 linhas: topbar (logo + contactos + bandeira PT)
   e navbar abaixo. Layout institucional.
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(16, 32, 42, 0.06);
}

.topbar {
  width: min(1460px, 100%);
  min-height: 176px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  /* Padding direito normal; esquerdo bem reduzido pra colar a logo
     na borda da viewport (1vw mínimo dá um respiro tátil em desktop
     wide sem deixar o logo "deslocado" do canto). */
  padding: 12px clamp(22px, 4vw, 60px) 12px clamp(12px, 1vw, 22px);
}

/* Logo: versão empilhada/vertical oficial (PNG 500×499, proporção ~1:1
   — ícone "C" sobre "CONSTA / ANÁLISE DE ÁGUA / Garantindo qualidade!").
   Altura generosa pra a marca dominar o header — pedido explícito do
   utilizador depois das versões 72/116 ainda serem percebidas como
   pequenas. */
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 160px;
}

.brand img {
  display: block;
  width: auto;
  height: 100%;
  max-height: 160px;
  object-fit: contain;
  object-position: left center;
  /* High-quality scaling (impedir blurring quando o navegador
     redimensiona o PNG da logo). */
  image-rendering: -webkit-optimize-contrast;
  filter: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  font-size: 0.92rem;
}

.header-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: color 160ms ease;
}

.header-contact-link svg {
  flex: 0 0 auto;
  color: var(--brand);
}

.header-contact-whatsapp svg {
  color: #25d366;
}

.header-contact-link:hover {
  color: var(--brand);
}

/* Bandeira PT — SVG real, proporção 2:3, sombra técnica */
.portugal-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  background: linear-gradient(180deg, #f6fbfb 0%, #eaf3f3 100%);
  border: 1px solid rgba(16, 32, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(16, 32, 42, 0.04);
}

.portugal-flag {
  width: 48px;
  height: 32px;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.18);
}

.portugal-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.portugal-badge-text small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portugal-badge-text strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* Navbar — barra escura abaixo do topbar */
.navbar {
  background: linear-gradient(90deg, #0d2535 0%, #103246 100%);
  color: rgba(255, 255, 255, 0.92);
}

.main-nav {
  width: min(1460px, 100%);
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 60px);
  font-size: 0.96rem;
  font-weight: 500;
}

.main-nav > a {
  position: relative;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.84);
  transition: color 160ms ease;
}

.main-nav > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav > a:hover {
  color: var(--white);
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
  transform: scaleX(1);
}

.main-nav > a.active {
  color: var(--white);
}

.main-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 16px !important;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 152, 184, 0.32);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.main-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 152, 184, 0.4);
}

.main-nav .nav-cta::after {
  display: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: var(--white);
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    /* Camada 1: gradient azul profundo na esquerda → cyan transparente direita */
    linear-gradient(110deg, rgba(7, 30, 48, 0.92) 0%, rgba(0, 80, 120, 0.65) 45%, rgba(0, 130, 180, 0.25) 100%),
    /* Camada 2: foto de laboratório de água — específica, não genérica */
    url("https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&w=2200&q=80")
      center / cover;
}

/* Tech grid pattern overlay — sutil, transmite "lab/sistema" */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 30%, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin-left: clamp(22px, 8vw, 110px);
  padding: 80px 22px 80px 0;
}

.hero-country {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px;
  color: var(--white);
  background: rgba(54, 169, 225, 0.18);
  border: 1px solid rgba(54, 169, 225, 0.5);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-block;
  background: #36a9e1;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(54, 169, 225, 0.6);
  animation: hero-pulse 2s ease-out infinite;
}

@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(54, 169, 225, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(54, 169, 225, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 169, 225, 0); }
}

.hero-lead {
  max-width: 540px;
  margin-top: 12px !important;
}

.hero-credibility {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-credibility li {
  list-style: none;
}

.hero-credibility a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.hero-credibility a:hover,
.hero-credibility a:focus-visible {
  background: rgba(54, 169, 225, 0.22);
  border-color: rgba(54, 169, 225, 0.6);
  transform: translateY(-2px);
  outline: none;
}

.hero-credibility svg {
  color: var(--brand);
  flex: 0 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.hero-content p {
  max-width: 505px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}

.hero-actions,
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 500;
  line-height: 1.15;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, #36a9e1 0%, var(--brand-dark) 100%);
  box-shadow: 0 8px 22px rgba(0, 152, 184, 0.32);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--brand) 0%, #003e4f 100%);
  box-shadow: 0 12px 28px rgba(0, 152, 184, 0.42);
}

.button.ghost {
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 96px);
  background: var(--white);
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.metrics article {
  min-height: 170px;
  padding: 34px;
  background: var(--panel);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-weight: 700;
}

/* Missão / Visão / Valores ------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  background: var(--white);
}

.pillars article {
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-top: 5px solid var(--brand);
}

.pillars article p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.pillar-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pillar-values li {
  padding: 6px 14px;
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

/* Diferenciais ------------------------------------------------- */

.differentials {
  background: var(--white);
}

.section-heading-center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading-center h2 {
  color: #003b78;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.08;
}

.differential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.differential-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.differential-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px rgba(16, 32, 42, 0.08);
}

.differential-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 14px;
}

.differential-icon svg {
  width: 28px;
  height: 28px;
}

.differential-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

.differential-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Plataforma Consta AI ----------------------------------------- */

.platform {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(54, 169, 225, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0d2535 0%, #103246 100%);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.platform > * {
  position: relative;
}

.platform .section-heading-center h2 {
  color: var(--white);
}

.platform-lead {
  max-width: 680px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

/* Grid 2×4 (4 colunas em desktop, 2 em tablet, 1 em mobile). Setas
   horizontais entre cards são desenhadas via ::after no card que NÃO
   é o último da linha — `:nth-child(4n)` em desktop, `:nth-child(2n)`
   em tablet, all-hidden em mobile (vira coluna). */
.platform-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 36px;
  max-width: 1280px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 22px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.flow-step:hover {
  border-color: rgba(54, 169, 225, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(8, 22, 32, 0.35);
}

/* Badge com o número do passo. Posicionada acima/à esquerda como na
   imagem de referência — sai um pouco do card pra dar a sensação de
   "etapa" visual, similar ao diagrama interno da Consta. */
.flow-step-num {
  position: absolute;
  top: -12px;
  left: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #36a9e1 0%, #0098b8 100%);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(8, 22, 32, 0.45);
}

.flow-step-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(54, 169, 225, 0.3) 0%, rgba(0, 152, 184, 0.18) 100%);
  border-radius: 12px;
  margin-top: 6px;
}

.flow-step-icon svg {
  width: 24px;
  height: 24px;
}

.flow-step h3 {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 4px;
}

.flow-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Setas entre cards (desktop): seta à direita de cada card que não
   é o último da linha. Pseudo-element posicionado dentro do gap. */
.flow-step::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
  color: rgba(54, 169, 225, 0.55);
  font-size: 1.5rem;
  font-weight: 700;
  pointer-events: none;
}

.flow-step:nth-child(4n)::after,
.flow-step:last-child::after {
  content: none;
}

/* Variante: passo de anomalia (4). Borda + glow vermelho/âmbar pra
   sinalizar o ponto crítico de detecção. */
.flow-step.is-alert {
  border-color: rgba(239, 83, 80, 0.55);
  background: rgba(239, 83, 80, 0.06);
}

.flow-step.is-alert .flow-step-num {
  background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
}

.flow-step.is-alert .flow-step-icon {
  color: #ef5350;
  background: linear-gradient(135deg, rgba(239, 83, 80, 0.25) 0%, rgba(198, 40, 40, 0.14) 100%);
}

/* Variante: passo de aprovação humana (6). Verde pra reforçar que
   é o momento "humano-no-loop" — diferencial central do produto. */
.flow-step.is-human {
  border-color: rgba(56, 191, 129, 0.55);
  background: rgba(56, 191, 129, 0.06);
}

.flow-step.is-human .flow-step-num {
  background: linear-gradient(135deg, #38bf81 0%, #2e9b67 100%);
}

.flow-step.is-human .flow-step-icon {
  color: #38bf81;
  background: linear-gradient(135deg, rgba(56, 191, 129, 0.25) 0%, rgba(46, 155, 103, 0.14) 100%);
}

/* Faixa-resumo abaixo do grid: mensagem-âncora ("IA acionada apenas
   quando há anomalia, sempre com aprovação humana"). */
.platform-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 18px 26px;
  background:
    linear-gradient(90deg, rgba(54, 169, 225, 0.16) 0%, rgba(56, 191, 129, 0.10) 100%);
  border: 1px solid rgba(54, 169, 225, 0.35);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.platform-banner-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #36a9e1;
}

.platform-banner p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.platform-banner strong {
  color: var(--white);
}

/* Legacy `.platform-flow` (5 nós horizontais) — não é referenciado
   pelo HTML atual mas deixa a regra inerte. Remover depois que o
   redesign 2x4 for aceito definitivamente. */
.platform-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  max-width: 1280px;
  margin: 56px auto 0;
}

.platform-node {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: border-color 220ms ease, transform 220ms ease;
}

.platform-node:hover {
  border-color: rgba(54, 169, 225, 0.5);
  transform: translateY(-4px);
}

.platform-node-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(54, 169, 225, 0.3) 0%, rgba(0, 152, 184, 0.18) 100%);
  border: 1px solid rgba(54, 169, 225, 0.4);
  border-radius: 12px;
}

.platform-node-icon svg {
  width: 26px;
  height: 26px;
}

.platform-node-cloud {
  background: rgba(54, 169, 225, 0.1);
  border-color: rgba(54, 169, 225, 0.4);
}

.platform-node h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.platform-node p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
}

.platform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(54, 169, 225, 0.5);
  font-size: 1.6rem;
  font-weight: 700;
}

.platform-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}

.platform-stack li {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.platform-stack li strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(54, 169, 225, 0.95);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Como funciona — Jornada da decisão técnica ------------------- */

.journey {
  background: var(--white);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}

.journey-steps li {
  position: relative;
  padding: 28px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.journey-steps li:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 32, 42, 0.08);
}

.journey-num {
  position: absolute;
  top: -16px;
  left: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(0, 152, 184, 0.4);
}

.journey-steps li h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.journey-steps li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* Laboratório próprio — galeria + credenciais ------------------ */

.lab {
  background: var(--white);
}

.lab .section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.lab-lead {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Grid masonry: 2 colunas, hero ocupa 2 linhas à esquerda */
.lab-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.lab-tile {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  cursor: zoom-in;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.lab-tile:hover,
.lab-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 32, 42, 0.18);
  outline: none;
}

.lab-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.lab-tile:hover img {
  transform: scale(1.05);
}

.lab-tile-hero {
  grid-column: span 2;
  grid-row: span 2;
}

.lab-tile-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 200ms ease, transform 200ms ease;
}

.lab-tile:hover .lab-tile-zoom,
.lab-tile:focus-visible .lab-tile-zoom {
  opacity: 1;
  transform: scale(1);
}

.lab-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}

.lab-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.lab-credentials svg {
  flex: 0 0 auto;
  color: var(--brand);
}

.lab-credentials strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.lab-credentials span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Lightbox modal full-screen ----------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(7, 18, 28, 0.92);
  backdrop-filter: blur(8px);
  animation: lightbox-in 220ms ease;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lightbox-zoom 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lightbox-zoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Approval demo (WhatsApp mockup) ------------------------------ */

.approval-demo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(16, 32, 42, 0.06);
}

.approval-demo-text h3 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

.approval-demo-text > p {
  color: var(--muted);
  font-size: 1.02rem;
}

.approval-demo-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.approval-demo-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
}

.approval-demo-list svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}

/* Phone frame */
.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  padding: 12px;
  background: linear-gradient(160deg, #1c1c1e 0%, #0a0a0a 100%);
  border-radius: 38px;
  box-shadow:
    0 30px 60px rgba(16, 32, 42, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 110px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  position: relative;
  background: #0d2535;
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  color: var(--white);
  font-size: 0.86rem;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.phone-statusbar-icons {
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.phone-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-chat-avatar svg {
  display: block;
}

.phone-chat-meta strong {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
}

.verified-tick {
  display: inline-block;
  margin-left: 4px;
  width: 14px;
  height: 14px;
  text-align: center;
  line-height: 14px;
  color: var(--white);
  background: #22c55e;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 900;
}

.phone-chat-meta small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
}

.phone-chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 22px;
}

.chat-bubble {
  position: relative;
  align-self: flex-start;
  max-width: 92%;
  padding: 12px 14px 18px;
  background: #1f3a4d;
  border-radius: 14px 14px 14px 4px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.chat-bubble p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.9);
}

.chat-bubble p:last-of-type {
  margin-bottom: 0;
}

.chat-question {
  margin-top: 6px !important;
  color: var(--white) !important;
  font-weight: 600;
}

.chat-time {
  position: absolute;
  right: 10px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
}

.chat-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: default;
  pointer-events: none;
}

.chat-action-yes {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.32);
}

.chat-action-no {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.28);
}

/* Reports showcase (#qualidade) ---------------------------------
   Substituiu o antigo `.report-mockup` (HTML/CSS reproduzindo um
   relatório fictício). Agora exibe imagens reais dos 2 formatos
   de relatório que a plataforma exporta — anomalia + periódico —
   lado a lado, clicáveis para lightbox.
   O CSS legado de `.report-mockup`/`.report-paper`/etc. fica abaixo
   inerte (não há HTML que use). Remover quando confirmado o redesign. */
.reports {
  background: var(--white);
}

.reports-lead {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.reports-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 48px auto 0;
}

/* `.report-card` é um <button> nativo — reset do padding/border do
   browser e reaproveita a estética dos cards do site (border, hover
   translate, shadow). data-lightbox + <img> dentro dispara o zoom. */
.report-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.report-card:hover,
.report-card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(16, 32, 42, 0.12);
}

.report-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.report-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  /* Sutil sombra interna pra dar peso de "documento" sobre o card */
  box-shadow: 0 6px 18px rgba(16, 32, 42, 0.10);
}

.report-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 6px;
}

.report-card-label {
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
}

.report-card-sub {
  color: var(--muted);
  font-size: 0.86rem;
}

.reports-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  max-width: 920px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}

.reports-checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
}

/* Check verde antes de cada item — usa SVG inline data-uri pra evitar
   um asset extra. Mesmo glifo da `.check-list` original. */
.reports-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* Report mockup (LEGACY — antigo split #qualidade). Mantido inerte
   após o redesign do showcase de relatórios; nenhum HTML referencia
   estas regras. Remover na próxima limpeza de CSS. */

.report-mockup {
  perspective: 1600px;
}

.report-paper {
  background: var(--white);
  border: 1px solid #d8e5e8;
  border-radius: 12px;
  box-shadow:
    0 30px 70px rgba(16, 32, 42, 0.18),
    0 4px 12px rgba(16, 32, 42, 0.06);
  overflow: hidden;
  transform: rotate(-1.4deg);
  transition: transform 360ms ease;
}

.report-mockup:hover .report-paper {
  transform: rotate(0deg);
}

.report-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #003b78 0%, #0061b8 100%);
  color: var(--white);
}

.report-header-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.report-header-brand small {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.report-header-title h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-header-title small {
  font-size: 0.66rem;
  opacity: 0.78;
}

.report-alert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.report-alert-badge small {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.report-alert-badge strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #e5edf0;
}

.report-block {
  padding: 14px 16px;
  background: var(--white);
}

.report-block header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  color: #003b78;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5edf0;
}

.report-block-num {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #003b78;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 900;
}

.report-block dl {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 0.74rem;
}

.report-block dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.report-block dt {
  color: #5f6870;
  font-weight: 600;
}

.report-block dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.report-block p {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 0.74rem;
  line-height: 1.5;
}

.report-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0;
}

.report-summary-row > div small {
  display: block;
  color: #6b7280;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.report-summary-row > div strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.report-summary-pill,
.report-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.report-pill-critical {
  color: #b91c1c;
  background: #fee2e2;
}

.report-pill-ok {
  color: #15803d;
  background: #dcfce7;
}

.report-block-table {
  grid-column: 1 / -1;
}

.report-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.report-block th,
.report-block td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.report-block th {
  color: #003b78;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f8fafc;
}

.report-block td {
  color: #1f2937;
}

.report-confidence {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  margin-top: 4px;
}

.report-confidence small {
  grid-column: 1 / -1;
  color: #6b7280;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.report-confidence-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #fee2e2;
  border-radius: 999px;
}

.report-confidence-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  border-radius: 999px;
}

.report-confidence > strong {
  color: #b91c1c;
  font-size: 0.84rem;
  font-weight: 900;
}

.report-approval {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--white) 60%);
}

.report-approved-stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #16a34a;
}

.report-approved-stamp span {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-approval p {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  margin: 4px 0 0;
}

.report-approval small {
  color: #5f6870;
  font-weight: 600;
}

.report-approval strong {
  color: var(--ink);
  font-weight: 700;
}

.blog-carousel,
.partners,
.featured-services {
  overflow: hidden;
  background: var(--white);
}

.center-heading {
  margin-bottom: 32px;
  text-align: center;
}

.center-heading p {
  margin: 0;
  color: #a8b6c8;
  font-size: 1.05rem;
  font-weight: 600;
}

.center-heading h2 {
  margin: 0;
  color: #003b78;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.08;
}

.news-track {
  width: max-content;
  display: flex;
  gap: 16px;
  animation: slide-news 36s linear infinite;
}

.news-track:hover,
.partner-track:hover {
  animation-play-state: paused;
}

.news-card {
  width: min(345px, 82vw);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #d5d5d5;
  border-radius: 4px;
}

.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-card div {
  padding: 18px 16px;
}

.news-card h3 {
  margin-bottom: 14px;
  color: #262b2e;
  font-size: 1.72rem;
  font-weight: 500;
  line-height: 1.08;
}

.news-card p {
  color: #4b4f55;
}

.news-meta {
  margin-bottom: 18px;
  color: #333;
  font-size: 0.93rem;
}

.news-card a {
  display: inline-flex;
  margin-top: 6px;
  color: #555;
  font-weight: 500;
}

.partners {
  padding-top: 42px;
  background: #f8f8f8;
}

.partner-track {
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: clamp(36px, 8vw, 120px);
  animation: slide-partners 28s linear infinite;
}

.partner-card {
  width: 300px;
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border-radius: 6px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 32, 42, 0.12);
  outline: none;
}

.partner-card strong {
  color: #003b78;
  font-size: 2rem;
  line-height: 1;
}

.partner-card small {
  color: #5f6870;
  font-weight: 700;
}

.partner-card span {
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-card.jitech img {
  /* JPEG 1600×800 (proporção 2:1). Manter container respeitando essa
     proporção evita whitespace lateral; subir tamanho de exibição
     reduz o efeito de compressão JPEG visível em escala pequena. */
  width: 240px;
  height: 120px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.partner-card.consta-pt img {
  /* Logo vertical Consta (500×499 ~1:1). Quadrado pra mostrar a marca
     completa (C + texto + tagline) sem distorção. */
  width: 130px;
  height: 130px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.partner-card.consta-pt {
  min-height: 200px;
}

.partner-card.jitech {
  background: var(--white);
  /* Card mais alto pra acomodar o logo Jitech maior sem espremer */
  min-height: 170px;
}

.partner-card.ipb img {
  width: 210px;
  height: 82px;
  object-fit: contain;
}

.partner-card.ipb {
  border-top: 5px solid #0b55b4;
}

.featured-services {
  background: #fafbfc;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.featured-card {
  position: relative;
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 27, 40, 0.82), rgba(0, 54, 80, 0.5)),
    url("https://images.unsplash.com/photo-1581093588401-fbb62a02f120?auto=format&fit=crop&w=900&q=80")
      center / cover;
  border: 1px solid transparent;
  border-radius: 10px;
}

.featured-card.alt {
  background:
    linear-gradient(90deg, rgba(0, 27, 40, 0.82), rgba(0, 54, 80, 0.5)),
    url("https://images.unsplash.com/photo-1605130284535-11dd9eedc58a?auto=format&fit=crop&w=900&q=80")
      center / cover;
}

.featured-card.active {
  border-color: #2ea6e8;
}

.featured-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(54, 169, 225, 0.18);
  border: 1px solid rgba(54, 169, 225, 0.42);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: background 220ms ease, border-color 220ms ease;
}

.featured-card:hover .featured-icon {
  background: rgba(54, 169, 225, 0.34);
  border-color: rgba(255, 255, 255, 0.6);
}

.featured-icon svg {
  width: 24px;
  height: 24px;
}

.featured-card span {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.12;
}

.featured-card em {
  width: max-content;
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes slide-news {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

@keyframes slide-partners {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 60px));
  }
}

.services,
.sectors,
.contact {
  background: var(--panel);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 32, 42, 0.06);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Variante: card que exibe um documento (relatório, certificado) em
   vez de uma foto. `object-fit: cover` cropa texto importante; aqui
   preservamos o documento inteiro com fundo claro e proporção mais
   próxima do A4 paisagem (~1.41:1). */
.service-card-doc img {
  aspect-ratio: 1.41 / 1;
  object-fit: contain;
  background: #f3f6fa;
  padding: 14px;
}

.service-card div {
  padding: 24px;
}

.service-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: var(--brand-dark);
  background: rgba(0, 152, 184, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-card p,
.sector-grid p,
.split-content p,
.contact p,
.site-footer p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  background: var(--white);
}

.split-image img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  content: "✓";
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.78rem;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sector-grid article {
  min-height: 190px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cta {
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 68, 88, 0.94), rgba(0, 106, 132, 0.8)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.cta div {
  width: min(720px, 100%);
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(34px, 6vw, 84px);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #c8dadd;
  border-radius: 8px;
  background: #fbfefe;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(0, 152, 184, 0.16);
}

.site-footer {
  padding: 56px clamp(20px, 5vw, 72px) 28px;
  background: #0d1b22;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  width: min(1280px, 100%);
  margin: 0 auto;
}

.site-footer .brand {
  width: 150px;
  height: auto;
  min-width: 150px;
  margin-bottom: 18px;
  padding: 10px;
  overflow: visible;
  background: var(--white);
  border-radius: 8px;
}

.site-footer .brand img {
  width: 100%;
  max-width: 100%;
  filter: none;
  transform: none;
}

.footer-brand p {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  transition: color 160ms ease;
}

.footer-col li a:hover {
  color: var(--white);
}

.footer-col address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: min(1280px, 100%);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-bottom .legal a:hover {
  color: var(--white);
}

.footer-bottom .legal span {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.4);
}

.legal {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.85;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 32px;
  z-index: 40;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(22px, 12vw, 222px);
  color: var(--white);
  background: #001c27;
}

.cookie-bar.is-hidden {
  display: none;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.cookie-bar button {
  min-width: 108px;
  min-height: 58px;
  padding: 12px 20px;
  color: var(--white);
  background: #6bc512;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 940px) {
  .topbar {
    min-height: 132px;
    padding: 10px 16px 10px 10px;
    gap: 10px;
  }

  .brand {
    height: 116px;
  }

  .brand img {
    max-height: 116px;
  }

  .header-contact {
    display: none;
  }

  .topbar-right {
    margin-left: auto;
  }

  .navbar {
    position: relative;
    padding: 8px 18px;
  }

  .menu-button {
    position: relative;
    z-index: 3;
    display: block;
    color: var(--white);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 5;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a {
    padding: 14px;
    color: var(--ink);
  }

  .main-nav > a::after {
    display: none;
  }

  .main-nav .nav-cta {
    margin-left: 0;
    margin-top: 4px;
  }

  .intro,
  .split,
  .contact,
  .pillars,
  .approval-demo,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .service-grid,
  .sector-grid,
  .featured-grid,
  .differential-grid,
  .journey-steps,
  .lab-credentials {
    grid-template-columns: 1fr;
  }

  .lab-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .lab-tile-hero {
    grid-column: span 2;
    grid-row: span 1;
  }

  .platform-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .platform-arrow {
    transform: rotate(90deg);
    height: 32px;
  }

  /* 2 colunas no tablet: setas só após cards ímpares (1, 3, 5, 7) */
  .platform-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 32px;
  }

  .flow-step:nth-child(4n)::after {
    content: "→";
  }

  .flow-step:nth-child(2n)::after {
    content: none;
  }

  .platform-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
  }

  .platform-stack {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-track,
  .partner-track {
    width: auto;
    overflow-x: auto;
    padding-bottom: 10px;
    animation: none;
  }

  .news-card,
  .partner-card {
    flex: 0 0 82vw;
  }

  .split-image img {
    min-height: 340px;
  }

  .cookie-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px 20px;
  }

  .cookie-bar button {
    min-height: 46px;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 104px;
    padding: 8px 12px 8px 8px;
  }

  .brand {
    height: 92px;
  }

  .brand img {
    max-height: 92px;
  }

  .portugal-badge {
    gap: 8px;
    padding: 6px 10px 6px 6px;
  }

  .portugal-badge-text small {
    display: none;
  }

  .portugal-badge-text strong {
    font-size: 0.78rem;
  }

  .portugal-flag {
    width: 36px;
    height: 24px;
  }

  .hero {
    min-height: 88vh;
  }

  .nav-row {
    padding: 20px 18px 0;
  }

  .hero-content {
    margin-left: 18px;
    padding-top: 155px;
    padding-right: 18px;
  }

  section {
    padding: 66px 18px;
  }

  .metrics article,
  .sector-grid article,
  .contact-form,
  .differential-card,
  .pillars article,
  .journey-steps li {
    padding: 22px;
  }

  .footer-grid,
  .platform-stack,
  .platform-flow-grid,
  .reports-showcase,
  .reports-checklist,
  .lab-gallery {
    grid-template-columns: 1fr;
  }

  /* Em mobile a grid vira 1 coluna; em vez de seta horizontal entre
     cards mostramos uma seta vertical (↓) só pra reforçar a sequência. */
  .flow-step::after {
    content: "↓";
    top: auto;
    right: auto;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
  }

  .flow-step:nth-child(4n)::after,
  .flow-step:nth-child(2n)::after {
    content: "↓";
  }

  .flow-step:last-child::after {
    content: none;
  }

  .lab-tile-hero {
    grid-column: span 1;
  }

  .approval-demo {
    padding: 24px;
  }

  .button {
    width: 100%;
  }
}
