/*
CSS alterado por Caroline Franco.

Índice rápido (secção -> onde é usada):
- :root (tokens de cor/fonte/espaço) -> todas as páginas
- navbar / Eyebrow / Botões / título de seção -> todas as páginas
- hero (com .hero-net, canvas) -> index.html
- hero.hero-compact -> 404, aboutUs, contact, insights, terms
- Service Intro (sentence takeover) -> index.html (#serviceIntro)
- Service -> index.html (cartões "Áreas de Atuação")
- Trajectory / Feature -> aboutUs.html
- Steps (scrollytelling) -> index.html (#how)
- Testimonial -> index.html (carrossel)
- Footer -> todas as páginas
- back-to-top -> todas as páginas
- Contact / Terms (.untree_co-section, .service ícones) -> contact.html, terms.html
- academia-section / Página de Artigo (article-*) -> preparadas, ainda sem
  página própria a usá-las (ver comentários junto a cada bloco)
- Playbooks / catalog-nav -> insights.html
- modalFormador -> contact.html
*/
/* Bricolage Grotesque / Instrument Sans: mesmas fontes da uniana-imersiva.html,
agora prioritárias aqui também (ver --font-display / --font-body). Inter e
Playfair Display continuam importadas como fallback caso as novas fontes
falhem ao carregar. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600&family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap");
html {
  scroll-padding-top: 100px;
  overflow-x: hidden;
}
body {
  position: relative;
}

:root {
  /* ---- Marca ---- */
  --color-navy: #0c2840;
  --color-red: #e63946;
  --color-navy-hover: #16364f;
  --color-navy-active: #081c2e;
  --color-red-hover: #c92e3a;
  --color-red-active: #ac2531;
  --color-red-tint: #fbe3e5;
  /* cor do ponto depois de "Uniana" no logótipo (nav e rodapé); começa igual
  ao --color-red, mas fica isolada numa variável própria para poder mudar
  só o ponto sem mexer no vermelho da marca. */
  --color-uniana-dot: var(--color-red);

  /* ---- Superfícies ---- */
  /* "paper": mesmo tom de fundo claro da uniana-imersiva.html (--paper: #fdfcfb),
  antes #f2f2f0. */
  --color-bg: #fdfcfb;
  --color-surface: #ffffff;
  --color-surface-sunk: #e9e9e6;
  /* fallback sólido equivalente, para browsers sem suporte a color-mix() (ver explicação abaixo);
  recalculado para o novo --color-bg (antes #f9f9f8) */
  --color-surface-card: #fefdfd;
  --color-surface-card: color-mix(
    in srgb,
    var(--color-surface) 50%,
    var(--color-bg) 50%
  );
  --color-overlay: rgba(12, 40, 64, 0.55);

  /* ---- Neutros ---- */
  --gray-900: #0c2840;
  --gray-700: #2e3f4c;
  --gray-500: #74818c;
  --gray-400: #909aa3;
  --gray-300: #aab7bf;
  --gray-200: #d2d8dc;
  --gray-100: #e6e9eb;
  --gray-050: #f2f2f0;

  /* ---- Texto ---- */
  --text-primary: #0c2840;
  --text-secondary: #43525e;
  --text-muted: #74818c;
  --text-on-navy: #f2f2f0;
  --text-on-red: #ffffff;
  --text-link: #0c2840;
  --text-link-hover: #e63946;

  /* ---- Estados ---- */
  --color-success: #52b788;
  --color-success-tint: #e4f4ec;
  --color-error: #c1121f;
  --color-error-tint: #fbe0e1;
  --color-warning: #e29a2e;
  --color-warning-tint: #fbefd9;
  --color-info: #2a6f97;
  --color-info-tint: #e1eef4;

  /* Bricolage Grotesque priorizada (mesma fonte de título da uniana-imersiva.html);
  Playfair Display/Georgia continuam como fallback caso não carregue. */
  --font-display:
    "Bricolage Grotesque", "Playfair Display", Georgia, "Times New Roman", serif;
  /* Instrument Sans priorizada (mesma fonte de corpo da uniana-imersiva.html);
  Inter/system fonts continuam como fallback caso não carregue. */
  --font-body:
    "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --font-weight-light: 300;
  --font-weight-body: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 4rem;
  --text-5xl: 5.5rem;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --measure: 68ch;

  /* ---- Espaçamento ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---- Raio / sombra / bordas ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(12, 40, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 40, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(12, 40, 64, 0.12);
  --border-color: var(--gray-200);
  --focus-ring: 0 0 0 3px rgba(230, 57, 70, 0.45);

  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-very-slow: 1000ms cubic-bezier(0.22, 1, 0.36, 1);

  --container-max: 1180px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 28px;
  color: var(--color-navy);
  font-size: 14px;
  background-color: var(--color-bg);
  padding-top: 88px;
}

/* Todos os títulos (404, index, contact, insights, terms) com a fonte de destaque da marca */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: var(--font-display);
}
a {
  text-decoration: none;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
  color: var(--text-primary);
  text-decoration: underline;
}
a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/*
**************************************
navbar 
**************************************
*/
.custom-navbar {
  background: var(--color-navy) !important; /*antes:#3b5d50 depois:#0C2840*/
  padding-top: 20px;
  padding-bottom: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}
