﻿/* =============================================================================
   Susana M. Rodrigues — Solicitadora
   Sistema de design · CSS único, sem dependências
   -----------------------------------------------------------------------------
   1. Tokens          6. Cabeçalho
   2. Base            7. Hero
   3. Tipografia      8. Secções
   4. Layout          9. Componentes
   5. Botões         10. Rodapé · 11. Animação · 12. Responsivo
   ========================================================================== */

/* ------------------------------------------------------------- 1. TOKENS */
:root {
  /* Tinta — verde-petróleo profundo. Seriedade sem a frieza do azul-marinho. */
  --ink-900: #0F2622;
  --ink-800: #14332D;
  --ink-700: #1B4740;
  --ink-600: #246054;
  --ink-500: #35786A;

  /* Areia — fundo quente, tom de papel. */
  --sand-50:  #FBF8F3;
  --sand-100: #F5EFE5;
  --sand-200: #EBE3D5;
  --sand-300: #DCD1BE;

  /* Latão — acento sóbrio para marcas, números e detalhes. */
  --brass-400: #C68C4F;
  --brass-500: #B0733A;
  --brass-600: #96602C;
  --brass-700: #7E4F22;   /* seguro para texto sobre areia (contraste 6,5:1) */

  /* Texto */
  --text:        #16211E;
  --text-muted:  #55645F;
  --text-invert: #F4F1EA;
  --text-invert-muted: rgba(244, 241, 234, .72);

  --white: #FFFFFF;
  --line:  #E3DACB;
  --line-strong: #CFC2AC;
  --line-invert: rgba(244, 241, 234, .18);

  --focus: #246054;

  /* Tipografia */
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.35rem, 1.45rem + 3.9vw, 4.35rem);
  --fs-h1:      clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --fs-h2:      clamp(1.65rem, 1.3rem + 1.55vw, 2.5rem);
  --fs-h3:      clamp(1.15rem, 1.06rem + 0.4vw, 1.4rem);
  --fs-lead:    clamp(1.05rem, 1rem + 0.35vw, 1.28rem);
  --fs-body:    1.0313rem;
  --fs-sm:      0.9063rem;
  --fs-xs:      0.8125rem;

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

  --header-h: 74px;
  --section-y: clamp(3.5rem, 2rem + 6.5vw, 7rem);
  --gutter:    clamp(1.25rem, 0.65rem + 2.6vw, 3rem);
  --container:        1180px;
  --container-narrow: 760px;

  --radius:    3px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px rgba(15, 38, 34, .05);
  --shadow-md: 0 8px 28px -14px rgba(15, 38, 34, .22);
  --shadow-lg: 0 24px 64px -32px rgba(15, 38, 34, .34);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --z-map: 1; --z-sticky: 20; --z-header: 30; --z-menu: 40; --z-skip: 60;
}

/* --------------------------------------------------------------- 2. BASE */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background-color: var(--sand-200); }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink-700); color: var(--sand-50); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--brass-400); }

.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-4);
  z-index: var(--z-skip);
  transform: translateY(-200%);
  background: var(--ink-900); color: var(--text-invert);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.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;
}

/* --------------------------------------------------------- 3. TIPOGRAFIA */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
  color: var(--ink-900);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.005em; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin: 0 0 var(--s-4);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--brass-500); flex: none;
}
.on-dark .eyebrow { color: var(--brass-400); }
.on-dark .eyebrow::before { background: var(--brass-400); }

.on-dark { color: var(--text-invert); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--text-invert); }
.on-dark .lead, .on-dark .muted { color: var(--text-invert-muted); }

.muted { color: var(--text-muted); }

.prose > * + * { margin-top: var(--s-4); }
.prose a { color: var(--brass-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink-700); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-2); }

/* ------------------------------------------------------------- 4. LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--ink { background: var(--ink-900); }
.section--sand { background: var(--sand-100); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------ 5. BOTÕES */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn svg { flex: none; }

.btn--primary { background: var(--ink-900); color: var(--text-invert); }
.btn--primary:hover { background: var(--ink-700); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; color: var(--ink-900); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--white); border-color: var(--ink-900); }

