/* ==========================================================================
   JOMEGA — folha de estilo principal
   Estrutura: 1. Tipos de letra  2. Tokens  3. Base  4. Layout  5. Componentes
              6. Secções  7. Utilitários  8. Movimento reduzido / impressão
   ========================================================================== */

/* 1. TIPOS DE LETRA (alojados localmente, sem pedidos externos) ------------ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215,
    U+2713, U+25CF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/sourceserif4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215,
    U+2713, U+25CF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/sourceserif4-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215,
    U+2713, U+25CF, U+FEFF, U+FFFD;
}

/* 2. TOKENS ---------------------------------------------------------------- */

:root {
  /* Verdes */
  --forest-950: #04140e;
  --forest-900: #072016;
  --forest-850: #092a1d;
  --forest-800: #0c3524;
  --forest-700: #11492f;
  --emerald-700: #0a7a52;
  --emerald-600: #0e9268;
  --emerald-500: #15ad7c;
  --emerald-400: #3dc694;
  --sage-600: #5e8271;
  --sage-400: #8faf9d;
  --sage-300: #a9c4b5;
  --sage-200: #c6dacd;
  --sage-100: #dee9e2;

  /* Superfícies */
  --paper: #fafcfa;
  --mist: #eff4f0;
  --white: #ffffff;

  /* Texto */
  --ink: #0f1a14;
  --ink-2: #2a3a31;
  --muted: #56655c;
  --on-dark: #cfdfd6;
  --on-dark-muted: #9bb3a5;

  /* Linhas */
  --line: #dbe6de;
  --line-strong: #c3d4c9;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Tipografia */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;

  /* Escala fluida */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.3rem, 1.18rem + 0.6vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.36rem + 1.2vw, 2.25rem);
  --step-4: clamp(1.95rem, 1.55rem + 2vw, 3rem);
  --step-5: clamp(2.35rem, 1.72rem + 3.1vw, 4.15rem);

  /* Espaço */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Formas */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-pill: 999px;

  /* Sombras — discretas, com tinta verde */
  --shadow-s: 0 1px 2px rgba(9, 42, 29, 0.05),
    0 2px 8px rgba(9, 42, 29, 0.04);
  --shadow-m: 0 2px 4px rgba(9, 42, 29, 0.05),
    0 12px 32px -12px rgba(9, 42, 29, 0.16);
  --shadow-l: 0 4px 8px rgba(9, 42, 29, 0.06),
    0 24px 60px -24px rgba(9, 42, 29, 0.28);

  --container: 1180px;
  --container-narrow: 760px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. BASE ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--step-4);
  letter-spacing: -0.02em;
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 var(--space-s);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--emerald-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--forest-800);
}

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

ul,
ol {
  margin: 0 0 var(--space-s);
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.35em;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-l) 0;
}

::selection {
  background: var(--emerald-500);
  color: #fff;
}

/* Foco visível e consistente */
:focus-visible {
  outline: 2px solid var(--emerald-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--emerald-400);
}

/* Ligação de salto para leitores de ecrã / teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-s);
  z-index: 200;
  background: var(--forest-900);
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-s);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--space-s);
  color: #fff;
}

/* 4. LAYOUT ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 2.4rem + 3vw, 5rem);
}

.section--mist {
  background: var(--mist);
}

.section--dark {
  background: var(--forest-900);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

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

.grid {
  display: grid;
  gap: var(--space-m);
}

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

@media (min-width: 700px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

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

/* 5. COMPONENTES ----------------------------------------------------------- */