.custom-navbar .navbar-brand {
  font-size: var(--text-2xl);
  font-weight: 600;
}
.custom-navbar .navbar-brand-logo {
  display: inline-block;
  width: 30px;
  height: 30px;
  /*inclusão do logo no navbar com o fundo branco galeria*/
  background-color: var(--color-bg);
  -webkit-mask-image: url("../images/logoUniana.png");
  mask-image: url("../images/logoUniana.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.custom-navbar .navbar-brand > span {
  /*ícone uniana e ponto*/
  opacity: 1; /*antes 0.4*/
}
/* ponto depois de "Uniana" -- usado no menu, no logo do rodapé e no
copyright ("Designed by Uniana."); cor isolada em --color-uniana-dot para
poder mudar só o ponto sem mexer no --color-red da marca. */
.uniana-dot {
  color: var(--color-uniana-dot);
}
.custom-navbar .navbar-toggler {
  border-color: transparent;
}
.custom-navbar .navbar-toggler:active,
.custom-navbar .navbar-toggler:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  outline: none;
}
@media (min-width: 992px) {
  .custom-navbar .custom-navbar-nav li {
    margin-left: 15px;
    margin-right: 15px;
  }
}
.custom-navbar .custom-navbar-nav li a {
  font-weight: 500;
  color: var(--color-bg) !important;
  opacity: 1; /* antes:0.5  */
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
  position: relative;
}
@media (min-width: 768px) {
  .custom-navbar .custom-navbar-nav li a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    background: var(
      --color-red
    ); /* sublinhado do menu que mostra a página que está ativa.*/
    height: 5px;
    opacity: 1;
    visibility: visible;
    width: 0;
    -webkit-transition: 0.15s all ease-out;
    -o-transition: 0.15s all ease-out;
    transition: 0.15s all ease-out;
  }
}
.custom-navbar .custom-navbar-nav li a:hover {
  opacity: 1;
}
.custom-navbar .custom-navbar-nav li a:hover:before {
  width: calc(100% - 16px);
}
.custom-navbar .custom-navbar-nav li.active a {
  opacity: 1;
}
.custom-navbar .custom-navbar-nav li.active a:before {
  width: calc(100% - 16px);
}
.custom-navbar .custom-navbar-cta {
  margin-left: 0 !important;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}
@media (min-width: 768px) {
  .custom-navbar .custom-navbar-cta {
    margin-left: 40px !important;
  }
}
.custom-navbar .custom-navbar-cta li {
  margin-left: 0px;
  margin-right: 0px;
}
.custom-navbar .custom-navbar-cta li:first-child {
  margin-right: 20px;
}

/*
Eyebrow
*/

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 22px;
}
/*
efeito de "traço" colocado em torno do eyebrow
*/
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
}
.eyebrow::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
}
@media (max-width: 576px) {
  /* em ecrãs estreitos o texto do eyebrow quebra em várias linhas; os
  traços decorativos (alinhados ao centro vertical do flex) ficam a
  flutuar isolados a meio do bloco de texto -- por isso escondem-se aqui. */
  .eyebrow::before,
  .eyebrow::after {
    display: none;
  }
}

/*
**************************************
hero 
**************************************
*/
.hero {
  background: var(--color-bg);
  padding: calc(4rem - 30px) 0 0rem 0;
  /*Topo (Cima): calc(4rem - 30px)*/
  /* altura maior (antes só a padding acima definia a altura); menos que
  os 100vh da uniana-imersiva.html para não virar uma hero em tela cheia */
  min-height: 76vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 0;
}