.btn--brass { background: var(--brass-700); color: var(--white); }
.btn--brass:hover { background: var(--brass-600); box-shadow: var(--shadow-md); }

.on-dark .btn--primary { background: var(--sand-50); color: var(--ink-900); }
.on-dark .btn--primary:hover { background: var(--white); }
.on-dark .btn--outline { color: var(--text-invert); border-color: var(--line-invert); }
.on-dark .btn--outline:hover { background: rgba(244,241,234,.08); border-color: rgba(244,241,234,.5); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--brass-700); text-decoration: none;
  transition: gap .22s var(--ease), color .22s var(--ease);
}
.link-arrow svg { transition: transform .22s var(--ease); }
.link-arrow:hover { color: var(--ink-700); }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--brass-400); }
.on-dark .link-arrow:hover { color: var(--white); }

/* --------------------------------------------------------- 6. CABEÇALHO */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251, 248, 243, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); background: rgba(251, 248, 243, .95); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--ink-900);
  border-radius: 2px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.94rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-900);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.brand:hover .brand__mark { background: var(--ink-900); color: var(--sand-50); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 600;
  color: var(--ink-900); letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__role {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted);
}

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav__link {
  position: relative;
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-sm); font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted); text-decoration: none;
  border-radius: var(--radius);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute;
  left: var(--s-3); right: var(--s-3); bottom: 2px; height: 1px;
  background: var(--brass-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--ink-900); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink-900); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { display: inline-flex; align-items: center; gap: var(--s-3); }
.header__cta .btn { white-space: nowrap; padding-inline: 1.15rem; }

/* O CTA dentro da lista de navegação existe apenas para o menu de telemóvel. */
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: var(--white); border-color: var(--ink-900); }
.nav-toggle__bars { display: block; width: 20px; height: 12px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink-900); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- Cabeçalho sobreposto à hero (apenas na página inicial) ---------------
   No topo o cabeçalho é transparente e claro, por cima da fotografia; assim
   que a página rola, `.is-stuck` devolve-lhe o aspeto normal.               */
.has-hero-overlay .header {
  position: fixed;
  left: 0; right: 0; top: 0;
}
.has-hero-overlay .header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.has-hero-overlay .header:not(.is-stuck) .brand__name { color: var(--text-invert); }
.has-hero-overlay .header:not(.is-stuck) .brand__role { color: var(--text-invert-muted); }
.has-hero-overlay .header:not(.is-stuck) .brand__mark {
  border-color: rgba(244, 241, 234, .55);
  color: var(--text-invert);
}
.has-hero-overlay .header:not(.is-stuck) .brand:hover .brand__mark {
  background: var(--text-invert); color: var(--ink-900);
}
.has-hero-overlay .header:not(.is-stuck) .nav__link { color: var(--text-invert-muted); }
.has-hero-overlay .header:not(.is-stuck) .nav__link:hover,
.has-hero-overlay .header:not(.is-stuck) .nav__link[aria-current="page"] { color: var(--text-invert); }
.has-hero-overlay .header:not(.is-stuck) .nav__link::after { background: var(--brass-400); }
.has-hero-overlay .header:not(.is-stuck) .btn--outline {
  color: var(--text-invert);
  border-color: rgba(244, 241, 234, .35);
}
.has-hero-overlay .header:not(.is-stuck) .btn--outline:hover {
  background: rgba(244, 241, 234, .12);
  border-color: rgba(244, 241, 234, .7);
}
.has-hero-overlay .header:not(.is-stuck) .nav-toggle { border-color: rgba(244, 241, 234, .35); }
.has-hero-overlay .header:not(.is-stuck) .nav-toggle:hover { background: rgba(244, 241, 234, .12); border-color: rgba(244, 241, 234, .7); }
.has-hero-overlay .header:not(.is-stuck) .nav-toggle__bars span { background: var(--text-invert); }

/* Com o menu de telemóvel aberto o painel é claro: o cabeçalho acompanha.
   A classe `.has-nav-aberta` é posta pelo JS (mais fiável do que `:has()`).  */
