/* ==========================================================================
   Boas Florestas — website (demonstração, reconstruído pela KIVO Media)
   Medidas tiradas das capturas originais (ver referencias/PLANO-boas-florestas.md).
   Identidade própria: não partilha estilos com o site da KIVO.
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-variavel.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-variavel.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --verde-escuro: #042107;   /* serviços, porquê nós, selo */
  --verde-medio: #133716;    /* processo */
  --vermelho-aviso: #c0392b; /* barra de aviso, igual ao site atual do cliente (texto branco 5,4:1) */
  --verde-texto: #245c28;    /* sobretítulos e setas sobre creme */
  --verde-traco: #2f6532;
  --creme: #f6f1e7;
  --areia: #e4ded0;          /* barra ANTES/DEPOIS */
  --linha-creme: #e6dfd1;
  --laranja: #b85d32;
  --laranja-claro: #cf6538;  /* ícones e destaque sobre escuro */
  --preto: #000;
  --texto: #273528;
  --texto-suave: #5d6d5e;
  --claro: #fff;
  --claro-texto: rgba(255, 255, 255, 0.55); /* #8d988d medido sobre o verde-escuro */
  --claro-suave: rgba(255, 255, 255, 0.52); /* contraste: 0,45 dava 4,4:1 (verde-escuro) e 3,9:1 (verde-médio); 0,52 dá 5,4 e 4,7 */
  --claro-linha: rgba(255, 255, 255, 0.1);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --contentor: 1240px;              /* 1240 a 2560 px; 1232 a 1470 px (margens de 8vw) */
  --margem: clamp(20px, 8vw, 120px);
  --aviso-h: 40px;
  --cabecalho-h: clamp(88px, 3.75vw, 96px); /* 88 na captura de 1470 px, 96 nas de 2560 px */
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, p, dl, dd { margin: 0; }

button { font: inherit; color: inherit; }

svg { width: 1em; height: 1em; }

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

section[id] { scroll-margin-top: var(--cabecalho-h); }

.contentor {
  width: min(var(--contentor), 100% - 2 * var(--margem));
  margin-inline: auto;
}

/* ---------- Sobretítulo (traço + texto em maiúsculas) ---------- */

.sobretitulo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--verde-texto);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sobretitulo::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--verde-traco);
}

.sobretitulo--claro { color: rgba(255, 255, 255, 0.62); }

.hero .sobretitulo { font-size: 10.5px; }
.sobretitulo--claro::before { background: var(--laranja); }

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.botao--laranja { background: var(--laranja); color: var(--claro); }

.botao--contorno { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--claro); }

.botao--grande { height: 55px; padding: 0 32px; font-size: 15px; }

.botao__icone { width: 14px; height: 14px; }

/* ---------- Barra de aviso ---------- */

.aviso {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--aviso-h);
  padding: 0 48px;
  background: var(--vermelho-aviso);
  color: var(--claro);
}

