/* =========================================================
   Filipe & Benites, Lda. — Folha de estilos principal
   Estrutura: 1 Fontes · 2 Tokens · 3 Base · 4 Layout
              5 Componentes · 6 Secções · 7 Páginas · 8 Utilitários
   ========================================================= */

/* 1. Fontes (alojadas localmente — RGPD) ------------------ */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* 2. Tokens ----------------------------------------------- */
:root {
  /* Cores oficiais: laranja #cc6f3c e cinzento #555555. */
  --c-ink: #2b2b2a;
  --c-ink-2: #474746;
  --c-ink-soft: #555555;
  --c-muted: #6e6e6d;
  --c-line: #dbdcdb;
  --c-concrete: #f2f2f1;
  --c-paper: #fbfbfa;
  --c-white: #ffffff;
  --c-brand-grey: #555555;
  --c-accent: #cc6f3c;
  /* Pedido do cliente: um só laranja em todo o site. As variantes ficam como
     nomes para cada uso; -deep é o traço dos ícones sobre o fundo laranja. */
  --c-accent-ink: var(--c-accent);
  --c-accent-bright: var(--c-accent);
  --c-accent-light: var(--c-accent);
  --c-accent-soft: var(--c-accent);
  --c-accent-deep: var(--c-white);
  --c-success: #2f7a4b;
  --c-error: #b3261e;

  --f-display: "Manrope", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-xl: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  --fs-3xl: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);
  --fs-hero: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-section: clamp(3.5rem, 2.5rem + 6vw, 8.5rem);

  --container: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 80px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgb(28 31 35 / 0.06), 0 8px 24px rgb(28 31 35 / 0.08);
  --shadow-lg: 0 24px 60px rgb(28 31 35 / 0.18);
}

/* 3. Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--c-accent); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--c-ink); color: var(--c-white);
  padding: 0.75rem 1.25rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* 4. Layout ----------------------------------------------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--sp-section); }
.section--tight { padding-block: calc(var(--sp-section) * 0.6); }
.section--concrete { background: var(--c-concrete); }
.section--dark { background: var(--c-ink); color: #f2f2f1; }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--white { background: var(--c-white); }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.15fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* 5. Componentes ------------------------------------------ */

/* Cabeçalho */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--c-ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Sombra clara sobre o hero: o logotipo (cinzento + laranja) e o menu leem-se sem fundo próprio */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -110px 0; z-index: -1; pointer-events: none;
  /* Degradé longo e com muitas paragens (curva suave) para a transição não se notar */
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0.82) 25%, rgb(255 255 255 / 0.66) 42%, rgb(255 255 255 / 0.47) 57%, rgb(255 255 255 / 0.29) 70%, rgb(255 255 255 / 0.15) 81%, rgb(255 255 255 / 0.05) 91%, transparent 100%);
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 68px;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--c-ink);
  box-shadow: 0 1px 0 var(--c-line);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.brand__logo { height: 44px; width: auto; max-width: none; transition: height 0.4s var(--ease); }
.site-header.is-scrolled .brand__logo { height: 38px; }
.site-footer .brand__logo { height: 52px; max-width: 100%; }
/* Logotipo horizontal: mais pequeno quando o menu ainda está por extenso em ecrãs estreitos */
@media (min-width: 1121px) and (max-width: 1320px) { .site-header .brand__logo, .site-header.is-scrolled .brand__logo { height: 32px; } }
@media (max-width: 420px) { .site-header .brand__logo, .site-header.is-scrolled .brand__logo { height: 32px; } }

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav__list { display: flex; gap: clamp(0.9rem, 0.2rem + 1.2vw, 1.75rem); list-style: none; padding: 0; }
.nav__link {
  position: relative; text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  padding-block: 0.4rem;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-accent-bright); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; width: 46px; height: 46px; position: relative; border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 24px; height: 2px; background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    /* Menu claro: o logotipo continua legível por cima */
    background: var(--c-paper); color: var(--c-ink);
    clip-path: circle(0 at calc(100% - 44px) 40px);
    visibility: hidden;
    transition: clip-path 0.6s var(--ease), visibility 0s 0.6s;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; gap: 0.35rem; }
  .nav__link { font-family: var(--f-display); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; }
  .nav .btn { margin-top: var(--sp-5); }
  .site-header:has(.nav.is-open) { color: var(--c-ink); background: transparent; box-shadow: none; backdrop-filter: none; }
}

