/* ==========================================================================
   CONECTA SALES — DESIGN SYSTEM & STYLESHEET
   Identidade: tecnologia, confiança, sofisticação — navy profundo + azul
   elétrico + violeta como acento secundário.
   Índice:
   1. Tokens (cores, tipografia, espaçamento, radius, shadows)
   2. Reset & base
   3. Layout (container, grid, section)
   4. Tipografia utilitária
   5. Botões
   6. Cards
   7. Formulários
   8. Header
   9. Hero
   10. Secções partilhadas (eyebrow, badges, diagramas)
   11. Footer
   12. Animações & utilitários
   13. Media queries (responsivo)
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Navy — fundo dominante das secções escuras */
  --color-navy-950: #020617;
  --color-navy-900: #050b2d;
  --color-navy-800: #07113f;
  --color-navy-700: #0b1854;

  /* Azul — cor primária de interação */
  --color-blue-600: #3155f5;
  --color-blue-500: #4169ff;
  --color-blue-400: #5b7cff;

  /* Violeta — acento secundário, uso pontual */
  --color-violet-600: #5b4bff;
  --color-violet-500: #6c5ce7;

  /* Tokens legados (mantidos por compatibilidade em toda a marcação),
     redefinidos para a nova identidade navy/azul/violeta */
  --ink-900: #060b22;
  --ink-800: #16213b;
  --ink-700: #475569;
  --ink-600: #64748b;
  --blue-300: #cbd5e1;
  --blue-100: #eaf0ff;
  --accent-300: #ece8ff;
  --accent-400: var(--color-blue-400);
  --accent-600: var(--color-blue-600);
  --accent-700: #2544d1;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-dim: #f1f5f9;
  --border: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.14);
  --success: #2f9e5b;

  /* Conversa do hero — paleta WhatsApp (apenas no mockup do telemóvel) */
  --wa-header: #075e54;
  --wa-chat-bg: #ece5dd;
  --wa-bubble-in: #ffffff;
  --wa-bubble-out: #dcf8c6;
  --wa-text: #111b21;
  --wa-meta: rgba(17, 27, 33, 0.45);
  --wa-check: #34b7f1;
  --wa-send: #00a884;

  /* Mockup do Google Maps no hero (browser) — paleta do próprio Maps */
  --gm-land: #e8eaed;
  --gm-road: #ffffff;
  --gm-road-main: #fbe08a;
  --gm-water: #a5c8f0;
  --gm-park: #c7e5c0;
  --gm-text: #202124;
  --gm-muted: #70757a;
  --gm-red: #ea4335;
  --gm-blue: #1a73e8;
  --gm-green: #1e8e3e;
  --gm-star: #fbbc04;

  /* Tipografia — Inter em todos os pesos, sem fontes decorativas */
  --font-heading: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.35rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2rem, 3vw, 3rem);
  --fs-3xl: clamp(2.5rem, 4vw, 4rem);
  --fs-4xl: clamp(3rem, 5vw, 5rem);

  /* Espaçamento — escala 4/8/12/16/24/32/48/64/80/96/120 */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5rem;
  --sp-10: 6rem;
  --sp-11: 7.5rem;

  /* Forma */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-btn: 10px;
  --radius-full: 999px;

  /* Sombra — muito discreta */
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(2, 6, 23, 0.35);
  --shadow-glow: 0 25px 70px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --container-w: 1280px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Altura do header em mobile (botão do menu 44px + padding vertical +
     border) — o painel do menu abre exatamente abaixo do header */
  --header-h: calc(44px + 2 * 1.125rem + 1px);
}

/* 2. RESET & BASE ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 var(--sp-4);
  color: var(--ink-900);
}

h1 {
  font-size: var(--fs-3xl);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h2 {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h3 {
  font-size: var(--fs-lg);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h4,
h5,
h6 {
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--sp-4);
}

.lead {
  font-size: var(--fs-md);
  color: var(--ink-700);
}

.hero .lead,
.section--dark .lead {
  color: var(--blue-300);
}

/* Foco visível — acessibilidade de teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -48px;
  background: var(--ink-900);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Palavra em destaque — usar com moderação (1–3 palavras) */
.hl {
  color: var(--color-blue-600);
}

.hero .hl,
.section--dark .hl {
  color: var(--color-blue-400);
}

/* 3. LAYOUT ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section {
  padding-block: var(--sp-10);
}

.section--tight {
  padding-block: var(--sp-8);
}

.section--alt {
  background: var(--surface-alt);
}

.section--dark {
  background: var(--ink-900);
  color: #fff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section-head {
  max-width: 700px;
  margin-bottom: var(--sp-8);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--sp-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-9);
  align-items: center;
}

/* Inverte os lados sem mexer na ordem do HTML: em ecrã pequeno o texto
   continua a vir antes do exemplo visual */
.two-col--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.two-col--reverse > *:first-child {
  order: 2;
}

.two-col--reverse > *:last-child {
  order: 1;
}

/* Soluções: coluna de introdução + grid de cards */
.solutions-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.65fr;
  gap: var(--sp-8);
  align-items: start;
}

/* 4. TIPOGRAFIA UTILITÁRIA ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-violet-600);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-violet-600);
  border-radius: var(--radius-full);
}

.section--dark .eyebrow,
.hero .eyebrow {
  color: var(--color-violet-500);
}

.text-muted {
  color: var(--ink-700);
}

.section--dark .text-muted {
  color: var(--blue-300);
}

/* 5. BOTÕES -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.875rem 1.375rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-blue-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-violet-600));
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--ink-900);
  color: #fff;
}

.btn-dark:hover {
  background: var(--color-navy-800);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-900);
}

.btn-outline:hover {
  border-color: var(--ink-900);
  background: var(--surface-alt);
}

.section--dark .btn-outline,
.hero .btn-outline,
.case-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.section--dark .btn-outline:hover,
.hero .btn-outline:hover,
.case-hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--color-blue-600);
  padding-inline: 0.4rem;
  position: relative;
}

.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.btn-ghost:hover::after {
  transform: scaleX(1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-xs);
}

/* 6. CARDS ---------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(65, 105, 255, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--color-blue-600);
  margin-bottom: var(--sp-5);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-md);
}

.card p {
  color: var(--ink-700);
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--color-blue-600);
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.card-link:hover svg,
.card:hover .card-link svg {
  transform: translateX(3px);
}

/* Cartão de segmento — painel escuro premium, ícone em círculo translúcido */
.segment-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-navy-800), var(--color-navy-900));
  border-color: var(--border-dark);
  color: #fff;
}

.segment-card:hover {
  border-color: var(--color-blue-500);
  box-shadow: var(--shadow-glow);
}

.segment-card .card-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.segment-card h3 {
  color: #fff;
}

.segment-card p {
  color: var(--blue-300);
}

/* Grelha de segmentos (topo da página Segmentos) — os ícones entram em cascata
   e, no hover do cartão, cada um faz o gesto daquilo que representa: a tesoura
   corta, o coração bate, a bússola gira, a cloche levanta, a mala balança e os
   nós da rede pulsam.
   Nota: a entrada anima o quadrado (.card-icon) e os gestos animam o <svg> lá
   dentro — em elementos diferentes, senão o animation-fill-mode: forwards da
   entrada bloqueava o transform do hover. */
.segment-grid .card-icon {
  opacity: 0;
  transform: scale(0.85);
  transition: background var(--transition), color var(--transition);
}