.aviso__texto {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.aviso__texto strong { font-weight: 700; }

.aviso__icone { width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; }

.aviso__fechar {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: var(--aviso-h);
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.aviso__fechar svg { width: 14px; height: 14px; }
.aviso__fechar:hover { color: var(--claro); }

/* sem aviso (fechado nesta sessão) */
.sem-aviso { --aviso-h: 0px; }
.sem-aviso .aviso { display: none; }

/* ---------- Cabeçalho ----------
   Nos screenshots não tem cor própria: é transparente com desfoque e deixa ver a secção que passa por baixo.
   Sobre secções creme passa a verde-escuro (o JS marca .sobre-claro), para o menu branco continuar legível. */

.cabecalho {
  position: fixed;
  top: var(--aviso-h);
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--cabecalho-h);
  color: var(--claro);
}

.cabecalho.com-fundo {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.cabecalho.sobre-claro { background: var(--verde-escuro); }

.cabecalho__linha {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 15px;
  margin-bottom: 5px;
}

.logo__icone { width: 42px; height: 47px; }

.logo__texto {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo__nome {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.logo__sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  gap: 33px;
  margin-left: auto;
  margin-right: 33px;
  font-size: 13.5px;
  font-weight: 400;
}

.menu a { color: rgba(255, 255, 255, 0.86); }
.menu a:hover { color: var(--claro); }

.cabecalho__cta { height: 40px; padding: 0 22px; font-size: 15px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--aviso-h) + var(--cabecalho-h) + 16px) 0 80px;
  overflow: hidden;
  background: #1d2a16;
  color: var(--claro);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* ecrãs ao alto: mostra a área limpa com a giratória (à direita na imagem) */
@media (orientation: portrait) {
  .hero__media img { object-position: 88% 50%; }
}

/* película só onde está o texto (ronda 11): escura por trás da coluna do texto, medida a partir da margem do
   contentor (--x), e quase transparente à direita (área limpa, giratória e sol); um degradê suave em baixo para
   os números e o "Scroll", e outro em cima, por trás do menu do cabeçalho (transparente). São os valores mais leves
   que passam AA no pior píxel por trás de cada texto, de 768 a 2560 px (.claude/contraste-texto.mjs) */
.hero__media::after {
  --x: max(var(--margem), calc(50% - 620px));
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 6, 0.65) 0, rgba(10, 18, 6, 0.5) 130px, rgba(10, 18, 6, 0) 280px),
    linear-gradient(0deg, rgba(10, 18, 6, 0.6) 0%, rgba(10, 18, 6, 0) 28%),
    linear-gradient(90deg, rgba(10, 18, 6, 0.82) 0, rgba(10, 18, 6, 0.78) calc(var(--x) + 600px),
      rgba(10, 18, 6, 0.2) calc(var(--x) + 740px), rgba(10, 18, 6, 0.04) calc(var(--x) + 900px), rgba(10, 18, 6, 0.04) 100%);
}

/* telemóvel ao alto (o mesmo critério do <source> do HTML): a imagem ocupa a parte de cima do hero, com a
   giratória e a área limpa acima do título; o texto desce e fica sobre o fundo escuro, para onde a imagem se
   funde com um degradê vertical (leve em cima, escuro por baixo do texto) */
@media (max-width: 599.98px) and (orientation: portrait) {
  .hero { padding-top: calc(var(--aviso-h) + var(--cabecalho-h) + var(--hero-faixa)); background: rgb(10, 18, 6); --hero-faixa: 190px; }
  .hero__media { bottom: 28%; }
  .hero__media img { object-position: 50% 40%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(10, 18, 6, 0.1) 0%, rgba(10, 18, 6, 0.15) 28%, rgba(10, 18, 6, 0.7) 42%,
      rgba(10, 18, 6, 0.86) 58%, rgb(10, 18, 6) 100%);
  }
}

.hero__conteudo { position: relative; }

/* sombra suave para ajudar a leitura sobre a imagem (sem contorno visível; não conta nas medições) */
.hero__titulo,
.hero__texto { text-shadow: 0 1px 24px rgba(10, 18, 6, 0.45); }

.hero__titulo {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 84.8px;
  font-weight: 700;
  line-height: 91px;
  letter-spacing: -0.005em;
}

.hero__linha { display: block; }
.hero__linha > span { display: inline-block; }

.hero__destaque { color: var(--laranja-claro); }

.hero__texto {
  max-width: 512px;
  margin-top: 27px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 29.5px;
}

.hero__botoes {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.hero__botoes .botao--contorno { padding: 0 32px; }

.hero__numeros {
  display: grid;
  grid-template-columns: repeat(3, 224px);
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__numeros > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding-top: 18px;
}

.hero__numeros > div + div {
  margin-top: 18px;
  padding-top: 0;
  padding-left: 31px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__numeros dd {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.1;
}

.hero__numeros dt {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.75px;
  font-weight: 300;
}

.hero__scroll {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--claro); /* era branco a 55%: sobre a capa nova dava 3,1:1 */
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero__scroll svg { width: 12px; height: 12px; }

/* ---------- Secções ---------- */

.seccao { padding: 132px 0 128px; }

.titulo {
  margin-top: 16px;
  color: var(--preto);
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.17;
}

.seccao--escura { background: var(--verde-escuro); color: var(--claro); }
.seccao--escura .titulo { color: var(--claro); }

/* ---------- Problemas (e Porquê nós): grelha de 4 cartões com traço por cima ---------- */

.problemas__titulo { max-width: 600px; }

.grelha-cartoes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 66px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e3ddcf;
}

.cartao {
  position: relative;
  padding: 41px 20px 40px 40px;
}

/* área de texto de 227,2 px: é a única largura que reproduz todas as quebras de linha dos screenshots
   ("Terreno sujo perde valor" = 227,0 cabe; "Prazo apertado e falta de" = 227,4 não cabe) */
.cartao__titulo,
.cartao__texto { max-width: 227.2px; }

.cartao + .cartao { border-left: 1px solid #e3ddcf; }

/* "Reconhece-se?" e "Porquê nós": nenhum traço fixo; o traço laranja aparece no cartão por onde passa o rato
   (pedido do Manuel; o traço fixo do 1.º cartão nos screenshots 30 e 35 era de capturas tiradas com o rato por
   cima). Só com rato: em ecrãs táteis não aparece */
@media (hover: hover) {
  .problemas .cartao::before,
  .porque .cartao::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--laranja);
    opacity: 0;
  }

  .problemas .cartao:hover::before,
  .problemas .cartao:focus-within::before,
  .porque .cartao:hover::before,
  .porque .cartao:focus-within::before { opacity: 1; }
}