/* usada no hero das páginas secundárias (404, aboutUs, contact, insights,
terms) -- não têm o canvas de rede do index.html, então não precisam da
mesma altura; ficaria vazio a mais. */
.hero.hero-compact {
  min-height: 20vh;
}
@media (max-width: 576px) {
  /* em ecrãs pequenos o conteúdo destas heros é curto (eyebrow + h1, às
  vezes +1 parágrafo/botão) -- min-height em vh cria um vazio grande
  acima/abaixo do texto quando centralizado. Sem min-height aqui, a altura
  passa a acompanhar o conteúdo. */
  .hero.hero-compact {
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.hero .hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* fica entre o fundo navy (z-index:0 implícito) e o .intro-excerpt
  (z-index:4) -- por isso a rede desenha-se atrás do texto e do botão. */
  z-index: 1;
  pointer-events: none;
}

.hero .intro-excerpt {
  position: relative;
  z-index: 4;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero h1 {
  font-weight: 700;
  color: var(--color-navy); /* var(--color-bg);*/
  /* fluido com clamp() em vez dos 2 breakpoints fixos de antes (34px/48px);
  min 36px, max 60px -- maior que antes, mas bem menor que o clamp(2.7rem,
  7vw,5.4rem) [43.2px–86.4px] da uniana-imersiva.html. */
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
}
.hero h1 .hero-highlight {
  /* "Escalar a Inteligência Corporativa.", destacada como na
  uniana-imersiva.html (h1 em / h1 em::after): cor vermelha + barra de
  fundo atrás do texto. A imersiva usa um ::after posicionado (funciona
  porque white-space:nowrap garante uma frase curta numa única linha); a
  nossa frase é mais longa e quebra em 2 linhas em ecrãs estreitos -- um
  ::after com left:0/right:0 esticaria num único bloco cobrindo as duas
  linhas. Por isso aqui a barra é um background-image com
  box-decoration-break:clone, que desenha a barra separadamente em cada
  linha quando o texto quebra. */
  color: var(--color-red);
  background-image: linear-gradient(
    var(--color-red-tint),
    var(--color-red-tint)
  );
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero p {
  color: var(--color-navy); /* var(--color-info-tint);*/
  margin-bottom: 30px;
}
/*
**************************************
Botões
**************************************
*/
.btn {
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  color: #ffffff;
  background: var(--text-primary);
  border-color: var(--text-primary);
}
.btn:hover {
  color: #ffffff;
  background: var(--color-navy-hover);
  border-color: var(--color-navy-hover);
}
.btn:active,
.btn:focus {
  outline: none !important;
  -webkit-box-shadow: none;
  box-shadow: none;
}
.btn.btn-primary {
  background: var(--color-navy); /*antes #3b5d50 depois #0C2840*/
  border-color: var(--color-bg); /*antes #3b5d50 depois #0C2840*/
}
.btn.btn-primary:hover {
  background: var(--color-navy-hover); /* #314d43;*/
  border-color: var(--color-navy-hover); /* #314d43;*/
}
.btn.btn-secondary {
  color: var(--color-bg); /*antes  #f2f2f0; */
  background: var(--color-red); /*antes:#f9bf29 depois: var(--color-red) */
  border-color: var(--color-red); /*antes:#f9bf29 depois: var(--color-red) */
}
.btn.btn-secondary:hover {
  background: var(--color-red-hover); /*antes:#f8b810 depois:#C1121F*/
  border-color: var(--color-red-hover); /*antes:#f8b810 depois:#C1121F*/
}
.btn.btn-white-outline {
  background: transparent;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn.btn-white-outline:hover {
  border-color: white;
  color: #ffffff;
}
/* botão sólido branco/navy -- usado no #serviceIntro (fundo escuro), como
alternativa cheia ao btn-white-outline. Hover usa --color-surface-sunk (o
tom "recuado" da superfície branca), mesmo padrão de escurecer no hover
que os outros botões sólidos (btn-primary/btn-secondary) já usam. */
.btn.btn-white {
  background: var(--color-surface);
  border-color: var(--color-surface);
  color: var(--color-navy);
}
.btn.btn-white:hover {
  background: var(--color-surface-sunk);
  border-color: var(--color-surface-sunk);
  color: var(--color-navy);
}
/* equivalente ao btn-white-outline mas para fundos claros -- o .btn base
tem sempre color:#fff, então btn-white-outline (que não define color
próprio) fica com texto branco quase invisível se usado fora de um fundo
escuro. Encontrado em uso no 404.html (hero com --color-bg claro). */
.btn.btn-navy-outline {
  background: transparent;
  border-width: 2px;
  border-color: rgba(12, 40, 64, 0.3);
  color: var(--color-navy);
}
.btn.btn-navy-outline:hover {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #ffffff;
}

/*
**************************************
título de seção 
**************************************
*/
.section-title {
  padding: 10px 0px 0px 0px;
  color: var(--text-primary);
}

/*
**************************************
Service Intro (sentence takeover)
efeito portado de uniana-imersiva.html (section#problemTrack): a secção
fica "pinada" (position:sticky em .service-intro-pin) a preencher o ecrã
enquanto se percorre a altura de .service-intro-track, e cada .sentence
(sobrepostas via position:absolute, sem top/left definido) aparece/desaparece
conforme a posição do scroll -- ver serviceIntroFx() em custom.js.

Scroll por frase = (altura da secção - 100vh do pin) / 4 frases. A imersiva
usa 420vh, o que dá 80vh de scroll por frase (~720px em ecrã de 900px) --
excessivo aqui, onde esta é a única secção "presa" da página, não parte de
um scrollytelling contínuo como lá. Reduzido para ~55vh/frase em ecrãs
normais; no telemóvel (scroll por toque, tela mais baixa) reduz ainda mais,
para ~40vh/frase.
**************************************
*/
.service-intro-track {
  height: 320vh;
  position: relative;
  /* --color-navy-active é o tom mais escuro da marca -- equivalente ao
  --navy-deep exclusivo da imersiva, sem precisar de criar uma cor nova. */
  background: var(--color-navy-active);
}
@media (max-width: 576px) {
  .service-intro-track {
    height: 260vh;
  }
}
.service-intro-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-intro-track .sentence {
  position: absolute;
  max-width: 820px;
  padding: 0 32px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.35;
  color: var(--color-bg);
  opacity: 0;
  transform: translateY(46px) scale(0.97);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.service-intro-track .sentence.active {
  opacity: 1;
  transform: none;
}
.service-intro-track .sentence.passed {
  opacity: 0;
  transform: translateY(-46px) scale(0.97);
}
.service-intro-track .sentence em {
  font-style: normal;
  color: var(--color-red);
}
.service-intro-track .sentence strong {
  color: #ffffff;
}
.service-intro-track .sentence .small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  /* testando vermelho a baixa opacidade em vez do cinza-claro anterior
  (antes: color-mix com --color-bg a 65%) -- fallback sólido + color-mix,
  mesmo padrão do --color-surface-card */
  color: rgba(230, 57, 70, 0.65);
  color: color-mix(in srgb, var(--color-red) 65%, transparent);
  margin-top: 22px;
  letter-spacing: 0;
}
@media (prefers-reduced-motion: reduce) {
  .service-intro-track .sentence {
    transition: none;
  }
}

/*
**************************************
Service
**************************************
*/
.service-section {
  /*Cima -> Direita -> Baixo -> Esquerda.*/
  padding: 15px 0px 0px 0px;
}
/* #how_start é a última chamada para ação antes do rodapé -- usa a mesma
.service-section, mas com mais respiro acima e abaixo (a base tem só
15px/0, pensada para o #service logo a seguir à hero). */
#how_start {
  padding: 100px 0;
}
/* Cards inspirados no .h-card da uniana-imersiva.html: cartão branco,
sombra suave, borda fina, ícone circular ("destaque") + tag numerada
acima do título. Ícone, tag e título centralizados (pedido do utilizador);
os parágrafos continuam à esquerda, como na imersiva.
(Substitui as regras antigas de .service-item, que já não correspondiam
a nenhum elemento do HTML -- o markup usa .service-item-color.) */
.service-item-color {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.service-item-color .svc-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}
.service-item-color .svc-icon img {
  width: 36px;
  height: 36px;
}
.service-item-color .card-tag {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 10px;
}
.service-title {
  text-align: center;
  font-weight: 600;
  font-size: var(--text-base);
}
/*
**************************************
Trajectory / Feature
usado em: aboutUs.html (secção "Uma Trajetória de Escala..." e os 4
cartões de ícone -- Escala Massiva, etc.)
**************************************
*/
.trajectory-section {
  padding: 3rem 0 0 0;
}
.feature {
  margin-bottom: 30px;
}
.feature .icon {
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}

.feature .icon:before {
  content: "";
  width: 33px;
  height: 33px;
  position: absolute;
  background: rgba(
    12,
    40,
    64,
    0.15
  ); /*antes rgba(59, 93, 80, 0.2), cor verde da marca antiga, nunca migrada para navy*/
  border-radius: 50%;
  right: -8px;
  bottom: 0;
}
.feature h3 {
  font-size: var(--text-sm);
  color: var(--text-primary); /*antes  #2f2f2f; */
}
.feature p {
  font-size: var(--text-sm);
  line-height: 22px;
  color: var(--color-navy); /*alterado de 6a6a6a para 0C2840*/
}

.challenge-to-implementation-section {
  /*Cima -> Direita -> Baixo -> Esquerda.*/
  padding: 20px 0px 0px 0px;
}
/*
**************************************
Steps (scrollytelling da secção #how)
efeito portado de uniana-imersiva.html (.steps/.step/.step-dot +
buildPath()/pathFx() em custom.js): uma linha SVG acompanha os passos e
"desenha-se" conforme o scroll; cada ponto acende quando o seu .step
entra no ecrã (reaproveita o mesmo IntersectionObserver de .reveal, ver
scrollReveal() no custom.js -- .step só precisa da classe is-visible).
Mais larga que na imersiva (max-width:780px lá, 900px aqui) a pedido do
utilizador.
**************************************
*/
.steps {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.steps svg {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 44px;
  overflow: visible;
}
.steps path {
  stroke: var(--border-color);
  stroke-width: 2.5;
  fill: none;
}
.steps path.draw {
  stroke: var(--color-red);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.step {
  position: relative;
  padding: 0 0 78px 82px;
}
.step:last-child {
  padding-bottom: 0;
}
.step-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2.5px solid var(--border-color);
  z-index: 2;
  transition:
    border-color 0.4s,
    background 0.4s,
    transform 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.4s;
}
.step.is-visible .step-dot {
  border-color: var(--color-red);
  transform: scale(1.2);
}
.step.is-visible .step-dot::after {
  background: var(--color-red);
}
.step h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* .imgs-grid (com os "pontinhos" em ::before) e .challenge-details/.custom-list
abaixo já não são usados pela secção #how (agora .steps, acima) -- ficam
porque draft.html e terms.html ainda dependem destas classes. */
.challenge-to-implementation-section .imgs-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr) [27];
  grid-template-columns: repeat(27, 1fr);
  position: relative;
}
.challenge-to-implementation-section .imgs-grid:before {
  position: absolute;
  content: "";
  width: 255px;
  height: 217px;
  background-image: url("../images/dots_navy_0c2840.svg"); /*antes  url("../images/dots-green.svg") */
  background-size: contain;
  background-repeat: no-repeat;
  -webkit-transform: translate(-40%, -40%);
  -ms-transform: translate(-40%, -40%);
  transform: translate(-20%, -20%);
  z-index: -1;
}
.challenge-to-implementation-section .imgs-grid .grid {
  position: relative;
}
.challenge-to-implementation-section .imgs-grid .grid img {
  border-radius: 20px;
  max-width: 100%;
}
.challenge-to-implementation-section .imgs-grid .grid.grid-1 {
  -ms-grid-column: 1;
  -ms-grid-column-span: 18;
  grid-column: 1 / span 18;
  -ms-grid-row: 1;
  -ms-grid-row-span: 27;
  grid-row: 1 / span 27;
}
.challenge-to-implementation-section .imgs-grid .grid.grid-2 {
  -ms-grid-column: 19;
  -ms-grid-column-span: 27;
  grid-column: 19 / span 27;
  -ms-grid-row: 1;
  -ms-grid-row-span: 5;
  grid-row: 1 / span 5;
  padding-left: 20px;
}
.challenge-to-implementation-section .imgs-grid .grid.grid-3 {
  -ms-grid-column: 14;
  -ms-grid-column-span: 16;
  grid-column: 14 / span 16;
  -ms-grid-row: 6;
  -ms-grid-row-span: 27;
  grid-row: 6 / span 27;
  padding-top: 20px;
}

.custom-list {
  width: 100%;
}
.custom-list li {
  display: inline-block;
  width: 100%; /* antes calc(50% - 20px) */
  margin-bottom: 12px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}
.custom-list li:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--color-navy); /*antes #3b5d50 depois #0C2840*/
  position: absolute;
  left: 0;
  top: 8px;
}
/* não é mais utilizado
legado do template antigo

.popular-service {
  padding: 0 0 2rem 0;
}

.popular-service .service-item-sm h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary); 
}  

.popular-service .service-item-sm a {
  text-decoration: none;
  color: var(--text-primary); 
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.popular-service .service-item-sm a:hover {
  color: rgba(47, 47, 47, 0.5);
}
.popular-service .service-item-sm p {
  line-height: 1.4;
  margin-bottom: 10px;
  font-size: var(--text-sm);
}
.popular-service .service-item-sm .thumbnail {
  margin-right: 10px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 120px;
  flex: 0 0 120px;
  position: relative;
}
.popular-service .service-item-sm .thumbnail:before {
  content: "";
  position: absolute;
  border-radius: 20px;
  background: #dce5e4;
  width: 98px;
  height: 98px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

*/