.segment-grid.is-visible .card-icon {
  animation: segment-icon-in 520ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.segment-grid .card:nth-child(1) .card-icon {
  animation-delay: 60ms;
}

.segment-grid .card:nth-child(2) .card-icon {
  animation-delay: 140ms;
}

.segment-grid .card:nth-child(3) .card-icon {
  animation-delay: 220ms;
}

.segment-grid .card:nth-child(4) .card-icon {
  animation-delay: 300ms;
}

.segment-grid .card:nth-child(5) .card-icon {
  animation-delay: 380ms;
}

.segment-grid .card:nth-child(6) .card-icon {
  animation-delay: 460ms;
}

@keyframes segment-icon-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.segment-grid .card:hover .card-icon {
  background: var(--color-blue-600);
  color: #fff;
}

/* Cada peça anima-se sobre si própria; as que têm eixo fixo — as lâminas da
   tesoura e a agulha da bússola — usam o sistema do viewBox para o eixo cair
   no ponto (12,12), o centro do ícone */
.segment-grid .card-icon svg,
.segment-grid .card-icon svg * {
  transform-box: fill-box;
  transform-origin: center;
}

.segment-grid .ico-blade,
.segment-grid .ico-needle {
  transform-box: view-box;
  transform-origin: 12px 12px;
}

/* Cada ícone tem o seu gesto, e cada gesto toca em dois momentos: uma vez em
   cascata quando a grelha aparece (no telemóvel não há hover, seria a única
   forma de os ver) e sempre que o cartão recebe o rato. As regras de :hover
   vêm depois das de entrada de propósito — mesma especificidade, ganha a
   última, e assim o hover corre sem o atraso da cascata. */

/* 1. Beleza — as lâminas abrem e fecham duas vezes: um corte */
.segment-grid.is-gesture .card:nth-child(1) .ico-blade-a {
  animation: segment-cut-a 780ms ease-in-out 420ms both;
}

.segment-grid.is-gesture .card:nth-child(1) .ico-blade-b {
  animation: segment-cut-b 780ms ease-in-out 420ms both;
}

.segment-grid .card:nth-child(1):hover .ico-blade-a {
  animation: segment-cut-a 780ms ease-in-out;
}

.segment-grid .card:nth-child(1):hover .ico-blade-b {
  animation: segment-cut-b 780ms ease-in-out;
}

/* Abre bem e fecha para além do zero — as lâminas cruzam-se, que é o que
   faz o gesto ler-se como um corte e não como um abanão */
@keyframes segment-cut-a {
  0%,
  100% {
    transform: rotate(0);
  }
  18% {
    transform: rotate(21deg);
  }
  36% {
    transform: rotate(-15deg);
  }
  56% {
    transform: rotate(16deg);
  }
  76% {
    transform: rotate(-12deg);
  }
}

@keyframes segment-cut-b {
  0%,
  100% {
    transform: rotate(0);
  }
  18% {
    transform: rotate(-21deg);
  }
  36% {
    transform: rotate(15deg);
  }
  56% {
    transform: rotate(-16deg);
  }
  76% {
    transform: rotate(12deg);
  }
}

/* 2. Saúde — o coração bate e o traçado do monitor desenha-se */
.segment-grid.is-gesture .card:nth-child(2) .ico-heart {
  animation: segment-beat 820ms ease-in-out 500ms both;
}

.segment-grid.is-gesture .card:nth-child(2) .ico-ecg {
  animation: segment-trace 820ms ease-out 500ms both;
}

.segment-grid .card:nth-child(2):hover .ico-heart {
  animation: segment-beat 820ms ease-in-out;
}

.segment-grid .card:nth-child(2):hover .ico-ecg {
  animation: segment-trace 820ms ease-out;
}

@keyframes segment-beat {
  0%,
  100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.16);
  }
  36% {
    transform: scale(0.97);
  }
  58% {
    transform: scale(1.09);
  }
  78% {
    transform: scale(0.99);
  }
}

@keyframes segment-trace {
  0% {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  70%,
  100% {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
  }
}

/* 3. Turismo — a agulha gira e assenta a norte, como uma bússola a estabilizar */
.segment-grid.is-gesture .card:nth-child(3) .ico-needle {
  animation: segment-seek 1s cubic-bezier(0.45, 0, 0.2, 1) 580ms both;
}

.segment-grid .card:nth-child(3):hover .ico-needle {
  animation: segment-seek 1s cubic-bezier(0.45, 0, 0.2, 1);
}

@keyframes segment-seek {
  0% {
    transform: rotate(0);
  }
  55% {
    transform: rotate(342deg);
  }
  74% {
    transform: rotate(371deg);
  }
  88% {
    transform: rotate(353deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 4. Restauração — a cloche levanta e pousa; a travessa fica quieta */
.segment-grid.is-gesture .card:nth-child(4) .ico-dome {
  animation: segment-serve 780ms ease-in-out 660ms both;
}

.segment-grid .card:nth-child(4):hover .ico-dome {
  animation: segment-serve 780ms ease-in-out;
}

@keyframes segment-serve {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  30% {
    transform: translateY(-3.5px) rotate(-5deg);
  }
  58% {
    transform: translateY(-3px) rotate(4deg);
  }
  82% {
    transform: translateY(-0.5px) rotate(0);
  }
}

/* 5. Serviços — pega-se na mala: a asa sobe primeiro, o corpo vai atrás */
.segment-grid.is-gesture .card:nth-child(5) .ico-handle {
  animation: segment-grab-handle 780ms ease-in-out 740ms both;
}

.segment-grid.is-gesture .card:nth-child(5) .ico-case {
  animation: segment-grab-case 780ms ease-in-out 740ms both;
}

.segment-grid .card:nth-child(5):hover .ico-handle {
  animation: segment-grab-handle 780ms ease-in-out;
}

.segment-grid .card:nth-child(5):hover .ico-case {
  animation: segment-grab-case 780ms ease-in-out;
}

@keyframes segment-grab-handle {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-2.4px);
  }
  60% {
    transform: translateY(-1.6px);
  }
}

@keyframes segment-grab-case {
  0%,
  20% {
    transform: translateY(0);
  }
  48% {
    transform: translateY(-1.8px);
  }
  78%,
  100% {
    transform: translateY(0);
  }
}

/* 6. Redes — o sinal desce da marca pelas ligações e acende cada nó */
.segment-grid.is-gesture .card:nth-child(6) .ico-link {
  animation: segment-link-draw 900ms ease-out 820ms both;
}

.segment-grid.is-gesture .card:nth-child(6) .ico-hub {
  animation: segment-hub-pulse 900ms ease-in-out 820ms both;
}

.segment-grid.is-gesture .card:nth-child(6) .ico-node-1 {
  animation: segment-node-1 900ms ease-in-out 820ms both;
}

.segment-grid.is-gesture .card:nth-child(6) .ico-node-2 {
  animation: segment-node-2 900ms ease-in-out 820ms both;
}

.segment-grid .card:nth-child(6):hover .ico-link {
  animation: segment-link-draw 900ms ease-out;
}

.segment-grid .card:nth-child(6):hover .ico-hub {
  animation: segment-hub-pulse 900ms ease-in-out;
}

.segment-grid .card:nth-child(6):hover .ico-node-1 {
  animation: segment-node-1 900ms ease-in-out;
}

.segment-grid .card:nth-child(6):hover .ico-node-2 {
  animation: segment-node-2 900ms ease-in-out;
}

@keyframes segment-link-draw {
  0% {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  70%,
  100% {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
  }
}

@keyframes segment-hub-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  16% {
    transform: scale(1.35);
  }
  40% {
    transform: scale(1);
  }
}

/* O tempo do salto de cada nó está no próprio keyframe: assim a cascata
   acontece sem atrasos separados, que o hover teria de anular */
@keyframes segment-node-1 {
  0%,
  52% {
    transform: scale(1);
  }
  66% {
    transform: scale(1.5);
  }
  84%,
  100% {
    transform: scale(1);
  }
}

@keyframes segment-node-2 {
  0%,
  66% {
    transform: scale(1);
  }
  80% {
    transform: scale(1.5);
  }
  94%,
  100% {
    transform: scale(1);
  }
}

/* Sem movimento: ícones visíveis e quietos, só a mudança de cor no hover */
@media (prefers-reduced-motion: reduce) {
  .segment-grid .card-icon {
    opacity: 1;
    transform: none;
  }

  .segment-grid .card-icon svg *,
  .segment-grid .card:hover .card-icon svg * {
    animation: none;
  }
}
/* 7. FORMULÁRIOS ----------------------------------------------------------------- */
.field {
  margin-bottom: var(--sp-5);
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-2);
  color: var(--ink-800);
}

.field .required {
  color: var(--color-blue-600);
}

.input,
.textarea,
.select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.textarea {
  resize: vertical;
  min-height: 140px;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--color-blue-400);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--color-blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
  outline: none;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.6' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2) var(--sp-4);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-700);
}