.cartao__icone {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--laranja);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cartao__titulo {
  margin-top: 15px;
  color: var(--preto);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 29.5px;
}

.cartao__texto {
  margin-top: 13px;
  color: #4f5f51;
  font-size: 15px;
  line-height: 25.6px;
}

.seccao--escura .sobretitulo { color: var(--claro-suave); }
.seccao--escura .sobretitulo::before { background: var(--laranja); }

/* ---------- Serviços: coluna de 372 px + grelha 2×2 ---------- */

.servicos__grelha {
  display: grid;
  grid-template-columns: 372px 1fr;
  gap: 64px;
}

.servicos__titulo { margin-top: 19px; font-size: 48px; line-height: 54.8px; }

.servicos__texto {
  margin-top: 25px;
  color: var(--claro-texto);
  font-size: 15px; /* quebras de linha da captura 31 */
  line-height: 27.8px;
}

.servicos__foto {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-top: 31px;
  object-fit: cover;
}

.servicos__lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: start;
  margin: -8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--claro-linha);
}

/* área de texto de ~339 px: reproduz as quebras de linha da captura (entre 336,6 e 342,8 px) */
.servico { padding: 34px 29px 33px 34px; }
.servico:nth-child(even) { border-left: 1px solid var(--claro-linha); }
.servico:nth-child(n + 3) { border-top: 1px solid var(--claro-linha); }

.servico__icone {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--laranja-claro);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.servico__titulo {
  margin-top: 17px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.servico__texto {
  margin-top: 14px;
  color: var(--claro-texto);
  font-size: 14.5px;
  line-height: 24.4px;
}

.etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.etiquetas li {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--claro-suave);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Resultados: texto + números à esquerda, antes/depois à direita ---------- */

.resultados__grelha {
  display: grid;
  grid-template-columns: minmax(0, 600px) 585px;
  justify-content: space-between;
  align-items: start;
}

.resultados__texto {
  max-width: 600px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 27.9px;
}

.numeros {
  display: grid;
  grid-template-columns: repeat(2, 305px);
  row-gap: 24px;
  margin-top: 32px;
}

.numeros > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  min-height: 55px;
  padding-left: 17px;
  border-left: 3px solid var(--laranja);
}