.has-hero-overlay .header:not(.is-stuck).has-nav-aberta {
  background: var(--sand-50);
  border-bottom-color: var(--line);
}
.has-hero-overlay .header:not(.is-stuck).has-nav-aberta .brand__name,
.has-hero-overlay .header:not(.is-stuck).has-nav-aberta .brand__mark { color: var(--ink-900); border-color: var(--ink-900); }
.has-hero-overlay .header:not(.is-stuck).has-nav-aberta .brand__role { color: var(--text-muted); }
.has-hero-overlay .header:not(.is-stuck).has-nav-aberta .nav-toggle { border-color: var(--line-strong); }
.has-hero-overlay .header:not(.is-stuck).has-nav-aberta .nav-toggle__bars span { background: var(--ink-900); }
.has-hero-overlay .header:not(.is-stuck).has-nav-aberta .nav__link { color: var(--text-muted); }

/* --------------------------------------------------------------- 7. HERO
   Ecrã inteiro, fotografia a toda a largura, apenas título e ações.
   O cabeçalho sobrepõe-se (ver `.has-hero-overlay` na secção 6).            */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;          /* exclui as barras do browser em telemóvel */
  padding-top: var(--header-h);
  background: var(--ink-900);
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

/* Duplo véu: escurece o conjunto e reforça o canto onde assenta o texto,
   garantindo contraste AAA sobre qualquer zona da fotografia. */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    /* protege o contraste do cabeçalho sobreposto */
    linear-gradient(to bottom, rgba(9, 24, 21, .50) 0%, rgba(9, 24, 21, 0) 20%),
    /* assenta o texto à esquerda sem apagar a fotografia à direita */
    linear-gradient(100deg, rgba(9, 24, 21, .78) 0%, rgba(9, 24, 21, .52) 34%, rgba(9, 24, 21, .12) 64%, rgba(9, 24, 21, 0) 88%),
    /* leve unificação no tom da marca */
    linear-gradient(rgba(15, 38, 34, .16), rgba(15, 38, 34, .16));
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(4rem, 3rem + 6vw, 7rem);
}

.hero__title {
  font-size: var(--fs-display);
  color: var(--text-invert);
  max-width: 17ch;
  margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--brass-400); }

.hero__actions { gap: var(--s-4); }

/* Barra de factos sob o hero */
.factbar { border-block: 1px solid var(--line); background: var(--sand-100); }
.factbar__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  list-style: none; margin: 0; padding: 0;
}
.factbar__item {
  background: var(--sand-100);
  padding: var(--s-5) clamp(1rem, 2.5vw, 1.75rem);
  display: flex; align-items: flex-start; gap: var(--s-3);
}
.factbar__item svg { flex: none; margin-top: 3px; color: var(--brass-600); }
.factbar__label { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.factbar__value { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); line-height: 1.45; }
.factbar__value a { text-decoration: none; }
.factbar__value a:hover { color: var(--brass-700); }

/* ----------------------------------------------------------- 8. SECÇÕES */
.split {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }

.split__figure { margin: 0; position: relative; }
.split__figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split__figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--fs-xs); color: var(--text-muted); font-style: italic;
}

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-700);
  margin-top: var(--s-5);
}

/* Cartões de áreas */
.grid-areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.area-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  text-decoration: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.area-card::before {
  content: ''; position: absolute; inset: -1px -1px auto -1px; height: 2px;
  background: var(--brass-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
  border-radius: var(--radius) var(--radius) 0 0;
}
.area-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.area-card:hover::before { transform: scaleX(1); }
.area-card__icon {
  width: 40px; height: 40px; margin-bottom: var(--s-4);
  display: grid; place-items: center;
  border-radius: 2px;
  background: var(--sand-100);
  color: var(--ink-700);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.area-card:hover .area-card__icon { background: var(--ink-900); color: var(--sand-50); }
.area-card h3 { margin-bottom: var(--s-2); }
.area-card__summary { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s-4); }
.area-card__list {
  list-style: none; margin: 0 0 var(--s-4); padding: 0;
  font-size: var(--fs-sm); color: var(--text-muted);
  border-top: 1px solid var(--line); padding-top: var(--s-4);
}
.area-card__list li { position: relative; padding-left: 1.15rem; }
.area-card__list li + li { margin-top: var(--s-2); }
.area-card__list li::before {
  content: ''; position: absolute; left: 0; top: .68em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass-500);
}
.area-card__foot { margin-top: auto; padding-top: var(--s-2); }

