/* --------------------------------------------------------- Tipografia ---
   Archivo variável, alojada connosco. Sem pedidos ao Google.
   Licença SIL Open Font License 1.1, ver fonts/LICENCA-ARCHIVO.txt
   ------------------------------------------------------------------------ */

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ==========================================================================
   FBSmartWeb
   Sistema visual: papel, tinta e um único verde. Sem gradientes, sem blocos
   de cor a alternar, sem números decorativos. A página deve ler-se como texto.
   ========================================================================== */

:root {
  --ink: #161614;
  --ink-soft: #3A3A36;
  --paper: #F6F5F1;
  --paper-2: #EEEDE7;
  --white: #FFFFFF;
  --muted: #5C5C56;
  --line: #D9D8D1;
  --line-soft: #E6E5DF;
  --accent: #1E5B45;
  --accent-hover: #164736;
  --focus: #1E5B45;
  --rodape: #161614;

  --r: 2px;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;
  --section-y: clamp(64px, 8vw, 112px);
  --font: 'Archivo Variable', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

/* --------------------------------------------------------------- Base --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100, 'wght' 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

strong, b { font-variation-settings: 'wdth' 100, 'wght' 640; }

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

.env {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
}
.saltar:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------- Tipografia --- */

.display {
  font-variation-settings: 'wdth' 104, 'wght' 700;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.titulo {
  font-variation-settings: 'wdth' 104, 'wght' 690;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.024em;
  max-width: 24ch;
  text-wrap: balance;
}

.titulo--largo { max-width: 30ch; }

.sub {
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.corpo { color: var(--muted); max-width: 60ch; }

.peq { font-size: 0.875rem; line-height: 1.5; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 13px 22px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: 0.97rem;
  font-variation-settings: 'wdth' 100, 'wght' 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn--principal {
  background: var(--accent);
  color: var(--white);
}
.btn--principal:hover { background: var(--accent-hover); }

.btn--linha {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--linha:hover { background: var(--ink); color: var(--paper); }

.btn--peq { padding: 9px 16px; min-height: 40px; font-size: 0.9rem; }

.ligacao {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-variation-settings: 'wdth' 100, 'wght' 560;
}
.ligacao:hover { color: var(--accent-hover); }

/* ---------------------------------------------------------- Cabeçalho --- */

.topo {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}

.topo[data-scroll='sim'] { border-bottom-color: var(--line); }

.topo__int {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.marca img { width: 26px; height: auto; }

.marca__nome {
  font-size: 1rem;
  font-variation-settings: 'wdth' 106, 'wght' 720;
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-variation-settings: 'wdth' 100, 'wght' 520;
  color: var(--ink-soft);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--accent); }

.topo__acao { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.menu-btn[aria-expanded='true'] span { background: transparent; }
.menu-btn[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

.menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.menu[data-aberto='sim'] { display: block; }
.menu ul { padding: 8px 0 24px; }
.menu a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  font-size: 1.25rem;
  font-variation-settings: 'wdth' 104, 'wght' 640;
  border-bottom: 1px solid var(--line-soft);
}
.menu .btn { margin-top: 22px; width: 100%; }

@media (max-width: 860px) {
  .nav, .topo__acao .btn { display: none; }
  .menu-btn { display: flex; }
}

/* --------------------------------------------------------------- Herói --- */

.heroi {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.heroi__grelha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.heroi__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.heroi__acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.heroi__peca { position: relative; }

.moldura {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  overflow: hidden;
}

.moldura img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: var(--paper-2);
}

.legenda {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}
.legenda strong { font-variation-settings: 'wdth' 100, 'wght' 620; color: var(--ink); }

.reserva {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 20px;
  text-align: center;
}

@media (max-width: 860px) {
  .heroi__grelha { grid-template-columns: 1fr; gap: 36px; }
  .heroi { padding-top: 32px; }
}

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

.seccao {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.seccao--fundo { background: var(--paper-2); }

.seccao__topo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.seccao__topo--pilha { display: block; }
.seccao__topo--pilha .corpo { margin-top: 16px; }

/* ---------------------------------------------------------- Trabalhos --- */

.trabalhos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
}

.trabalho { grid-column: span 2; }
.trabalho--grande { grid-column: span 6; }
.trabalho--meio { grid-column: span 3; }

.trabalho a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.trabalho a:hover .moldura { border-color: var(--ink); }

.trabalho--grande .moldura img { aspect-ratio: 21 / 9; }
.trabalho--meio .moldura img { aspect-ratio: 16 / 10; }
.trabalho--grande .reserva { aspect-ratio: 21 / 9; }
.trabalho--meio .reserva { aspect-ratio: 16 / 10; }

.trabalho--heroi { grid-column: auto; }
.trabalho--heroi .moldura img,
.trabalho--heroi .reserva { aspect-ratio: 4 / 3; }

.vazio {
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 40px 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .trabalhos { grid-template-columns: repeat(2, 1fr); }
  .trabalho, .trabalho--meio { grid-column: span 1; }
  .trabalho--grande { grid-column: span 2; }
  .trabalho--grande .moldura img,
  .trabalho--grande .reserva { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .trabalhos { grid-template-columns: 1fr; }
  .trabalho, .trabalho--meio, .trabalho--grande { grid-column: span 1; }
  .trabalho--grande .moldura img,
  .trabalho--grande .reserva,
  .trabalho--meio .reserva,
  .trabalho--meio .moldura img { aspect-ratio: 4 / 3; }
}

/* ----------------------------------------------------------- Processo --- */

.processo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.passo { border-top: 2px solid var(--ink); padding-top: 20px; }

.passo__n {
  font-size: 0.85rem;
  font-variation-settings: 'wdth' 100, 'wght' 620;
  color: var(--accent);
  margin-bottom: 14px;
}

.passo h3 {
  font-size: 1.2rem;
  font-variation-settings: 'wdth' 104, 'wght' 660;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.passo p { font-size: 0.97rem; color: var(--muted); }

@media (max-width: 900px) {
  .processo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .processo { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- Incluído --- */

.incluido {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}

.grupo h3 {
  font-size: 1.1rem;
  font-variation-settings: 'wdth' 104, 'wght' 660;
  margin-bottom: 14px;
}

.grupo li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.grupo li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 760px) {
  .incluido { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------- Contacto --- */

.contacto-grelha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contacto-dados { display: flex; flex-direction: column; gap: 28px; }

.contacto-dados .sub { margin-top: 0; }

.contacto-email {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-variation-settings: 'wdth' 104, 'wght' 640;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  word-break: break-all;
}

.contacto-nota {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 16px;
}

@media (max-width: 900px) {
  .contacto-grelha { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Formulário --- */

.form {
  display: grid;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3.4vw, 40px);
}

.form__par {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.campo { display: grid; gap: 7px; }

.campo label {
  font-size: 0.9rem;
  font-variation-settings: 'wdth' 100, 'wght' 580;
  color: var(--ink);
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid #8C8C84;
  border-radius: var(--r);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.campo textarea { min-height: 128px; resize: vertical; }

.campo input[aria-invalid='true'],
.campo textarea[aria-invalid='true'] { border-color: #A3261B; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.consent a { color: var(--accent); }

.erro {
  font-size: 0.86rem;
  color: #A3261B;
}

.form__estado {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.form__estado[data-tipo='erro'] { color: #A3261B; }

.form button[type='submit'][aria-busy='true'] { opacity: 0.7; pointer-events: none; }

@media (max-width: 620px) {
  .form__par { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- Perguntas --- */

.faq { border-top: 1px solid var(--ink); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-variation-settings: 'wdth' 102, 'wght' 620;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq__sinal {
  flex: 0 0 auto;
  width: 20px;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--accent);
  text-align: center;
}

.faq__resp {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq__item[data-aberto='sim'] .faq__resp { grid-template-rows: 1fr; }
.faq__resp > div { overflow: hidden; }
.faq__resp p {
  color: var(--muted);
  max-width: 68ch;
  padding-bottom: 24px;
}

/* ------------------------------------------------------------- Rodapé --- */

.rodape {
  background: var(--rodape);
  color: var(--paper);
  padding-block: 44px 24px;
  font-size: 0.85rem;
}

.rodape__int {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  justify-content: space-between;
  align-items: flex-start;
}

.rodape__id { max-width: 30ch; }

/* Logótipo com o nome por baixo, a ocupar a largura exata do símbolo. */
.rodape__marca {
  display: inline-flex;
  flex-direction: column;
  width: 72px;
  gap: 7px;
  color: var(--paper);
  text-decoration: none;
}
.rodape__marca img { width: 72px; height: auto; display: block; }
.rodape__nome { display: block; width: 72px; height: 12px; overflow: visible; }
.rodape__nome text {
  fill: currentColor;
  font-family: var(--font);
  font-size: 11.2px;
  font-variation-settings: 'wdth' 106, 'wght' 720;
}

.rodape__frase {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(246, 245, 241, 0.66);
}

.rodape__cols { display: flex; flex-wrap: wrap; gap: 24px 40px; }

.rodape__cols h2 {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 100, 'wght' 620;
  color: rgba(246, 245, 241, 0.55);
  margin-bottom: 8px;
}

.rodape__cols a,
.rodape__botao {
  display: block;
  padding: 3px 0;
  text-decoration: none;
  font-size: 0.82rem;
  color: rgba(246, 245, 241, 0.88);
}
.rodape__botao {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
}
.rodape__cols a:hover,
.rodape__botao:hover { color: var(--white); text-decoration: underline; }

.rodape__fim {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 245, 241, 0.14);
  font-size: 0.75rem;
  color: rgba(246, 245, 241, 0.6);
}

/* -------------------------------------------------------- Para quem --- */

.publicos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.publico {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.publico:hover { border-color: var(--ink); }
.publico h3 {
  font-size: 1.2rem;
  font-variation-settings: 'wdth' 104, 'wght' 660;
  letter-spacing: -0.015em;
}
.publico p { color: var(--muted); }
.publico .ligacao { margin-top: auto; }
@media (max-width: 720px) { .publicos { grid-template-columns: 1fr; } }

/* ----------------------------------------------------- Formulário extra --- */

.campo-oculto {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- Tabela --- */

.tabela { overflow-x: auto; margin: 8px 0 20px; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.tabela th, .tabela td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.tabela th { color: var(--ink); font-variation-settings: 'wdth' 100, 'wght' 620; }
.texto code { font-size: 0.85em; background: var(--paper-2); padding: 1px 5px; border-radius: 2px; }

/* -------------------------------------------------------- Aviso cookies --- */

.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  padding: 18px 20px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(22, 22, 20, 0.14);
  font-size: 0.9rem;
}
.cookies[hidden] { display: none; }
.cookies h2 {
  font-size: 1rem;
  font-variation-settings: 'wdth' 104, 'wght' 660;
  margin-bottom: 6px;
}
.cookies p { color: var(--ink-soft); line-height: 1.5; }
.cookies p a { color: var(--accent); }
.cookies__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookies__acoes .btn { flex: 1 1 160px; }
@media (min-width: 900px) {
  .cookies { left: 24px; right: auto; bottom: 24px; margin: 0; }
}

/* As capturas automáticas trazem a barra de deslocamento do browser
   colada à direita. Alargamos a imagem um pouco, presa ao canto superior
   esquerdo, e a moldura corta essa faixa. Imagens próprias (data-fixa)
   ficam como estão. */
.moldura { position: relative; }
.moldura img:not([data-fixa]) {
  width: 103%;
  max-width: none;
  object-position: left top;
}

/* ------------------------------------------------------- Página simples --- */

.pagina { padding-block: clamp(48px, 6vw, 88px) var(--section-y); }

.texto { max-width: 68ch; }
.texto h2 {
  font-size: 1.25rem;
  font-variation-settings: 'wdth' 104, 'wght' 660;
  letter-spacing: -0.015em;
  margin-top: 40px;
  margin-bottom: 12px;
}
.texto p, .texto li { color: var(--ink-soft); margin-bottom: 14px; }
.texto ul { list-style: disc; padding-left: 22px; }
.texto a { color: var(--accent); }

/* ------------------------------------------------------------ Movimento --- */

.js .entra {
  opacity: 0;
  transform: translateY(8px);
}

.js .entra[data-visivel='sim'] {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .entra { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