/* Botões */
.btn {
  --btn-bg: var(--c-accent); --btn-fg: var(--c-white); --btn-bd: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-ink); transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--c-ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn--ghost::before { background: var(--c-white); }
.btn--ghost:hover { color: var(--c-ink); border-color: var(--c-white); }
.btn--dark { --btn-bg: var(--c-ink); --btn-bd: var(--c-ink); }
.btn--dark::before { background: var(--c-accent); }
.btn--dark:hover { border-color: var(--c-accent); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--c-accent-ink); font-weight: 600; text-decoration: none;
  font-family: var(--f-display);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--c-accent-bright); }

/* Títulos de secção */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-accent-ink); margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--c-accent-bright); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 2px; background: currentColor; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 680px; }
.h2 { font-size: var(--fs-3xl); }
.h3 { font-size: var(--fs-xl); }
.lead { font-size: var(--fs-lg); color: var(--c-ink-soft); margin-top: var(--sp-5); }
.section--dark .lead { color: #cfcfce; }
.prose > * + * { margin-top: var(--sp-4); }
.prose p { color: var(--c-ink-soft); }
.accent { color: var(--c-accent-ink); }
.section--dark .accent, .hero .accent, .page-hero .accent { color: var(--c-accent-bright); }

/* Cartões */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-concrete); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__body h3 { font-size: var(--fs-xl); }
.card__body p { color: var(--c-ink-soft); font-size: var(--fs-sm); }
.card__body .link-arrow { margin-top: auto; padding-top: var(--sp-3); }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__num {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  background: var(--c-white); color: var(--c-ink); font-family: var(--f-display); font-weight: 800;
  font-size: 0.8rem; padding: 0.3rem 0.6rem; border-radius: var(--radius);
}