/* 5.1 Marca ---------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.brand__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.19rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  padding-top: 1px;
}

.brand__name em {
  font-style: normal;
  color: var(--emerald-700);
}

.on-dark .brand__name,
.site-footer .brand__name {
  color: #fff;
}

.on-dark .brand__name em,
.site-footer .brand__name em {
  color: var(--emerald-400);
}

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

.btn {
  --btn-bg: var(--forest-900);
  --btn-fg: #fff;
  --btn-border: var(--forest-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82rem 1.5rem;
  min-height: 46px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 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 {
  --btn-bg: var(--forest-700);
  --btn-border: var(--forest-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}

.btn:active {
  transform: translateY(0);
}

.btn__icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn--accent {
  --btn-bg: var(--emerald-700);
  --btn-border: var(--emerald-700);
}

.btn--accent:hover {
  --btn-bg: var(--emerald-600);
  --btn-border: var(--emerald-600);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--forest-800);
  --btn-border: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--white);
  --btn-fg: var(--forest-900);
  --btn-border: var(--sage-400);
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.28);
}

.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: rgba(255, 255, 255, 0.5);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--forest-900);
  --btn-border: #fff;
}

.btn--light:hover {
  --btn-bg: var(--sage-100);
  --btn-border: var(--sage-100);
  --btn-fg: var(--forest-900);
}

.btn--wide {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* 5.3 Cabeçalho e navegação ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 252, 250, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px -12px rgba(9, 42, 29, 0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.4vw, 1.35rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 1.2vw, 0.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  position: relative;
  padding: 0.5rem 0.7rem;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-s);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 1.5px;
  background: var(--emerald-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--forest-900);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--forest-900);
  font-weight: 600;
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: 0.62rem 1.15rem;
  min-height: 40px;
}

/* Botão do menu móvel */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--forest-900);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.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);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-s) clamp(1.15rem, 4vw, 2.5rem) var(--space-l);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-l);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav__list li {
    margin: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__link {
    display: block;
    padding: 0.95rem 0.25rem;
    font-size: var(--step-0);
    border-radius: 0;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link[aria-current="page"] {
    color: var(--emerald-700);
  }

  .nav__cta {
    margin-top: var(--space-m);
    width: 100%;
    min-height: 48px;
  }
}

/* 5.4 Etiquetas e cabeçalhos de secção ------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--space-s);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-700);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section--dark .eyebrow {
  color: var(--emerald-400);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 1.8rem + 2vw, 3.75rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head p {
  font-size: var(--step-1);
  color: var(--muted);
  line-height: 1.6;
  max-width: 40rem;
}

.section--dark .section-head p {
  color: var(--on-dark-muted);
}

.section-head--center p {
  margin-inline: auto;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--muted);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--emerald-700);
}

.section--dark .serif-accent {
  color: var(--emerald-400);
}

/* 5.5 Cartões -------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.card--hover:hover {
  border-color: var(--sage-300);
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-m);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-s);
  background: var(--mist);
  color: var(--emerald-700);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.65;
}

.card__link {
  margin-top: auto;
  padding-top: var(--space-m);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card__link svg {
  width: 0.9em;
  height: 0.9em;
  transition: transform 0.22s var(--ease);
}

.card__link:hover svg {
  transform: translateX(3px);
}

/* Cartão em fundo escuro */
.section--dark .card {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-dark);
}

.section--dark .card p {
  color: var(--on-dark-muted);
}

.section--dark .card__icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-dark);
  color: var(--emerald-400);
}

/* 5.6 Listas com marca ----------------------------------------------------- */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--emerald-600);
  border-radius: 2px;
  transform: rotate(45deg);
}

.section--dark .check-list li {
  color: var(--on-dark-muted);
}

.section--dark .check-list li::before {
  border-color: var(--emerald-400);
}

/* Lista de tecnologias — etiquetas discretas */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  margin: 0;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--muted);
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.section--dark .tag-list li {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
  color: var(--on-dark-muted);
}

/* 6. SECÇÕES --------------------------------------------------------------- */

/* 6.1 Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-950);
  color: var(--on-dark);
  isolation: isolate;
}

.hero::before {
  /* Luz difusa esmeralda, muito subtil */
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90%;
  background: radial-gradient(
      60% 55% at 72% 30%,
      rgba(21, 173, 124, 0.22),
      transparent 70%
    ),
    radial-gradient(50% 50% at 12% 0%, rgba(14, 146, 104, 0.14), transparent 70%);
  z-index: -2;
  pointer-events: none;
}

.hero::after {
  /* Grelha técnica de fundo */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    120% 90% at 50% 20%,
    #000 20%,
    transparent 78%
  );
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem)
    clamp(3.5rem, 2.5rem + 5vw, 6rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-m);
}

.hero h1 em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--emerald-400);
}

.hero__eyebrow {
  color: var(--emerald-400);
}

.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.65;
  color: var(--on-dark);
  max-width: 34rem;
  margin-bottom: var(--space-l);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-dark);
  list-style: none;
  padding-left: 0;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--step--1);
  color: var(--on-dark-muted);
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--emerald-500);
  flex: 0 0 auto;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__visual svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

@media (max-width: 959px) {
  .hero__visual {
    max-width: 430px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Animação do diagrama do hero */
.node-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3.6s var(--ease) infinite;
}

.node-pulse--2 {
  animation-delay: 1.2s;
}
.node-pulse--3 {
  animation-delay: 2.4s;
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.25);
  }
}

.ring-rotate {
  transform-box: fill-box;
  transform-origin: center;
  animation: ringRotate 90s linear infinite;
}

.ring-rotate--reverse {
  animation-direction: reverse;
  animation-duration: 120s;
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

.dash-flow {
  stroke-dasharray: 4 8;
  animation: dashFlow 3s linear infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -24;
  }
}

