/*
Theme Name: IOMI
Theme URI: https://iomi.pt
Author: IOMI
Description: Presença institucional da IOMI — Infraestrutura operacional do mercado imobiliário. Conteúdo gerado no servidor, identidade do logotipo oficial, verificador de IORI e ligação à app.
Version: 2.0.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: iomi
*/

/* ---------- Identidade (cores do logotipo oficial) ---------- */
:root {
  --navy: #012B57;
  --navy-deep: #001A36;
  --navy-soft: #0B3A6B;
  --gold: #C49841;
  --gold-deep: #7E5D1D;
  --gold-tint: #F6EEDD;
  --paper: #F2F4F7;
  --surface: #FFFFFF;
  --ink: #11223A;
  --ink-soft: #4A5870;
  --ink-faint: #5F6C80;
  --line: #D9DFE8;
  --line-dark: rgba(255, 255, 255, 0.16);
  --ok: #2E6A4E;
  --ok-tint: #E3F0E8;
  --danger: #A33A2B;
  --danger-tint: #F8E6E2;

  --display: "Montserrat", "Schibsted Grotesk", system-ui, sans-serif;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 6px;
  --radius-lg: 12px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--navy-soft); }
h1, h2, h3 { margin: 0; font-family: var(--display); color: inherit; letter-spacing: -0.015em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.9rem); line-height: 1.04; }
h2 { font-weight: 700; font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.5rem); line-height: 1.12; }
h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }
p + p { margin-top: 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 3px; }
.section-navy :focus-visible, .hero :focus-visible, .closing :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 40rem; }
.skip-link { position: absolute; left: -999px; top: 0.75rem; z-index: 100; padding: 0.6rem 1rem; background: var(--surface); border-radius: var(--radius); }
.skip-link:focus { left: 0.75rem; }
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 40em; }

/* O motivo do logotipo: duas colunas douradas */
.twin-rule { display: inline-flex; gap: 5px; }
.twin-rule i { display: block; width: 6px; height: 2.25rem; background: var(--gold); }
.twin-rule-vertical { align-self: stretch; }
.twin-rule-vertical i { height: auto; }