.checkbox-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--color-blue-600);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--ink-700);
  margin-top: var(--sp-2);
}

.form-status {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #eaf7ef;
  color: var(--success);
  border: 1px solid #cdeeda;
}

.form-status.is-error {
  display: block;
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f6d0cc;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  padding: var(--sp-6);
  text-align: center;
  animation: modal-pop 0.2s ease;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ink-700);
  font-size: var(--fs-lg);
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  background: var(--blue-100);
  color: var(--color-blue-600);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #eaf7ef;
  color: var(--success);
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal h2 {
  margin: 0 0 var(--sp-2);
  color: var(--ink-900);
}

.modal p {
  margin: 0 0 var(--sp-5);
  color: var(--ink-700);
}

/* Campo que só aparece consoante uma resposta anterior (segmento "Outro") */
.field[hidden] {
  display: none;
}

.field--conditional:not([hidden]) {
  animation: field-reveal 260ms ease-out;
}

@keyframes field-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Contacto direto — WhatsApp e email lado a lado, morada por baixo a ocupar a
   largura toda: é a linha mais comprida e, numa coluna estreita, partia-se
   palavra a palavra */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.contact-list li:last-child {
  grid-column: 1 / -1;
}

/* O .card-icon traz uma margem inferior pensada para os cartões — aqui o
   ícone está ao lado do texto e essa margem só desalinhava a linha */
.contact-list .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-list .card-icon svg {
  width: 20px;
  height: 20px;
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--ink-900);
}

.contact-list .card-link {
  margin-top: 0;
}

.contact-list address {
  font-style: normal;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-700);
}

/* 8. HEADER ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.02), 0 8px 24px -18px rgba(2, 6, 23, 0.25);
}

/* Header transparente sobre hero escuro (apenas na home, antes do scroll) */
.site-header--on-dark {
  background: transparent;
  border-bottom-color: transparent;
}
/*-------------------------------------------------------*/
.site-header--on-dark .nav-list a { 
  color: #060b22;
}

.site-header--on-dark .nav-list a[aria-current="page"] {
  color: #fff;
}


.site-header--on-dark .nav-toggle span,
.site-header--on-dark .nav-toggle::before,
.site-header--on-dark .nav-toggle::after {
  background: #fff;
}

.site-header--on-dark.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

.site-header--on-dark.is-scrolled .nav-list a {
  color: var(--ink-800);
}

.site-header--on-dark.is-scrolled .nav-list a[aria-current="page"] {
  color: var(--ink-900);
}

.site-header--on-dark.is-scrolled .brand img {
  filter: none;
}

.site-header--on-dark.is-scrolled .nav-toggle span,
.site-header--on-dark.is-scrolled .nav-toggle::before,
.site-header--on-dark.is-scrolled .nav-toggle::after {
  background: var(--ink-900);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: 1.125rem;
  min-height: 44px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
  transition: filter var(--transition);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-list a {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-800);
  position: relative;
  padding-block: var(--sp-2);
  transition: color var(--transition);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--ink-900);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Hambúrguer — três barras empilhadas (flex-direction: column é essencial,
   caso contrário as barras alinham em linha e parecem um único traço) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--ink-900);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

/* Aberto → X: as barras de topo e base convergem para o centro (8px de
   distância = 2px de barra + 6px de gap) */
.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* 9. HERO ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--sp-11) var(--sp-9);
  overflow: hidden;
  background: var(--color-navy-900);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(49, 85, 245, 0.25), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(91, 75, 255, 0.18), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-9);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-4xl);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #fff;
  margin-bottom: var(--sp-5);
}

.hero .lead {
  font-size: var(--fs-md);
  max-width: 54ch;
  margin-bottom: var(--sp-7);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: var(--sp-7);
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--border-dark);
}

.hero-trust dt {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
}

.hero-trust dd {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--blue-300);
}

/* Composição visual do hero — mockup construído em CSS, sem imagens genéricas */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  z-index: 1;
}

.device {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.device-browser {
  top: 6%;
  left: 2%;
  width: 84%;
  height: 62%;
  display: flex;
  flex-direction: column;
}

/* Barra do browser com o endereço do Google Maps */
.device-browser .device-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.device-browser .device-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Semáforo da janela: vermelho, amarelo e verde, como num browser real */
.device-browser .device-dot:nth-child(1) {
  background: #ff5f57;
}

.device-browser .device-dot:nth-child(2) {
  background: #febc2e;
}

.device-browser .device-dot:nth-child(3) {
  background: #28c840;
}

.device-browser .device-url {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 600;
  color: var(--ink-600);
  white-space: nowrap;
  overflow: hidden;
}

.device-browser .device-url svg {
  width: 8px;
  height: 8px;
  color: var(--success);
  flex-shrink: 0;
}

/* Corpo: lista de resultados + mapa, como o Google Maps em desktop */
.device-browser .device-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 45% 55%;
  background: var(--surface);
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.map-search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.22);
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 600;
  color: var(--gm-text);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.map-search svg {
  width: 9px;
  height: 9px;
  color: var(--gm-blue);
  flex-shrink: 0;
}

.map-result {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-sm);
}

/* O primeiro resultado é o negócio do cliente — é o que fica destacado */
.map-result.is-active {
  background: var(--blue-100);
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.25);
}

.map-thumb {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-dim);
  color: var(--gm-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-result.is-active .map-thumb {
  background: var(--gm-red);
  color: #fff;
}

.map-thumb svg {
  width: 14px;
  height: 14px;
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
}

.map-info b {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gm-text);
}

.map-rating,
.map-meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 600;
  color: var(--gm-muted);
  white-space: nowrap;
}

.map-stars {
  font-style: normal;
  letter-spacing: -0.5px;
  color: var(--gm-star);
}

.map-meta i {
  font-style: normal;
  font-weight: 700;
  color: var(--gm-green);
}

.map-cta {
  display: flex;
  gap: 4px;
  margin-top: 1px;
}

.map-btn {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(26, 115, 232, 0.35);
  font-size: 7px;
  font-weight: 700;
  color: var(--gm-blue);
}