.numeros dd {
  color: var(--preto);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.numeros dt {
  margin-top: 3px;
  color: var(--texto-suave);
  font-size: 13px;
  font-weight: 300;
}

/* Antes/depois — sem JS: lado a lado com a legenda por baixo (como no original) */
.comparar {
  position: relative;
  display: flex;
  gap: 2px;
  margin-top: 20px;
  background: var(--areia);
}

.comparar__lado { flex: 1; min-width: 0; margin: 0; }

.comparar img {
  width: 100%;
  height: auto;
  aspect-ratio: 291.5 / 329;
  object-fit: cover;
}

.comparar figcaption {
  display: grid;
  place-items: center;
  height: 48px;
  color: #566657; /* contraste: medido #627263 (3,8:1 sobre a areia); este dá 4,6:1 */
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.comparar__lado--depois figcaption { color: #1c5721; font-weight: 700; }

/* com JS: comparador arrastável (as duas fotografias sobrepostas; "depois" recortado com clip-path) */
.comparar.ativo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 48px;
  column-gap: 1px;
  background: #f9f3e9; /* linha clara entre ANTES e DEPOIS */
  --pos: 50%;
}

.comparar.ativo .comparar__lado { display: contents; }

.comparar.ativo img {
  grid-row: 1;
  grid-column: 1 / -1;
  aspect-ratio: 585 / 329;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.comparar.ativo .comparar__lado--depois img { clip-path: inset(0 0 0 var(--pos)); }

.comparar.ativo figcaption { grid-row: 2; background: var(--areia); }
.comparar.ativo .comparar__lado--depois figcaption { grid-column: 2; }

.comparar__puxador {
  position: absolute;
  top: 0;
  bottom: 48px;
  left: var(--pos);
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  touch-action: none;
}

/* linha branca de 2 px (a divisória do original) e o botão redondo no meio */
.comparar__puxador::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: #fff;
}

.comparar__puxador span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--verde-escuro);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

.comparar__puxador span svg { width: 18px; height: 18px; }

/* ---------- Processo em 6 passos (fundo verde-médio) ---------- */

.processo { background: var(--verde-medio); color: var(--claro); }
.processo .titulo { color: var(--claro); }
.processo .sobretitulo { color: var(--claro-suave); }
.processo .sobretitulo::before { background: var(--laranja); }

.passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.passo {
  position: relative;
  min-height: 230px;
  padding: 37px 40px 40px 41px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.passo:not(:nth-child(3n + 1)) { border-left: 1px solid rgba(255, 255, 255, 0.04); }

/* linha de progresso: preenche-se com o scroll (o JS dá --f de 0 a 1 a cada passo) */
.passo::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--laranja);
  transform: scaleX(var(--f, 0));
  transform-origin: left;
}

.passo__num {
  display: block;
  color: var(--laranja-claro); /* contraste: medido #8c532a (laranja a 70 %, 2,0:1 sobre o verde); #cf6538 dá 3,5:1 */
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.passo__titulo {
  margin-top: 17px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.passo__texto {
  margin-top: 15px;
  color: var(--claro-suave);
  font-size: 14.5px;
  line-height: 23.6px;
}

/* passos apagados até a linha lá chegar (só com JS e sem movimento reduzido; nada fica invisível) */
@media (prefers-reduced-motion: no-preference) {
  .passos-anim .passo__num,
  .passos-anim .passo__titulo,
  .passos-anim .passo__texto { transition: opacity 400ms var(--ease); }
  .passos-anim .passo:not(.aceso) .passo__num { opacity: 0.22; }
  .passos-anim .passo:not(.aceso) .passo__titulo,
  .passos-anim .passo:not(.aceso) .passo__texto { opacity: 0.4; }
}

/* ---------- Quem somos: fotografia 4:5 com selo + texto centrado na vertical ---------- */

.sobre__grelha {
  display: grid;
  grid-template-columns: 478px 1fr;
  gap: 65px;
  align-items: center;
}

.sobre__foto { position: relative; margin: 0; }

/* o bloco de texto está centrado com a fotografia; no screenshot fica 4–5 px mais abaixo */
.sobre__grelha > div { padding-top: 9px; }

.sobre__foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 478 / 599;
  object-fit: cover;
  object-position: center top;
}

.sobre__selo {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 126px;
  height: 116px;
  padding: 26px 20px 0;
  background: var(--verde-escuro);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sobre__selo strong {
  display: block;
  margin-bottom: 4px;
  color: var(--claro);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: 0;
}

.sobre__nome { margin-top: 12px; font-size: 48px; line-height: 1.15; }

.sobre__texto {
  max-width: 685px; /* reproduz as quebras de linha do screenshot 34 */
  margin-top: 27px;
  font-size: 17px;
  line-height: 32.5px;
}

.sobre__texto + .sobre__texto { margin-top: 23px; }

.numeros--sobre {
  grid-template-columns: 240px;
  margin-top: 32px;
}

/* "20k+ Seguidores TikTok" é um link para o TikTok do Manel: o mesmo bloco dos números, com o ícone ao lado */
.numero-link {
  display: flex;
  flex-direction: column;
  min-height: 61px;
  padding-left: 17px;
  border-left: 3px solid var(--laranja);
}

.numero-link__valor {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--preto);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.numero-link__icone {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--laranja);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.numero-link__legenda {
  margin-top: 3px;
  color: var(--texto-suave);
  font-size: 13px;
  font-weight: 300;
  text-decoration: underline transparent;
  text-underline-offset: 3px;
}

.numero-link:hover .numero-link__legenda,
.numero-link:focus-visible .numero-link__legenda { color: var(--verde-texto); text-decoration-color: currentColor; }

/* ---------- Cabeçalho centrado (Porquê nós, FAQ): traço dos dois lados do sobretítulo ---------- */

.sobretitulo--centro { justify-content: center; }

.sobretitulo--centro::after {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--verde-traco);
}

.seccao--escura .sobretitulo--centro::after { background: var(--laranja); }

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

/* ---------- Porquê nós: grelha de cartões centrada sobre verde-escuro ---------- */

.grelha-cartoes--centro { border-top-color: var(--claro-linha); text-align: center; }
.grelha-cartoes--centro .cartao { min-height: 292px; padding: 45px 20px 40px; }
.grelha-cartoes--centro .cartao + .cartao { border-left-color: rgba(255, 255, 255, 0.05); }
.grelha-cartoes--centro .cartao__icone { margin-inline: auto; width: 24px; height: 24px; stroke: var(--laranja-claro); }

.grelha-cartoes--centro .cartao__titulo,
.grelha-cartoes--centro .cartao__texto { margin-inline: auto; }

.grelha-cartoes--centro .cartao__titulo {
  margin-top: 16px;
  color: var(--claro);
  font-size: 18px;
  line-height: 27.6px;
}

.grelha-cartoes--centro .cartao__texto {
  margin-top: 13px;
  color: var(--claro-suave);
  font-size: 14.5px;
}

/* ---------- FAQ (lista de 848 px centrada; um item aberto de cada vez com JS) ---------- */

.faq__titulo { max-width: 800px; margin-inline: auto; font-size: 48px; line-height: 1.25; }

.faq__lista { max-width: 848px; margin: 56px auto 0; }

.faq__item { border-bottom: 1px solid #ece6da; }

.faq__item h3 { margin: 0; font-size: inherit; }

.faq__pergunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 65px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--preto);
  font-family: var(--serif);
  font-size: 16.75px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.faq__pergunta svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: 1px;
  color: #1d5821;
}