/*
**************************************
Testimonial
usado em: index.html (carrossel "Testemunhos" -- tiny-slider, ver
tinyslider() no custom.js; .tns-* são classes geradas pela própria
biblioteca em runtime, não aparecem no HTML estático)
**************************************
*/
.testimonial-section {
  padding: 2rem 0 2rem 0;
}

.testimonial-slider-wrap {
  position: relative;
}
.testimonial-slider-wrap .tns-inner {
  padding-top: 30px;
}
.testimonial-slider-wrap .item .testimonial-block blockquote {
  font-size: var(--text-base);
}
@media (min-width: 768px) {
  .testimonial-slider-wrap .item .testimonial-block blockquote {
    line-height: 32px;
    font-size: var(--text-lg);
  }
}
.testimonial-slider-wrap .item .testimonial-block .author-info .author-pic {
  margin-bottom: 20px;
}
.testimonial-slider-wrap .item .testimonial-block .author-info .author-pic img {
  max-width: 80px;
  border-radius: 50%;
}
.testimonial-slider-wrap .item .testimonial-block .author-info h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary); /*antes  #2f2f2f; */
  margin-bottom: 0;
}
.testimonial-slider-wrap #testimonial-nav {
  position: absolute;
  top: 50%;
  z-index: 99;
  width: 100%;
  display: none;
}
@media (min-width: 768px) {
  .testimonial-slider-wrap #testimonial-nav {
    display: block;
  }
}
.testimonial-slider-wrap #testimonial-nav > span {
  cursor: pointer;
  position: absolute;
  width: 58px;
  height: 58px;
  line-height: 58px;
  border-radius: 50%;
  background: rgba(
    12,
    40,
    64,
    0.1
  ); /*antes rgba(59, 93, 80, 0.1), cor verde da marca antiga, nunca migrada para navy*/
  color: var(--text-primary); /*antes  #2f2f2f; */
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.testimonial-slider-wrap #testimonial-nav > span:hover {
  background: var(--color-navy); /*antes #3b5d50 depois #0C2840*/
  color: #ffffff;
}
.testimonial-slider-wrap #testimonial-nav .prev {
  left: -10px;
}
.testimonial-slider-wrap #testimonial-nav .next {
  right: 0;
}
.testimonial-slider-wrap .tns-nav {
  position: absolute;
  bottom: -50px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}
