/* ==========================================================================
   Aço Atlântico — folha de estilo única
   1 tokens · 2 base · 3 utilitários · 4 componentes · 5 secções · 6 respostas

   Duas regras de forma que atravessam o ficheiro:
   cantos direitos (é uma serralharia, não uma aplicação) e tipografia contida
   — o protagonismo é das fotografias de obra, não das letras.
   ========================================================================== */

/* 1 ─ TOKENS ============================================================== */

:root {
  /* superfícies — quase pretas, com uma pontinha de verde no cinzento */
  --bg: #070907;
  --bg-2: #0b0f0c;
  --bg-3: #111612;
  --bg-4: #18201a;
  --line: rgba(178, 212, 192, .12);
  --line-2: rgba(178, 212, 192, .22);

  --fg: #e8ede9;
  --fg-2: #99a69e;
  --fg-3: #66736b;

  /* verde — a escala nasce do verde do logótipo e abre para os dois lados */
  --green: #1e9a62;
  --green-2: #2fb374;
  --green-3: #6ace9d;
  --green-soft: rgba(30, 154, 98, .13);
  --green-line: rgba(30, 154, 98, .36);
  --btn-fg: #03140a;

  /* tipografia — uma família só */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: .84rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.15rem, 1.06rem + .38vw, 1.4rem);
  --step-3: clamp(1.4rem, 1.21rem + .78vw, 1.9rem);
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.5rem + 3.4vw, 4.6rem);

  --gutter: clamp(1.15rem, .75rem + 1.9vw, 2.25rem);
  --section-y: clamp(3.25rem, 2.4rem + 3.2vw, 5rem);
  --maxw: 1240px;

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 38px -16px rgba(0, 0, 0, .75);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 68px;

  color-scheme: dark;
}

/* Painel claro — cimento, não branco de folha. */
.panel-light {
  --bg: #ecefe9;
  --bg-2: #e3e7df;
  --bg-3: #dadfd5;
  --bg-4: #cdd4c7;
  --line: rgba(12, 20, 15, .14);
  --line-2: rgba(12, 20, 15, .26);
  --fg: #0a0f0b;
  --fg-2: #48524b;
  --fg-3: #737d76;
  --green: #0f6b41;
  --green-2: #0b5433;
  --green-3: #083d25;
  --green-soft: rgba(15, 107, 65, .1);
  --green-line: rgba(15, 107, 65, .3);
  --btn-fg: #f2f7f3;
  color-scheme: light;
  background: var(--bg);
  color: var(--fg);
}

/* Painel verde profundo — usado uma vez por página, para o verde ter presença
   a sério e não ficar só em pormenores. */
.panel-green {
  --bg: #072a1b;
  --bg-2: #0a3421;
  --bg-3: #0d3e28;
  --bg-4: #114a30;
  --line: rgba(160, 225, 190, .16);
  --line-2: rgba(160, 225, 190, .28);
  --fg: #eaf6ef;
  --fg-2: #9dc4af;
  --fg-3: #6f9a85;
  --green: #3fc183;
  --green-2: #6ed8a5;
  --green-3: #a6ebc7;
  --green-soft: rgba(110, 216, 165, .14);
  --green-line: rgba(110, 216, 165, .34);
  --btn-fg: #042314;
  background: var(--bg);
  color: var(--fg);
}

/* 2 ─ BASE =============================================================== */

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

/* Vários componentes definem `display`, o que anula o `[hidden]` do navegador. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
::selection { background: var(--green); color: #fff; }

h1, h2, h3, h4 {
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--line); }

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #090c0a; }
  ::-webkit-scrollbar-thumb { background: #222a25; border: 3px solid #090c0a; }
  ::-webkit-scrollbar-thumb:hover { background: #33403a; }
}

/* 3 ─ UTILITÁRIOS ======================================================== */

.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; z-index: 300;
  translate: -50% -200%;
  background: var(--green); color: #fff;
  padding: .6rem 1.1rem; font-weight: 600;
  transition: translate .2s var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; }

/* Etiqueta de secção: um traço e uma palavra, sem maiúsculas espaçadas. */
.eyebrow {
  display: flex; align-items: center; gap: .55rem;
  font-size: var(--step--1); font-weight: 500;
  color: var(--green-2);
  margin-bottom: .7rem;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }

.h-xl { font-size: var(--step-5); }
.h-lg { font-size: var(--step-4); }
.h-md { font-size: var(--step-4); }
.h-sm { font-size: var(--step-2); }

.lead { font-size: var(--step-1); color: var(--fg-2); line-height: 1.58; max-width: 56ch; }
.muted { color: var(--fg-2); }
.accent { color: var(--green-2); }