/* ---------- Botões ---------- */
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.35rem;
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #D3A956; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-small { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: 0.9375rem; }
.text-link { display: inline-block; font-weight: 600; color: var(--navy); }
.text-button { padding: 0; border: 0; background: none; font: inherit; color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); flex: none; }
.brand:hover { color: var(--navy); }
.brand-mark { height: 2.6rem; width: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; }
.brand-text small { margin-top: 0.2rem; font-size: 0.72rem; color: var(--ink-soft); max-width: 15rem; line-height: 1.25; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav a { padding: 0.5rem 0.6rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.nav a:hover { color: var(--navy); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav-mobile-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.header-actions .btn { white-space: nowrap; }
.login-link { font-weight: 600; text-decoration: none; padding: 0.5rem 0.6rem; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 1320px) {
  .brand-text small { display: none; }
}
/* Barra de administração do WordPress (quando a sessão está iniciada) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 960px) { .admin-bar .nav { top: calc(4.5rem + 32px); } }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .nav { top: calc(4.5rem + 46px); } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .nav {
    position: fixed; inset: 4.5rem 0 0 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; background: var(--surface); overflow-y: auto;
  }
  body.menu-open .nav { display: flex; }
  .nav a { padding: 1rem 0.25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.125rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 1rem; }
  .nav-mobile-actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
  .nav-mobile-actions a:first-child { border-bottom: 0; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
  .nav-mobile-actions .btn { color: var(--navy-deep); border-bottom: 0; font-size: 1rem; }
}
@media (max-width: 420px) {
  .menu-label { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(11, 58, 107, 0.9), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; padding-block: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
}
.hero-kicker { color: var(--gold); font-weight: 600; margin-bottom: 1.1rem; }
.hero h1 { max-width: 12ch; }
.hero-lede { margin-top: 1.5rem; font-size: 1.125rem; color: rgba(255, 255, 255, 0.82); max-width: 36em; }
.hero-principle { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.8); font-size: 0.975rem; max-width: 36em; }
.hero-principle .icon { color: var(--gold); width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; }
.hero-principle strong { color: #fff; }
.hero .twin-rule-vertical { display: none; }
@media (min-width: 1000px) { .hero .twin-rule-vertical { display: inline-flex; } }

.hero-visual { position: relative; padding-bottom: 7rem; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%; border-radius: var(--radius-lg); }
@media (min-width: 1000px) { .hero-visual { padding-bottom: 5rem; } .hero-visual img { aspect-ratio: 5 / 5.2; } }

/* Registo do imóvel (o momento central da página) */
.record {
  position: absolute; left: clamp(-1rem, -2vw, 0rem); right: 1rem; bottom: 0;
  max-width: 24rem; padding: 1.35rem 1.4rem 1.2rem;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); border-top: 4px solid var(--gold);
  box-shadow: 0 30px 60px -30px rgba(0, 10, 25, 0.8);
}
@media (min-width: 1000px) { .record { left: -2.5rem; } }
@media (max-width: 999px) {
  .hero-visual { padding-bottom: 0; }
  .record { position: relative; left: auto; right: auto; bottom: auto; max-width: none; margin: -3.5rem 0.75rem 0; }
}
.record-kind { font-size: 0.8125rem; font-weight: 600; color: var(--gold-deep); }
.record-code { font-family: var(--mono); font-weight: 500; font-size: 1.3rem; letter-spacing: 0.02em; margin-top: 0.15rem; color: var(--navy); }
.record-copy { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 0.25rem; }
.record-events { list-style: none; margin: 1rem 0 0.9rem; padding: 0 0 0 0.3rem; }
.record-events li { position: relative; padding: 0 0 0.75rem 1.2rem; border-left: 2px solid var(--line); }
.record-events li:last-child { border-left-color: transparent; padding-bottom: 0.1rem; }
.record-events li::before { content: ""; position: absolute; left: -6px; top: 0.35em; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--navy); }
.record-events li.is-latest::before { background: var(--gold); border-color: var(--gold); }
.record-events strong { display: block; font-size: 0.9rem; line-height: 1.3; }
.record-events span { display: block; font-size: 0.78rem; color: var(--ink-faint); }
.record-link { font-size: 0.9rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .js .record-events li { opacity: 0; transform: translateY(6px); animation: record-in 0.45s ease-out forwards; }
  .js .record-events li:nth-child(1) { animation-delay: 0.35s; }
  .js .record-events li:nth-child(2) { animation-delay: 0.75s; }
  .js .record-events li:nth-child(3) { animation-delay: 1.15s; }
  .js .record-events li:nth-child(4) { animation-delay: 1.75s; }
  .js .record-events li.is-latest::before { animation: pulse 1.6s ease-out 2.2s 2; }
}
@keyframes record-in { to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(196, 152, 65, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(196, 152, 65, 0); } }

/* ---------- Faixa de garantias ---------- */
.assurance { border-bottom: 1px solid var(--line); }
.assurance-grid { display: grid; gap: 0; }
@media (min-width: 820px) { .assurance-grid { grid-template-columns: repeat(3, 1fr); } }
.assurance-grid > div { display: flex; gap: 0.9rem; padding: 1.6rem 0; }
@media (min-width: 820px) { .assurance-grid > div { padding: 2rem 1.75rem; border-left: 1px solid var(--line); } .assurance-grid > div:first-child { border-left: 0; padding-left: 0; } }
@media (max-width: 819px) { .assurance-grid > div + div { border-top: 1px solid var(--line); } }
.assurance .icon { color: var(--gold-deep); width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; }
.assurance p { color: var(--ink-soft); font-size: 0.95rem; }
.assurance strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.2rem; }

/* ---------- Secções ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .lede, .section-navy p { color: rgba(255, 255, 255, 0.8); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head .lede { margin-top: 1rem; }
.center-action { margin-top: 2.5rem; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.split-lead p { margin-top: 1.1rem; color: var(--ink-soft); }
.section-navy .split-lead p { color: rgba(255, 255, 255, 0.8); }
.split-lead .btn { margin-top: 1.75rem; }
@media (min-width: 900px) { .sticky { position: sticky; top: 7rem; } }

/* Problemas */
.problems { margin: 0; display: grid; gap: 0; }
.problems > div { padding: 1.5rem 0 1.5rem 1.4rem; border-left: 3px solid var(--line); }
.problems > div + div { margin-top: 0.5rem; }
.problems > div:hover { border-left-color: var(--gold); }
.problems dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.problems dd { margin: 0.4rem 0 0; color: var(--ink-soft); }