.testimonial-slider-wrap .tns-nav button {
  background: none;
  border: none;
  display: inline-block;
  position: relative;
  width: 0 !important;
  height: 7px !important;
  margin: 2px;
}
.testimonial-slider-wrap .tns-nav button:active,
.testimonial-slider-wrap .tns-nav button:focus,
.testimonial-slider-wrap .tns-nav button:hover {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  background: none;
}
.testimonial-slider-wrap .tns-nav button:before {
  display: block;
  width: 7px;
  height: 7px;
  left: 0;
  top: 0;
  position: absolute;
  content: "";
  border-radius: 50%;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
  background-color: #d6d6d6;
}
.testimonial-slider-wrap .tns-nav button:hover:before,
.testimonial-slider-wrap .tns-nav button.tns-nav-active:before {
  background-color: var(--color-navy); /*antes #3b5d50 depois #0C2840*/
}

/*Não utilizado - template antigo

.before-footer-section {
  padding: 2rem 0 2rem 0 !important;
}*/

/* .academia-section: preparado para uma futura página/secção "Academia"
(nenhum HTML atual usa esta classe -- não é lixo, é trabalho adiantado;
mesmo espírito do bloco "Página de Artigo" (pasta articles/) mais abaixo). */
.academia-section {
  padding: 2rem 0 2rem 0;
}
.academia-section .post-entry a {
  text-decoration: none;
}
.academia-section .post-entry .post-thumbnail {
  display: block;
  margin-bottom: 20px;
}
.academia-section .post-entry .post-thumbnail img {
  border-radius: 30px;
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.academia-section .post-entry .post-content-entry {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 7px;
  text-align: center;
}
.academia-section .post-entry .post-content-entry h3 {
  font-size: var(--text-base);
  margin-bottom: 0;
  font-weight: 600;
  margin-bottom: 2px;
}
.academia-section .post-entry .post-content-entry .meta {
  font-size: var(--text-sm);
}
.academia-section .post-entry .post-content-entry .meta a {
  font-weight: 600;
}
.academia-section .post-entry:hover .post-thumbnail img,
.academia-section .post-entry:focus .post-thumbnail img {
  opacity: 0.7;
}

/*
**************************************
Footer
usado em: todas as páginas (rodapé partilhado -- index, 404, aboutUs,
contact, insights, terms); formulário de newsletter usa .js-ajax-form
(ver ajaxForms() no custom.js)
**************************************
*/
.footer-section {
  /* topo mantém 80px; base reduzida (antes 80px também) -- era muito
  espaço vazio abaixo da última frase (copyright). */
  padding: 80px 0 40px;
  /* fundo navy, igual ao menu (.custom-navbar); color aqui garante que todo
  texto do rodapé sem cor própria (parágrafos, copyright) herda o tom claro
  em vez do --color-navy do body, que ficaria invisível sobre navy. */
  background: var(--color-navy);
  color: var(--color-bg);
}
.footer-section a {
  text-decoration: none;
  /* antes var(--text-primary) (navy) -- invisível sobre o novo fundo navy;
  var(--color-bg) é a mesma técnica usada nos links do menu. */
  color: var(--color-bg);
  -webkit-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.footer-section a:hover {
  /* antes rgba(47, 47, 47, 0.5) (esmaecia o texto escuro sobre fundo branco);
  agora esmaece o texto claro (rgb de --color-bg) sobre o novo fundo navy --
  mesmo efeito de "apagar em direção ao fundo", cor invertida. */
  color: rgba(253, 252, 251, 0.55);
}
.footer-section .subscription-form {
  /* antes 40px/80px (desktop) -- espaço até à barra divisória reduzido */
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  margin-top: 100px;
}
@media (min-width: 992px) {
  .footer-section .subscription-form {
    margin-top: 0px;
    margin-bottom: 24px;
  }
}
.footer-section .subscription-form h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(
    --color-bg
  ); /*antes #3b5d50, depois #0C2840, agora claro p/ contraste sobre fundo navy*/
}
.footer-section .subscription-form .form-control {
  height: 50px;
  border-radius: 10px;
  font-family: var(--font-body);
}
.footer-section .subscription-form .form-control:active,
.footer-section .subscription-form .form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: var(--color-navy); /*antes #3b5d50 depois #0C2840*/
  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
}
.footer-section .subscription-form .form-control::-webkit-input-placeholder {
  font-size: var(--text-sm);
}
.footer-section .subscription-form .form-control::-moz-placeholder {
  font-size: var(--text-sm);
}
.footer-section .subscription-form .form-control:-ms-input-placeholder {
  font-size: var(--text-sm);
}
.footer-section .subscription-form .form-control:-moz-placeholder {
  font-size: var(--text-sm);
}
/*borda arredondada do botão de subscription da newsletter */
.footer-section .subscription-form .btn {
  border-radius: 10px !important;
}
/* feedback visual e textual do formulário de newsletter (sucesso/erro) */
.form-feedback:empty {
  display: none;
}
.form-feedback.is-success,
.form-feedback.is-error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 420px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.form-feedback.is-success::before,
.form-feedback.is-error::before {
  flex-shrink: 0;
  font-weight: 700;
}
.form-feedback.is-success {
  color: var(--color-success);
  background-color: var(--color-success-tint);
  border: 1px solid var(--color-success);
}
.form-feedback.is-success::before {
  content: "\2713";
}
.form-feedback.is-error {
  color: var(--color-error);
  background-color: var(--color-error-tint);
  border: 1px solid var(--color-error);
}
.form-feedback.is-error::before {
  content: "\2715";
}
/* botão flutuante "voltar ao topo" */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-navy);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease,
    visibility 0.25s ease;
  z-index: 1000;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: var(--color-navy-hover);
  color: #fff;
}
.footer-section .links-wrap {
  margin-top: 0px;
}
@media (min-width: 992px) {
  .footer-section .links-wrap {
    margin-top: 54px;
  }
}
.footer-section .links-wrap ul li {
  margin-bottom: 10px;
}
.footer-section .footer-logo-wrap .footer-logo {
  font-size: var(--text-2xl);
  font-weight: 500;
  text-decoration: none;
  color: var(
    --color-bg
  ); /*antes #3b5d50, depois #0C2840, agora claro p/ contraste sobre fundo navy*/
}
/* usado só pelo draft.html -- os rodapés "reais" trocaram o ícone do
LinkedIn por um link de texto embaixo de "Sobre Nós" (ver .links-wrap). */
.footer-section .custom-social li {
  margin: 2px;
  display: inline-block;
}
.footer-section .custom-social li a {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  display: inline-block;
  background: #dce5e4;
  color: var(--color-navy); /*antes #3b5d50 depois #0C2840*/
  border-radius: 50%;
}
.footer-section .custom-social li a:hover {
  background: var(--color-navy); /*antes #3b5d50 depois #0C2840*/
  color: #ffffff;
}
.footer-section .border-top {
  border-color: #dce5e4;
}
.footer-section .border-top.copyright {
  font-size: var(--text-sm) !important;
}