.section-head { max-width: 58ch; margin-bottom: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.section-head :is(h1, h2, h3) + :is(p, .lead) { margin-top: .85rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
}
.head-row .section-head { margin-bottom: 0; }

/* Grão: tira o aspeto liso demais das superfícies escuras. */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 4 ─ COMPONENTES ======================================================== */

/* 4.1 Botões — rectos, sem raio */

.btn {
  --btn-bg: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78em 1.4em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600; font-size: var(--step-0); line-height: 1.25;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}
.btn:hover { --btn-bg: var(--green-2); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn .arr { transition: translate .2s var(--ease); }
.btn:hover .arr { translate: 3px 0; }

.btn--ghost { --btn-bg: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover {
  --btn-bg: color-mix(in srgb, var(--fg) 7%, transparent);
  border-color: var(--fg-3); color: var(--fg);
}

.btn--light { --btn-bg: var(--fg); color: var(--bg); }
.btn--light:hover { --btn-bg: color-mix(in srgb, var(--fg) 86%, var(--green)); }

.btn--lg { padding: .9em 1.7em; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

.link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--green-2);
  padding-bottom: 1px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }
.link svg { width: 1em; height: 1em; transition: translate .2s var(--ease); }
.link:hover svg { translate: 3px 0; }

/* 4.2 Cabeçalho */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck, .nav.nav--solid {
  background: rgba(7, 9, 7, .84);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: clamp(.9rem, .4rem + 1.6vw, 2rem);
}

.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
/* O símbolo é um SVG com fundo transparente: fica solto ao lado do nome,
   sem caixa nem contorno à volta. */
.brand img { height: 30px; width: auto; }
.brand__name { font-weight: 700; font-stretch: 112%; font-size: 1rem; letter-spacing: -.015em; line-height: 1.15; }
.brand__tag {
  display: block; font-size: .62rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}

.nav__links { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav__link {
  position: relative; padding: .5rem .75rem;
  font-size: .9rem; color: var(--fg-2);
  transition: color .18s var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .15rem;
  height: 1.5px; background: var(--green-2);
}

.nav__actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.nav__phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .9rem; padding: .4rem .3rem;
  white-space: nowrap;
}
.nav__phone svg { width: 1em; height: 1em; color: var(--green-2); }
.nav__phone:hover { color: var(--green-2); }

.nav__cta { padding: .6em 1.05em; font-size: .88rem; }

.burger {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2); flex: none;
}
.burger span { display: block; position: relative; width: 17px; height: 1.5px; background: var(--fg); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--fg);
  transition: translate .25s var(--ease), rotate .25s var(--ease);
}
.burger span::before { translate: 0 -5.5px; }
.burger span::after { translate: 0 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { translate: 0 0; rotate: 45deg; }
.burger[aria-expanded="true"] span::after { translate: 0 0; rotate: -45deg; }

/* Menu móvel */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(7, 9, 7, .98);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: calc(var(--nav-h) + 1.25rem) var(--gutter) 1.75rem;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; translate: 0 -10px;
  transition: opacity .25s var(--ease), translate .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; translate: 0 0; }

.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.3rem; font-weight: 500; letter-spacing: -.015em;
  color: var(--fg-2);
  opacity: 0; translate: 0 8px;
  transition: color .18s var(--ease), opacity .35s var(--ease), translate .35s var(--ease);
}
.drawer.is-open .drawer__link { opacity: 1; translate: 0 0; }
.drawer__link:hover, .drawer__link[aria-current="page"] { color: var(--fg); }
.drawer__link span { font-size: .78rem; color: var(--fg-3); }
.drawer__foot { margin-top: auto; padding-top: 1.75rem; display: grid; gap: .6rem; }

/* 4.3 Cartões e fotografia */

.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.card:hover { border-color: var(--line-2); }

.media { position: relative; overflow: hidden; background: var(--bg-3); }
.media img, .media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale .7s var(--ease-out);
}
.media--16-9 { aspect-ratio: 16 / 9; }
.media--4-3 { aspect-ratio: 4 / 3; }
.media--1-1 { aspect-ratio: 1 / 1; }

/* 4.4 Revelação ao rolar */

.reveal {
  opacity: 0; translate: 0 16px;
  transition: opacity .65s var(--ease-out), translate .65s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-revealed { opacity: 1; translate: 0 0; }

/* O recorte vai nos filhos e não no contentor: o Chrome desconta o clip-path
   do próprio alvo no IntersectionObserver, e um contentor 100% recortado
   nunca chegava a contar como visível, ficando escondido para sempre. */
.reveal-clip > * {
  clip-path: inset(0 0 100% 0);
  transition: clip-path .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal-clip.is-revealed > * { clip-path: inset(0 0 0 0); }

/* 5 ─ SECÇÕES ============================================================ */

/* 5.1 Hero */

.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}

/* O fundo do hero é uma pilha de planos que se substituem em fusão cruzada.
   Nunca há um ponto de laçada: antes de um plano acabar, o seguinte já entrou
   por cima. */
.hero__bg {
  position: absolute; inset: 0; z-index: -2; background: #050705;
  transform-origin: 50% 40%;
  will-change: scale;
}
.hero__bg img, .hero__bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__bg video { opacity: 0; transition: opacity 1.5s var(--ease); }
.hero__bg video.is-on { opacity: 1; }
/* o cartaz sai de cena assim que o primeiro plano está a dar */
.hero__bg img { opacity: 1; transition: opacity 1.2s var(--ease); }
.hero__bg.has-video img { opacity: 0; }

.hero__inner { will-change: translate, opacity; }

.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 1%, rgba(7, 9, 7, .74) 30%, rgba(7, 9, 7, .3) 62%, rgba(7, 9, 7, .58) 100%),
    linear-gradient(to right, rgba(7, 9, 7, .82) 0%, rgba(7, 9, 7, .2) 58%, transparent 100%);
}