.faq__pergunta[aria-expanded="true"] svg { transform: rotate(180deg); }

.faq__resposta p {
  max-width: 760px;
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
}

.faq__resposta[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .faq__pergunta svg { transition: transform 300ms var(--ease); }
  .faq__resposta.a-abrir { animation: faq-abrir 350ms var(--ease); }
  @keyframes faq-abrir {
    from { clip-path: inset(0 0 100% 0); opacity: 0; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
  }
}

/* ---------- Pedir estimativa (sem screenshot: desenho próprio na linguagem do site) ---------- */

.estimativa__grelha {
  display: grid;
  grid-template-columns: 372px 1fr;
  gap: 64px;
}

.estimativa__texto {
  margin-top: 25px;
  color: var(--claro-texto);
  font-size: 16px;
  line-height: 27.8px;
}

.estimativa__pontos {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--claro-linha);
}

.estimativa__pontos li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--claro-linha);
  color: var(--claro-texto);
  font-size: 14.5px;
}

.estimativa__pontos strong {
  min-width: 64px;
  color: var(--claro);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.formulario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
  align-content: start;
}

.campo { display: flex; flex-direction: column; gap: 8px; }
.campo--largo { grid-column: 1 / -1; }

.campo label {
  color: var(--claro-suave);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--claro);
  font: 300 16px/1.5 var(--sans);
}