/* 6.2 Faixa de contexto ---------------------------------------------------- */

.strip {
  background: var(--forest-900);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--on-dark-muted);
  padding-block: 1.15rem;
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem clamp(1rem, 3vw, 2.75rem);
  font-size: var(--step--1);
}

.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.strip__item svg {
  width: 16px;
  height: 16px;
  color: var(--emerald-500);
  flex: 0 0 auto;
}

/* 6.3 Bloco de duas colunas ------------------------------------------------ */

.split {
  display: grid;
  gap: clamp(2rem, 1.6rem + 3vw, 4.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--sticky > :first-child {
    position: sticky;
    top: 6.5rem;
  }
}

/* 6.4 Serviços em detalhe -------------------------------------------------- */

.service {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.service:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service__grid {
  display: grid;
  gap: clamp(1.5rem, 1.2rem + 2vw, 3.5rem);
}

@media (min-width: 900px) {
  .service__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.service__number {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--emerald-700);
  display: block;
  margin-bottom: 0.85rem;
}

.service__intro p {
  color: var(--muted);
}

.service__panels {
  display: grid;
  gap: var(--space-s);
}

.panel {
  padding: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.panel--accent {
  background: var(--mist);
  border-color: var(--sage-200);
}

.panel__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage-600);
}

.panel--accent .panel__label {
  color: var(--emerald-700);
}

.panel p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-2);
  line-height: 1.65;
}

/* 6.5 Metodologia ---------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--space-m);
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.step {
  position: relative;
  padding-top: var(--space-m);
  border-top: 2px solid var(--line-dark);
}

.step::after {
  /* Progresso subtil sobre a linha de topo */
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 34%;
  height: 2px;
  background: var(--emerald-500);
}

.step__num {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--emerald-400);
}

.step h3 {
  font-size: var(--step-1);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: var(--step--1);
  color: var(--on-dark-muted);
  line-height: 1.65;
}

/* 6.6 Razões (grelha com linhas) ------------------------------------------- */

.reasons {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .reasons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reason {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.15rem) clamp(0rem, 1vw, 1.75rem)
    clamp(1.5rem, 1.2rem + 1vw, 2.15rem) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .reason {
    padding-inline: clamp(1rem, 2vw, 1.9rem);
    border-right: 1px solid var(--line);
  }

  .reason:nth-child(2n) {
    border-right: 0;
  }

  .reason:first-child,
  .reason:nth-child(2n + 1) {
    padding-left: 0;
  }
}

@media (min-width: 1040px) {
  .reason {
    padding-left: clamp(1rem, 2vw, 1.9rem);
    border-right: 1px solid var(--line);
  }

  .reason:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .reason:nth-child(3n) {
    border-right: 0;
  }

  .reason:nth-child(3n + 1) {
    padding-left: 0;
  }
}

.reason__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.9rem;
  color: var(--emerald-700);
}

.reason h3 {
  font-size: var(--step-1);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}

.reason p {
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* 6.7 Perfil --------------------------------------------------------------- */

.profile {
  display: grid;
  gap: clamp(1.75rem, 1.4rem + 2.5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .profile {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  }
}

/* Painel de assinatura — desenhado de raiz, sem fotografia de arquivo */
.profile__card {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 340px;
  width: 100%;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--forest-900);
  border: 1px solid rgba(61, 198, 148, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.profile__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 60% at 50% 38%,
    rgba(21, 173, 124, 0.2),
    transparent 70%
  );
  z-index: -1;
}

.profile__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.profile__card-body {
  position: relative;
  text-align: center;
  padding: var(--space-m);
}

.profile__card-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto var(--space-m);
  color: var(--emerald-400);
}

.profile__card-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.2;
}

.profile__card-role {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sage-400);
}

.profile__signature {
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}

.profile__signature strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* 6.8 FAQ ------------------------------------------------------------------ */

.faq {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

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

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-m);
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.4;
  transition: color 0.2s var(--ease);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--emerald-700);
}

.faq__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  color: var(--emerald-700);
  transition: transform 0.25s var(--ease);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 0 1.5rem;
  max-width: 44rem;
}

.faq__answer p {
  color: var(--muted);
  font-size: var(--step-0);
}