/* Destaques numerados */
.feature { padding-top: var(--sp-5); border-top: 2px solid var(--c-accent-light); }
.feature__icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: var(--c-accent-light); color: var(--c-accent-deep); border-radius: var(--radius-lg);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); color: var(--c-accent); }
.feature p { color: var(--c-ink-soft); font-size: var(--fs-sm); }
.section--dark .feature p { color: #cfcfce; }

/* Números */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--sp-6); }
.stat { border-left: 2px solid var(--c-accent); padding-left: var(--sp-5); }
.stat__value { font-family: var(--f-display); font-size: var(--fs-3xl); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat__label { margin-top: var(--sp-2); color: var(--c-muted); font-size: var(--fs-sm); }
.section--dark .stat__label { color: #bdbdbc; }

/* Lista com visto */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.checklist li { position: relative; padding-left: 2rem; color: var(--c-ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
.section--dark .checklist li { color: #dbdcdb; }
/* Painel escuro dentro de secção clara (ex.: "Com a FB ICF Portugal" em Chave na Mão) */
.form-panel[style*="--c-ink)"] .checklist li { color: #dbdcdb; }

/* Media com moldura */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.media-frame--wide img { aspect-ratio: 4 / 3; }
.media-stack { position: relative; padding: 0 0 12% 12%; }
.media-stack__back { border-radius: var(--radius-lg); overflow: hidden; }
.media-stack__back img { aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.media-stack__front {
  position: absolute; left: 0; bottom: 0; width: 52%;
  border: 8px solid var(--c-paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.section--concrete .media-stack__front { border-color: var(--c-concrete); }
.media-stack__front img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.media-badge {
  position: absolute; right: -1rem; top: 2rem; z-index: 2;
  background: var(--c-accent); color: var(--c-white); padding: 1.1rem 1.3rem; border-radius: var(--radius-lg);
  font-family: var(--f-display); box-shadow: var(--shadow-lg); max-width: 190px;
}
.media-badge strong { display: block; font-size: 2rem; line-height: 1; font-weight: 800; }
.media-badge span { font-size: 0.82rem; line-height: 1.3; display: block; margin-top: 0.35rem; }
@media (max-width: 1000px) { .media-badge { right: 0.75rem; } .media-badge strong { font-size: 1.6rem; } }

/* Banda de chamada à ação */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-brand-grey); color: var(--c-white);
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  display: grid; gap: var(--sp-6); align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.6fr auto; } }
.cta-band h2 { font-size: var(--fs-2xl); color: var(--c-white); }
.cta-band p { margin-top: var(--sp-3); opacity: 0.9; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cta-band .btn { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-bd: var(--c-white); }
.cta-band .btn:hover { color: var(--c-white); border-color: var(--c-ink); }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-white); --btn-bd: rgb(255 255 255 / 0.6); }
.cta-band .btn--ghost:hover { color: var(--c-ink); border-color: var(--c-white); }


/* 6. Secções ---------------------------------------------- */

/* Hero principal */
.hero {
  position: relative; min-height: clamp(620px, 100svh, 1000px); display: flex; align-items: flex-end;
  color: var(--c-white); isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 2rem + 4vw, 6rem);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(20 22 25 / 0.92) 0%, rgb(20 22 25 / 0.45) 45%, rgb(20 22 25 / 0.15) 75%, rgb(20 22 25 / 0.35) 100%),
    linear-gradient(to right, rgb(20 22 25 / 0.6), transparent 70%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__content { max-width: 900px; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero__lead { font-size: var(--fs-lg); max-width: 620px; margin-top: var(--sp-5); color: rgb(255 255 255 / 0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__bottom {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / 0.2);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5);
}
/* Dois destaques, cada um centrado na sua metade; título e descrição numa linha */
.hero__fact { display: flex; gap: var(--sp-3); align-items: baseline; justify-content: center; text-align: center; }
.hero__fact strong { font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; color: var(--c-accent-bright); line-height: 1; white-space: nowrap; }
.hero__fact span { font-size: var(--fs-sm); color: rgb(255 255 255 / 0.75); line-height: 1.35; white-space: nowrap; }
@media (max-width: 700px) { .hero__bottom { grid-template-columns: 1fr; } }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 2.5rem; writing-mode: vertical-rl;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgb(255 255 255 / 0.7);
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
}
.hero__scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(currentColor, transparent); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* Hero de página interior */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--c-white);
  padding: calc(var(--header-h) + clamp(4rem, 3rem + 6vw, 8rem)) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--c-ink);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) both; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgb(20 22 25 / 0.9) 0%, rgb(20 22 25 / 0.65) 55%, rgb(20 22 25 / 0.35) 100%);
}
.page-hero h1 { font-size: var(--fs-3xl); font-weight: 800; max-width: 860px; letter-spacing: -0.03em; }
.page-hero p { font-size: var(--fs-lg); max-width: 640px; margin-top: var(--sp-5); color: rgb(255 255 255 / 0.82); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin-bottom: var(--sp-5); font-size: var(--fs-xs); color: rgb(255 255 255 / 0.7); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--c-white); text-decoration: underline; }
.page-hero--plain { padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
/* Altura comum aos cabeçalhos com imagem (conteúdo alinhado ao topo → breadcrumb sempre no mesmo sítio) */
.page-hero:not(.page-hero--plain) { min-height: clamp(560px, 22vw + 400px, 720px); }

/* Destaques da página inicial (Chave na Mão / ICF) */
.highlight {
  position: relative; display: grid; min-height: 560px; border-radius: var(--radius-lg); overflow: hidden;
  color: var(--c-white); isolation: isolate; text-decoration: none;
}
.highlight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.highlight::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(20 22 25 / 0.92) 10%, rgb(20 22 25 / 0.2) 70%); transition: opacity 0.5s; }
.highlight:hover img { transform: scale(1.05); }
.highlight__body { align-self: end; padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
.highlight__tag {
  display: inline-block; margin-bottom: var(--sp-4); padding: 0.35rem 0.75rem; border-radius: 99px;
  background: rgb(255 255 255 / 0.14); backdrop-filter: blur(6px); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.highlight h3 { font-size: var(--fs-2xl); font-weight: 800; }
.highlight p { margin-top: var(--sp-3); color: rgb(255 255 255 / 0.8); max-width: 460px; }
.highlight .link-arrow { margin-top: var(--sp-5); color: var(--c-white); }
.highlight .link-arrow span { border-bottom: 1px solid var(--c-accent-bright); }

/* Linha temporal (Chave na Mão) */
.timeline { position: relative; }
.timeline__list { list-style: none; padding: 0; display: grid; gap: var(--sp-4); }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--c-line);
}
.timeline__progress {
  position: absolute; left: 27px; top: 10px; width: 2px; height: calc(100% - 20px);
  background: var(--c-accent); transform-origin: top; transform: scaleY(var(--progress, 0));
}
.timeline__item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-5); padding-bottom: var(--sp-6); }
.timeline__dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--c-paper); border: 2px solid var(--c-line); color: var(--c-muted);
  font-family: var(--f-display); font-weight: 800; font-size: 1.1rem;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}