.map-btn.is-primary {
  background: var(--gm-blue);
  border-color: var(--gm-blue);
  color: #fff;
}

/* Resultados seguintes: negócios da zona, para se ler como uma pesquisa real */
.map-result + .map-result {
  border-top: 1px solid var(--border);
}

/* Estrelas por preencher — as notas mais baixas leem-se à primeira vista */
.map-stars em {
  font-style: normal;
  color: #dadce0;
}

.map-meta i.is-closed {
  color: var(--gm-red);
}

/* Mapa desenhado em CSS — ruas, parque, água e pins, sem imagens */
.map-canvas {
  position: relative;
  overflow: hidden;
  background: var(--gm-land);
}

.map-water {
  position: absolute;
  top: -18%;
  right: -14%;
  width: 52%;
  height: 44%;
  background: var(--gm-water);
  border-radius: 0 0 45% 65% / 0 0 55% 45%;
  transform: rotate(-10deg);
}

.map-park {
  position: absolute;
  left: 6%;
  bottom: 8%;
  width: 34%;
  height: 30%;
  background: var(--gm-park);
  border-radius: 6px;
}

.map-road {
  position: absolute;
  background: var(--gm-road);
}

.road-h1 {
  left: -10%;
  right: -10%;
  top: 30%;
  height: 7%;
}

.road-h2 {
  left: -10%;
  right: -10%;
  top: 72%;
  height: 5%;
}

/* Via principal a amarelo, como as arteriais do Google Maps */
.road-v1 {
  top: -10%;
  bottom: -10%;
  left: 46%;
  width: 6%;
  background: var(--gm-road-main);
}

.road-v2 {
  top: -10%;
  bottom: -10%;
  left: 80%;
  width: 4%;
}

.road-diag {
  top: 42%;
  left: -20%;
  width: 95%;
  height: 4%;
  transform: rotate(34deg);
  transform-origin: left center;
}

.map-pin {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(234, 67, 53, 0.5);
  box-shadow: 0 0 0 1.5px #fff;
}

.map-pin.pin-b {
  top: 20%;
  left: 22%;
}

.map-pin.pin-c {
  top: 80%;
  left: 70%;
}

.map-pin.is-main {
  top: 42%;
  left: 34%;
  width: auto;
  height: auto;
  transform: translate(-50%, -100%);
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--gm-red);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.map-pin.is-main svg {
  display: block;
  width: 26px;
  height: 26px;
}

/* Halo a pulsar sob o pin: o negócio a ser encontrado na pesquisa */
.map-pin.is-main::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: rgba(234, 67, 53, 0.3);
  animation: map-pin-pulse 2.6s ease-out infinite;
}

@keyframes map-pin-pulse {
  0% {
    transform: scale(0.35);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Ponto azul da localização de quem pesquisa */
.map-me {
  position: absolute;
  left: 20%;
  top: 56%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gm-blue);
  box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(26, 115, 232, 0.16);
}

.device-phone {
  bottom: 4%;
  right: 4%;
  width: 34%;
  aspect-ratio: 9 / 18.5;
  border-radius: 28px;
  border: 6px solid var(--ink-900);
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: var(--wa-chat-bg);
}

/* Notch sobreposto ao topo verde, como uma app em ecrã inteiro */
.device-phone .device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 14px;
  width: 38%;
  background: var(--ink-900);
  border-radius: 0 0 10px 10px;
  z-index: 3;
}

/* Barra superior da conversa */
.chat-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 18px 8px 6px;
  background: var(--wa-header);
  color: #fff;
  flex-shrink: 0;
}

.chat-back svg {
  width: 10px;
  height: 10px;
  opacity: 0.9;
}

.chat-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-avatar svg {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.chat-peer {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
  font-family: var(--font-heading);
}

.chat-peer strong {
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-peer span {
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.72);
}

.chat-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.chat-actions svg {
  width: 11px;
  height: 11px;
}

/* Corpo da conversa — mensagens encostadas ao fundo */
.device-phone .device-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 5px;
  padding: 8px;
  background: var(--wa-chat-bg);
  overflow: hidden;
}

.chat-day {
  align-self: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--wa-meta);
  font-family: var(--font-heading);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-bottom: 2px;
}

.device-phone .bubble {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  column-gap: 6px;
  row-gap: 1px;
  max-width: 82%;
  padding: 5px 7px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--wa-text);
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13);
}

/* flex: 0 1 auto — a hora fica na mesma linha quando há espaço e só desce
   quando o texto ocupa a largura toda, como no WhatsApp */
.device-phone .bubble-text {
  flex: 0 1 auto;
  text-align: left;
}

.device-phone .bubble-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 600;
  color: var(--wa-meta);
}

.device-phone .bubble-checks {
  width: 11px;
  height: 8px;
  color: var(--wa-check);
}

/* Bico da bolha no canto superior, como no WhatsApp */
.device-phone .bubble::before {
  content: "";
  position: absolute;
  top: 0;
  width: 7px;
  height: 8px;
}

.device-phone .bubble.in {
  background: var(--wa-bubble-in);
  border-top-left-radius: 0;
}

.device-phone .bubble.in::before {
  left: -6px;
  background: var(--wa-bubble-in);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.device-phone .bubble.out {
  align-self: flex-end;
  background: var(--wa-bubble-out);
  border-top-right-radius: 0;
}

.device-phone .bubble.out::before {
  right: -6px;
  background: var(--wa-bubble-out);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Barra de escrita */
.chat-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 9px;
  background: var(--wa-chat-bg);
  flex-shrink: 0;
}

.chat-field {
  flex: 1;
  background: var(--wa-bubble-in);
  border-radius: var(--radius-full);
  padding: 5px 9px;
  font-family: var(--font-heading);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--wa-meta);
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13);
}

.chat-send {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wa-send);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-send svg {
  width: 11px;
  height: 11px;
}

.float-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  z-index: 3;
}

.float-card.card-a {
  top: 2%;
  right: 8%;
  color: var(--ink-900);
}

.float-card.card-b {
  bottom: 22%;
  left: -4%;
  color: var(--ink-900);
}

.float-card .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-300);
  color: var(--color-blue-600);
  flex-shrink: 0;
}

.float-card .dot svg {
  width: 16px;
  height: 16px;
}

/* "Novo contacto" refere-se à conversa de WhatsApp — segue a mesma paleta */
.float-card.card-a .dot {
  background: var(--wa-bubble-out);
  color: var(--wa-header);
}

/* 10. SECÇÕES PARTILHADAS --------------------------------------------------------- */

/* Diagrama do problema: Google → Website → Instagram → WhatsApp → Cliente */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
  min-width: 96px;
  text-align: center;
}

.flow-node .flow-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--color-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-node .flow-icon svg {
  width: 26px;
  height: 26px;
}

.flow-node.is-goal .flow-icon {
  background: var(--color-blue-600);
  color: #fff;
}

/* :not(.flow-icon) — sem isto esta regra também apanhava o span do ícone e
   anulava a cor definida em .flow-node .flow-icon */
.flow-node span:not(.flow-icon) {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-900);
}

.flow-arrow {
  color: var(--border);
  flex-shrink: 0;
}

.flow-arrow svg {
  width: 28px;
  height: 14px;
}

/* Diagrama no hero — sem cartão, ícones em azul escuro e "Cliente" a azul
   como destino. Tem de vir DEPOIS das regras base de .flow-* : a mesma
   especificidade faz com que ganhe a última declarada. */