/* 6.9 Chamada final -------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--forest-900);
  color: var(--on-dark);
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 120% at 85% 110%,
    rgba(21, 173, 124, 0.2),
    transparent 65%
  );
  z-index: -1;
}

.cta__inner {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: var(--on-dark-muted);
  font-size: var(--step-1);
  max-width: 34rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 520px) and (max-width: 899px) {
  .cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.cta__email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: var(--step-1);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.35rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  align-self: flex-start;
  word-break: break-word;
}

.cta__email:hover {
  color: var(--emerald-400);
  border-bottom-color: var(--emerald-400);
}

.cta__email svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* 6.10 Página interior — cabeçalho ----------------------------------------- */

.page-hero {
  position: relative;
  background: var(--forest-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    65% 100% at 80% 0%,
    rgba(21, 173, 124, 0.18),
    transparent 68%
  );
  z-index: -1;
}

.page-hero__inner {
  padding-block: clamp(2.75rem, 2.2rem + 4vw, 5.5rem);
  max-width: 48rem;
}

.page-hero h1 {
  color: #fff;
  font-size: var(--step-4);
  margin-bottom: var(--space-s);
}

.page-hero p {
  color: var(--on-dark-muted);
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 40rem;
}

/* Migalhas de pão */
.breadcrumb {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: var(--step--1);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--emerald-700);
  text-decoration: underline;
}

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

.form-shell {
  padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}

.form-grid {
  display: grid;
  gap: var(--space-s);
}

@media (min-width: 600px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}

.field__hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--step-0);
  line-height: 1.5;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.form-legend {
  margin: 0 0 var(--space-m);
  font-size: var(--step--1);
  color: var(--muted);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2356655c' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--sage-400);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(14, 146, 104, 0.16);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #b3261e;
}

.field__error {
  font-size: 0.8rem;
  color: #b3261e;
  font-weight: 500;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

/* Campo-armadilha para robôs — invisível mas não focável */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-note {
  margin-top: var(--space-s);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.form-status {
  margin-top: var(--space-s);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-s);
  font-size: var(--step--1);
  line-height: 1.6;
  border: 1px solid;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: #edf7f1;
  border-color: var(--emerald-600);
  color: #0a5a3d;
}

.form-status--error {
  background: #fdf1f0;
  border-color: #d0a29e;
  color: #8c1d18;
}

.form-status a {
  color: inherit;
}

/* Cartões de contacto */
.contact-detail {
  display: flex;
  gap: 0.9rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.contact-detail:last-child {
  border-bottom: 0;
}

.contact-detail__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  color: var(--emerald-700);
}

.contact-detail h3 {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-detail p,
.contact-detail a {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0;
}

.contact-detail a {
  color: var(--emerald-700);
  font-weight: 500;
  word-break: break-word;
}

/* 6.12 Conteúdo legal / prosa ---------------------------------------------- */

.prose {
  max-width: var(--container-narrow);
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--space-l);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--step-1);
  font-family: var(--font-sans);
  margin-top: var(--space-m);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose ul li::marker {
  color: var(--emerald-600);
}

.prose__meta {
  font-size: var(--step--1);
  color: var(--muted);
  padding-bottom: var(--space-m);
  margin-bottom: var(--space-l);
  border-bottom: 1px solid var(--line);
}

/* 6.13 Página 404 ---------------------------------------------------------- */

.error-page {
  display: flex;
  align-items: center;
  min-height: 62vh;
  padding-block: var(--space-2xl);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sage-300);
  display: block;
  margin-bottom: var(--space-s);
}

.error-page .btn-row {
  justify-content: center;
}

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

.site-footer {
  background: var(--forest-950);
  color: var(--on-dark-muted);
  padding-block: clamp(3rem, 2.5rem + 2.5vw, 4.5rem) var(--space-l);
  font-size: var(--step--1);
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  gap: var(--space-l);
  padding-bottom: var(--space-l);
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

.footer__about {
  max-width: 30rem;
}

.footer__about p {
  margin-top: var(--space-s);
  line-height: 1.7;
}

.footer__heading {
  margin: 0 0 var(--space-s);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-400);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer__list li {
  margin: 0;
}

/* Alvos táteis confortáveis nas ligações do rodapé */
.footer__list a,
.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__legal li {
  margin: 0;
}

/* 7. UTILITÁRIOS ----------------------------------------------------------- */

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

.text-center {
  text-align: center;
}

.mt-m {
  margin-top: var(--space-m);
}

.mt-l {
  margin-top: var(--space-l);
}

.no-scroll {
  overflow: hidden;
}

/* Aparecimento suave ao entrar no ecrã (só com JS ativo) */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 8. MOVIMENTO REDUZIDO E IMPRESSÃO ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card--hover:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .cta,
  .hero__visual,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero,
  .page-hero,
  .section--dark {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .page-hero h1,
  .section--dark h2,
  .section--dark h3 {
    color: #000 !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}