.hero__inner {
  position: relative; width: 100%;
  padding-block: calc(var(--nav-h) + 2.5rem) clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -.03em;
  line-height: 1;
  max-width: 19ch;
  margin-bottom: 1rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block; translate: 0 105%;
  transition: translate .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.hero.is-ready .hero__title .line > span { translate: 0 0; }

.hero__sub { font-size: var(--step-1); color: var(--fg-2); max-width: 50ch; margin-bottom: 1.6rem; }

/* Hero curto das páginas interiores */
.pagehero {
  position: relative; min-height: clamp(300px, 38vh, 440px);
  display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.pagehero__bg { position: absolute; inset: 0; z-index: -2; background: #050705; }
.pagehero__bg video, .pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__bg video { opacity: 0; transition: opacity 1s var(--ease); }
.pagehero__bg video.is-playing { opacity: 1; }
.pagehero__bg img { position: absolute; inset: 0; }
.pagehero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--bg) 0%, rgba(7, 9, 7, .76) 46%, rgba(7, 9, 7, .5) 100%);
}
.pagehero__inner { padding-block: calc(var(--nav-h) + 2.25rem) clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem); }
.pagehero__title { font-size: var(--step-4); max-width: 20ch; }
.pagehero .lead { margin-top: .8rem; }

.crumbs, .crumbs ol { list-style: none; padding: 0; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: var(--step--1); color: var(--fg-3); margin-bottom: .9rem;
}
.crumbs ol { display: contents; }
.crumbs li { display: flex; align-items: center; gap: .45rem; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-current] { color: var(--green-2); }

/* 5.2 Serviços */

.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}

.service { display: flex; flex-direction: column; background: var(--bg); }
.service .media { aspect-ratio: 16 / 10; }
.service:hover .media img { scale: 1.05; }

.service__body { padding: 1.25rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.service__no { font-size: .72rem; font-weight: 600; color: var(--green-2); margin-bottom: .5rem; }
.service__title { font-size: var(--step-2); margin-bottom: .45rem; }
.service__text { color: var(--fg-2); font-size: .89rem; margin-bottom: 1rem; }

.service__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.tag {
  font-size: .72rem; padding: .22rem .5rem;
  border: 1px solid var(--line); color: var(--fg-2);
}

/* Dois cartões largos fecham as filas de quatro sem deixar buracos. */
@media (min-width: 1080px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .service--wide { grid-column: span 2; flex-direction: row; }
  .service--wide .media { width: 44%; flex: none; align-self: stretch; aspect-ratio: auto; }
  .service--wide .media img { position: absolute; inset: 0; }
  .service--wide .service__body { justify-content: center; }
}

/* 5.3 Blocos divididos */

.split { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem); align-items: center; }
.split :is(h2, h3) + :is(p, .lead) { margin-top: .85rem; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  /* o markup põe sempre a imagem primeiro; aqui empurra-se para a direita */
  .split--media-right > :first-child { order: 2; }
}

.split__media { position: relative; overflow: hidden; }
.split__media img, .split__media video { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
/* Margem para a fotografia deslizar dentro da moldura sem mostrar os cantos.
   Só a partir da vista de secretária: em ecrãs estreitos os 12% de ampliação
   cortariam a fotografia sem a paralaxe compensar. */
@media (min-width: 901px) {
  .split__media img[data-parallax] { scale: 1.12; will-change: translate; }
}

.split__media--stack { overflow: visible; }
.split__media--stack .a { overflow: hidden; width: 84%; }
.split__media--stack .b {
  position: absolute; right: 0; bottom: -10%; width: 44%;
  overflow: hidden; border: 5px solid var(--bg); box-shadow: var(--shadow);
}
.split__media--stack .b img { aspect-ratio: 1 / 1; }

.checks { list-style: none; padding: 0; display: grid; gap: .7rem; margin: 1.4rem 0; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: .7rem; align-items: start; color: var(--fg-2); }
.checks svg { width: 18px; height: 18px; color: var(--green-2); margin-top: .22rem; }
.checks strong { color: var(--fg); font-weight: 600; }

/* 5.4 Portefólio */

.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }
.filter {
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  font-size: .85rem; color: var(--fg-2); white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease),
              background .18s var(--ease);
}
.filter:hover { color: var(--fg); border-color: var(--line-2); }
.filter[aria-pressed="true"] {
  background: var(--green); border-color: var(--green);
  color: var(--btn-fg); font-weight: 600;
}
.filter__n { opacity: .6; margin-left: .3rem; font-variant-numeric: tabular-nums; }