.hero-flow {
  max-width: none;
  margin: var(--sp-8) 0 0;
  padding: var(--sp-6) 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-dark);
  border-radius: 0;
  box-shadow: none;
  gap: var(--sp-6);
}

.hero-flow .flow-icon {
  background: var(--color-navy-700);
  border: 1px solid rgba(91, 124, 255, 0.3);
  color: var(--color-blue-400);
}

.hero-flow .flow-node span:not(.flow-icon) {
  color: var(--blue-300);
  font-weight: 600;
}

/* O nome do passo e a legenda vivem os dois dentro de .flow-label. Em desktop
   a tira é compacta e só mostra o nome: o <i> fica escondido e o <b> herda
   tudo, para o span se comportar exactamente como o texto solto de antes.
   b/i em vez de spans para não serem apanhados por span:not(.flow-icon) */
.hero-flow .flow-label b {
  font: inherit;
  color: inherit;
}

.hero-flow .flow-label i {
  display: none;
}

.hero-flow .flow-node.is-goal .flow-icon {
  background: var(--color-blue-600);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(49, 85, 245, 0.9);
}

.hero-flow .flow-node.is-goal span:not(.flow-icon) {
  color: #fff;
  font-weight: 700;
}

.hero-flow .flow-arrow {
  color: rgba(255, 255, 255, 0.3);
}

/* Em desktop não há caixa nem indicador — a tira é aberta */
.hero-flow-wrap {
  position: relative;
}

.hero-flow-hint {
  display: none;
}

@keyframes hero-flow-hint-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 4px);
  }
}

/* Em ecrãs pequenos fica um stepper vertical compacto, sem cartão.
   .flow-diagram.hero-flow para ganhar ao .flow-diagram do bloco ≤768px que
   vem mais abaixo no ficheiro e que voltaria a pôr padding em toda a volta */
@media (max-width: 768px) {
  /* Caixa com scroll próprio: o utilizador desliza para ver os passos
     seguintes, com o conteúdo a esfumar-se e uma seta a indicá-lo */
  .hero-flow-wrap {
    margin-top: var(--sp-6);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
  }

  .flow-diagram.hero-flow {
    margin: 0;
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    gap: var(--sp-3);
    border-top: 0;
    max-height: 244px;
    /* sem nowrap os passos formavam colunas extra em vez de fazer scroll */
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  }

  .flow-diagram.hero-flow::-webkit-scrollbar {
    display: none;
  }

  /* Fim do scroll: nada mais para ver, tira-se o esfumado e a seta */
  .hero-flow-wrap.is-end .flow-diagram.hero-flow,
  .hero-flow-wrap.is-static .flow-diagram.hero-flow {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-flow-wrap .hero-flow-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    bottom: var(--sp-2);
    transform: translate(-50%, 0);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    pointer-events: none;
    animation: hero-flow-hint-bounce 1.6s ease-in-out infinite;
    transition: opacity var(--transition);
  }

  .hero-flow-hint svg {
    width: 13px;
    height: 13px;
  }

  .hero-flow-wrap.is-end .hero-flow-hint,
  .hero-flow-wrap.is-static .hero-flow-hint {
    opacity: 0;
  }

  .hero-flow .flow-node {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--sp-4);
    width: 100%;
    text-align: left;
    /* altura natural — com flex: 1 as linhas eram comprimidas na caixa */
    flex: 0 0 auto;
  }

  /* Aqui a legenda aparece: o nome sozinho deixava a linha quase toda vazia
     do lado direito. A linha continua com a altura do ícone (44px), porque as
     duas linhas de texto juntas medem menos do que isso */
  .hero-flow .flow-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  .hero-flow .flow-label b {
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
  }

  .hero-flow .flow-label i {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.5);
  }

  .hero-flow .flow-node.is-goal .flow-label i {
    color: rgba(203, 213, 225, 0.85);
  }

  .hero-flow .flow-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .hero-flow .flow-icon svg {
    width: 21px;
    height: 21px;
  }

  /* setas alinhadas com o centro dos ícones (22px = metade de 44px) */
  .hero-flow .flow-arrow {
    align-self: flex-start;
    margin-left: 13px;
    transform: rotate(90deg);
  }

  .hero-flow .flow-arrow svg {
    width: 18px;
    height: 10px;
  }
}

/* Processo — como trabalhamos */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
}

.process-item {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.process-item .step-num {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--blue-100);
  -webkit-text-stroke: 1.5px var(--color-blue-400);
  display: block;
  margin-bottom: var(--sp-4);
}

.process-item h3 {
  font-size: var(--fs-md);
}

.process-item p {
  color: var(--ink-700);
  font-size: var(--fs-sm);
  margin-bottom: 0;
}
/* Rede / multi-localização — título e texto primeiro, diagrama numa faixa
   compacta por baixo: a explicação lê-se antes do esquema visual */
.network-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.network-layout .section-head {
  margin-bottom: 0;
}

/* Marca à esquerda, estabelecimentos à direita — ocupa uma faixa, não meia secção */
.network-diagram {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.network-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-full);
  background: var(--color-blue-600);
  color: #fff;
  white-space: nowrap;
}

.network-connector {
  position: relative;
  width: 28px;
  height: 2px;
  background: var(--border-dark);
}

/* Espinha vertical: a linha ramifica para todos os estabelecimentos, não só o primeiro */
.network-connector::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 48px;
  background: var(--border-dark);
}

.network-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  width: 100%;
}

.network-node {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  color: #fff;
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.network-node .node-index {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-blue-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-1);
}

.network-node p {
  color: var(--blue-300);
  font-size: var(--fs-xs);
  margin: var(--sp-2) 0 0;
}

/* Lista de vantagens e CTA na mesma linha, a fechar a secção */
.network-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5) var(--sp-7);
}

.network-feature-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--sp-2) var(--sp-6);
  margin-top: 0;
}

.network-feature-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--blue-300);
}

.network-feature-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-blue-400);
  flex-shrink: 0;
}

/* Árvore da rede (segmentos) — a marca no topo a ramificar até cada
   estabelecimento. As curvas nascem no centro e caem sobre o centro de cada
   coluna: por isso o gap da linha está em percentagem, para que os dois
   coincidam em qualquer largura de ecrã */
.network-tree {
  display: grid;
  justify-items: center;
  padding: var(--sp-8) var(--sp-6) var(--sp-7);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-navy-800), var(--color-navy-900));
}

.tree-root {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  background: var(--color-blue-600);
  color: #fff;
  white-space: nowrap;
}

/* Halo a pulsar: a marca é a origem de tudo o que está por baixo */
.tree-root::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid var(--color-blue-400);
  opacity: 0;
}

[data-animate].is-visible .tree-root::after {
  animation: tree-halo 3s ease-out infinite;
}

@keyframes tree-halo {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(1.14);
    opacity: 0;
  }
}

/* Tronco entre a marca e a rede, com um impulso a descer */
.tree-trunk {
  position: relative;
  width: 2px;
  height: 26px;
  overflow: hidden;
  background: var(--border-dark);
}

.tree-trunk::after {
  content: "";
  position: absolute;
  left: 0;
  top: -16px;
  width: 2px;
  height: 14px;
  background: linear-gradient(to bottom, transparent, var(--color-blue-400));
}

/* Toda a árvore corre no mesmo relógio de 3s — tronco, ramos e pontos de
   chegada. Com durações diferentes as fases iam-se afastando e o impulso
   parecia parar no "Rede" antes de seguir para os estabelecimentos. */
