/* ==========================================================================
   Estremozgest, Lda — Sistema de design
   Motivo condutor: o losango do logótipo (mármore de Estremoz).
   Autor: site institucional 2026. Sem dependências externas além das fontes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca — derivada do verde do logótipo */
  --forest-900: #0c1f05;
  --forest-800: #123006;
  --forest-700: #1a5209;
  --forest-600: #266b12;
  --forest-500: #3c8a22;
  --brass-600: #8f6a22;
  --brass-500: #b08633;
  --brass-400: #d9b662;
  --brass-300: #e8cf94;

  /* Neutros — mármore */
  --marble-000: #ffffff;
  --marble-050: #fbfaf7;
  --marble-100: #f4f2ec;
  --marble-200: #e9e5db;
  --marble-300: #d8d3c5;

  --ink-900: #13180f;
  --ink-700: #303a2a;
  --ink-500: #5c6653;
  --ink-400: #7d8674;

  /* Papéis semânticos */
  --bg: var(--marble-050);
  --bg-alt: var(--marble-100);
  --surface: var(--marble-000);
  --text: var(--ink-900);
  --text-soft: var(--ink-500);
  --accent: var(--forest-700);
  --accent-ink: var(--forest-900);
  --highlight: var(--brass-500);

  --line: rgba(19, 24, 15, 0.12);
  --line-strong: rgba(19, 24, 15, 0.22);
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Tipografia — escala fluida */
  --font-display: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.11rem + 0.34vw, 1.4rem);
  --step-2: clamp(1.42rem, 1.29rem + 0.65vw, 1.85rem);
  --step-3: clamp(1.72rem, 1.48rem + 1.15vw, 2.45rem);
  --step-4: clamp(2.05rem, 1.66rem + 1.9vw, 3.25rem);
  --step-5: clamp(2.45rem, 1.79rem + 3.2vw, 4.4rem);

  /* Ritmo */
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --measure: 62ch;
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --section-y: clamp(4rem, 2.8rem + 6vw, 8rem);

  --radius: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(19, 24, 15, 0.06), 0 2px 8px rgba(19, 24, 15, 0.04);
  --shadow-md: 0 2px 4px rgba(19, 24, 15, 0.05), 0 12px 32px rgba(19, 24, 15, 0.08);
  --shadow-lg: 0 4px 8px rgba(19, 24, 15, 0.06), 0 24px 60px rgba(19, 24, 15, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 88px;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

::selection { background: var(--brass-300); color: var(--forest-900); }

/* --------------------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--accent-ink);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-size: var(--step-0); }

p { text-wrap: pretty; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 54ch;
}

.muted { color: var(--text-soft); }
.measure { max-width: var(--measure); }

em, .em {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--highlight);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.on-dark .eyebrow,
.eyebrow.on-dark { color: var(--brass-400); }

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  overflow: hidden;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.section-head p { color: var(--text-soft); margin-top: 1rem; max-width: 52ch; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 999;
  background: var(--forest-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   5. Motivo do losango (grafismo da marca)
   -------------------------------------------------------------------------- */
.lozenge-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(45deg, transparent 48.6%, currentColor 48.6%, currentColor 49.6%, transparent 49.6%),
    linear-gradient(-45deg, transparent 48.6%, currentColor 48.6%, currentColor 49.6%, transparent 49.6%);
  background-size: 84px 84px;
  color: rgba(255, 255, 255, 0.07);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 78% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 70% at 78% 20%, #000 0%, transparent 72%);
}
.lozenge-field--light { color: rgba(19, 24, 15, 0.06); }

/* Ícone em losango — reutilizado em serviços, valores e contactos */
.mark {
  --mark-size: 54px;
  width: var(--mark-size);
  height: var(--mark-size);
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
}
.mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.25px solid var(--forest-600);
  transform: rotate(45deg);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.mark svg {
  position: relative;
  z-index: 1;
  width: 46%;
  height: 46%;
  color: var(--forest-700);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.35s var(--ease);
}
.mark--sm { --mark-size: 42px; }
.mark--on-dark::before { border-color: rgba(255, 255, 255, 0.4); }
.mark--on-dark svg { color: var(--brass-400); }