@media (max-width: 600px) {
  .timeline::before, .timeline__progress { left: 17px; }
  .timeline__item { grid-template-columns: 36px 1fr; gap: var(--sp-3); }
  .timeline__dot { width: 36px; height: 36px; font-size: 0.8rem; }
}
.timeline__item.is-active .timeline__dot { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }
.timeline__content {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: grid; gap: var(--sp-5);
}
@media (min-width: 900px) { .timeline__content { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.timeline__content h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.timeline__content p { color: var(--c-ink-soft); }
.timeline__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 99px;
  background: var(--c-concrete); font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink-soft);
}

/* Modelos de moradia (separadores) */
.tabs__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.tabs__tab {
  padding: 0.85rem 1.4rem; border-radius: 99px; border: 1.5px solid var(--c-line);
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; color: var(--c-ink-soft);
  transition: all 0.3s var(--ease);
}
.tabs__tab:hover { border-color: var(--c-ink); color: var(--c-ink); }
.tabs__tab[aria-selected="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.model { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .model { grid-template-columns: 1.25fr 1fr; } }
.model__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; }
.model__media img { width: 100%; height: 100%; object-fit: cover; }
.model h3 { font-size: var(--fs-2xl); }
.model__price { margin-top: var(--sp-2); color: var(--c-accent-ink); font-family: var(--f-display); font-weight: 700; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; margin-block: var(--sp-5); }
.specs div { background: var(--c-white); padding: var(--sp-4); }
.specs dt { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.specs dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); }

/* Esquema ICF */
.icf-diagram { background: var(--c-ink-2); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.icf-diagram svg { width: 100%; height: auto; }
.icf-legend { list-style: none; padding: 0; display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.icf-legend li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: #dbdcdb; }
.icf-legend b { color: var(--c-white); }
.icf-legend i { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.45); flex-shrink: 0; width: 14px; height: 14px; border-radius: 3px; margin-top: 0.3em; }
.icf-layers rect { transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
.icf-diagram:not(.is-visible) .icf-layers .l-left { transform: translateX(-40px); opacity: 0; }
.icf-diagram:not(.is-visible) .icf-layers .l-right { transform: translateX(40px); opacity: 0; }
.icf-diagram:not(.is-visible) .icf-layers .l-core { opacity: 0; }

/* Comparativo */
.compare { width: 100%; border-collapse: collapse; background: var(--c-white); border-radius: var(--radius-lg); overflow: hidden; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--c-line); }
.compare thead th { background: var(--c-ink); color: var(--c-white); font-family: var(--f-display); }
.compare thead th:nth-child(2) { background: var(--c-accent); }
.compare tbody th { font-weight: 600; }
.compare td:nth-child(2) { font-weight: 600; color: var(--c-accent-ink); background: #f6f6f5; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--c-line); }

/* Serviços (lista detalhada) */
.service { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--c-line); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; }
  .service:nth-child(even) .service__media { order: 2; }
}
.service__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__num { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--c-accent-ink); }
.service h2 { font-size: var(--fs-2xl); margin: var(--sp-3) 0 var(--sp-4); }
.service p { color: var(--c-ink-soft); }
.service .checklist { margin-top: var(--sp-5); }
.service .btn { margin-top: var(--sp-6); }