[data-animate].is-visible .tree-trunk::after {
  animation: tree-flow 3s linear infinite;
}

/* Desce a Marca → Rede em 5% do ciclo (150ms para 42px, a mesma velocidade a
   que os ramos percorrem as curvas) e recolhe-se acima do tronco — que tem
   overflow: hidden — até ao ciclo seguinte */
@keyframes tree-flow {
  0% {
    top: -16px;
  }
  5% {
    top: 100%;
  }
  5.01%,
  100% {
    top: -16px;
  }
}

.tree-hub {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-dark);
  color: var(--blue-300);
}

.tree-branches {
  display: block;
  width: 100%;
  height: 66px;
}

/* Sem vector-effect: com traço não-escalável, o dash passa a contar em píxeis
   de ecrã e ignora o pathLength, o que parte as linhas em tracejado */
.tree-branch,
.tree-pulse {
  fill: none;
  stroke-linecap: round;
}

.tree-branch {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

/* Os ramos desenham-se quando a secção entra no ecrã, um a seguir ao outro */
[data-animate].is-visible .tree-branch {
  animation: tree-draw 900ms ease-out forwards;
}

.tree-lines .tree-branch:nth-child(1) {
  animation-delay: 100ms;
}

.tree-lines .tree-branch:nth-child(2) {
  animation-delay: 200ms;
}

.tree-lines .tree-branch:nth-child(3) {
  animation-delay: 300ms;
}

.tree-lines .tree-branch:nth-child(4) {
  animation-delay: 400ms;
}

@keyframes tree-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* O impulso chega ao "Rede" e divide-se pelos quatro ramos ao mesmo tempo —
   é um só fluxo a ramificar, não quatro disparos independentes */
.tree-pulse {
  stroke: var(--color-blue-400);
  stroke-width: 2.5;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  opacity: 0;
}

/* Arranca aos 0,18s: o tempo que o impulso leva a descer o tronco e a
   atravessar a etiqueta "Rede", sem pausa pelo meio */
[data-animate].is-visible .tree-pulse {
  animation: tree-pulse-run 3s linear 0.18s infinite;
}

@keyframes tree-pulse-run {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  3% {
    opacity: 0.95;
  }
  45% {
    stroke-dashoffset: 0;
    opacity: 0.95;
  }
  50%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.tree-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2%;
  width: 100%;
}

.tree-node {
  position: relative;
  padding: var(--sp-4);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--fs-xs);
  line-height: 1.35;
  opacity: 0;
  transform: translateY(14px);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* Cada estabelecimento entra depois do ramo que lhe chega */
[data-animate].is-visible .tree-node {
  animation: tree-node-in 620ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tree-node:nth-child(1) {
  animation-delay: 500ms;
}

.tree-node:nth-child(2) {
  animation-delay: 620ms;
}

.tree-node:nth-child(3) {
  animation-delay: 740ms;
}

.tree-node:nth-child(4) {
  animation-delay: 860ms;
}

@keyframes tree-node-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tree-node:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-blue-500);
  box-shadow: var(--shadow-glow);
}

/* Ponto onde o ramo aterra, a acender quando o impulso chega */
.tree-node::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--color-blue-400);
  box-shadow: 0 0 0 4px rgba(65, 105, 255, 0.16);
}

[data-animate].is-visible .tree-node::before {
  animation: tree-arrive 3s ease-out infinite;
}

/* O ponto acende aos 51% do ciclo — quando o impulso do ramo lhe chega
   (0,18s de atraso + 45% dos 3s de percurso) */
@keyframes tree-arrive {
  0%,
  51% {
    box-shadow: 0 0 0 4px rgba(65, 105, 255, 0.16);
  }
  61% {
    box-shadow: 0 0 0 10px rgba(65, 105, 255, 0);
  }
  72%,
  100% {
    box-shadow: 0 0 0 4px rgba(65, 105, 255, 0.16);
  }
}

.tree-node .node-index {
  display: block;
  margin-bottom: var(--sp-1);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue-400);
}

/* Sem movimento: a árvore fica desenhada e legível, sem impulsos nem entradas */
@media (prefers-reduced-motion: reduce) {
  .tree-branch {
    stroke-dashoffset: 0;
  }

  .tree-pulse,
  .tree-trunk::after,
  .tree-root::after {
    display: none;
  }

  .tree-node {
    opacity: 1;
    transform: none;
  }
}

/* Benefícios */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.benefit-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.benefit-item .flow-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--color-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item .flow-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-item h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-1);
}

.benefit-item p {
  font-size: var(--fs-sm);
  color: var(--ink-700);
  margin-bottom: 0;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(65, 105, 255, 0.35);
}

.portfolio-media {
  aspect-ratio: 16 / 11;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Os mockups são quadrados com muito espaço vazio em cima e em baixo —
   object-fit: cover recorta esse vazio e o portátil aparece bem maior */
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition);
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.03);
}

.portfolio-body {
  padding: var(--sp-6);
}

.portfolio-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-700);
  background: var(--accent-300);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}

.portfolio-body h3 {
  margin-bottom: var(--sp-2);
}

.portfolio-body p {
  color: var(--ink-700);
  font-size: var(--fs-sm);
}

/* Consultoria / CTA split */
.consult-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.consult-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult-list {
  display: grid;
  gap: var(--sp-3);
  margin: var(--sp-6) 0 var(--sp-7);
}

.consult-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}

.consult-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue-400);
  flex-shrink: 0;
}

/* Mockups das soluções — base comum (moldura de browser) e, a partir dela,
   uma composição própria por solução: o website mostra navegação e várias
   secções, a landing page mostra uma só mensagem com uma ação em destaque */
.mockup {
  position: relative;
  width: 100%;
  max-width: 500px;
  /* Mais largo e com menos altura por dentro: a janela passa a ter
     proporção de ecrã de computador em vez de parecer um tablet */
  display: flex;
  flex-direction: column;
  justify-self: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-heading);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-2) var(--sp-4);
  flex-shrink: 0;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border);
  flex-shrink: 0;
}

/* Semáforo da janela, igual ao mockup do hero */
.mockup-bar .dot-r {
  background: #ff5f57;
}

.mockup-bar .dot-y {
  background: #febc2e;
}

.mockup-bar .dot-g {
  background: #28c840;
}

.mockup-url {
  flex: 1;
  margin-left: var(--sp-3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Website — navegação, secção de destaque e cartões de conteúdo: um site
   com vários caminhos para explorar */
.mockup-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.mockup-logo {
  margin-right: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.mockup-nav span {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-600);
}

.mockup-nav span.is-cta {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--color-blue-600);
  color: #fff;
  font-weight: 700;
}

.mockup-site .mockup-body {
  display: grid;
  gap: var(--sp-3);
  grid-template-rows: 1fr auto;
  flex: 1;
  padding: var(--sp-3);
}

/* Secção de destaque com cor: dá vida ao exemplo sem depender de fotografias */
.mockup-hero-band {
  display: grid;
  justify-items: start;
  gap: var(--sp-2);
  align-content: center;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--color-navy-900), var(--color-blue-600));
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* Círculo de luz no canto, o mesmo recurso gráfico das secções escuras */
.mockup-hero-band::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mockup-kicker {
  position: relative;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue-400);
}

.mockup-hero-band strong {
  position: relative;
  max-width: 82%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.mockup-btn {
  position: relative;
  margin-top: var(--sp-2);
  padding: 5px 12px;
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--color-navy-900);
  font-size: 9.5px;
  font-weight: 700;
}