/* --------------------------------------------------------------------------
   6. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.6em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--forest-800); border-color: var(--forest-800); box-shadow: var(--shadow-md); }

.btn--gold {
  background: var(--brass-400);
  border-color: var(--brass-400);
  color: var(--forest-900);
}
.btn--gold:hover { background: var(--brass-300); border-color: var(--brass-300); }

.btn--outline { border-color: var(--line-strong); color: var(--accent-ink); background: transparent; }
.btn--outline:hover { border-color: var(--forest-700); background: rgba(26, 82, 9, 0.05); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest-700);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. Cabeçalho + navegação
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(19, 24, 15, 0.05); }

.topbar {
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
.topbar a:hover { color: var(--brass-400); }
.topbar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar-contacts { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 720px) { .topbar-note { display: none; } }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
/* Conjunto da marca: losango em SVG + palavra em texto real (Montserrat).
   Tudo escala a partir de --brand-size, para as proporcoes do logotipo
   original se manterem quando se muda o tamanho. */
.brand,
.footer-brand { --brand-size: 54px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-mark {
  height: var(--brand-size);
  width: var(--brand-size);
}

.brand-word {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.brand-name {
  font-family: "Montserrat", var(--font-ui);
  font-weight: 700;
  font-size: calc(var(--brand-size) * 0.315);
  line-height: 1;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--forest-700);
  white-space: nowrap;
}
.brand-name sup {
  font-size: 0.4em;
  letter-spacing: 0.06em;
  vertical-align: 0.95em;
  margin-left: 0.3em;
}
.brand-claim {
  font-family: "Montserrat", var(--font-ui);
  font-weight: 400;
  font-size: calc(var(--brand-size) * 0.163);
  line-height: 1;
  letter-spacing: 0.004em;
  color: var(--ink-900);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .brand { --brand-size: 42px; gap: 0.45rem; }
}
@media (max-width: 380px) {
  .brand { --brand-size: 36px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.4rem + 1.6vw, 2.15rem);
}
.nav-links > li { position: relative; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  padding-block: 0.5rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--forest-700); }
.nav-links a[aria-current="page"] { color: var(--forest-700); font-weight: 600; }