/* Portfólio */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filters button {
  padding: 0.6rem 1.15rem; border-radius: 99px; border: 1.5px solid var(--c-line); font-weight: 600; font-size: 0.9rem; color: var(--c-ink-soft);
  transition: all 0.3s var(--ease);
}
.filters button:hover { border-color: var(--c-ink); color: var(--c-ink); }
.filters button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.works { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.work {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; color: var(--c-white);
  isolation: isolate; text-align: left; display: block; width: 100%; background: var(--c-ink);
}
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.work::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(20 22 25 / 0.9) 0%, rgb(20 22 25 / 0) 60%); }
.work:hover img { transform: scale(1.06); }
.work__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-6); }
.work__cat { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent-bright); font-weight: 700; }
.work h3 { font-size: var(--fs-xl); margin-top: var(--sp-2); }
.work__meta { margin-top: var(--sp-2); font-size: var(--fs-sm); color: rgb(255 255 255 / 0.75); display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.work__open {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-white); color: var(--c-ink);
  transform: scale(0.6); opacity: 0; transition: all 0.45s var(--ease);
}
.work:hover .work__open, .work:focus-visible .work__open { transform: none; opacity: 1; }
.work__open svg { width: 20px; height: 20px; }
.work.is-hidden { display: none; }

/* Lightbox / galeria de obra */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgb(14 15 17 / 0.97); color: var(--c-white);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--gutter); }
.lightbox__title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); }
.lightbox__title small { display: block; font-family: var(--f-body); font-weight: 400; font-size: var(--fs-sm); color: rgb(255 255 255 / 0.6); }
.lightbox__close, .lightbox__nav { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 0.08); color: var(--c-white); transition: background 0.3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-accent); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__figure { max-width: 1200px; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; gap: var(--sp-3); min-height: 0; }
.lightbox__figure img, .lightbox__figure video { width: 100%; height: 100%; object-fit: contain; min-height: 0; border-radius: var(--radius); }
.lightbox__figure figcaption { text-align: center; color: rgb(255 255 255 / 0.75); font-size: var(--fs-sm); }
.lightbox__figure figcaption b { color: var(--c-accent-bright); font-weight: 600; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__bottom { padding: var(--sp-4) var(--gutter) var(--sp-5); display: grid; gap: var(--sp-3); }
.lightbox__phases { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.lightbox__phases button { padding: 0.4rem 0.9rem; border-radius: 99px; font-size: var(--fs-xs); font-weight: 600; background: rgb(255 255 255 / 0.08); color: rgb(255 255 255 / 0.8); }
.lightbox__phases button[aria-pressed="true"] { background: var(--c-accent); color: var(--c-white); }
.lightbox__thumbs { display: flex; gap: var(--sp-2); justify-content: center; overflow-x: auto; padding-bottom: 4px; }
.lightbox__thumbs button { flex: 0 0 auto; width: 84px; height: 60px; border-radius: var(--radius); overflow: hidden; opacity: 0.45; outline-offset: 2px; transition: opacity 0.3s; position: relative; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--c-accent-bright); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumbs .is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.8rem; background: rgb(0 0 0 / 0.35); }
@media (max-width: 700px) { .lightbox__nav { top: auto; bottom: -4px; translate: none; width: 42px; height: 42px; } .lightbox__thumbs button { width: 64px; height: 46px; } }

/* Formulários */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--c-accent-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; background: var(--c-white);
  border: 1.5px solid var(--c-line); border-radius: var(--radius); font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bdbdbc; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgb(204 111 60 / 0.22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-error); }