.work-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(.5rem, .3rem + .7vw, .8rem);
}

.work {
  position: relative; display: block; overflow: hidden;
  background: var(--ph, var(--bg-3));
  aspect-ratio: 4 / 3; cursor: pointer;
}
.work.is-hidden { display: none; }
.work img {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale .8s var(--ease-out), opacity .5s var(--ease);
}
.work img[data-loading] { opacity: 0; }
.work:hover img { scale: 1.06; }

.work__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 5, .92) 0%, rgba(4, 6, 5, .3) 42%, transparent 74%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.work:hover .work__veil, .work:focus-visible .work__veil { opacity: 1; }

.work__meta {
  position: absolute; inset: auto 0 0 0; padding: .9rem 1rem;
  /* o cartão é um <button>: sem isto o texto herdava a centragem */
  text-align: left;
  translate: 0 6px; opacity: 0;
  transition: translate .3s var(--ease-out), opacity .3s var(--ease);
}
.work:hover .work__meta, .work:focus-visible .work__meta { translate: 0 0; opacity: 1; }
/* ambos são <span>: têm de passar a bloco para ficarem um sobre o outro */
.work__cat { display: block; font-size: .7rem; color: var(--green-3); margin-bottom: .18rem; }
.work__title { display: block; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; color: #fff; line-height: 1.3; }

.work__count {
  position: absolute; top: .55rem; right: .55rem;
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .18rem .45rem;
  background: rgba(7, 9, 7, .78);
  backdrop-filter: blur(5px);
  font-size: .7rem; font-weight: 600; color: #fff;
}
.work__count svg { width: .82em; height: .82em; }

@media (min-width: 760px) {
  .work-grid--featured { grid-template-columns: repeat(4, 1fr); }
  .work-grid--featured > :nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .work-grid--featured > :nth-child(1) img { position: absolute; inset: 0; }
}

/* 5.5 Caixa de luz */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 6, 5, .97);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid;
  /* minmax(0,1fr): sem isto o mínimo automático da faixa deixa a fotografia
     crescer para lá do ecrã e passar por cima da tira de miniaturas */
  grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.lightbox__label { min-width: 0; }
.lightbox__cat { font-size: .72rem; color: var(--green-2); }
.lightbox__title {
  font-weight: 600; font-size: .98rem; letter-spacing: -.015em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--fg);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); border-color: var(--fg-3); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }

.lightbox__stage { position: relative; min-height: 0; }

/* A fotografia é posicionada em absoluto de propósito: assim as percentagens
   de max-width/max-height resolvem sempre contra a faixa da grelha. Em fluxo
   normal a resolução falha e a imagem sai à altura natural. */
.lightbox__stage img {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  max-width: calc(100% - 2 * var(--gutter));
  max-height: calc(100% - 2rem);
  width: auto; height: auto;
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox__stage img.is-ready { opacity: 1; }

.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; background: rgba(9, 12, 10, .8); }
.lightbox__nav--prev { left: max(var(--gutter), .5rem); }
.lightbox__nav--next { right: max(var(--gutter), .5rem); }

.lightbox__spin {
  position: absolute; top: 50%; left: 50%; margin: -15px 0 0 -15px;
  width: 30px; height: 30px;
  border: 2px solid var(--line-2); border-top-color: var(--green-2);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  opacity: 0; transition: opacity .2s;
}
.lightbox.is-loading .lightbox__spin { opacity: 1; }
@keyframes spin { to { rotate: 360deg; } }

.lightbox__bottom { padding: .8rem var(--gutter) 1rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; }
.lightbox__caption { font-size: .88rem; color: var(--fg-2); max-width: 74ch; margin-inline: auto; text-align: center; }
.lightbox__count { font-variant-numeric: tabular-nums; color: var(--fg-3); font-size: .82rem; }