/*
**************************************
Contact / Terms (secção genérica + formulário)
usado em: contact.html (formulário de contacto, ícones .service) e
terms.html (corpo do texto legal)
**************************************
*/
.untree_co-section {
  padding: 2rem 0;
}

.form-control {
  height: 50px;
  border-radius: 10px;
  font-family: var(--font-body);
}
.form-control:active,
.form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: var(--color-navy); /*antes #3b5d50 depois  var(--color-navy)*/
  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
}
.form-control::-webkit-input-placeholder {
  font-size: var(--text-sm);
}
.form-control::-moz-placeholder {
  font-size: var(--text-sm);
}
.form-control:-ms-input-placeholder {
  font-size: var(--text-sm);
}
.form-control:-moz-placeholder {
  font-size: var(--text-sm);
}

textarea {
  height: auto !important;
}

/* Não utilizado - tabelas de checkout/pedido (removidas do site)

.site-blocks-table {
  overflow: auto;
}
.site-blocks-table .service-thumbnail {
  width: 200px;
}
.site-blocks-table .btn {
  padding: 2px 10px;
}
.site-blocks-table thead th {
  padding: 30px;
  text-align: center;
  border-width: 0px !important;
  vertical-align: middle;
  color: rgba(0, 0, 0, 0.8);
  font-size: var(--text-lg);
}
.site-blocks-table td {
  padding: 20px;
  text-align: center;
  vertical-align: middle;
  color: rgba(0, 0, 0, 0.8);
}
.site-blocks-table tbody tr:first-child td {
  border-top: 1px solid var(--color-navy) !important ;
}
.site-blocks-table .btn {
  background: none !important;
  color: #000000;
  border: none;
  height: auto !important;
}

.site-block-order-table th {
  border-top: none !important;
  border-bottom-width: 1px !important;
}

.site-block-order-table td,
.site-block-order-table th {
  color: #000000;
}

*/

/*Não utilizado - template antigo

.couponcode-wrap input {
  border-radius: 10px !important;
}
*/

.text-primary {
  color: var(
    --color-navy
  ) !important ; /*antes #3b5d50 depois  var(--color-navy) */
}

/* Não utilizado - página de agradecimento (removida do site)

.thankyou-icon {
  position: relative;
  color: var(--color-navy);
}
.thankyou-icon:before {
  position: absolute;
  content: "";
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 93, 80, 0.2);
}

*/

/* Adiciona uma barra lateral vermelha aos campos obrigatórios */
input:required {
  border-left: 3px solid var(--color-red); /*para o form sinalizar que o campo é obrigatório*/
}
/* new novo*/
.required-label::after {
  content: " *";
  color: var(
    --color-red
  ); /* para o form colocar um * vermelho automaticamente nos campos required*/
}