/* Dois percursos */
.paths { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius-lg); }
.path-owner { background: var(--paper); }
.path-operator { background: var(--navy); color: #fff; }
.path-audience { font-weight: 600; color: var(--gold-deep); }
.path-operator .path-audience { color: var(--gold); }
.path h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); margin-top: 0.6rem; max-width: 22ch; }
.path .check-list { margin: 1.5rem 0 1.75rem; }
.path-operator .text-link { color: #fff; }

.check-list { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: 0.65rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list .icon { color: var(--gold-deep); margin-top: 0.15rem; }
.path-operator .check-list .icon, .section-navy .check-list .icon { color: var(--gold); }

/* Ciclo (sequência real) */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
@media (min-width: 900px) { .cycle { grid-template-columns: repeat(5, 1fr); } }
.cycle li { position: relative; padding: 1.5rem 1.25rem 1.5rem 0; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .cycle li { padding: 1.75rem 1.25rem 0 0; border-top: 0; } .cycle li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.2); } .cycle li:first-child::before { background: var(--gold); } }
.cycle-n { display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: 0.9rem; }
.cycle h3 { font-size: 1.15rem; }
.cycle p { margin-top: 0.4rem; font-size: 0.95rem; }

/* IORI */
.identity { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .identity { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 6vw, 5.5rem); align-items: start; } }
.identity-panel { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); border-top: 4px solid var(--gold); }
@media (min-width: 960px) { .identity-panel { position: sticky; top: 7rem; } }
.identity-label { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.identity-code { margin-top: 0.5rem; font-family: var(--display); font-weight: 700; font-size: 1rem; color: rgba(255, 255, 255, 0.75); }
.identity-code span { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); letter-spacing: 0.02em; color: #fff; margin-top: 0.2rem; }
.identity-lines { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.identity-lines li { padding: 0.9rem 0 0.9rem 1.1rem; border-left: 2px solid var(--gold); }
.identity-lines li + li { margin-top: 0.5rem; }
.identity-lines strong { display: block; }
.identity-lines span { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.identity-copy > p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 40em; }
.mini-grid { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
.mini-grid > div { padding-top: 0.85rem; border-top: 2px solid var(--navy); }
.mini-grid dt { font-weight: 700; }
.mini-grid dd { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.identity-verify { margin: 2rem 0 1.5rem; padding: 1.5rem; background: var(--paper); border-radius: var(--radius-lg); }
.identity-verify h3 { margin-bottom: 1rem; }

/* Verificador de IORI */
.iori-check label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.iori-check-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.iori-input { flex: 1 1 15rem; font-family: var(--mono); font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.iori-input::placeholder { text-transform: none; letter-spacing: 0.02em; }
.iori-result:empty { display: none; }
.iori-result { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); border-left: 4px solid var(--line); background: var(--surface); font-size: 0.95rem; }
.iori-result .btn { margin-top: 0.85rem; }
.iori-result[data-state="valid"] { border-left-color: var(--ok); background: var(--ok-tint); }
.iori-result[data-state="check"], .iori-result[data-state="chars"], .iori-result[data-state="length"] { border-left-color: var(--danger); background: var(--danger-tint); }
.iori-result[data-state="country"], .iori-result[data-state="empty"] { border-left-color: var(--gold); background: var(--gold-tint); }

.verify-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .verify-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.verify-box { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); border-top: 4px solid var(--gold); }
.anatomy h2 { font-size: 1.5rem; }
.anatomy-code { margin: 1.25rem 0 1.5rem; font-family: var(--mono); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.3rem); letter-spacing: 0.03em; color: var(--ink-faint); }
.anatomy-code .seg { color: var(--navy); border-bottom: 3px solid var(--line); padding-bottom: 0.1em; }
.anatomy-code .seg-country { border-bottom-color: var(--navy); }
.anatomy-code .seg-check { color: var(--gold-deep); border-bottom-color: var(--gold); }
.anatomy-parts { margin: 0; display: grid; gap: 1rem; }
.anatomy-parts dt { font-family: var(--mono); font-weight: 500; color: var(--navy); }
.anatomy-parts dd { margin: 0.2rem 0 0; color: var(--ink-soft); }

/* Perguntas frequentes */
.faq-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; } }
.faq-layout .lede { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1; color: var(--gold-deep); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); }