.lightbox__film {
  display: flex; gap: .35rem; overflow-x: auto; overscroll-behavior-x: contain;
  padding-bottom: .25rem; scrollbar-width: thin;
  /* "safe" centra quando cabe e volta ao início quando transborda */
  justify-content: safe center;
}
.lightbox__film::-webkit-scrollbar { height: 3px; }
.lightbox__film button {
  flex: none; width: 66px; aspect-ratio: 4 / 3; overflow: hidden;
  opacity: .4; border: 1.5px solid transparent;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__film button:hover { opacity: .78; }
.lightbox__film button[aria-current="true"] { opacity: 1; border-color: var(--green-2); }
.lightbox__film img { width: 100%; height: 100%; object-fit: cover; }

/* 5.6 Processo */

.steps {
  counter-reset: step; display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { counter-increment: step; background: var(--bg); padding: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: .74rem; font-weight: 600;
  color: var(--green-2); margin-bottom: 1rem;
}
.step__icon {
  width: 36px; height: 36px; margin-bottom: .9rem;
  display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-2);
}
.step__icon svg { width: 18px; height: 18px; }
.step h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.step p { color: var(--fg-2); font-size: .88rem; }

/* 5.7 Faixa de chamada à ação */

.cta-band { position: relative; overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; background: #050705; }
.cta-band__bg video, .cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg video { opacity: 0; transition: opacity 1s var(--ease); }
.cta-band__bg img { position: absolute; inset: 0; }
.cta-band__bg video.is-playing { opacity: 1; }

/* O véu leva verde: é aqui que a paleta ganha peso sobre a fotografia. */
.cta-band__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(5, 32, 20, .96) 0%, rgba(6, 26, 17, .86) 42%, rgba(7, 15, 10, .55) 100%);
}
.cta-band__inner { padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr .7fr; } }
.cta-band h2 { font-size: var(--step-3); margin-bottom: .85rem; max-width: 22ch; }

.cta-band__side { display: grid; gap: .6rem; }
.cta-contact {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line-2);
  background: rgba(8, 20, 14, .6);
  backdrop-filter: blur(6px);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.cta-contact:hover { border-color: var(--green-line); background: rgba(10, 36, 23, .8); }
.cta-contact__ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-3); border: 1px solid var(--green-line);
}
.cta-contact__ico svg { width: 17px; height: 17px; }
.cta-contact dt { font-size: .7rem; color: var(--fg-3); }
.cta-contact dd { font-weight: 600; font-size: .97rem; letter-spacing: -.01em; }

/* 5.8 Perguntas frequentes */

.faq { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.15rem 0; text-align: left;
  font-size: var(--step-1); font-weight: 600; letter-spacing: -.015em; color: var(--fg);
  transition: color .18s var(--ease);
}
.faq__q:hover { color: var(--green-2); }
.faq__sign { flex: none; position: relative; width: 22px; height: 22px; margin-top: .2rem; border: 1px solid var(--line-2); }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  background: currentColor;
}
.faq__sign::before { width: 9px; height: 1.5px; }
.faq__sign::after { width: 1.5px; height: 9px; transition: scale .25s var(--ease); }
.faq__q[aria-expanded="true"] .faq__sign::after { scale: 1 0; }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--fg-2); max-width: 70ch; padding-bottom: 1.25rem; }
.faq__a p + p { padding-top: .7rem; }

/* 5.9 Formulários */

.form { display: grid; gap: .95rem; }
.field { display: grid; gap: .35rem; }

@media (min-width: 620px) {
  .form--2col { grid-template-columns: 1fr 1fr; }
  .form--2col .field--full { grid-column: 1 / -1; }
}

.label { font-size: .8rem; font-weight: 600; color: var(--fg-2); display: flex; align-items: center; gap: .35rem; }
.label .req { color: var(--green-2); }
.label .opt { color: var(--fg-3); font-weight: 400; font-size: .75rem; }