/* Submenu de serviços */
.has-submenu > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
}
.has-submenu > button:hover { color: var(--forest-700); }
.has-submenu > button svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform 0.25s var(--ease); }
.has-submenu[data-open="true"] > button svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1rem;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-submenu[data-open="true"] .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.35;
}
.submenu a:hover { background: var(--marble-100); }
.submenu a span { display: block; font-size: 0.78rem; color: var(--text-soft); font-weight: 400; margin-top: 0.15rem; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-900); stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: calc(var(--header-h) + 38px) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav-links[data-open="true"] { transform: translateX(0); }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links a, .has-submenu > button { width: 100%; font-size: 1.1rem; padding: 1.1rem 0; }
  .has-submenu > button { justify-content: space-between; }
  .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.75rem 0.25rem;
    min-width: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-submenu[data-open="true"] .submenu { display: block; }
  .submenu a { font-size: 0.98rem; padding: 0.75rem 0; }
  .nav-mobile-cta { display: block; margin-top: 1.75rem; }
  .nav-mobile-cta .btn { width: 100%; }
}
@media (min-width: 961px) { .nav-mobile-cta { display: none; } }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--forest-900);
  background-image: linear-gradient(155deg, #16360a 0%, var(--forest-900) 58%, #08170a 100%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(4.5rem, 3rem + 7vw, 8.5rem) clamp(4rem, 2.5rem + 6vw, 7rem);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero .lede { color: rgba(255, 255, 255, 0.76); margin-bottom: 2.25rem; }
.hero .btn-row { margin-bottom: 2.75rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.hero-trust li { display: flex; align-items: center; gap: 0.5em; }
.hero-trust svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: var(--brass-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Cartão de captação no hero */
.hero-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  backdrop-filter: blur(6px);
}
.hero-card h2 {
  font-size: var(--step-2);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero-card > p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.68); margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   9. Barra de indicadores
   -------------------------------------------------------------------------- */
.stat-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.stat-band .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  padding-inline: 0;
}
.stat {
  background: var(--surface);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) var(--gutter);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1;
  color: var(--forest-700);
  margin-bottom: 0.5rem;
}
.stat > span {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
}
@media (max-width: 560px) { .stat-band .wrap { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   10. Grelha de serviços
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: var(--surface);
  padding: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.card:hover { background: var(--marble-100); }
.card:hover .mark::before { background: var(--forest-700); border-color: var(--forest-700); }
.card:hover .mark svg { color: var(--brass-300); }
.card h3 { font-size: var(--step-1); }
.card p { font-size: 0.93rem; color: var(--text-soft); flex-grow: 1; }
.card .link-arrow { margin-top: auto; }

/* Lista de entregáveis */
/* O losango e posicionado em absoluto, nao como item flex. Se a <li> fosse
   um contentor flex, o <b> e o texto seguinte tornavam-se items separados,
   cada um a dimensionar-se sozinho: a descricao comecava num ponto
   diferente em cada linha e o rotulo partia sem necessidade. */
.deliverables { display: grid; gap: 0; }
.deliverables li {
  position: relative;
  padding: 0.95rem 0 0.95rem 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}
.deliverables li:last-child { border-bottom: 1px solid var(--line); }
.deliverables li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: calc(0.95rem + 0.53em);
  width: 8px;
  height: 8px;
  background: var(--brass-500);
  transform: rotate(45deg);
}
.deliverables li b { font-weight: 600; }
.section--dark .deliverables li { border-color: var(--line-dark); }

/* --------------------------------------------------------------------------
   11. Secções em duas colunas
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 1.2rem + 4.5vw, 5rem);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
/* Quando a coluna de texto leva uma lista, o painel decorativo cede largura. */
.split--text-wide { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
@media (max-width: 880px) {
  .split, .split--text-wide { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
}

/* Painel gráfico (substitui fotografia de stock) */
.panel {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #1d4a10 0%, var(--forest-900) 72%);
}
.panel--light { background: var(--marble-100); border: 1px solid var(--line); }
.panel figure { position: relative; z-index: 2; width: 62%; }
.panel svg.art { width: 100%; height: auto; color: var(--brass-400); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel--light svg.art { color: var(--forest-700); }
.panel svg.art .soft { fill: currentColor; opacity: 0.13; stroke: none; }
.panel svg.art .dashed { stroke-dasharray: 3 8; opacity: 0.55; }
.panel svg.art .accent { color: #fff; }
.panel--light svg.art .accent { color: var(--brass-500); }

/* Slot para fotografia real */
.photo-slot {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--marble-200);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot--empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(45deg, var(--marble-100) 0 12px, var(--marble-200) 12px 24px);
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}

/* --------------------------------------------------------------------------
   12. Processo (numerado)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.75rem, 1rem + 2.5vw, 3rem); counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 2.75rem; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass-500);
}
.step::after {
  content: "";
  position: absolute;
  top: 1.9rem;
  left: 0;
  right: 1.5rem;
  height: 1px;
  background: var(--line);
}
.section--dark .step::after { background: var(--line-dark); }
.step h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.step p { font-size: 0.93rem; color: var(--text-soft); }
.section--dark .step p { color: rgba(255, 255, 255, 0.66); }

/* --------------------------------------------------------------------------
   13. Equipa
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1rem;
}
/* Nove pessoas assentam melhor em 3x3 do que na grelha automatica. */
.team-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .team-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .team-grid, .team-grid--3 { grid-template-columns: 1fr; }
}

.member {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
}
.member .avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--forest-700);
  color: var(--brass-300);
  font-family: var(--font-display);
  font-size: 0.98rem;
  border-radius: 50%;
  letter-spacing: 0.02em;
}
.member h4 { font-size: 1rem; margin-bottom: 0.15rem; line-height: 1.25; }
.member p { font-size: 0.85rem; color: var(--text-soft); }

/* --------------------------------------------------------------------------
   14. Testemunhos / citações
   -------------------------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass-500);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--accent-ink);
  margin-bottom: 1.25rem;
}
.quote figcaption { font-size: 0.85rem; color: var(--text-soft); }
.quote figcaption b { display: block; color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--accent-ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass-500);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.6rem; max-width: 62ch; color: var(--text-soft); }
.faq details > div p + p { margin-top: 0.85rem; }

/* --------------------------------------------------------------------------
   16. Formulário
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; }
.field label .req { color: var(--brass-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(38, 107, 18, 0.14);
}
.field .hint { font-size: 0.78rem; color: var(--text-soft); }
.field .error { font-size: 0.78rem; color: #a3341f; display: none; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #a3341f; }
.field[data-invalid="true"] .error { display: block; }

/* Sobre fundo escuro */
.on-dark .field label { color: rgba(255, 255, 255, 0.88); }
.on-dark .field input,
.on-dark .field select,
.on-dark .field textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-dark);
  color: #fff;
}
.on-dark .field input::placeholder,
.on-dark .field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.on-dark .field input:focus,
.on-dark .field select:focus,
.on-dark .field textarea:focus { border-color: var(--brass-400); box-shadow: 0 0 0 3px rgba(217, 182, 98, 0.18); }
.on-dark .field .hint { color: rgba(255, 255, 255, 0.55); }