.field__error { color: var(--c-error); font-size: var(--fs-xs); font-weight: 500; min-height: 0; }
.field__hint { color: var(--c-muted); font-size: var(--fs-xs); }
fieldset.field { border: 0; padding: 0; }
.choices { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-top: 0.3rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; gap: 0.2rem; height: 100%; padding: 1rem 1.1rem; border: 1.5px solid var(--c-line); border-radius: var(--radius-lg);
  background: var(--c-white); font-weight: 600; transition: all 0.25s var(--ease);
}
.choice span small { font-weight: 400; color: var(--c-muted); font-size: var(--fs-xs); }
.choice input:hover + span { border-color: #bdbdbc; }
.choice input:checked + span { border-color: var(--c-accent); background: #f6f6f5; box-shadow: inset 0 0 0 1px var(--c-accent); }
.choice input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--c-accent); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; display: none; }
.form-status.is-success { display: block; background: #e8f3ec; color: var(--c-success); }
.form-status.is-error { display: block; background: #fbeaea; color: var(--c-error); }
.form-panel { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); box-shadow: var(--shadow); }

/* Formulário por passos */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-6); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--c-line); transition: background 0.4s var(--ease); }
.steps li.is-done, .steps li.is-current { color: var(--c-ink); }
.steps li.is-done::before, .steps li.is-current::before { background: var(--c-accent); }
.step-panel[hidden] { display: none; }
.step-panel { animation: fadeUp 0.5s var(--ease); }
.step-panel h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-5); }
.step-actions { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.js .step-panel .step-actions--nojs { display: none; }

/* Contactos */
.contact-list { list-style: none; padding: 0; display: grid; gap: var(--sp-5); }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-4); align-items: start; }
.contact-item__icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--c-accent-light); color: var(--c-accent-deep); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-muted); font-family: var(--f-body); font-weight: 600; }
.contact-item a, .contact-item p { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); text-decoration: none; }
.contact-item a:hover { color: var(--c-accent-ink); }
.contact-item small { display: block; font-size: var(--fs-xs); color: var(--c-muted); font-weight: 400; font-family: var(--f-body); }
.map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; min-height: 320px;
  background: var(--c-ink-2); color: var(--c-white); display: grid; place-items: center; text-align: center;
}
/* Em ecrãs estreitos, aspect-ratio + min-height impõe 569px de largura mínima ao mapa */
@media (max-width: 700px) { .map { aspect-ratio: auto; height: 380px; min-height: 0; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent { max-width: 420px; padding: var(--sp-6); display: grid; gap: var(--sp-4); justify-items: center; z-index: 1; }
.map__consent p { font-size: var(--fs-sm); color: rgb(255 255 255 / 0.75); }
.map__pin { width: 56px; height: 56px; color: var(--c-accent-bright); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours td { padding: 0.6rem 0; border-bottom: 1px solid var(--c-line); }
.hours td:last-child { text-align: right; font-weight: 600; }

/* Testemunhos */
.quote { background: var(--c-white); border-radius: var(--radius-lg); padding: var(--sp-6); border: 1px solid var(--c-line); display: flex; flex-direction: column; gap: var(--sp-5); height: 100%; }
.quote__mark { font-family: var(--f-display); font-size: 4rem; line-height: 0.6; color: var(--c-accent); font-weight: 800; height: 1.6rem; }
.quote blockquote { font-size: var(--fs-base); color: var(--c-ink-soft); flex: 1; }
.quote figcaption { display: flex; gap: var(--sp-3); align-items: center; }
.quote figcaption b { display: block; font-family: var(--f-display); }
.quote figcaption span { font-size: var(--fs-xs); color: var(--c-muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-ink); color: var(--c-white); font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; }

/* Equipa / sócios */
.person { display: grid; gap: var(--sp-4); }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--c-ink-2), var(--c-ink)); display: grid; place-items: center; color: rgb(255 255 255 / 0.9); font-family: var(--f-display); font-weight: 800; font-size: 4.5rem; position: relative; overflow: hidden; }
.person__photo::after { content: "&"; position: absolute; right: -0.5rem; bottom: -2.5rem; font-size: 12rem; color: rgb(255 255 255 / 0.07); }
.person h3 { font-size: var(--fs-xl); }
.person p { color: var(--c-ink-soft); font-size: var(--fs-sm); }
.person__role { color: var(--c-accent-ink) !important; font-weight: 600; }

/* Acordeão (FAQ) */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
  padding: var(--sp-5) 0; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--c-accent-ink); transition: transform 0.35s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--sp-5); color: var(--c-ink-soft); max-width: 760px; }

/* Rodapé */
/* Fundo claro para o logotipo (cinzento + laranja) se ler sem fundo próprio */
.site-footer { background: var(--c-concrete); color: var(--c-ink-soft); padding-top: clamp(4rem, 3rem + 4vw, 6rem); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--sp-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.18em; color: var(--c-ink); font-family: var(--f-body); font-weight: 700; margin-bottom: var(--sp-5); }
.footer-about p { margin-top: var(--sp-5); max-width: 340px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-links a { text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--c-accent-ink); }
.footer-contact { font-style: normal; display: grid; gap: 0.7rem; }
.footer-contact a { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.footer-contact a:hover { color: var(--c-accent-ink); }
.footer-contact strong { color: var(--c-ink); }
.footer-contact small { display: block; font-size: 0.72rem; color: var(--c-muted); }
.social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent-light); color: var(--c-accent-deep); transition: all 0.3s var(--ease); }
.social a:hover { background: var(--c-accent); color: var(--c-white); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-block: var(--sp-5); border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center; font-size: var(--fs-xs); }
.footer-bottom ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--c-accent-ink); }
.complaints { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink) !important; font-weight: 600; }
.complaints:hover { border-color: var(--c-accent-bright); }
.complaints svg { width: 18px; height: 18px; }