.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.6) 50%), linear-gradient(-45deg, transparent 50%, rgba(255,255,255,.6) 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.campo select option { color: #000; }
.campo textarea { resize: vertical; }
.campo input::placeholder { color: rgba(255, 255, 255, 0.35); }

.campo input:focus,
.campo select:focus,
.campo textarea:focus { border-color: var(--laranja-claro); outline: none; }

.campo [aria-invalid="true"] { border-color: #ff9c7a; }

.campo__erro { color: #ffb59a; font-size: 13px; font-weight: 400; }

.formulario__fim { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.formulario__estado { color: var(--claro); font-size: 14.5px; font-weight: 400; }

/* ---------- Rodapé (sem screenshot) ---------- */

.rodape {
  padding: 56px 0 32px;
  background: #021504;
  color: var(--claro);
}

.rodape__linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
}

.rodape .logo { margin-left: 0; margin-bottom: 0; }

.rodape__menu { display: flex; flex-wrap: wrap; gap: 0 28px; margin-left: auto; font-size: 13.5px; }

.rodape__menu a,
.rodape__redes a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.7); }

.rodape__menu a:hover,
.rodape__redes a:hover { color: var(--claro); }

.rodape__redes { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rodape__redes a { justify-content: center; min-width: 44px; }

.rodape__redes svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rodape__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--claro-linha);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* nota discreta da KIVO Media */
.rodape__kivo a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: rgba(255, 255, 255, 0.5); }
.rodape__kivo a:hover { color: var(--claro); }

/* ---------- Botão fixo "Estimativa Gratuita" (só no telemóvel, com JS) ---------- */

.cta-fixo { display: none; }

/* cartões de serviço: a borda "aquece" (camada laranja por opacidade) */
.servico { position: relative; }

.servico::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--laranja);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Movimento — só transform, opacity e clip-path; até 600 ms; easing (.22,1,.36,1).
   Tudo desligado com prefers-reduced-motion; os estados iniciais escondidos só existem com .js.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* hero: fotografia com zoom muito lento (1 → 1,06 em 20 s) */
  .hero__media img { animation: hero-zoom 20s linear both; }
  @keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }

  /* título linha a linha, com máscara */
  /* folga de 0,14em em cima e em baixo para os acentos e descendentes; uma só margem negativa entre linhas
     (margens negativas de irmãos colapsam) */
  .js .hero__linha { overflow: hidden; padding-block: 0.14em; }
  .js .hero__linha:first-child { margin-top: -0.14em; }
  .js .hero__linha + .hero__linha { margin-top: -0.28em; }
  .js .hero__linha:last-child { margin-bottom: -0.14em; }
  .js .hero__linha > span { animation: linha-entra 600ms var(--ease) both; animation-delay: calc(150ms + var(--i) * 110ms); }
  @keyframes linha-entra { from { transform: translateY(105%); } to { transform: translateY(0); } }

  /* restante conteúdo do hero entra a seguir */
  .js .hero__texto,
  .js .hero__botoes,
  .js .hero__numeros { animation: subir 600ms var(--ease) both; }
  .js .hero__texto { animation-delay: 450ms; }
  .js .hero__botoes { animation-delay: 520ms; }
  .js .hero__numeros { animation-delay: 590ms; }
  @keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  /* botões */
  .botao { transition: transform 200ms var(--ease), opacity 200ms; }
  .botao:hover { transform: translateY(-1px); }
  .botao:active { transform: translateY(0); }

  /* cartões de serviço: borda laranja + ícone sobe 2 px */
  .servico::after { transition: opacity 300ms var(--ease); }
  .problemas .cartao::before,
  .porque .cartao::before { transition: opacity 300ms var(--ease); }
  .servico:hover::after { opacity: 0.7; }
  .servico__icone { transition: transform 300ms var(--ease); }
  .servico:hover .servico__icone { transform: translateY(-2px); }

  /* botão fixo do telemóvel entra de baixo */
  .cta-fixo { transition: transform 300ms var(--ease), opacity 300ms; }
}

/* ==========================================================================
   Responsivo — sem referência de telemóvel/tablet; segue a linguagem do site.
   Pontos de corte: 1100 · 900 · 760 · 600
   ========================================================================== */

.menu-botao { display: none; }

@media (max-width: 1099.98px) {
  .seccao { padding: 104px 0; }

  .servicos__grelha,
  .resultados__grelha,
  .sobre__grelha,
  .estimativa__grelha { grid-template-columns: 1fr; gap: 48px; }

  .servicos__intro { max-width: 640px; }
  .servicos__foto { max-width: 480px; }
  .servicos__lista { margin-top: 0; }

  .comparar { max-width: 585px; margin-top: 0; }

  .sobre__foto { max-width: 420px; }
  .sobre__grelha > div { padding-top: 0; }

  .grelha-cartoes { grid-template-columns: repeat(2, 1fr); }
  .grelha-cartoes .cartao:nth-child(3) { border-left: 0; }
  .grelha-cartoes .cartao:nth-child(n + 3) { border-top: 1px solid #e3ddcf; }
  .grelha-cartoes--centro .cartao:nth-child(n + 3) { border-top-color: rgba(255, 255, 255, 0.05); }
  .grelha-cartoes--centro .cartao { min-height: 0; }
  .cartao__titulo,
  .cartao__texto { max-width: 360px; }

  .passos { grid-template-columns: repeat(2, 1fr); }
  .passo:not(:nth-child(3n + 1)) { border-left: 0; }
  .passo:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.04); }
  .passo { min-height: 0; }
}