/* O menu nativo do <select> abre sempre sobre fundo claro, mesmo quando
   o campo esta sobre fundo escuro. Forcar a cor do texto das opcoes. */
.field select option {
  color: var(--ink-900);
  background: var(--marble-000);
}
.on-dark .consent { color: rgba(255, 255, 255, 0.66); }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--forest-700);
}
.consent a { color: inherit; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid;
}
.form-status[data-state="ok"] { display: block; background: rgba(38, 107, 18, 0.1); border-color: var(--forest-600); color: var(--forest-800); }
.form-status[data-state="error"] { display: block; background: rgba(163, 52, 31, 0.08); border-color: #a3341f; color: #8a2b19; }
.on-dark .form-status[data-state="ok"] { background: rgba(217, 182, 98, 0.14); border-color: var(--brass-400); color: var(--brass-300); }

/* --------------------------------------------------------------------------
   17. Faixa de credenciais
   -------------------------------------------------------------------------- */
.credential-band { background: var(--forest-800); color: rgba(255, 255, 255, 0.8); }
.credential-band .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 1.75rem;
  font-size: 0.92rem;
}
.credential-band b { color: #fff; }

/* --------------------------------------------------------------------------
   18. Contactos
   -------------------------------------------------------------------------- */
.contact-list { display: grid; gap: 1.75rem; }
.contact-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-item .label {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 0.2rem;
}
.contact-item .value { font-size: 1.06rem; font-weight: 500; }
.contact-item .value a { text-decoration: none; }
.contact-item .value a:hover { color: var(--forest-700); text-decoration: underline; }
.on-dark .contact-item .label { color: var(--brass-400); }
.on-dark .contact-item .value { color: #fff; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours th { text-align: left; font-weight: 600; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.hours td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: 0; }

.map-embed {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--marble-200);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   19. Rodapé
   -------------------------------------------------------------------------- */
.site-footer { background: var(--forest-900); color: rgba(255, 255, 255, 0.62); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0; font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: 3rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 1.25rem;
}
/* No rodape a palavra e texto, por isso muda de cor directamente.
   So o losango, sendo imagem, continua a precisar do filtro. */
.footer-brand { --brand-size: 46px; }
.footer-brand .brand-mark { filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-claim { color: rgba(255, 255, 255, 0.6); }
.footer-brand p { width: 100%; max-width: 34ch; margin: 0; }
.footer-legal-inline { font-size: 0.8rem; color: rgba(255, 255, 255, 0.42); line-height: 1.7; }

.site-footer h5 {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer li { margin-bottom: 0.65rem; }
.site-footer a { text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--brass-400); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom li { margin: 0; }

/* --------------------------------------------------------------------------
   22. Cabeçalho de página interior
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--forest-900);
  background-image: linear-gradient(150deg, #17380b 0%, var(--forest-900) 65%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lede { color: rgba(255, 255, 255, 0.75); margin-top: 1.35rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-400); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; opacity: 0.5; }
.breadcrumb li { display: inline-flex; }

/* --------------------------------------------------------------------------
   23. Conteúdo longo (páginas legais)
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 3rem; margin-bottom: 1rem; }
.prose h3 { font-size: var(--step-1); margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15rem; color: var(--ink-700); }
.prose ul { margin: 0 0 1.15rem 0; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; color: var(--ink-700); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--brass-500); transform: rotate(45deg); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.75rem 0.85rem; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--marble-100); font-weight: 600; }
.prose a { color: var(--forest-700); }

/* --------------------------------------------------------------------------
   24. Animação de entrada
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   25. Utilitários
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stack > * + * { margin-top: 1.15rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.75em;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.on-dark .tag { border-color: var(--line-dark); color: rgba(255, 255, 255, 0.72); }

/* Impressão */
@media print {
  .site-header, .site-footer, .hero-card { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