/* Barra fixa em telemóvel */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.4fr;
    background: var(--c-white); box-shadow: 0 -6px 20px rgb(0 0 0 / 0.08); padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); gap: 0.6rem;
    transform: translateY(110%); transition: transform 0.45s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 46px; padding-inline: 0.75rem; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 5rem; }
}

/* Páginas legais */
.legal h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.legal p, .legal li { color: var(--c-ink-soft); }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; margin-top: var(--sp-3); }
.legal .updated { font-size: var(--fs-sm); color: var(--c-muted); }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--c-ink); color: var(--c-white); padding: var(--gutter); }
.notfound__code { font-family: var(--f-display); font-weight: 800; font-size: clamp(7rem, 25vw, 16rem); line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--c-accent-bright); }
.notfound h1 { font-size: var(--fs-2xl); margin-top: var(--sp-4); }
.notfound p { color: rgb(255 255 255 / 0.7); margin: var(--sp-4) auto var(--sp-6); max-width: 460px; }

/* 7. Animações de entrada ------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero [data-hero] { animation: heroIn 1.1s var(--ease) both; animation-delay: var(--delay, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 8. Ajustes tablet e telemóvel --------------------------- */
@media (max-width: 1100px) {
  .hero__fact { flex-direction: column; align-items: center; gap: 0.35rem; }
}
@media (max-width: 1000px) { .media-badge { top: 1rem; } }
@media (min-width: 600px) and (max-width: 999px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
  .footer-about { grid-column: 1 / -1; }
  /* Destaques ICF / Chave na Mão lado a lado, mais baixos */
  .grid--2:has(> .highlight) { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .highlight { min-height: 440px; }
  .highlight__body { padding: var(--sp-5); }
  .highlight h3 { font-size: var(--fs-xl); }
  .works { gap: var(--sp-4); }
  .work { aspect-ratio: 4 / 4.4; }
  .work__body { padding: var(--sp-5); }
}
@media (max-width: 599px) {
  /* Rodapé: sobre e contactos a toda a largura, menus lado a lado */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-4); }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  /* Destaques com ícone compactos: ícone à esquerda do texto */
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--sp-4); align-items: start; padding-top: var(--sp-4); }
  .feature__icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .feature__icon svg { width: 22px; height: 22px; }
  .feature > :not(.feature__icon) { grid-column: 2; }
  .feature h3 { margin-bottom: 0.2rem; }
  .grid:has(> .feature) { gap: var(--sp-5); }
  .highlight { min-height: 400px; }
  .work { aspect-ratio: 1; }
  .work__body { padding: var(--sp-5); }
  .flex-actions > .btn { flex: 1 1 auto; }
  .page-hero:not(.page-hero--plain) { min-height: 440px; }
  .filters { gap: 0.4rem; }
  .filters button { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
}
@media (max-width: 600px) {
  .hero__fact strong { font-size: 1.6rem; }
  .eyebrow { letter-spacing: 0.14em; }
  .media-badge { padding: 0.85rem 1rem; max-width: 170px; }
  .media-badge strong { font-size: 1.5rem; }
  .media-badge span { font-size: 0.78rem; }
  .cta-band__actions .btn, .hero__actions .btn { flex: 1 1 auto; }
  /* Tabela comparativa empilhada: um cartão por critério */
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare { background: none; border-radius: 0; overflow: visible; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody { display: grid; gap: var(--sp-3); }
  .compare tr { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
  .compare tbody th { background: var(--c-ink); color: var(--c-white); font-family: var(--f-display); padding: 0.75rem 1rem; border: 0; }
  .compare td { padding: 0.75rem 1rem; display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--sp-3); }
  .compare td:last-child { border-bottom: 0; }
  .compare td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.5; }
  .compare td:nth-child(2)::before { color: var(--c-accent-ink); }
}

/* 9. Utilitários ------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.text-center { text-align: center; }
.flex-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