.input, .select, .textarea {
  width: 100%; padding: .7rem .85rem;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  border: 1px solid var(--line);
  color: var(--fg); font-size: .92rem;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--green);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--green);
}
.textarea { resize: vertical; min-height: 118px; line-height: 1.58; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a69e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  padding-right: 2.4rem; cursor: pointer;
}
.select option { background: var(--bg-3); color: var(--fg); }
.panel-light .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348524b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #e5484d; }
.error-msg { font-size: .79rem; color: #ff6b6f; display: none; align-items: center; gap: .3rem; }
.field.has-error .error-msg, .error-msg.is-on { display: flex; }
.error-msg svg { width: .95em; height: .95em; flex: none; }

.hint { font-size: .78rem; color: var(--fg-3); }

/* Escolhas em cartão */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .55rem; }
@media (min-width: 860px) { .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  display: flex; flex-direction: column; gap: .4rem; height: 100%;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 2.5%, transparent);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.choice__box:hover { border-color: var(--line-2); }
.choice input:checked + .choice__box { border-color: var(--green); background: var(--green-soft); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--green-2); outline-offset: 2px; }
.choice__ico {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.choice input:checked + .choice__box .choice__ico { background: var(--green); color: var(--btn-fg); }
.choice__ico svg { width: 16px; height: 16px; }
.choice__t { font-weight: 600; font-size: .92rem; letter-spacing: -.01em; }
.choice__d { font-size: .8rem; color: var(--fg-2); line-height: 1.45; }
.choice__check {
  position: absolute; top: .65rem; right: .65rem;
  width: 16px; height: 16px; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.choice input:checked + .choice__box .choice__check { background: var(--green); border-color: var(--green); color: var(--btn-fg); }
.choice__check svg { width: 10px; height: 10px; }

.consent {
  display: grid; grid-template-columns: 18px 1fr; gap: .6rem; align-items: start;
  font-size: .84rem; color: var(--fg-2); line-height: 1.52; cursor: pointer;
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box {
  width: 18px; height: 18px; margin-top: .14rem;
  border: 1px solid var(--line-2); display: grid; place-items: center; color: transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.consent input:checked ~ .consent__box { background: var(--green); border-color: var(--green); color: var(--btn-fg); }
.consent input:focus-visible ~ .consent__box { outline: 2px solid var(--green-2); outline-offset: 2px; }
.consent__box svg { width: 11px; height: 11px; }
.consent a { color: var(--green-2); text-decoration: underline; text-underline-offset: 2px; }

/* 5.10 Assistente de marcação */

.wizard { border: 1px solid var(--line); background: var(--bg-2); }

.wizard__bar { padding: .9rem clamp(1rem, .8rem + 1.2vw, 1.75rem); border-bottom: 1px solid var(--line); background: var(--bg-3); }
.wizard__track { display: flex; align-items: center; gap: .45rem; }
.wizard__dot { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; }
.wizard__dot i {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-2);
  font-style: normal; font-size: .72rem; font-weight: 600; color: var(--fg-3);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.wizard__dot b {
  font-size: .8rem; font-weight: 500; color: var(--fg-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .25s var(--ease);
}
.wizard__dot::after { content: ""; height: 1px; flex: 1; min-width: 8px; background: var(--line-2); }
.wizard__dot:last-child { flex: none; }
.wizard__dot:last-child::after { display: none; }
.wizard__dot.is-active i { border-color: var(--green); background: var(--green); color: var(--btn-fg); }
.wizard__dot.is-active b { color: var(--fg); }
.wizard__dot.is-done i { border-color: var(--green-line); background: var(--green-soft); color: var(--green-2); }
.wizard__dot.is-done b { color: var(--fg-2); }
.wizard__dot.is-done i::after { content: "✓"; }
.wizard__dot.is-done i span { display: none; }

@media (max-width: 800px) { .wizard__dot b { display: none; } .wizard__dot { flex: 1; } }

.wizard__body { padding: clamp(1.15rem, .9rem + 1.5vw, 2rem); }

.wstep { display: none; }
.wstep.is-active { display: block; animation: wstepIn .35s var(--ease-out); }
@keyframes wstepIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.wstep__head { margin-bottom: 1.3rem; }
.wstep__head h2 { font-size: var(--step-2); margin-bottom: .3rem; }
.wstep__head p { color: var(--fg-2); font-size: .89rem; }

.wizard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, .8rem + 1.2vw, 1.75rem);
  border-top: 1px solid var(--line); background: var(--bg-3); flex-wrap: wrap;
}
.wizard__foot .btn-row { margin-left: auto; }

/* Calendário */
.cal { border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 2%, transparent); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .75rem; border-bottom: 1px solid var(--line); }
.cal__month { font-weight: 600; font-size: .94rem; }
.cal__nav { display: flex; gap: .3rem; }
.cal__nav .icon-btn { width: 30px; height: 30px; }
.cal__nav .icon-btn svg { width: 15px; height: 15px; }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: .6rem; }
.cal__dow { text-align: center; font-size: .68rem; font-weight: 600; color: var(--fg-3); padding-bottom: .35rem; }
.cal__day {
  aspect-ratio: 1; min-height: 34px; display: grid; place-items: center;
  font-size: .86rem; font-variant-numeric: tabular-nums; color: var(--fg-2); position: relative;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.cal__day:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 9%, transparent); color: var(--fg); }
.cal__day:disabled { color: var(--fg-3); opacity: .3; cursor: not-allowed; }
.cal__day.is-empty { pointer-events: none; }
.cal__day.is-today::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; translate: -50% 0;
  width: 3px; height: 3px; background: var(--green-2);
}
.cal__day[aria-pressed="true"] { background: var(--green); color: var(--btn-fg); font-weight: 600; }
.cal__day[aria-pressed="true"]::after { background: var(--btn-fg); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .4rem; }
.slot {
  padding: .6rem .4rem; border: 1px solid var(--line);
  font-size: .87rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg-2);
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--green-line); color: var(--fg); }
.slot[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--btn-fg); }
.slot:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

.slots-empty { padding: 1.1rem; text-align: center; color: var(--fg-3); font-size: .87rem; border: 1px dashed var(--line-2); }

.summary { border: 1px solid var(--line); }
.summary__row { display: grid; grid-template-columns: 120px 1fr; gap: .9rem; padding: .7rem 1rem; font-size: .89rem; }
.summary__row + .summary__row { border-top: 1px solid var(--line); }
.summary__row dt { color: var(--fg-3); font-size: .8rem; padding-top: .05rem; }
.summary__row dd { font-weight: 500; }
@media (max-width: 520px) { .summary__row { grid-template-columns: 1fr; gap: .15rem; } }