/* Fecho */
.closing { background: var(--navy); color: #fff; padding-block: clamp(3.5rem, 6vw, 5rem); border-top: 4px solid var(--gold); }
.closing-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.closing h2 { max-width: 20ch; }
.closing .button-row { margin-top: 0; }

/* ---------- Páginas internas ---------- */
.page-intro { background: var(--navy-deep); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.page-intro::before { content: ""; position: absolute; top: 0; bottom: 0; right: clamp(1.5rem, 8vw, 9rem); width: 17px; background: linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 11px, var(--gold) 11px 17px); opacity: 0.9; }
.page-intro.is-compact { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.page-intro-inner { position: relative; max-width: var(--container); }
.page-intro h1 { max-width: 18ch; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.page-intro .lede { margin-top: 1.25rem; color: rgba(255, 255, 255, 0.82); }
.page-context { color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
@media (max-width: 700px) { .page-intro::before { right: 1rem; width: 11px; background: linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 7px, var(--gold) 7px 11px); opacity: 0.6; } }

.statement { display: flex; gap: 1.5rem; align-items: flex-start; }
.statement figure { max-width: 54rem; }
.statement .twin-rule i { height: 5rem; }
.statement figure { margin: 0; }
.statement blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.25; color: var(--navy); }
.statement figcaption { margin-top: 1rem; color: var(--ink-soft); font-weight: 600; }

.process { list-style: none; margin: 0; padding: 0; }
.process li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0.5rem 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.process li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .process li { grid-template-columns: 4.5rem minmax(0, 1fr) 15rem; align-items: baseline; } }
.process-n { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--gold-deep); }
.process h3 { font-size: 1.25rem; }
.process p { margin-top: 0.35rem; color: var(--ink-soft); max-width: 40em; }
.process-owner { grid-column: 2; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
@media (min-width: 820px) { .process-owner { grid-column: 3; margin-top: 0 !important; } }

.rules { margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .rules { grid-template-columns: repeat(3, 1fr); gap: 0; } .rules > div { padding: 0 2rem; border-left: 17px solid transparent; border-image: linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 11px, var(--gold) 11px 17px) 1; } }
.rules dt { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.rules dd { margin: 0.5rem 0 0; color: rgba(255, 255, 255, 0.8); }
@media (max-width: 859px) { .rules > div { padding-left: 1.25rem; border-left: 3px solid var(--gold); } }

.features { margin: 0; display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features-four { grid-template-columns: repeat(4, 1fr); } }
.features > div { padding-top: 1rem; border-top: 3px solid var(--navy); }
.features dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.features dd { margin: 0.4rem 0 0; color: var(--ink-soft); }

.principles { margin: 0; display: grid; gap: 2rem 2.5rem; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles > div { padding-top: 1rem; border-top: 3px solid var(--gold); }
.principles dt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.principles dd { margin: 0.45rem 0 0; color: var(--ink-soft); }

.roles { margin: 1.5rem 0 0; }
.split .roles { margin-top: 0; }
.roles > div { display: grid; gap: 0.25rem 2rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.roles > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .roles > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.roles dt { font-weight: 700; color: var(--navy); }
.roles dd { margin: 0; color: var(--ink-soft); }

.visual-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .visual-split { grid-template-columns: 1.05fr 1fr; gap: 4.5rem; } }
.visual-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.visual-split .lede { margin-top: 0.75rem; }
.visual-split .btn { margin-top: 1.5rem; }

.note { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-soft); }
.note .icon { color: var(--gold-deep); margin-top: 0.15rem; }
.note strong { color: var(--ink); }

.requirements { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.requirements li { display: flex; gap: 1.1rem; padding: 1.2rem 1.25rem; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius); border-left: 3px solid var(--gold); }
.req-n { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--gold); }
.requirements strong { display: block; color: #fff; }
.requirements div span { display: block; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

.callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--paper); border-radius: var(--radius-lg); border-left: 5px solid var(--gold); }
.callout h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); max-width: 24ch; }
.callout p { margin-top: 0.6rem; color: var(--ink-soft); }
.callout .button-row { margin-top: 0; }

/* Entrar */
.access { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .access { grid-template-columns: repeat(3, 1fr); } }
.access-item { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; background: var(--surface); border-radius: var(--radius-lg); border-top: 4px solid var(--navy); }
.access-item:first-child { border-top-color: var(--gold); }
.access-item h2 { font-size: 1.4rem; }
.access-item p { color: var(--ink-soft); flex: 1; }
.access-item .text-link { font-size: 0.95rem; }
.micro { font-size: 0.875rem; color: var(--ink-faint); }

/* Formulários */
.input, .field-grid input, .field-grid select, .field-grid textarea, .field-standalone textarea, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid #B8C2D0; border-radius: var(--radius);
}
textarea { min-height: 7rem; resize: vertical; }
.input:focus, .field-grid :is(input, select, textarea):focus, .field-standalone textarea:focus, .contact-form :is(select, textarea):focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1, 43, 87, 0.15); }
.panel { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }

