/* ==========================================================================
   HCINOV — Innovate Today
   ========================================================================== */

/* Poppins alojada no próprio servidor (sem pedidos à Google — RGPD e desempenho) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/poppins-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/poppins-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-900: #070e22;   /* footer */
  --navy-800: #0a1533;   /* hero */
  --navy-700: #112355;   /* botões, tiles, faixa CTA */
  --navy-600: #0f1f4b;   /* títulos */
  --text: #4b5b78;       /* texto corrido */
  --text-soft: #6b7892;  /* descrições */
  --teal: #1a9fb0;       /* eyebrows, ícones */
  --green: #61bb4d;
  --blue: #1375cc;
  --line: #e4e9f0;
  --bg-soft: #f7fafc;
  --white: #ffffff;
  --grad: linear-gradient(90deg, #61bb4d 0%, #1aa3a6 50%, #1375cc 100%);
  --radius: 10px;
  --container: 1200px;
  --header-h: 90px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--navy-600); font-weight: 500; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 16px; }
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 0 22px; height: 42px;
  border-radius: 7px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: filter .2s, background-color .2s, border-color .2s, transform .2s;
}
.btn .icon { font-size: 16px; stroke-width: 2; }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { filter: brightness(1.08); }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-navy { background: var(--navy-700); color: #fff; height: 38px; padding: 0 18px; }
.btn-navy:hover { background: #1a3172; }
.btn-white { background: #fff; color: var(--navy-600); height: 42px; }
.btn-white:hover, .btn-white:focus-visible { background: #14a1b1; color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  height: var(--header-h);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15,31,75,.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 56px; width: auto; }
.brand picture, .footer-brand picture { display: block; }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 30px; }
.main-nav a, .main-nav .nav-toggle-sub {
  font-size: 14px; color: #4a5a7a; font-weight: 400;
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  transition: color .2s;
}
.main-nav a:hover, .main-nav .nav-toggle-sub:hover { color: var(--navy-600); }
.main-nav a[aria-current="page"], .main-nav .is-current > .nav-toggle-sub { color: var(--navy-600); font-weight: 500; }
.nav-toggle-sub .icon { font-size: 15px; stroke-width: 2; transition: transform .2s; }

.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  width: 560px; transform: translate(-50%, 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15,31,75,.12);
  padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.has-sub:hover .nav-toggle-sub .icon, .has-sub.is-open .nav-toggle-sub .icon { transform: rotate(180deg); }
.main-nav .submenu a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 8px; width: 100%;
}
.main-nav .submenu a:hover, .main-nav .submenu a[aria-current="page"] { background: var(--bg-soft); }
.submenu .sub-ico {
  width: 32px; height: 32px; border-radius: 7px; background: var(--navy-700); color: #fff;
  display: grid; place-items: center; flex: none; font-size: 17px;
}
.submenu strong { display: block; font-size: 15px; font-weight: 500; color: var(--navy-600); line-height: 1.3; }
.submenu small { display: block; font-size: 13.5px; color: var(--text-soft); line-height: 1.45; margin-top: 3px; }

.header-cta { flex: none; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--navy-600); font-size: 26px; cursor: pointer; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--navy-800);
  background-size: cover; background-position: center;
  color: #fff;
  padding: 100px 0 110px;
}
.hero--home { padding: 88px 0 112px; min-height: 587px; display: flex; align-items: center; }
.hero--home .container { width: 100%; }
/* Imagens de fundo: WebP com fallback JPG; versão de 960 px em ecrãs pequenos */
.hero-bg-inicio { background-image: url('../img/hero-inicio.jpg'); background-image: image-set(url('../img/hero-inicio.webp') type('image/webp'), url('../img/hero-inicio.jpg') type('image/jpeg')); }
.hero-bg-tecnologia { background-image: url('../img/hero-tecnologia.jpg'); background-image: image-set(url('../img/hero-tecnologia.webp') type('image/webp'), url('../img/hero-tecnologia.jpg') type('image/jpeg')); }
.hero-bg-setor { background-image: url('../img/hero-setor-publico.jpg'); background-image: image-set(url('../img/hero-setor-publico.webp') type('image/webp'), url('../img/hero-setor-publico.jpg') type('image/jpeg')); }
.hero-bg-consultoria { background-image: url('../img/hero-consultoria.jpg'); background-image: image-set(url('../img/hero-consultoria.webp') type('image/webp'), url('../img/hero-consultoria.jpg') type('image/jpeg')); }
.hero-bg-transformacao { background-image: url('../img/hero-transformacao.jpg'); background-image: image-set(url('../img/hero-transformacao.webp') type('image/webp'), url('../img/hero-transformacao.jpg') type('image/jpeg')); }
.hero-bg-suporte { background-image: url('../img/hero-suporte.jpg'); background-image: image-set(url('../img/hero-suporte.webp') type('image/webp'), url('../img/hero-suporte.jpg') type('image/jpeg')); }
.hero-bg-iot { background-image: url('../img/hero-iot.jpg'); background-image: image-set(url('../img/hero-iot.webp') type('image/webp'), url('../img/hero-iot.jpg') type('image/jpeg')); }
.hero-bg-ia { background-image: url('../img/hero-ia.jpg'); background-image: image-set(url('../img/hero-ia.webp') type('image/webp'), url('../img/hero-ia.jpg') type('image/jpeg')); }
@media (max-width: 960px) {
  .hero-bg-inicio { background-image: url('../img/hero-inicio-960.jpg'); background-image: image-set(url('../img/hero-inicio-960.webp') type('image/webp'), url('../img/hero-inicio-960.jpg') type('image/jpeg')); }
  .hero-bg-tecnologia { background-image: url('../img/hero-tecnologia-960.jpg'); background-image: image-set(url('../img/hero-tecnologia-960.webp') type('image/webp'), url('../img/hero-tecnologia-960.jpg') type('image/jpeg')); }
  .hero-bg-setor { background-image: url('../img/hero-setor-publico-960.jpg'); background-image: image-set(url('../img/hero-setor-publico-960.webp') type('image/webp'), url('../img/hero-setor-publico-960.jpg') type('image/jpeg')); }
  .hero-bg-consultoria { background-image: url('../img/hero-consultoria-960.jpg'); background-image: image-set(url('../img/hero-consultoria-960.webp') type('image/webp'), url('../img/hero-consultoria-960.jpg') type('image/jpeg')); }
  .hero-bg-transformacao { background-image: url('../img/hero-transformacao-960.jpg'); background-image: image-set(url('../img/hero-transformacao-960.webp') type('image/webp'), url('../img/hero-transformacao-960.jpg') type('image/jpeg')); }
  .hero-bg-suporte { background-image: url('../img/hero-suporte-960.jpg'); background-image: image-set(url('../img/hero-suporte-960.webp') type('image/webp'), url('../img/hero-suporte-960.jpg') type('image/jpeg')); }
  .hero-bg-iot { background-image: url('../img/hero-iot-960.jpg'); background-image: image-set(url('../img/hero-iot-960.webp') type('image/webp'), url('../img/hero-iot-960.jpg') type('image/jpeg')); }
  .hero-bg-ia { background-image: url('../img/hero-ia-960.jpg'); background-image: image-set(url('../img/hero-ia-960.webp') type('image/webp'), url('../img/hero-ia-960.jpg') type('image/jpeg')); }
}
.hero::after { /* película azul-escura sobre a fotografia (mais densa à esquerda, onde está o texto) */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, rgba(10,21,51,.95) 0%, rgba(10,21,51,.90) 21%, rgba(10,21,51,.81) 50%, rgba(10,21,51,.72) 78%, rgba(10,21,51,.66) 100%);
}
.hero > .container { position: relative; z-index: 2; }  /* texto acima do elemento decorativo */
.hero h1 {
  color: #fff;
  font-size: 52px; font-weight: 800; letter-spacing: -.035em; line-height: 1;
  max-width: 820px;
}
.hero--home h1 { font-size: 58px; line-height: 1.0; }
.hero .u {
  background-image: var(--grad);
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 100%;
  padding-bottom: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero .lead { margin-top: 28px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 600px; }
.hero .lead--wide { max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.hero-deco { position: absolute; right: 40px; width: 192px; height: 192px; z-index: 1; pointer-events: none; color: rgba(26,159,176,.40); }
.hero--home .hero-deco { top: 128px; }
.hero--inner .hero-deco { bottom: 20px; }
@media (max-width: 767px) { .hero-deco { display: none; } }

/* ==========================================================================
   Secções
   ========================================================================== */
.section { padding: 100px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); }
.section-title { font-size: 32px; font-weight: 500; letter-spacing: -.01em; }
.section-head { margin-bottom: 46px; }

/* Quem somos (home) */
.about-split { display: grid; grid-template-columns: 1fr 1.42fr; gap: 42px; align-items: start; padding-top: 96px; padding-bottom: 94px; }
.about-split h2 { font-size: 31.5px; font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.about-split p { font-size: 16px; line-height: 1.5; color: var(--text); }

/* Cards de serviços */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.service-card {
  position: relative; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 19px 19px 20px;
  min-height: 160px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
/* Barra em gradiente à esquerda no hover — partilhada por cards e formulário */
.hover-bar { position: relative; transition: border-color .2s, box-shadow .2s, transform .2s, border-radius .2s; }
.hover-bar::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px;
  background: linear-gradient(180deg, #61bb4d 0%, #1aa3a6 50%, #1375cc 100%);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.hover-bar:hover, .hover-bar:focus-visible, .hover-bar:focus-within {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
  box-shadow: 0 14px 32px rgba(15,31,75,.12);
}
.hover-bar:hover::before, .hover-bar:focus-visible::before, .hover-bar:focus-within::before { opacity: 1; }
/* Os cards sobem ligeiramente; o formulário fica parado para não mexer enquanto se escreve */
.hover-bar:not(.form-card):hover, .hover-bar:not(.form-card):focus-visible { transform: translateY(-2px); }
.service-card .tile {
  width: 37px; height: 37px; border-radius: 7px; background: var(--navy-700); color: #fff;
  display: grid; place-items: center; font-size: 18.5px;
}
.service-card .arrow { position: absolute; top: 22px; right: 20px; font-size: 16px; color: #9aa6b8; transition: transform .2s, color .2s; }
.service-card:hover .arrow, .service-card:focus-visible .arrow { transform: translateX(3px); color: var(--teal); }
.service-card h3 { font-size: 17.5px; margin-top: 16px; font-weight: 500; }
.service-card p { font-size: 13.5px; line-height: 1.5; color: var(--text-soft); margin-top: 6px; }

/* Porquê — grelha 2x2 */
.why-section { position: relative; overflow: hidden; }
.why-section > .container { position: relative; z-index: 1; }  /* títulos e cards acima do elemento */
.why-deco { position: absolute; z-index: 0; left: -40px; top: 40px; width: 288px; height: 288px; pointer-events: none; color: rgba(26,159,176,.10); }

/* Linhas de sinal: desenham-se uma vez, do início da linha até ao ponto, e ficam visíveis */
.signal-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: signal-draw 1.2s cubic-bezier(.22,.61,.36,1) forwards;
  animation-play-state: paused;
}
@keyframes signal-draw { to { stroke-dashoffset: 0; } }

/* Pontos: acendem na ponta da linha, "emitem-se" em diagonal a desvanecer e voltam a acender (ciclo de 2,4 s) */
.pulse-dot {
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
  animation: signal-emit 2.4s ease-in-out infinite;
  animation-play-state: paused;
}
@keyframes signal-emit {
  0%   { opacity: 0; transform: translate(0, 0) scale(.6); }
  15%  { opacity: 1; transform: translate(0, 0) scale(1); }
  45%  { opacity: 1; transform: translate(0, 0) scale(1); }
  75%  { opacity: 0; transform: translate(10px, -10px) scale(1.3); }
  100% { opacity: 0; transform: translate(10px, -10px) scale(1.3); }
}
/* A animação só arranca quando o elemento entra no ecrã (classe adicionada pelo main.js) */
.signal-anim.in-view .signal-line,
.signal-anim.in-view .pulse-dot { animation-play-state: running; }
.no-js .signal-line { stroke-dashoffset: 0; }
.no-js .pulse-dot { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .signal-line, .pulse-dot { animation: none !important; stroke-dashoffset: 0; opacity: 1; transform: none; }
}

.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff;
}
.why-item { padding: 26px 26px 30px; }
.why-item:nth-child(odd) { border-right: 1px solid var(--line); }
.why-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.why-item .icon { font-size: 21.5px; color: var(--teal); }
.why-item h3 { font-size: 17px; margin-top: 16px; font-weight: 500; }
.why-item p { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); margin-top: 6px; }

/* CTA gradiente (home) */
.cta-grad {
  background: linear-gradient(118deg, #2f4a25 0%, #173f3f 30%, #0b3450 55%, #0c2d69 100%);
  color: #fff; text-align: center;
  padding: 94px 0 96px;
}
.cta-grad .shield { font-size: 28px; color: var(--green); margin: 0 auto 12px; }
.cta-grad h2 { color: #fff; font-size: 38.5px; font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }
.cta-grad .btn { margin-top: 30px; height: 41px; font-size: 14px; padding: 0 26px; border-radius: 7px; }

/* Faixa CTA (setor público / serviços) */
.cta-band { background: var(--navy-700); color: #fff; padding: 50px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 15px; margin-top: 4px; }

/* Sobre */
.prose-intro { max-width: 680px; margin: 0 auto; font-size: 16px; line-height: 1.5; }
.prose-intro p { margin-bottom: 1.2em; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 19px 20px; }
.mv-card .icon { font-size: 24px; color: var(--teal); }
.mv-card h3 { font-size: 17.5px; margin-top: 14px; font-weight: 500; }
.mv-card p { font-size: 15px; line-height: 1.5; margin-top: 10px; color: var(--text); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 19px 18px; background: #fff; }
.value-card .icon { font-size: 20.5px; color: var(--teal); }
.value-card h3 { font-size: 17px; margin-top: 12px; font-weight: 500; }
.value-card p { font-size: 13px; line-height: 1.6; margin-top: 8px; color: var(--text-soft); letter-spacing: .01em; }

/* Setor público — aplicações */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.app-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 19px 22px; background: #fff; min-height: 95px; }
.app-card .icon { font-size: 21.5px; color: var(--teal); }
.app-card h3 { font-size: 16px; margin-top: 14px; font-weight: 500; line-height: 1.5; }

/* Serviços — páginas de detalhe */
.hero .lead--service { max-width: 620px; margin-top: 30px; }

.service-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px;
  align-items: stretch; padding-top: 77px; padding-bottom: 77px;
}
.service-detail > div { padding-top: 11px; }
.service-detail .section-title { font-size: 32px; line-height: 1.1; letter-spacing: -.015em; }
.check-grid {
  list-style: none; margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.check-grid li {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 13px 13px; min-height: 45px;
  font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--navy-600);
}
.check-grid li > span:last-child { padding-top: 1px; }
.check {
  width: 19px; height: 19px; border-radius: 50%; flex: none; margin-top: 1px;
  background: linear-gradient(135deg, #61bb4d 0%, #1aa3a6 50%, #1375cc 100%);
  display: grid; place-items: center;
}
.check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.who-card {
  background: #f3f6fb; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
.who-card .eyebrow { margin-bottom: 16px; }
.who-card p { font-size: 15px; line-height: 1.58; color: var(--text); }

/* ==========================================================================
   Contactos
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: start; padding-top: 76px; padding-bottom: 78px; }
.contact-intro h2 { font-size: 27.5px; font-weight: 500; letter-spacing: -.01em; }
.contact-intro p { font-size: 13.5px; color: var(--text); margin-top: 14px; line-height: 1.55; max-width: 290px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 19px 20px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--navy-600); }
.field label .req { color: var(--teal); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--navy-600);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 0 13px; height: 37px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { padding-right: 34px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f1f4b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.field textarea { height: 101px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8b96aa; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,159,176,.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; }
.field-error { font-size: 13px; color: #c23b3b; min-height: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 13.5px; color: var(--text); }
.consent input { width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--teal); flex: none; cursor: pointer; }
.consent a, .recaptcha-note a, .legal a, .cookie-banner a { color: var(--teal); }
.consent a:hover, .recaptcha-note a:hover, .legal a:hover { text-decoration: underline; }
.consent .req { color: var(--teal); }
.form-actions { margin-top: 20px; }
.form-actions .btn { height: 39px; font-size: 13.5px; padding: 0 22px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.recaptcha-note { font-size: 11px; color: var(--text-soft); margin-top: 20px; line-height: 1.55; }
.form-status { display: none; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.5; }
.form-status.is-visible { display: flex; }
.form-status .icon { font-size: 17.5px; margin-top: 1px; }
.form-status--ok { background: #ecf8ef; color: #1f6b33; border: 1px solid #c7e9cf; }
.form-status--err { background: #fdf0f0; color: #9c2b2b; border: 1px solid #f3cccc; }
.grecaptcha-badge { z-index: 90; }

/* ==========================================================================
   Páginas legais
   ========================================================================== */
.legal { max-width: 780px; margin: 0 auto; padding: 64px 0 72px; font-size: 15px; line-height: 1.6; }
.legal h2 { font-size: 26px; font-weight: 500; margin: 44px 0 16px; letter-spacing: -.01em; }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: none; margin: 0 0 1em; }
.legal li { position: relative; padding-left: 20px; margin-bottom: .45em; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.legal strong { color: var(--navy-600); font-weight: 600; }
.legal .updated { font-size: 13.5px; color: var(--text-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1em; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.cookie-table th, .cookie-table td { text-align: left; vertical-align: top; padding: 13px 13px; line-height: 1.55; }
.cookie-table th { font-weight: 500; color: var(--navy-600); background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.cookie-table tr + tr td { border-top: 1px solid var(--line); }
.cookie-table td:first-child { color: var(--navy-600); font-weight: 500; white-space: nowrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.95fr 1fr 1fr; gap: 32px; padding-top: 58px; padding-bottom: 52px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand .tag { display: block; font-size: 12px; letter-spacing: .38em; color: var(--teal); margin-top: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; margin-top: 20px; max-width: 320px; color: rgba(255,255,255,.92); }
.footer-col .footer-title { color: #fff; font-size: 14px; font-weight: 500; margin-top: 4px; }
.footer-col ul { list-style: none; margin-top: 14px; }
.footer-col li + li { margin-top: 4px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,.92); transition: color .2s; }
.footer-col a:hover { color: #7fd3de; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; font-size: 11px; color: rgba(255,255,255,.85); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-bottom a:hover { color: #7fd3de; }

/* ==========================================================================
   Cookies
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 19px; bottom: 64px; z-index: 150;
  width: 357px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 10px;
  box-shadow: 0 16px 50px rgba(7,14,34,.28);
  padding: 18px 17px 17px;
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.cookie-banner.is-visible { opacity: 1; transform: none; visibility: visible; }
.cookie-banner h2 { font-size: 17px; font-weight: 500; }
.cookie-banner p { font-size: 13px; line-height: 1.6; color: var(--text); margin-top: 9px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 16px; }
.cookie-actions button { height: 33px; border-radius: 6px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cookie-actions .reject { background: #fff; border: 1px solid var(--line); color: var(--navy-600); }
.cookie-actions .reject:hover { background: var(--bg-soft); }
.cookie-actions .accept { background: var(--grad); border: 0; color: #fff; }
.cookie-actions .accept:hover { filter: brightness(1.08); }
.cookie-fab {
  position: fixed; left: 12px; bottom: 12px; z-index: 140;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #1aa3a6, #1375cc);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(7,14,34,.3);
  font-size: 18.5px;
}
.cookie-fab:hover { filter: brightness(1.1); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 980px) {
  .main-nav > ul { gap: 20px; }
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .menu-btn { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff; overflow-y: auto;
    padding: 12px 24px 40px;
    transform: translateX(100%); transition: transform .25s ease;
    visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a, .main-nav .nav-toggle-sub { font-size: 17.5px; padding: 16px 0; width: 100%; justify-content: space-between; }
  .submenu {
    position: static; width: auto; transform: none; box-shadow: none; border: 0;
    grid-template-columns: 1fr; padding: 0 0 12px;
    display: none; opacity: 1; visibility: visible;
  }
  .submenu::before { display: none; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { transform: none; }
  .has-sub.is-open .submenu { display: grid; transform: none; }
  .has-sub:not(.is-open):hover .nav-toggle-sub .icon { transform: none; }
  .mobile-cta { display: flex !important; margin-top: 24px; }
  .mobile-cta .btn { width: 100%; height: 46px; font-size: 16px; }

  .hero h1, .hero--home h1 { font-size: 39.5px; }
  .about-split, .contact-layout { grid-template-columns: 1fr; gap: 20px; }
  .cards-3, .apps-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 28px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* tipografia mais generosa em mobile */
  .service-card p, .why-item p, .value-card p { font-size: 15px; }
  .contact-intro p, .recaptcha-note { font-size: 14px; }
  .footer-bottom .container { font-size: 13.5px; }
}

@media (max-width: 600px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 72px 0 80px; }
  .hero--home { min-height: 0; padding: 72px 0 84px; }
  .hero h1, .hero--home h1 { font-size: 33.5px; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; height: 46px; font-size: 16px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 27px; }
  .cta-grad h2 { font-size: 30px; }
  .cards-3, .apps-grid, .mv-grid, .values-grid, .form-grid, .check-grid { grid-template-columns: 1fr; }
  .check-grid li { font-size: 15px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item:nth-child(odd) { border-right: 0; }
  .why-item:not(:last-child) { border-bottom: 1px solid var(--line); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .legal { padding: 48px 0 56px; }
}

.mobile-cta { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