.done { text-align: center; padding: clamp(1.25rem, 1rem + 2vw, 2.5rem) 0; }
.done__mark {
  width: 58px; height: 58px; margin: 0 auto 1.25rem;
  display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-2);
}
.done__mark svg { width: 28px; height: 28px; }
.done h2 { font-size: var(--step-3); margin-bottom: .6rem; }
.done .lead { margin-inline: auto; margin-bottom: 1.5rem; }
.done__ref {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem;
  border: 1px dashed var(--green-line); background: var(--green-soft);
  font-weight: 600; letter-spacing: .03em; margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.done__ref span:first-child { color: var(--fg-3); font-weight: 400; letter-spacing: 0; font-size: .76rem; }

.demo-note {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line); border-left: 2px solid var(--green);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
  font-size: .83rem; color: var(--fg-2); line-height: 1.52;
}
.demo-note svg { width: 16px; height: 16px; flex: none; color: var(--green-2); margin-top: .15rem; }

/* 5.11 Contactos */

.contact-grid { display: grid; gap: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: .95fr 1.05fr; } }

.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.4rem 0; }
.contact-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .95rem 1rem; background: var(--bg);
  transition: background .2s var(--ease);
}
a.contact-item:hover { background: var(--bg-2); }
.contact-item__ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--green-2);
}
.contact-item__ico svg { width: 17px; height: 17px; }
.contact-item dt { font-size: .72rem; color: var(--fg-3); margin-bottom: .12rem; }
.contact-item dd { font-weight: 600; font-size: .96rem; letter-spacing: -.01em; }
.contact-item dd small { display: block; font-weight: 400; font-size: .76rem; color: var(--fg-3); margin-top: .1rem; }

.map { border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); position: relative; aspect-ratio: 16 / 9; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.85); }
.panel-light .map iframe { filter: grayscale(.5) contrast(1.02); }

/* 5.12 Rodapé */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(2.5rem, 2rem + 2.5vw, 3.75rem) 0; }
.footer__grid { display: grid; gap: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); padding-bottom: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
@media (min-width: 840px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

.footer__brand { max-width: 32ch; }
.footer__brand p { color: var(--fg-2); font-size: .88rem; margin-top: .9rem; }

.footer h3 { font-size: .78rem; font-weight: 600; color: var(--fg-3); margin-bottom: .85rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer li a, .footer address a { color: var(--fg-2); font-size: .89rem; transition: color .18s var(--ease); }
.footer li a:hover, .footer address a:hover { color: var(--green-2); }
.footer address { font-style: normal; display: grid; gap: .45rem; }

.socials { display: flex; gap: .4rem; margin-top: 1.1rem; }
.socials a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--fg-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.socials a:hover { color: var(--green-2); border-color: var(--green-line); background: var(--green-soft); }
.socials svg { width: 16px; height: 16px; }

.footer__bar {
  border-top: 1px solid var(--line); padding-block: 1.1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem;
  font-size: .81rem; color: var(--fg-3);
}
.footer__bar nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer__bar a:hover { color: var(--fg-2); }

/* 5.13 Botão flutuante */

.float-wa {
  position: fixed; right: max(var(--gutter), 1rem); bottom: max(var(--gutter), 1rem);
  z-index: 90; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%;
  background: #1d9e58; color: #fff;
  box-shadow: 0 6px 22px -8px rgba(0, 0, 0, .9);
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity .25s var(--ease), translate .25s var(--ease), visibility .25s, background .2s;
}
.float-wa.is-in { opacity: 1; visibility: visible; translate: 0 0; }
.float-wa:hover { background: #24b867; }
.float-wa svg { width: 23px; height: 23px; }

/* 5.14 Fita de fotografias ============================================== */

/* Corre em contínuo entre secções. Duas cópias iguais lado a lado e uma
   translação de -50% deixam a emenda invisível. */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(.7rem, .55rem + .6vw, 1.1rem);
  --dur: 72s;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 120px);
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }

.marquee__track {
  display: flex; width: max-content;
  animation: marquee var(--dur) linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { translate: 0 0; } to { translate: -50% 0; } }

.marquee__item {
  flex: none; position: relative; overflow: hidden;
  width: clamp(132px, 9vw + 70px, 220px);
  aspect-ratio: 4 / 3;
  margin-right: .5rem;
  background: var(--ph, var(--bg-3));
  cursor: pointer;
}
.marquee__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale .6s var(--ease-out), opacity .5s var(--ease);
}
.marquee__item:hover img, .marquee__item:focus-visible img { scale: 1.07; }
.marquee__item::after {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--green-2);
  opacity: 0; transition: opacity .2s var(--ease);
}
.marquee__item:hover::after, .marquee__item:focus-visible::after { opacity: 1; }