/* Índice de âncoras (chips) */
.chips {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  list-style: none; margin: 0; padding: 0;
}
.chips a {
  display: inline-flex; align-items: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.chips a:hover { border-color: var(--ink-900); color: var(--ink-900); background: var(--sand-50); }

/* Lista com marca de verificação */
.check-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.check-list li + li { margin-top: var(--s-3); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .48em;
  width: 15px; height: 9px;
  border-left: 1.5px solid var(--brass-500);
  border-bottom: 1.5px solid var(--brass-500);
  transform: rotate(-45deg);
}
.area-detail h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-700);
  margin: var(--s-6) 0 var(--s-4);
}

/* Caixa de nota */
.note {
  border-left: 2px solid var(--brass-500);
  background: var(--sand-100);
  padding: var(--s-5) clamp(1.25rem, 1rem + 1vw, 2rem);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.note strong { color: var(--ink-900); }
.section--sand .note { background: var(--white); }

/* Processo */
.steps { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-invert); }
.step { background: var(--ink-900); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 400; line-height: 1;
  color: var(--brass-400);
  margin-bottom: var(--s-4);
  display: block;
}
.step h3 { margin-bottom: var(--s-3); }
.step p { font-size: var(--fs-sm); color: var(--text-invert-muted); }

/* Compromissos */
.pledges { display: grid; grid-template-columns: 1fr; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.pledge { display: flex; gap: var(--s-4); }
.pledge__icon {
  flex: none; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  display: grid; place-items: center; color: var(--ink-700);
  background: var(--white);
}
.pledge h3 { font-size: 1.06rem; margin-bottom: var(--s-2); }
.pledge p { font-size: var(--fs-sm); color: var(--text-muted); }

/* Citação de destaque */
.quote-band { position: relative; background: var(--ink-900); overflow: hidden; }
.quote-band__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .17;
  filter: grayscale(.35);
}
.quote-band__inner { position: relative; padding-block: clamp(4rem, 2.5rem + 7vw, 8rem); }
.quote-band blockquote {
  margin: 0; max-width: 44ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  font-style: italic;
  line-height: 1.32;
  color: var(--text-invert);
  letter-spacing: -.01em;
}
.quote-band cite {
  display: block; margin-top: var(--s-5);
  font-family: var(--font-body); font-style: normal;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-400);
}

/* Testemunhos */
.reviews-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--s-5);
  margin-bottom: clamp(2rem, 1rem + 3vw, 3rem);
}
.rating-block { display: flex; align-items: center; gap: var(--s-4); }
.rating-block__score {
  font-family: var(--font-display); font-size: 3rem; font-weight: 600;
  line-height: 1; color: var(--ink-900);
}
.stars { display: flex; gap: 3px; color: var(--brass-500); }
.rating-block__meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }

.grid-reviews { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.review {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem);
}
.review__stars { margin-bottom: var(--s-4); }
.review blockquote {
  margin: 0 0 var(--s-5);
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text);
}
.review__author {
  margin-top: auto; padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: var(--s-3);
}
.review__avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink-800); color: var(--sand-50);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
}
.review__name { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); line-height: 1.3; }
.review__context { display: block; font-size: var(--fs-xs); color: var(--text-muted); }

/* FAQ */
.faq-group {
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-700);
  margin: var(--s-8) 0 var(--s-2);
}
.faq-group:first-child { margin-top: 0; }
.faq { 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: var(--s-4);
  padding: var(--s-5) 0;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem);
  font-weight: 500; line-height: 1.35;
  color: var(--ink-900);
  transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--brass-700); }