.mockup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.mockup-cards div {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-800);
}

.mockup-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--color-blue-600);
}

.mockup-ico svg {
  width: 12px;
  height: 12px;
}

.mockup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 6px var(--sp-4);
  flex-shrink: 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink-600);
}

/* Landing page — uma mensagem, uma ação: tudo aponta para o formulário */
.mockup-landing .mockup-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--sp-2);
  align-content: center;
  flex: 1;
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(160deg, var(--blue-100), var(--surface));
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-300);
  color: var(--accent-700);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mockup-landing .mockup-hero strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.mockup-landing .mockup-hero p {
  margin: 0;
  max-width: 84%;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-700);
}

.mockup-cta {
  padding: 7px 18px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-violet-600));
  box-shadow: 0 12px 26px -12px var(--color-blue-600);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.mockup-form {
  display: grid;
  gap: 6px;
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-5) var(--sp-3);
}

.mockup-field {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-600);
}

.mockup-submit {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
}

.mockup-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: var(--sp-1);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--success);
}

.mockup-note svg {
  width: 11px;
  height: 11px;
}

/* Google & Presença Local — perfil de empresa: mapa em cima e, por baixo, a
   ficha do negócio como o cliente final a vê. Desenhado em CSS, na mesma
   linguagem dos mockups do website e da landing page */

/* Mini-mapa: ruas, parque, água e pins, sem imagens nem serviços externos */
.gmap {
  position: relative;
  overflow: hidden;
  background: var(--gm-land);
}

.gmap-water {
  position: absolute;
  top: -22%;
  right: -12%;
  width: 48%;
  height: 52%;
  background: var(--gm-water);
  border-radius: 0 0 45% 65% / 0 0 55% 45%;
  transform: rotate(-10deg);
}

.gmap-park {
  position: absolute;
  left: 5%;
  bottom: 6%;
  width: 30%;
  height: 34%;
  background: var(--gm-park);
  border-radius: 8px;
}

.gmap-road {
  position: absolute;
  background: var(--gm-road);
}

.gmap .r-h1 {
  left: -10%;
  right: -10%;
  top: 32%;
  height: 8%;
}

.gmap .r-h2 {
  left: -10%;
  right: -10%;
  top: 74%;
  height: 6%;
}

/* Via principal a amarelo, como as arteriais do Google Maps */
.gmap .r-v1 {
  top: -10%;
  bottom: -10%;
  left: 44%;
  width: 7%;
  background: var(--gm-road-main);
}

.gmap .r-v2 {
  top: -10%;
  bottom: -10%;
  left: 78%;
  width: 5%;
}

.gmap .r-d {
  top: 44%;
  left: -20%;
  width: 95%;
  height: 5%;
  transform: rotate(32deg);
  transform-origin: left center;
}

.gmap-pin {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(234, 67, 53, 0.5);
  box-shadow: 0 0 0 1.5px #fff;
}

.gmap-pin.pin-b {
  top: 22%;
  left: 20%;
}

.gmap-pin.pin-c {
  top: 78%;
  left: 68%;
}

/* Pin do negócio do cliente — maior, com halo a pulsar por baixo */
.gmap-pin.is-main {
  top: 46%;
  left: 36%;
  width: auto;
  height: auto;
  transform: translate(-50%, -100%);
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--gm-red);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.gmap-pin.is-main svg {
  display: block;
  width: 30px;
  height: 30px;
}

.gmap-pin.is-main::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  background: rgba(234, 67, 53, 0.3);
  animation: gmap-pin-pulse 2.6s ease-out infinite;
}

@keyframes gmap-pin-pulse {
  0% {
    transform: scale(0.35);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Ponto azul da localização de quem pesquisa */
.gmap-me {
  position: absolute;
  left: 18%;
  top: 58%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gm-blue);
  box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(26, 115, 232, 0.16);
}

.mockup-gbp .gbp-cover {
  height: 118px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.mockup-gbp .gbp-body {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
}

.gbp-head {
  display: grid;
  gap: 3px;
  justify-items: start;
}

.gbp-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gm-text);
}

.gbp-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gm-text);
}

.gbp-stars {
  font-style: normal;
  letter-spacing: -0.5px;
  color: var(--gm-star);
}

.gbp-rating em {
  font-style: normal;
  font-weight: 600;
  color: var(--gm-muted);
}

.gbp-cat {
  font-size: 10px;
  font-weight: 600;
  color: var(--gm-muted);
}

/* Ações redondas, como as do perfil real: rota, ligar, guardar, site */
.gbp-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gbp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(26, 115, 232, 0.35);
  font-size: 9px;
  font-weight: 700;
  color: var(--gm-blue);
  white-space: nowrap;
}

.gbp-btn svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.gbp-btn.is-primary {
  background: var(--gm-blue);
  border-color: var(--gm-blue);
  color: #fff;
}

.gbp-info {
  list-style: none;
  margin: 0;
  padding: var(--sp-3) 0 0;
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--border);
}

/* Sem gap entre os itens da linha: o espaço vem das margens, senão o texto a
   seguir a uma palavra destacada ganha um vão a mais */
.gbp-info li {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--gm-text);
}

.gbp-info svg {
  width: 12px;
  height: 12px;
  margin-right: 7px;
  color: var(--gm-muted);
  flex-shrink: 0;
}

.gbp-info i {
  margin-right: 4px;
  font-style: normal;
  font-weight: 800;
  color: var(--gm-green);
}

/* Badges de estado (case studies) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.status-badge.is-live {
  background: #eaf7ef;
  color: var(--success);
}

.status-badge.is-proposed {
  background: var(--blue-100);
  color: var(--color-blue-600);
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.callout {
  border: 1px dashed var(--color-blue-400);
  background: var(--blue-100);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--ink-700);
}

/* 11. FOOTER ----------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--blue-300);
  padding-block: var(--sp-10) var(--sp-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-9);
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: var(--sp-4);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--blue-300);
  max-width: 30ch;
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-blue-400);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: grid;
  gap: var(--sp-3);
}

.footer-col a {
  font-size: var(--fs-sm);
  color: var(--blue-300);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col address {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--blue-300);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  font-size: var(--fs-xs);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-bottom a {
  color: var(--blue-300);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  gap: var(--sp-5);
}

/* 12. ANIMAÇÕES & UTILITÁRIOS -------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.section-cta {
  margin-top: var(--sp-8);
  text-align: center;
}

/* Barra "página em construção" para cases propostos */
.notice-strip {
  background: var(--accent-300);
  color: var(--ink-900);
  text-align: center;
  font-size: var(--fs-xs);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-4);
}

/* 12b. PÁGINAS DE PROJETO (CASE STUDY) -----------------------------------------------
   Cada projeto segue a mesma estrutura: hero escuro com o resultado ao lado,
   ficha de dados, narrativa, percurso do trabalho, entregas e ligação ao
   projeto seguinte — o mesmo peso visual das restantes páginas do site. */

.case-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-900);
  color: #fff;
  padding-block: var(--sp-9) var(--sp-10);
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 28%, rgba(49, 85, 245, 0.28), transparent 48%),
    radial-gradient(circle at 8% 92%, rgba(91, 75, 255, 0.2), transparent 45%);
  pointer-events: none;
}

.case-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}

.case-hero h1 {
  font-size: var(--fs-3xl);
  color: #fff;
  margin-bottom: var(--sp-5);
}