.marquee__label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; color: var(--fg-3);
  padding-bottom: .55rem;
}
.marquee__label::before { content: ""; width: 16px; height: 1px; background: var(--green-2); }

/* 5.15 Barra de progresso de leitura ==================================== */

.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 101;
  height: 2px; background: var(--green-2);
  transform-origin: 0 50%; scale: 0 1;
  will-change: scale;
}

/* 5.16 Entrada de texto palavra a palavra =============================== */

.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > i {
  display: inline-block; font-style: inherit;
  translate: 0 110%;
  transition: translate .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.is-revealed .word > i { translate: 0 0; }

/* 5.17 Segunda fotografia nos cartões de serviço ======================== */

.media__alt {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .7s var(--ease);
}
.service:hover .media__alt, .service:focus-within .media__alt { opacity: 1; }

/* 6 ─ PREFERÊNCIAS E IMPRESSÃO =========================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; translate: none; }
  .reveal-clip > * { clip-path: none; }
  .hero__title .line > span, .word > i { translate: none; }
  .pagehero__bg video, .cta-band__bg video { opacity: 1; }
  .progress { display: none; }
  /* a fita deixa de correr sozinha e passa a ser empurrada à mão */
  .marquee__track { animation: none; width: auto; }
  .marquee { overflow-x: auto; }
}

@media print {
  .nav, .drawer, .float-wa, .hero__bg, .cta-band__bg, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}

/* 7 ─ AJUSTES RESPONSIVOS =============================================== */

/* Abaixo de 1040px o menu passa a gaveta — é também onde o site começa a ser
   usado com o dedo, por isso os alvos crescem para os 44px recomendados. */
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .burger { display: inline-flex; width: 44px; height: 44px; }
  .nav__cta { display: none; }

  /* Com os links escondidos perde-se o `margin-left: auto` que empurrava tudo
     para a direita, e o telefone e o hambúrguer ficavam colados à marca. */
  .nav__actions { margin-left: auto; }

  .brand { padding-block: .45rem; }
  .nav__phone { min-height: 44px; padding-inline: .5rem; }
  .icon-btn { width: 44px; height: 44px; }
  .cal__nav .icon-btn { width: 38px; height: 38px; }
  .socials a { width: 44px; height: 44px; }
  .filter { padding: .66rem 1rem; }
  .slot { padding: .78rem .4rem; }
  .skip-link { padding: .85rem 1.2rem; }
  .lightbox__film button { width: 62px; }

  /* ligações de texto: sem isto ficam em caixas de 16–20px de altura */
  .link { padding-block: .42rem; }
  .crumbs a { display: inline-block; padding-block: .35rem; }
  .footer li a, .footer address a { display: inline-block; padding-block: .42rem; }
  .footer ul, .footer address { gap: 0; }
  .footer__bar nav a { display: inline-block; padding-block: .35rem; }

  /* o texto mais pequeno sobe para o mínimo confortável de leitura */
  .brand__tag { font-size: .75rem; }
  .cta-contact dt, .contact-item dt { font-size: .78rem; }
  .tag, .service__no, .step::before { font-size: .78rem; }
  .work__count, .work__cat { font-size: .76rem; }
  .hint, .choice__d, .cal__dow { font-size: .8rem; }
  .footer__bar { font-size: .84rem; }
  .footer h3 { font-size: .82rem; }
  .wizard__dot i { width: 26px; height: 26px; font-size: .78rem; }
}

/* Sem rato não há :hover — o que só aparecia ao passar por cima tem de
   aparecer sempre, ou fica inalcançável. */
@media (hover: none) {
  .work__veil, .work__meta { opacity: 1; translate: 0 0; }
  .media__alt { display: none; }
  /* pausa a fita enquanto o dedo está em cima, para o toque acertar */
  .marquee:active .marquee__track { animation-play-state: paused; }
}

@media (max-width: 760px) {
  /* na página inicial bastam cinco obras: as outras estão a um toque de
     distância e poupam-se mil pixéis de rolagem */
  .work-grid--featured > :nth-child(n+6) { display: none; }
}

@media (max-width: 640px) {
  .nav__phone { width: 44px; padding-inline: 0; justify-content: center; }
  .nav__phone span { display: none; }
  .nav__phone svg { width: 1.2em; height: 1.2em; }

  .hero { min-height: 92svh; }
  .hero__cta .btn { flex: 1 1 100%; }

  .split__media--stack .a { width: 100%; }
  .split__media--stack .b {
    position: relative; right: auto; bottom: auto; width: 100%;
    margin-top: .6rem; border: 0;
  }

  /* botões do assistente à largura toda, em vez de dois pequenos lado a lado */
  .wizard__foot { flex-direction: column-reverse; align-items: stretch; }
  .wizard__foot .btn-row { margin-left: 0; }
  .wizard__foot .btn { width: 100%; }
}