.faq__icon {
  flex: none; width: 26px; height: 26px; margin-top: 2px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  background: var(--ink-900); border-color: var(--ink-900); color: var(--sand-50);
}
.faq__a { overflow: hidden; height: 0; }
.faq__a-inner { padding-bottom: var(--s-5); max-width: 68ch; font-size: var(--fs-sm); color: var(--text-muted); }

/* Contacto */
.contact-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field--row { grid-template-columns: 1fr; gap: var(--s-4); display: grid; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); }
.field label .req { color: var(--brass-700); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355645F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink-600);
  box-shadow: 0 0 0 3px rgba(36, 96, 84, .13);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #A32C1E;
  box-shadow: 0 0 0 3px rgba(163, 44, 30, .1);
}
.field__error { font-size: var(--fs-xs); color: #A32C1E; min-height: 0; }
.field__error:empty { display: none; }

.consent { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.6; }
.consent input { width: 24px; height: 24px; min-height: 0; flex: none; margin-top: 1px; accent-color: var(--ink-700); cursor: pointer; }
.consent a { color: var(--brass-700); }

.form__status {
  font-size: var(--fs-sm);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--sand-100);
}
.form__status[hidden] { display: none; }
.form__status--ok { border-color: var(--ink-500); background: rgba(53,120,106,.09); color: var(--ink-700); }
.form__status--err { border-color: #A32C1E; background: rgba(163,44,30,.07); color: #8A2418; }

/* Painel de contactos */
.contact-panel {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list > li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-list > li + li { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line-invert); }
.contact-list__icon { flex: none; color: var(--brass-400); margin-top: 2px; }
.contact-list__body { min-width: 0; flex: 1; }
.contact-list__label {
  display: block;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-invert-muted); margin-bottom: 4px;
}
.contact-list__value { margin: 0; font-size: var(--fs-sm); color: var(--text-invert); line-height: 1.6; }
.contact-list__value a { text-decoration: none; border-bottom: 1px solid var(--line-invert); transition: border-color .2s var(--ease); }
.contact-list__value a:hover { border-color: var(--brass-400); }
.contact-list__value strong { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: .01em; }
.contact-list__note { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--text-invert-muted); }

.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours th, .hours td { text-align: left; padding: 0.42rem 0; vertical-align: top; }
.hours th { font-weight: 500; color: var(--text-invert-muted); width: 45%; }
.hours td { color: var(--text-invert); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brass-400); font-weight: 600; }
.hours .closed { color: var(--text-invert-muted); }

/* Mapa */
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand-200);
  z-index: var(--z-map);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA final */
.cta-band { background: var(--sand-100); border-top: 1px solid var(--line); }
.cta-band__inner {
  display: grid; grid-template-columns: 1fr; gap: var(--s-6);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

/* Cabeçalho de página interior */
.page-head { background: var(--ink-900); position: relative; overflow: hidden; }
.page-head__inner { padding-block: clamp(3rem, 2rem + 4.5vw, 5.5rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem); position: relative; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 54ch; }

.breadcrumb { font-size: var(--fs-xs); color: var(--text-invert-muted); margin-bottom: var(--s-5); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-400); }
.breadcrumb li + li::before { content: '/'; margin-right: var(--s-2); color: var(--line-invert); }

/* ------------------------------------------------------------ 10. RODAPÉ */
.footer { background: var(--ink-900); color: var(--text-invert-muted); }
.footer__top {
  display: grid; grid-template-columns: 1fr; gap: var(--s-6);
  padding-block: clamp(3rem, 2rem + 3.5vw, 4.5rem);
}
.footer__brand .brand__mark { border-color: rgba(244,241,234,.4); color: var(--text-invert); }
.footer__brand .brand__name { color: var(--text-invert); }
.footer__brand .brand__role { color: var(--text-invert-muted); }
.footer__blurb { font-size: var(--fs-sm); margin-top: var(--s-4); max-width: 34ch; }

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-invert); margin-bottom: var(--s-4);
}
.footer ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.footer li + li { margin-top: var(--s-2); }
.footer a { text-decoration: none; transition: color .2s var(--ease); }
.footer a:hover { color: var(--brass-400); }