.case-hero .lead {
  color: var(--blue-300);
  max-width: 46ch;
  margin-bottom: var(--sp-7);
}

.case-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Voltar — pílula discreta, para a página não começar por um link solto */
.case-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-300);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.case-back svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.case-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.case-back:hover svg {
  transform: translateX(-3px);
}

.case-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

/* Sobre fundo escuro as etiquetas ficam translúcidas, não em pastel */
.case-badges .status-badge,
.case-badges .portfolio-tag {
  margin-bottom: 0;
}

.case-badges .status-badge.is-live {
  background: rgba(47, 158, 91, 0.18);
  color: #6ee7a3;
}

.case-badges .portfolio-tag {
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  color: #fff;
}

/* Mockup do site: o PNG tem fundo transparente e flutua sobre o navy;
   o recorte 16/10 tira o vazio por cima e por baixo, a sombra acompanha
   o portátil em vez de desenhar um cartão retangular atrás dele */
.case-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 46%;
  filter: drop-shadow(0 25px 45px rgba(2, 6, 23, 0.45));
}

/* Ficha do projeto — encavalita no hero, ancorando a leitura */
.case-facts-section {
  padding-block: 0;
}

.case-facts {
  position: relative;
  z-index: 2;
  margin: calc(-1 * var(--sp-7)) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.case-fact {
  background: var(--surface);
  padding: var(--sp-5) var(--sp-6);
}

.case-fact dt {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: var(--sp-2);
}

.case-fact dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
}

/* Retrato / imagem de apoio com legenda sobreposta */
.case-figure {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: var(--shadow-lg);
}

.case-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.case-figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-8) var(--sp-5) var(--sp-5);
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0));
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
}

.case-figure figcaption span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue-300);
}

/* Painel escuro de apoio — usado onde não há fotografia do cliente */
.case-panel {
  background: linear-gradient(160deg, var(--color-navy-800), var(--color-navy-900));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.case-panel .eyebrow {
  color: var(--color-violet-500);
}

.case-panel h3 {
  color: #fff;
  margin-bottom: var(--sp-5);
}

.case-panel .consult-list {
  margin: 0;
  gap: var(--sp-4);
}

.case-panel .consult-list li {
  align-items: flex-start;
  color: var(--blue-300);
}

.case-panel .consult-list svg {
  margin-top: 1px;
}

/* Variantes de grelha para as secções de percurso e de entregas */
.process-list.process-list--3 {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-list.benefit-list--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Projeto seguinte — evita que o caso termine num beco sem saída */
.case-next {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.case-next:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(65, 105, 255, 0.35);
}

.case-next-media {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-alt);
}

.case-next-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.case-next:hover .case-next-media img {
  transform: scale(1.03);
}

.case-next .eyebrow {
  margin-bottom: var(--sp-2);
}

.case-next h3 {
  margin-bottom: var(--sp-1);
}

.case-next p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-700);
}

.case-next-arrow {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--color-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-next-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.case-next:hover .case-next-arrow svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .case-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }

  .case-hero .lead {
    max-width: none;
  }

  .case-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-list.benefit-list--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .case-hero {
    padding-block: var(--sp-7) var(--sp-9);
  }

  .case-facts {
    grid-template-columns: 1fr;
    margin-top: calc(-1 * var(--sp-6));
  }

  .process-list.process-list--3,
  .benefit-list.benefit-list--4 {
    grid-template-columns: 1fr;
  }

  .case-next {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .case-next-arrow {
    display: none;
  }

  .case-figure img {
    aspect-ratio: 3 / 4;
  }
}

/* 13. RESPONSIVO --------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .container {
    padding-inline: var(--sp-7);
  }
}

@media (max-width: 1024px) {
  .hero-inner,
  .two-col,
  .solutions-layout {
    grid-template-columns: 1fr;
  }

  /* Empilhado, o texto volta a vir primeiro — os seletores repetem :first-child
     e :last-child para terem a mesma especificidade da regra de desktop */
  .two-col--reverse > *:first-child,
  .two-col--reverse > *:last-child {
    order: 0;
  }

  /* width explícita: com margin-inline auto o item de grid deixa de esticar e,
     como só tem filhos absolutos, colapsava para 0×0 (mockups invisíveis) */
  .hero-visual {
    width: min(100%, 460px);
    margin-inline: auto;
  }

  /* Telemóvel um pouco maior — a conversa tem de continuar legível */
  .device-phone {
    width: 40%;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Diagrama passa a vertical: marca em cima, estabelecimentos por baixo */
  .network-diagram {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--sp-4);
  }

  .network-connector {
    width: 2px;
    height: 22px;
  }

  .network-connector::after {
    display: none;
  }

  .network-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* Sem largura para quatro colunas, a árvore passa a corrente vertical: os
     ramos em leque dariam curvas desalinhadas dos cartões */
  .tree-branches {
    display: none;
  }

  .tree-row {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    margin-top: var(--sp-5);
  }

  .tree-node::after {
    content: "";
    position: absolute;
    top: -26px;
    left: 50%;
    width: 2px;
    height: 22px;
    margin-left: -1px;
    background: var(--border-dark);
  }

  /* O backdrop-filter do header cria um containing block para descendentes
     position: fixed — o painel do menu ficava limitado à altura do header e
     só mostrava uma opção de cada vez. Sem filtro, volta a ser relativo à
     viewport e ocupa o ecrã todo. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .site-header--on-dark:not(.is-scrolled):not(.nav-is-open) {
    background: transparent;
  }

  /* Sem blur, o fundo tem de ser praticamente opaco ao rolar */
  .site-header.is-scrolled,
  .site-header--on-dark.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-header.nav-is-open {
    background: var(--surface);
    border-bottom-color: var(--border);
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--sp-4) var(--sp-5) var(--sp-8);
    gap: var(--sp-5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Alvos de toque generosos — todas as opções visíveis de uma só vez */
  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: var(--sp-3) var(--sp-1);
    font-size: var(--fs-md);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    color: var(--ink-800);
  }

  .nav-list a[aria-current="page"] {
    color: var(--color-blue-600);
  }

  /* O painel é branco também na home — o texto tem de ser escuro */
  .site-header--on-dark .nav-list a {
    color: var(--ink-800);
  }

  .site-header--on-dark .nav-list a[aria-current="page"] {
    color: var(--color-blue-600);
  }

  .nav-list a::after {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .main-nav .header-actions {
    margin-top: var(--sp-2);
  }

  .main-nav .header-actions .btn-primary {
    display: inline-flex;
    width: 100%;
    padding-block: 1.0625rem;
    font-size: var(--fs-base);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    background: var(--ink-900) !important;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .section {
    padding-block: var(--sp-8);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram {
    flex-direction: column;
    padding: var(--sp-5);
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .network-row {
    grid-template-columns: 1fr;
  }

  .network-feature-list {
    grid-template-columns: 1fr;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: var(--sp-5);
  }
}

/* Em ecrãs pequenos o telemóvel do hero fica estreito: mostra só as duas
   últimas mensagens e liberta espaço no cabeçalho, para nada ficar cortado */
@media (max-width: 640px) {
  .chat-actions,
  .chat-day,
  .device-phone .bubble:first-of-type,
  .map-result:last-child {
    display: none;
  }

  /* Sem largura para duas colunas, o email já não cabe ao lado do WhatsApp */
  .contact-list {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

@media (max-width: 400px) {
  .container {
    padding-inline: 1.25rem;
  }

  .btn {
    padding: 0.8rem 1.25rem;
  }
}