/*--  teste bobo de primeira letra gigante

p::first-letter {
  font-size: 2000%;
}

*/

/* ============================
   Página de Playbooks -- usado em insights.html
   (nome antigo do ficheiro era index_playbooks.html, antes de renomear)
============================ */
.playbooks-section {
  padding: 2rem 0;
}
.playbooks-section + .playbooks-section {
  padding-top: 0;
}
.playbooks-section .playbooks-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-2);
}
.playbooks-section .playbooks-group-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 40, 64, 0.1); /* fallback sem color-mix() */
  background: color-mix(in srgb, var(--color-navy) 10%, transparent);
  color: var(--color-navy);
  font-size: 1.25rem;
}
.playbooks-section .playbooks-group-lead {
  color: var(--text-secondary);
  /*  max-width: 68ch;*/
  margin-bottom: 2.5rem;
}

.playbook-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: calc(var(--space-5) + var(--space-3));
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}
.playbook-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-navy);
}
.playbook-card .playbook-card-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.12); /* fallback sem color-mix() */
  background: color-mix(in srgb, var(--color-red) 12%, transparent);
  color: var(--color-red);
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
}
.playbook-card h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}
.playbook-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  flex-grow: 1;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.playbook-card .playbook-link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  text-decoration: none;
}
.playbook-card .playbook-link:after {
  content: "\2192";
  margin-left: 6px;
  transition: var(--transition-fast);
  display: inline-block;
}
.playbook-card .playbook-link:hover {
  color: var(--color-red);
}
.playbook-card .playbook-link:hover:after {
  transform: translateX(3px);
}

/* Tags de publicação (artigos e playbooks), complementares à categoria
   já dada pela secção onde o card está inserido. */
.pub-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.pub-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
}
.pub-tag::before {
  content: "#";
}
.pub-tag--model {
  color: var(--gray-400);
}

/* Cards de artigo (secção "Artigos"), no mesmo espírito visual do
   academia.html: imagem + título + excerto, mas encaixado na grelha
   e no comportamento (pesquisa, scrollspy) do catálogo de playbooks. */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: calc(var(--space-5) + var(--space-3));
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-navy);
}
.article-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.article-card:hover .article-card-thumb img {
  transform: scale(1.04);
  opacity: 0.92;
}
.article-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-3);
}
.article-card-body h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
}
.article-card-body h4 a {
  color: var(--text-primary);
  text-decoration: none;
}
.article-card-body h4 a:hover {
  color: var(--color-red);
}
.article-card-body p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  flex-grow: 1;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playbooks-wild-section {
  padding: 2rem 0;
  /* fallback sem color-mix() */
  background: repeating-linear-gradient(
    135deg,
    rgba(12, 40, 64, 0.04),
    rgba(12, 40, 64, 0.04) 12px,
    transparent 12px,
    transparent 24px
  );
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-navy) 4%, transparent),
    color-mix(in srgb, var(--color-navy) 4%, transparent) 12px,
    transparent 12px,
    transparent 24px
  );
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}
.playbooks-wild-section .playbook-card {
  border-style: dashed;
}
.playbooks-wild-section .playbook-card:hover {
  border-style: solid;
}
.playbooks-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-red);
  background: var(--color-red-tint);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: var(--space-4);
}

/* navegação e pesquisa do catálogo de playbooks */
.playbooks-section,
.playbooks-wild-section {
  scroll-margin-top: var(--catalog-scroll-offset, 140px);
}
.catalog-nav {
  position: sticky;
  top: var(--navbar-height, 84px);
  z-index: 1020;
  background: #f3f3f2; /* fallback sem color-mix() */
  background: color-mix(in srgb, var(--color-bg) 90%, white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-3) 0;
}
.catalog-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
}
.catalog-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  color: var(--text-muted);
  transition: var(--transition-base);
}
.catalog-search:focus-within {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}
.catalog-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.catalog-search-input::placeholder {
  color: var(--text-muted);
}
.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.catalog-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  text-decoration: none;
  transition: var(--transition-fast);
}
.catalog-chip:hover {
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.catalog-chip.active {
  color: #fff;
  background: var(--color-navy);
  border-color: var(--color-navy);
}
.catalog-search-status {
  margin: var(--space-2) 0 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.catalog-search-status:empty {
  display: none;
}
.playbook-col.is-hidden-by-search {
  display: none !important;
}
@media (min-width: 768px) {
  .catalog-nav-inner {
    flex-wrap: nowrap;
  }
  .catalog-search {
    width: 260px;
    flex: 0 0 auto;
  }
}

/* ============================
   Página de Artigo (articles/*.html)
============================ */
.article-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 44vh;
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center;
  color: var(--color-bg);
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* fallback sem color-mix() */
  background: linear-gradient(
    180deg,
    rgba(12, 40, 64, 0.35) 0%,
    rgba(12, 40, 64, 0.88) 100%
  );
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-navy) 35%, transparent) 0%,
    color-mix(in srgb, var(--color-navy) 88%, transparent) 100%
  );
}
.article-hero .container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
}
.article-hero .playbooks-badge {
  background: var(--color-red);
  color: var(--text-on-red);
}
.article-hero h1 {
  font-weight: 700;
  color: var(--color-bg);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  max-width: 22ch;
  margin: var(--space-3) 0 var(--space-4);
}
@media (min-width: 768px) {
  .article-hero h1 {
    font-size: var(--text-3xl);
  }
}
.article-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-info-tint);
}