.footer__bottom {
  border-top: 1px solid var(--line-invert);
  padding-block: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-xs);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }

/* Barra de ação fixa (mobile) */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  gap: 1px;
  background: var(--line-invert);
  border-top: 1px solid var(--ink-700);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.action-bar a {
  flex: 1 1 0;
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 56px; padding: var(--s-3) var(--s-2);
  background: var(--ink-900); color: var(--text-invert);
  font-size: var(--fs-xs); font-weight: 600;
  text-decoration: none;
}
.action-bar a svg { flex: none; }
.action-bar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-bar a.is-primary { background: var(--brass-700); }

/* ---------------------------------------------------------- 11. ANIMAÇÃO */
/* Estado inicial dos elementos que serão revelados por JS.
   Só se aplica quando o JS está ativo (classe no <html>), para que o
   conteúdo esteja sempre visível se o script falhar ou for bloqueado.      */
.js [data-reveal] { opacity: 0; will-change: opacity, transform; }
.js [data-reveal].is-visible { will-change: auto; }

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

/* --------------------------------------------------------- 12. RESPONSIVO */
@media (min-width: 560px) {
  .field--row { grid-template-columns: 1fr 1fr; }
  .grid-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
  .grid-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--narrow-media { grid-template-columns: 1.15fr 0.85fr; }
  .grid-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
  .cta-band__inner { grid-template-columns: 1.4fr auto; }
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-7); }
  .factbar__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .pledges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Navegação e ajustes em ecrãs pequenos ---- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    z-index: var(--z-menu);
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--s-3) var(--gutter) var(--s-6);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav__link {
    padding: var(--s-4) var(--s-1);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { display: block; margin-top: var(--s-5); }
  .nav__cta .btn { width: 100%; }

  .header__cta .btn { display: none; }
}

/* Entre 1024 e 1180 px o cabeçalho fica apertado: aperta a tipografia da nav. */
@media (min-width: 1024px) and (max-width: 1179px) {
  .nav__link { padding-inline: var(--s-2); font-size: 0.875rem; }
  .header__cta .btn { font-size: 0.875rem; padding-inline: 0.9rem; }
}

@media (max-width: 899px) {
  .split__figure img { aspect-ratio: 4 / 3; }
  .split--reverse .split__media { order: 0; }

  /* Em retrato o texto ocupa a largura toda: o véu passa a ser vertical,
     escuro no topo (cabeçalho) e no fundo (botões), leve a meio. */
  .hero__bg { object-position: 58% 50%; }
  .hero__title { max-width: 15ch; }
  .hero::after {
    background:
      linear-gradient(to bottom,
        rgba(9, 24, 21, .80) 0%,
        rgba(9, 24, 21, .52) 22%,
        rgba(9, 24, 21, .46) 52%,
        rgba(9, 24, 21, .74) 82%,
        rgba(9, 24, 21, .88) 100%),
      linear-gradient(rgba(15, 38, 34, .16), rgba(15, 38, 34, .16));
  }
}

@media (max-width: 639px) {
  :root { --fs-body: 1rem; }
  body { padding-bottom: 56px; }   /* espaço para a barra de ação fixa */
  .action-bar { display: flex; }

  /* A barra de ação fixa ocupa os 56 px inferiores; compensa-se metade para
     que o bloco de texto continue oticamente centrado. */
  .hero__inner { padding-bottom: calc(clamp(4rem, 3rem + 6vw, 7rem) + 28px); }

  .factbar__list { grid-template-columns: 1fr; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
  .footer__bottom { justify-content: flex-start; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .rating-block__score { font-size: 2.5rem; }
}

/* Alvos de toque: em telemóvel as ligações de texto ganham altura suficiente. */
@media (max-width: 899px) {
  .link-arrow { min-height: 44px; align-items: center; }
  .factbar__value a,
  .rating-block__meta a { display: inline-block; padding-block: 0.55rem; }
}

/* Em ecrãs muito estreitos o eyebrow deixa de caber numa linha. */
@media (max-width: 430px) {
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.1em; gap: var(--s-2); }
  .eyebrow::before { width: 16px; }
}