@media (max-width: 899.98px) {
  :root { --cabecalho-h: 72px; --aviso-h: 44px; }

  .logo { min-height: 44px; }
  .rodape__menu a { justify-content: center; min-width: 44px; }
  .hero__scroll { display: none; }
  .servicos__texto { font-size: 16px; } /* corpo ≥ 16 px no telemóvel */

  .cabecalho { background: var(--verde-escuro); }
  .logo { margin-left: 0; margin-bottom: 0; gap: 14px; }
  .logo__icone { width: 36px; height: 40px; }

  .menu-botao {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .menu-botao span { display: block; width: 22px; height: 2px; background: var(--claro); }
  .menu-botao[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-botao[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--margem) 20px;
    background: var(--verde-escuro);
    border-top: 1px solid var(--claro-linha);
    font-size: 16px;
  }

  .menu a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--claro-linha); }
  .cabecalho.menu-aberto .menu { display: flex; }
  /* sem JS o menu fica sempre visível por baixo do logótipo */
  html:not(.js) .menu { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; background: none; }
  html:not(.js) .cabecalho { position: absolute; height: auto; }

  .cabecalho__cta { display: none; }

  .hero__titulo { font-size: clamp(44px, 9.5vw, 84.8px); line-height: 1.08; }
  .hero__texto { font-size: 17px; line-height: 1.65; }

  .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .numeros--sobre { grid-template-columns: minmax(0, 1fr); }

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

  .rodape__menu { margin-left: 0; width: 100%; }

  /* botão fixo "Estimativa Gratuita" (aparece depois do hero, esconde-se perto do formulário) */
  .com-cta-fixo .cta-fixo {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 25;
    display: flex;
    height: 52px;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }

  .com-cta-fixo .cta-fixo.visivel { transform: none; opacity: 1; pointer-events: auto; }
}

@media (max-width: 759.98px) {
  .grelha-cartoes,
  .servicos__lista,
  .passos { grid-template-columns: 1fr; }

  .grelha-cartoes .cartao + .cartao,
  .grelha-cartoes .cartao:nth-child(3) { border-left: 0; border-top: 1px solid #e3ddcf; }
  .grelha-cartoes--centro .cartao + .cartao { border-top-color: rgba(255, 255, 255, 0.05); }
  .cartao { padding: 32px 0; }
  .grelha-cartoes--centro .cartao { padding: 32px 0; }

  .servico,
  .servico:nth-child(even) { padding: 28px 0; border-left: 0; }
  .servico + .servico { border-top: 1px solid var(--claro-linha); }

  .passo,
  .passo:nth-child(even) { padding: 28px 0; border-left: 0; }

  .faq__pergunta { min-height: 60px; padding: 12px 0; }
}

@media (max-width: 599.98px) {
  :root { --aviso-h: 52px; }

  .aviso { padding: 0 44px 0 16px; justify-content: flex-start; }
  .aviso__texto { font-size: 12px; text-align: left; }
  .aviso__icone { margin-right: 6px; }

  .seccao { padding: 80px 0; }
  .titulo,
  .servicos__titulo,
  .sobre__nome,
  .faq__titulo { font-size: 34px; line-height: 1.18; }

  .hero { padding-bottom: 56px; }
  .hero__botoes { flex-direction: column; }
  .hero__botoes .botao { width: 100%; }
  .hero__numeros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__numeros > div + div { padding-left: 14px; }
  .hero__numeros dd { font-size: 24px; }
  .hero__numeros dt { font-size: 12px; line-height: 1.3; }
  .hero__scroll { display: none; }


  .comparar figcaption { font-size: 11px; }

  .sobre__selo { right: 12px; bottom: 12px; }
  .sobre__texto { font-size: 16px; line-height: 1.75; }

  .botao--grande { padding: 0 24px; }
  .formulario__fim .botao { width: 100%; }

  .rodape__base { flex-direction: column; }
}