.article-body {
  padding: var(--space-8) 0;
}
.article-body .container {
  max-width: 760px;
}
.article-lede {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}
.article-body h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: var(--space-7) 0 var(--space-3);
}
.article-body p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.article-body ul {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  padding-left: 1.25rem;
}
.article-body li {
  margin-bottom: var(--space-2);
}
.article-body li::marker {
  color: var(--color-red);
}
.article-body strong {
  color: var(--text-primary);
}
.article-pull-quote {
  border-left: 3px solid var(--color-red);
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  margin: var(--space-6) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  font-style: italic;
}
.article-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-color);
}
.article-back-link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  text-decoration: none;
}
.article-back-link:hover {
  color: var(--color-red);
}

/* Modal do Tiago - temporário. usado em: contact.html */

.modalFormador {
  position: relative;
  color: var(--text-primary);
  background-color: var(--color-surface-card);
  border-radius: 20px;
  border-color: var(--color-navy);
  max-width: 80%;
  max-height: 85vh;
  padding: 1.5rem;
}
/* [open] é essencial aqui -- display:flex sem essa condição sobrepunha a
regra do user-agent stylesheet "dialog:not([open]) { display:none }": CSS
de autor vence CSS de user-agent independentemente de especificidade, e
sem o [open] o modal ficava sempre "visível" no fluxo normal da página
(renderizado a seguir ao rodapé, de onde está no HTML) mesmo fechado --
o close() só tirava o atributo [open], mas display:flex continuava a
aplicar-se na mesma, por isso parecia que nem o botão, nem o X, nem o
clique fora fechavam o modal.
título e rodapé fixos, só o .modalFormador-body rola -- por defeito o
<dialog> inteiro é que tem overflow-y:auto (via user-agent stylesheet),
então era o modal todo que rolava como um bloco só, "OK, Carol" e o
logótipo ficavam escondidos lá em baixo até se rolar tudo. */
.modalFormador[open] {
  display: flex;
  flex-direction: column;
}

.modalFormador h2 {
  text-align: center;
  flex-shrink: 0;
  margin-bottom: var(--space-4);
}

.modalFormador-body {
  overflow-y: auto;
  flex: 1 1 auto;
  /* sem isto o flex-item não encolhe abaixo da altura do seu conteúdo
  (min-height:auto por defeito) -- o overflow-y não tinha efeito nenhum e
  o modal simplesmente crescia mais do que os 85vh do max-height. */
  min-height: 0;
}

.modalFormador-closeTop {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-primary);
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
}
.modalFormador-closeTop:hover {
  background-color: var(--color-red-tint);
  color: var(--color-red);
}

.modalFormador-footer {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: var(--space-3);
  /* flex-shrink:0 mantém o rodapé fora da área que rola (.modalFormador-body);
  a borda + padding-top substituem o margin-top de antes, para sinalizar
  visualmente que este bloco ficou "destacado" do conteúdo acima. */
  flex-shrink: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .modalFormador-footer {
    grid-template-columns: 1fr auto 1fr;
  }

  .modalFormador-footer .btn {
    grid-column: 1;
    justify-self: start;
  }

  .modalFormador-footer .modalFormador-logo {
    grid-column: 2;
    justify-self: center;
  }
}

/*
**************************************
scrollytelling: reveal on scroll
**************************************
*/
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity var(--transition-very-slow),
      transform var(--transition-very-slow);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* cards de serviço: aparecem em sequência, não todos ao mesmo tempo.
     O delay é aplicado ao wrapper .col-*; .service-item-color é sempre filho único do seu wrapper, por isso nth-child nele próprio nunca diferenciaria os 3 cards. */
  .reveal-stagger > [class^="col-"] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity var(--transition-slow),
      transform var(--transition-slow);
  }

  .reveal-stagger.is-visible > [class^="col-"]:nth-child(1) {
    transition-delay: 0ms;
  }
  .reveal-stagger.is-visible > [class^="col-"]:nth-child(2) {
    transition-delay: 120ms;
  }
  .reveal-stagger.is-visible > [class^="col-"]:nth-child(3) {
    transition-delay: 240ms;
  }
  .reveal-stagger.is-visible > [class^="col-"]:nth-child(4) {
    transition-delay: 360ms;
  }

  .reveal-stagger.is-visible > [class^="col-"] {
    opacity: 1;
    transform: translateY(0);
  }

  /* reveal da aboutUs.html
     A classe fica no wrapper (.reveal-zoom), não na própria imagem: se o
     clip-path estivesse na imagem observada, o estado inicial (0% de área
     visível) fazia o IntersectionObserver nunca a considerar "visível" --
     um problema de ovo-e-galinha. "round 20px" replica o border-radius que
     o clip-path substituiria. */
  .reveal-zoom img {
    clip-path: inset(0 100% 0 0 round 20px);
    transform: scale(1.06);
    transition:
      clip-path 700ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-zoom.is-visible img {
    clip-path: inset(0 0 0 0 round 20px);
    transform: scale(1);
  }

  /* aboutUs.html: o ícone de cada pilar aparece com um pequeno atraso extra
     depois do card, criando um reveal em dois tempos (moldura, depois ícone) */
  .reveal-stagger .feature .icon {
    opacity: 0;
    transform: scale(0.6);
    transition:
      opacity var(--transition-slow),
      transform var(--transition-slow);
  }
  .reveal-stagger.is-visible > [class^="col-"]:nth-child(1) .icon {
    transition-delay: 150ms;
  }
  .reveal-stagger.is-visible > [class^="col-"]:nth-child(2) .icon {
    transition-delay: 270ms;
  }
  .reveal-stagger.is-visible > [class^="col-"]:nth-child(3) .icon {
    transition-delay: 390ms;
  }
  .reveal-stagger.is-visible > [class^="col-"]:nth-child(4) .icon {
    transition-delay: 510ms;
  }
  .reveal-stagger.is-visible .feature .icon {
    opacity: 1;
    transform: scale(1);
  }
}

.modalFormador-logo {
  height: 80px;
  width: auto;
}