.flow-section { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); background: var(--paper); }
.flow-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .flow-layout { grid-template-columns: 19rem minmax(0, 1fr); gap: 3.5rem; align-items: start; } .flow-aside { position: sticky; top: 6.5rem; } }
.flow-aside h2 { font-size: 1.4rem; }
.flow-aside > p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.flow-progress { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.35rem; }
.flow-progress li { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem; border-radius: var(--radius); color: var(--ink-soft); font-weight: 500; }
.flow-progress li span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid #B8C2D0; font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); background: var(--surface); }
.flow-progress li.active { background: var(--surface); color: var(--navy); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.flow-progress li.active span { border-color: var(--navy); background: var(--navy); color: #fff; }
.flow-progress li.done span { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }
@media (max-width: 959px) { .flow-progress { grid-auto-flow: column; overflow-x: auto; } .flow-progress li { white-space: nowrap; } }

.form-shell { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.75rem); border-top: 4px solid var(--gold); }
.form-step + .form-step { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.js .form-step + .form-step { margin-top: 0; padding-top: 0; border-top: 0; }
.step-count { font-weight: 600; color: var(--gold-deep); font-size: 0.9rem; }
.form-step h2 { font-size: 1.6rem; margin: 0.35rem 0 1.5rem; }
.field-grid { display: grid; gap: 1.15rem 1.25rem; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } .field-grid .full { grid-column: 1 / -1; } }
.field-grid label, .field-standalone, .contact-form label { display: grid; gap: 0.4rem; align-content: start; font-weight: 600; font-size: 0.95rem; }
.field-standalone { margin-top: 1.25rem; }
.choice-grid { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice-grid legend { font-weight: 600; margin-bottom: 0.75rem; padding: 0; }
.choice-grid label, .consent { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.choice-grid label:has(input:checked) { border-color: var(--navy); background: #EEF2F8; }
.choice-grid input, .consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--navy); flex: none; }
.review-box h3 { font-size: 1.15rem; }
.review-box > p { margin: 0.5rem 0 1.25rem; color: var(--ink-soft); }
.consent + .consent { margin-top: 0.6rem; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
html:not(.js) .form-actions { display: none; }
.success-panel { text-align: left; }
.success-mark { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ok-tint); color: var(--ok); margin-bottom: 1rem; }
.success-mark .icon { width: 1.6rem; height: 1.6rem; }
.success-panel h2 { font-size: 1.75rem; }
.success-panel h2:focus { outline: none; }
.success-panel > p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 38em; }
.reference-row strong { font-family: var(--mono); font-weight: 500; color: var(--navy); }
.success-panel .btn { margin: 1.5rem 1rem 0 0; }
.success-panel .text-button { margin-top: 1.5rem; }

.track-form { display: grid; gap: 0.9rem; }
.track-form label { font-weight: 600; }
.track-form .btn { justify-self: start; }
.support-line { margin-top: 1.25rem; color: var(--ink-soft); }

.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 940px) { .contact-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; } }
.contact-form { display: grid; gap: 1.1rem; scroll-margin-top: 6rem; }
.contact-form .btn { justify-self: start; }
.direct-mail { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.75rem; color: var(--ink-soft); }
.direct-mail .icon { color: var(--gold-deep); }
.fine { font-size: 0.875rem; color: var(--ink-soft); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 0.9rem 1rem; border-radius: var(--radius); border-left: 4px solid; font-size: 0.95rem; }
.notice-ok { background: var(--ok-tint); border-color: var(--ok); }
.notice-error { background: var(--danger-tint); border-color: var(--danger); }

.legal { max-width: 46rem; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); }
.legal-date { margin-top: 2.5rem !important; font-size: 0.9rem; color: var(--ink-faint) !important; }

.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.post-item + .post-item { margin-top: 2.5rem; }
.post-date { font-size: 0.9rem; color: var(--ink-faint); margin: 0.3rem 0 0.75rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 3rem; } }
.footer-brand img { width: 8.5rem; height: auto; }
.footer-brand p { margin-top: 1.25rem; max-width: 22rem; font-size: 0.95rem; }
.footer-col { display: grid; align-content: start; gap: 0.6rem; }
.footer-col h2 { font-family: var(--font); font-size: 0.95rem; font-weight: 700; color: #fff; letter-spacing: 0; margin-bottom: 0.35rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Grelhas: os filhos podem encolher (evita páginas mais largas do que o ecrã no telemóvel) */
.hero-grid > *, .split > *, .identity > *, .verify-layout > *, .contact-layout > *, .faq-layout > *,
.flow-layout > *, .visual-split > *, .paths > *, .access > *, .footer-grid > *, .field-grid > * { min-width: 0; }
