/* ==========================================================================
   R&B - Sistema visual
   Ordem: tokens · base · layout · componentes · secções · formulários · fluxos · utilitários
   ========================================================================== */

:root {
  /* Cor */
  --navy-950: #0a2560;
  --navy-900: #0f3386;
  --navy-800: #1540a0;
  --navy-700: #1d4fbf;
  --navy-600: #2f63d6;
  --ink: #0a1730;
  --ink-2: #26344d;
  --muted: #56627a;
  --muted-2: #7c879a;
  --line: #e1e7f0;
  --line-strong: #cbd5e3;
  --surface: #f3f6fb;
  --surface-2: #e9eff8;
  --white: #fff;
  --accent: #f7a58a;
  --accent-deep: #e07a5c;
  --accent-soft: #fde3d9;
  --on-dark: #fff;
  --on-dark-muted: rgb(255 255 255 / 0.76);
  --on-dark-line: rgb(255 255 255 / 0.18);
  --error: #b42318;
  --error-soft: rgb(180 35 24 / 0.12);
  --focus: #1d4fbf;

  /* Tipografia */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --fs-hero: clamp(2.6rem, 1.4rem + 4.4vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.5vw, 3.4rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  --fs-lead: clamp(1.06rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Espaço / layout */
  --gutter: clamp(20px, 5vw, 56px);
  --container: 1320px;
  --section-y: clamp(88px, 11vw, 168px);
  --header-h: 80px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 380ms;
  --t-slow: 900ms;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
strong { font-weight: 500; color: var(--ink); }
em { font-style: italic; }

::selection { background: var(--navy-900); color: var(--white); }

/* `hidden` prevalece sobre qualquer display definido por classe
   (exceção: botão "Anterior", que mantém o espaço ocupado) */
[hidden]:not([data-prev]) { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  transform: translateY(-160%);
  transition: transform var(--t-med) var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--on-dark { color: var(--accent); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
  font-variation-settings: 'opsz' 60;
}
.section-title em { color: var(--muted); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.section-head--split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.section-head--split > :first-child { grid-column: 1 / span 7; }
.section-head--split > .section-intro { grid-column: 9 / -1; }

.section-intro {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

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

.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(var(--mx), var(--my), 0);
  transition:
    background-color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    color var(--t-med) var(--ease),
    transform 500ms var(--ease),
    box-shadow var(--t-med) var(--ease);
}
.btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(0.98); }

.btn--primary { background: var(--navy-900); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); }

.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: #e8edf5; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--ghost-light { border-color: rgb(255 255 255 / 0.3); color: var(--white); }
.btn--ghost-light:hover { border-color: rgb(255 255 255 / 0.75); background: rgb(255 255 255 / 0.06); }

.btn--text { height: 44px; padding: 0 10px 0 4px; color: var(--muted); background: none; }
.btn--text:hover { color: var(--ink); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-arrow {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--t-med) var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:hover .btn-arrow--back { transform: translateX(-3px); }

.btn[aria-busy='true'] { pointer-events: none; }
.btn[aria-busy='true']::before {
  content: '';
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--outline { border: 1px solid var(--line-strong); }
.icon-btn--outline svg { width: 16px; height: 16px; }
.icon-btn--outline:hover { border-color: var(--ink); background: var(--white); }

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

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition:
    height 500ms var(--ease),
    background-color 500ms var(--ease),
    border-color 500ms var(--ease),
    color 500ms var(--ease);
}
.site-header.is-compact,
.site-header.is-scrolled,
.site-header--solid { --header-h: 64px; }
.site-header.is-scrolled,
.site-header--solid {
  color: var(--ink);
  background: rgb(255 255 255 / 0.84);
  border-bottom-color: rgb(10 23 48 / 0.07);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header--solid { position: sticky; top: 0; }
/* Sobre o hero, depois de começar o scroll: vidro azul discreto */
.site-header.is-compact:not(.is-scrolled):not(.site-header--solid) {
  background: rgb(11 42 114 / 0.55);
  border-bottom-color: rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: grid; flex-shrink: 0; }
.brand-logo {
  grid-area: 1 / 1;
  height: 30px;
  width: auto;
  transition: opacity 500ms var(--ease), height 500ms var(--ease);
}
.brand-logo--dark { opacity: 0; }
.is-scrolled .brand-logo--light,
.site-header--solid .brand-logo--light { opacity: 0; }
.is-scrolled .brand-logo--dark,
.site-header--solid .brand-logo--dark { opacity: 1; }
.is-compact .brand-logo,
.is-scrolled .brand-logo,
.site-header--solid .brand-logo { height: 26px; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  opacity: 0.74;
  transition: opacity var(--t-fast) var(--ease);
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease);
}
.nav-list a:hover,
.nav-list a[aria-current='true'] { opacity: 1; }
.nav-list a:hover::after,
.nav-list a[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: clamp(16px, 2.4vw, 36px); }

/* Botões da navbar: "Tenho um imóvel" (contorno) e "Tornar-me associado" (sólido) */
.header-cta,
.header-ghost {
  height: 42px;
  padding: 0 20px;
  gap: 8px;
  font-size: 0.9063rem;
}
.header-cta {
  padding-right: 16px;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 1px 2px rgb(10 37 96 / 0.14), 0 8px 20px -8px rgb(15 51 134 / 0.55);
}
.header-cta:hover { background: var(--navy-700); }
.header-cta .btn-arrow { width: 14px; height: 14px; }
.header-ghost { border-color: var(--line-strong); color: var(--navy-900); }
.header-ghost:hover { border-color: var(--navy-900); background: var(--surface); }

.site-header:not(.is-scrolled):not(.site-header--solid) .header-cta {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 8px 24px -10px rgb(0 0 0 / 0.45);
}
.site-header:not(.is-scrolled):not(.site-header--solid) .header-cta:hover { background: #e9effb; }
.site-header:not(.is-scrolled):not(.site-header--solid) .header-ghost { border-color: rgb(255 255 255 / 0.4); color: var(--white); }
.site-header:not(.is-scrolled):not(.site-header--solid) .header-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / 0.08); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
  place-items: center;
}
.menu-toggle-lines,
.menu-toggle-lines::before {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.menu-toggle-lines { position: relative; transform: translateY(-3.5px); }
.menu-toggle-lines::before { content: ''; position: absolute; top: 7px; width: 14px; right: 0; }

/* ---------- Menu mobile ---------- */

.menu-sheet {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
}
.menu-sheet::backdrop { background: rgb(6 18 42 / 0.3); }
.menu-sheet[open] { animation: sheet-in 500ms var(--ease); }
.menu-sheet.is-closing { animation: sheet-out 300ms var(--ease-in-out) forwards; }
.menu-sheet-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
}
.menu-sheet-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: -10px;
}
.menu-sheet-top .brand-logo { height: 26px; }
.menu-sheet-list { margin-top: 24px; }
.menu-sheet-list li { border-bottom: 1px solid var(--line); }
.menu-sheet-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.menu-sheet-list a span {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.menu-sheet[open] .menu-sheet-list li { animation: rise 600ms var(--ease) both; }
.menu-sheet[open] .menu-sheet-list li:nth-child(2) { animation-delay: 40ms; }
.menu-sheet[open] .menu-sheet-list li:nth-child(3) { animation-delay: 80ms; }
.menu-sheet[open] .menu-sheet-list li:nth-child(4) { animation-delay: 120ms; }
.menu-sheet[open] .menu-sheet-list li:nth-child(5) { animation-delay: 160ms; }
.menu-sheet-actions { margin-top: auto; padding-top: 40px; display: grid; gap: 10px; }
.menu-sheet-mail { margin-top: 14px; text-align: center; font-size: var(--fs-small); color: var(--muted); }

@keyframes sheet-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

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

.hero {
  --scene-w: max(100vw, 1000px);
  --scene-h: calc(var(--scene-w) * 0.5625);
  --sy: 0;
  --mx: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-align: center;
  background: linear-gradient(180deg, #0b2a72 0%, var(--navy-900) 38%, #1f4cb4 100%);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(48px, 12vh, 150px));
  transform: translate3d(0, calc(var(--sy) * -0.22px), 0);
  opacity: calc(1 - var(--sy) / 650);
  will-change: transform, opacity;
}
.eyebrow--plain::before { display: none; }
.hero-title {
  max-width: 15ch;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.024em;
  font-variation-settings: 'opsz' 72;
  text-wrap: balance;
}
.hero-title em { color: var(--accent); }
.hero-lead {
  max-width: 50ch;
  margin-top: 26px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--on-dark-muted);
  text-wrap: pretty;
}

/* Cena: camadas de papel recortado com parallax (scroll + rato) */
.scene {
  --shift: -50%;
  position: relative;
  z-index: 1;
  width: var(--scene-w);
  height: var(--scene-h);
  margin-top: calc(var(--scene-h) * -0.3);
  margin-bottom: -2px;
  left: 50%;
  transform: translateX(var(--shift));
  pointer-events: none;
}
.scene-layer {
  --kx: 0;
  --ky: 0;
  position: absolute;
  inset: 0;
  transform: translate3d(calc(var(--mx) * var(--kx) * 1px), calc(var(--sy) * var(--ky) * 1px), 0);
  will-change: transform;
}
.scene-svg { width: 100%; height: 100%; transform: scaleX(1.04); } /* margem para o parallax horizontal */
.scene-layer--sky { --ky: 0.5; --kx: -4; }
.scene-layer--sun { --ky: 0.44; --kx: -6; }
.scene-layer--far { --ky: 0.3; --kx: -10; }
.scene-layer--mid { --ky: 0.18; --kx: -16; filter: drop-shadow(0 -6px 18px rgb(8 25 80 / 0.25)); }
.scene-layer--near-back { --ky: 0.08; --kx: -22; filter: drop-shadow(0 -8px 22px rgb(8 25 80 / 0.3)); }
.scene-layer--near { --ky: 0; --kx: -28; filter: drop-shadow(0 -10px 24px rgb(8 25 80 / 0.28)); }

/* O sol é também um botão */
.scene-sun {
  position: absolute;
  left: 58.125%;
  top: 52.2%;
  width: clamp(104px, 9.6%, 168px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd9c8, var(--accent) 55%, #ef8f70);
  color: var(--navy-900);
  box-shadow: 0 0 0 10px rgb(247 165 138 / 0.18), 0 0 80px 20px rgb(247 165 138 / 0.45);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease);
}
/* Irradiação subtil: dois anéis que se expandem e desvanecem, desfasados */
.scene-sun::before,
.scene-sun::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgb(255 214 196 / 0.75);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .scene-sun::before { animation: raio 5s var(--ease) 2.8s infinite; }
  .scene-sun::after { animation: raio 5s var(--ease) 5.3s infinite; }
}
@keyframes raio {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes respirar {
  0%, 100% { box-shadow: 0 0 0 10px rgb(247 165 138 / 0.18), 0 0 80px 20px rgb(247 165 138 / 0.45); }
  50% { box-shadow: 0 0 0 14px rgb(247 165 138 / 0.24), 0 0 110px 34px rgb(247 165 138 / 0.55); }
}
.scene-sun:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 14px rgb(247 165 138 / 0.22), 0 0 100px 30px rgb(247 165 138 / 0.55); }
.scene-sun:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; border-radius: 50%; }
.scene-sun-text {
  font-size: clamp(0.66rem, 0.55rem + 0.35vw, 0.86rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-10deg);
  transition: transform 600ms var(--ease);
}
.scene-sun:hover .scene-sun-text { transform: rotate(-4deg); }

/* Entrada: as camadas sobem por ordem, o sol nasce por último */
.js .scene-layer > * { animation: camada 1.6s var(--ease) both; }
.js .scene-layer--sky > * { animation-name: fade; animation-duration: 2s; }
.js .scene-layer--far > * { animation-delay: 0.15s; }
.js .scene-layer--mid > * { animation-delay: 0.3s; }
.js .scene-layer--near-back > * { animation-delay: 0.45s; }
.js .scene-layer--near > * { animation-delay: 0.6s; }
.js .scene-layer--sun > * { animation: nascer 2s var(--ease) 0.7s both, respirar 5s var(--ease-in-out) 2.8s infinite; }
@keyframes camada { from { opacity: 0; translate: 0 40px; } }
@keyframes nascer { from { opacity: 0; translate: 0 70%; } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Bifurcação ---------- */

/* A secção a seguir ao hero começa no branco do casario */
.hero + .fork { padding-top: clamp(16px, 3vw, 40px); }

.fork { padding-block: clamp(72px, 9vw, 128px) clamp(24px, 4vw, 48px); }
.fork-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.fork-heading span { color: var(--muted-2); }

.fork-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fork-path {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(36px, 4.5vw, 64px) clamp(24px, 3.5vw, 56px);
  transition: background-color 600ms var(--ease);
}
.fork-path:first-child { padding-left: 0; }
.fork-path + .fork-path { border-left: 1px solid var(--line); }
.fork-path::before {
  content: '';
  position: absolute;
  inset: -1px 0;
  background: var(--surface);
  opacity: 0;
  z-index: -1;
  transition: opacity 600ms var(--ease);
}
.fork-path:first-child::before { left: calc(var(--gutter) * -1); }
.fork-path:last-child::before { right: calc(var(--gutter) * -1); }
.fork-path:hover::before { opacity: 1; }
.fork-grid { position: relative; z-index: 0; }

.fork-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.fork-index {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.6875rem;
  letter-spacing: 0;
  color: var(--ink);
}
.fork-question {
  margin-top: clamp(28px, 4vw, 56px);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.fork-text {
  max-width: 40ch;
  margin-top: 16px;
  color: var(--muted);
  text-wrap: pretty;
}
.fork-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 3.5vw, 44px);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-900);
}
.fork-arrow {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.fork-arrow svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--t-med) var(--ease);
}
.fork-path:hover .fork-arrow { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.fork-path:hover .fork-arrow svg { transform: translateX(2px); }
.fork-path:focus-visible { outline-offset: -2px; }

/* ---------- A R&B ---------- */

.about { padding-top: clamp(72px, 9vw, 128px); }
.about-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
}
.about-head .eyebrow { grid-column: 1 / -1; }
.about-title { grid-column: 1 / span 7; }
.about-intro { grid-column: 9 / -1; }
.about-intro .lead { font-size: 1.0625rem; color: var(--muted); }

.about-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
  margin-top: clamp(56px, 7vw, 104px);
  align-items: center;
}

/* Mapa da zona de ação */
.about-map {
  grid-column: 1 / span 7;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-md);
}
.map { width: 100%; height: auto; }
.map-sea { fill: #e2eaf8; }
.map-coast { stroke: rgb(29 79 191 / 0.55); stroke-width: 1.5; }
.map-concelho { stroke: rgb(15 51 134 / 0.55); stroke-width: 1.2; stroke-linejoin: round; }
.map-concelho--povoa { fill: rgb(47 99 214 / 0.2); }
.map-concelho--vdc { fill: rgb(47 99 214 / 0.13); }
.map-fronteira { stroke: rgb(15 51 134 / 0.45); stroke-width: 1; stroke-dasharray: 4 5; }
.map-river { stroke: #8fb0ea; stroke-width: 2.5; stroke-linecap: round; }
.map-ring { fill: none; stroke: rgb(224 122 92 / 0.45); stroke-dasharray: 2 6; stroke-linecap: round; }

.map-label { font: 400 24px var(--font-serif); fill: var(--ink); }
.map-sub { font: 500 10.5px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; fill: var(--navy-700); }
.map-note { font: 500 12px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; fill: var(--accent-deep); }
.map-sea-label { font: italic 300 20px var(--font-serif); fill: #7890bd; }
.map-small { font: italic 400 15px var(--font-serif); fill: var(--muted-2); }
.about-map figcaption {
  position: absolute;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(14px, 2vw, 22px);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.map-place, .map-halo, .map-ring, .map-concelho { transform-box: fill-box; transform-origin: center; }
.js .about-map .map-halo,
.js .about-map .map-ring { opacity: 0; transform: scale(0.7); transition: opacity 1.4s var(--ease) 0.6s, transform 1.6s var(--ease) 0.6s; }
.js .about-map .map-place { opacity: 0; transform: translateY(8px); transition: opacity 0.9s var(--ease) 1s, transform 0.9s var(--ease) 1s; }
.js .about-map .map-place + .map-place { transition-delay: 1.2s; }
.js .about-map.is-in .map-halo,
.js .about-map.is-in .map-ring,
.js .about-map.is-in .map-place { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .about-map.is-in .map-ring { animation: rodar 60s linear infinite; }
}
@keyframes rodar { to { stroke-dashoffset: -400; } }

.about-aside { grid-column: 9 / -1; }
.about-zone {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.about-zone-text { margin-top: 16px; color: var(--muted); text-wrap: pretty; }

.facts { margin-top: 36px; border-bottom: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.facts dt {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}
.facts dd { color: var(--ink-2); }
.facts a { border-bottom: 1px solid var(--line-strong); transition: border-color var(--t-fast); }
.facts a:hover { border-color: var(--ink); }

/* ---------- Página "Tornar-me associado" ---------- */

.apply { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 8vw, 120px); min-height: 80svh; }
.apply-inner { width: min(100% - var(--gutter) * 2, 720px); margin-inline: auto; }
.apply-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.apply-meta { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.apply-progress {
  display: grid;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 56px);
  scroll-margin-top: 88px;
}
.apply-step { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.apply-step strong { color: var(--ink); font-weight: 500; }
.apply-progress .flow-progress { border-radius: 2px; }
.apply-steps { padding-top: clamp(32px, 4vw, 48px); }
.apply .flow-question { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.apply .flow-nav { width: 100%; padding: 32px 0 0; }
.apply .form-alert { margin-top: 16px; }
.apply .flow-done { min-height: 60svh; padding-inline: 0; }

.captcha-slot { display: flex; justify-content: center; margin-top: 16px; }
.captcha-slot:empty { display: none; }

/* ---------- Imóvel ---------- */

.property { background: var(--surface); }
.property-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
  align-items: end;
}
.property-main { grid-column: 1 / span 6; }
.property-main .lead { margin: 24px 0 40px; color: var(--muted); }
.property-aside { grid-column: 8 / -1; }
.property-aside-title {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.checklist li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
}
.checklist li:last-child { border-bottom: 1px solid var(--line-strong); }
.checklist li span:first-child { font-weight: 500; }
.checklist li span:last-child { color: var(--muted); }
.property-aside-note { margin-top: 20px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--white);
  border-top: 1px solid var(--on-dark-line);
}
.footer-contact {
  display: grid;
  gap: 16px;
  padding-block: clamp(80px, 10vw, 136px) clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer-kicker { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.footer-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.footer-mail {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 6px;
  font-size: clamp(1.05rem, 0.95rem + 0.7vw, 1.5rem);
  color: var(--on-dark-muted);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color var(--t-med) var(--ease), background-size 600ms var(--ease);
  word-break: break-all;
}
.footer-mail:hover { color: var(--white); background-size: 100% 1px; }
.footer-mail svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform var(--t-med) var(--ease); }
.footer-mail:hover svg { transform: translate(2px, -2px); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px 24px;
  padding-block: 56px;
}
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { margin-top: 20px; font-size: var(--fs-small); color: var(--on-dark-muted); line-height: 1.7; }
.footer-col-title { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: rgb(255 255 255 / 0.82); transition: color var(--t-fast); word-break: break-word; }
.footer-col a:hover { color: var(--white); }
.footer-zone { font-size: 0.875rem; color: var(--on-dark-muted); }
.site-footer--compact { border-top: 0; }
.site-footer--compact .footer-bottom { border-top: 0; }
.footer-bottom a { transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.75rem;
  color: var(--on-dark-muted);
}
.footer-disclaimer { max-width: 72ch; }

/* ---------- Barra de ações mobile ---------- */

.action-bar {
  position: fixed;
  z-index: 30;
  left: 0; right: 0; bottom: 0;
  display: none;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.9);
  border-top: 1px solid rgb(10 23 48 / 0.08);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  transform: translateY(110%);
  transition: transform 500ms var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { height: 46px; padding: 0 12px; }

/* ==========================================================================
   Formulários
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field-label { font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted-2); text-transform: none; letter-spacing: 0; }
.field-hint { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); }

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem; /* evita zoom no iOS */
  line-height: 1.4;
  appearance: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background-color var(--t-fast);
}
.input::placeholder { color: #9aa4b5; }
.input:hover { border-color: #b3bfd0; }
.input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgb(28 53 99 / 0.12); }
.input[aria-invalid='true'] { border-color: var(--error); }
.input[aria-invalid='true']:focus { box-shadow: 0 0 0 4px var(--error-soft); }
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.55; }

.select { position: relative; }
.select::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.select .input { padding-right: 44px; cursor: pointer; }
.select .input:invalid { color: #9aa4b5; }
.select option { color: var(--ink); }

.input-affix { position: relative; }
.input-affix .input { padding-right: 48px; }
.affix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9375rem; pointer-events: none; }

.field-error {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--error);
}
.field-error:empty { display: none; }
.field-error:not(:empty) { animation: rise 300ms var(--ease); }

.field--check {
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
}
.field--check label { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; cursor: pointer; }
.field--check label a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.field--check .field-error { grid-column: 2; }
.check {
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white) center / 14px no-repeat;
  appearance: none;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.check:hover { border-color: var(--muted-2); }
.check:checked {
  background-color: var(--navy-900);
  border-color: var(--navy-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}
.check[aria-invalid='true'] { border-color: var(--error); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.form-alert {
  padding: 14px 16px;
  border: 1px solid #fecdca;
  border-radius: 12px;
  background: #fef3f2;
  color: #912018;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.form-alert a { text-decoration: underline; }
.form-alert:not([hidden]) { animation: rise 300ms var(--ease); }

/* ==========================================================================
   Fluxos (diálogos de candidatura e imóvel)
   ========================================================================== */

html.has-dialog { overflow: hidden; }

.flow {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  overscroll-behavior: contain;
}
.flow::backdrop { background: rgb(6 18 42 / 0.4); }
.flow[open] { animation: flow-in 550ms var(--ease); }
.flow.is-closing { animation: flow-out 280ms var(--ease-in-out) forwards; }
@keyframes flow-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes flow-out { to { opacity: 0; transform: translateY(16px); } }

.flow-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.flow-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 calc(var(--gutter) - 10px) 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.flow-logo { height: 24px; width: auto; }
.flow-step {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.flow-step strong { color: var(--ink); font-weight: 500; }
.flow-top .icon-btn { justify-self: end; }

.flow-progress { height: 2px; background: var(--surface-2); overflow: hidden; }
.flow-progress span {
  display: block;
  height: 100%;
  background: var(--navy-900);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 700ms var(--ease);
}

.flow-form {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding-bottom: 4vh;
  -webkit-overflow-scrolling: touch;
}
.flow-steps {
  width: min(100% - var(--gutter) * 2, 680px);
  margin: 0 auto;
  padding-block: clamp(40px, 7vh, 88px) 16px;
  flex: 0 0 auto;
}
.flow-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.flow-panel.is-entering { animation: step-in 550ms var(--ease) both; }
.flow-panel.is-entering-back { animation: step-in-back 550ms var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-24px); } }

.flow-kicker {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.flow-kicker span { color: var(--navy-900); font-weight: 500; }
.flow-question {
  float: left; /* legend: permite margens consistentes */
  width: 100%;
  padding: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  outline: none;
}
.flow-question + * { clear: both; }
.flow-note { padding-top: 14px; margin-bottom: 32px; color: var(--muted); font-size: 0.9375rem; }

.options { display: grid; gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-box {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.35;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.option-key {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--t-fast) var(--ease);
}
.option-text { flex: 1; }
.option-radio {
  flex-shrink: 0;
  position: relative;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color var(--t-fast) var(--ease);
}
.option-radio::after {
  content: '';
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--navy-900);
  transform: scale(0);
  transition: transform var(--t-med) var(--ease);
}
.option:hover .option-box { border-color: #a4b1c4; }
.option input:focus-visible + .option-box { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--focus); }
.option input:checked + .option-box {
  border-color: var(--navy-900);
  background: #f3f6fb;
  box-shadow: inset 0 0 0 0.5px var(--navy-900);
}
.option input:checked + .option-box .option-radio { border-color: var(--navy-900); }
.option input:checked + .option-box .option-radio::after { transform: scale(1); }
.option input:checked + .option-box .option-key { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.option input:active + .option-box { transform: scale(0.995); }

.flow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - var(--gutter) * 2, 680px);
  margin: 0 auto;
  padding-block: 24px max(32px, env(safe-area-inset-bottom));
}
.flow-nav [data-prev][hidden] { display: inline-flex; visibility: hidden; }
.flow-nav .btn--primary { min-width: 160px; }
.flow-form > .form-alert { width: min(100% - var(--gutter) * 2, 680px); margin: 0 auto; }

/* Formulário de imóvel */
.flow-form--scroll { display: block; }
.flow-form--scroll > * { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.flow-intro { padding-top: clamp(40px, 7vh, 88px); padding-bottom: 24px; }
.flow-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  outline: none;
}
.flow-intro .flow-note { margin-bottom: 0; }
.form-section { border: 0; margin-block: 0; padding: 32px 0; border-top: 1px solid var(--line); min-width: 0; }
.form-section legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  margin-bottom: 24px;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-section legend + * { clear: both; }
.form-section legend > span:first-child { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.flow-form--scroll > .field--check { padding-top: 8px; }
.flow-form--scroll > .form-alert { margin-top: 20px; }
.flow-nav--sticky {
  position: sticky;
  bottom: 0;
  justify-content: flex-end;
  margin-top: 24px;
  background: linear-gradient(to top, var(--white) 70%, rgb(255 255 255 / 0));
}

/* Upload */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.dropzone:hover { border-color: #a4b1c4; }
.dropzone.is-over { border-color: var(--navy-700); background: #f3f6fb; }
.dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone-input:focus-visible + .dropzone-label { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--r-md); }
.dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
}
.dropzone-icon { width: 40px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-linejoin: round; margin-bottom: 4px; }
.dz-title { font-size: 1rem; font-weight: 500; }
.dz-or { font-size: var(--fs-small); color: var(--muted); }
.dz-btn { margin-top: 4px; pointer-events: none; }
.dz-title--touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .dz-title--pointer { display: none; }
  .dz-title--touch { display: inline; }
}

.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.previews:empty { display: none; }
.preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
  animation: pop 400ms var(--ease);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview.is-processing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.6) 50%, transparent 70%) -100% 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.preview-name {
  position: absolute;
  inset: auto 0 0;
  padding: 6px 8px;
  font-size: 0.6875rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 4px rgb(6 18 42 / 0.18);
  transition: transform var(--t-fast) var(--ease);
}
.preview-remove:hover { transform: scale(1.08); }
.preview-remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } }
@keyframes shimmer { to { background-position: 100% 0; } }

/* Confirmação */
.flow-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px var(--gutter) 64px;
  text-align: center;
  outline: none;
  overflow-y: auto;
}
.flow-done[hidden] { display: none; }
.done-mark { width: 64px; height: 64px; margin-bottom: 16px; fill: none; stroke: var(--navy-900); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle, .done-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow-done:not([hidden]) .done-mark circle { animation: draw 1s var(--ease-in-out) 0.1s forwards; }
.flow-done:not([hidden]) .done-mark path { animation: draw 0.6s var(--ease-in-out) 0.8s forwards; }
.flow-done:not([hidden]) > :not(svg) { animation: rise 700ms var(--ease) both; }
.flow-done:not([hidden]) > .done-text { animation-delay: 100ms; }
.flow-done:not([hidden]) > .btn { animation-delay: 200ms; }
.done-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 18ch;
  text-wrap: balance;
}
.done-text { max-width: 46ch; color: var(--muted); font-size: 1.0625rem; margin-bottom: 20px; }

/* ==========================================================================
   Páginas legais
   ========================================================================== */

.legal { padding-block: clamp(64px, 9vw, 128px); }
.legal-inner { max-width: 720px; }
.legal h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.legal-meta { margin-top: 16px; color: var(--muted); font-size: var(--fs-small); }
.legal-note {
  margin-top: 40px;
  padding: 16px 20px;
  border-left: 2px solid var(--navy-900);
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.legal h2 { margin-top: 48px; font-size: 1.125rem; font-weight: 500; }
.legal p, .legal li { margin-top: 12px; color: var(--muted); }
.legal .placeholder { font-style: italic; color: var(--muted-2); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 64px; font-size: var(--fs-small); font-weight: 500; }

/* ==========================================================================
   Revelação no scroll
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
/* Revelação de imagem: "cortina" em pseudo-elemento (clip-path no próprio
   alvo impediria o IntersectionObserver de o detetar) */
.js [data-reveal='image'] { transform: none; opacity: 1; }
.js [data-reveal='image']::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--reveal-bg, var(--white));
  transform-origin: 50% 100%;
  transition: transform 1.3s var(--ease-in-out);
  pointer-events: none;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal='image'].is-in::after { transform: scaleY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 1680px) {
  :root { --container: 1400px; }
}

@media (max-width: 1100px) {
  .nav-list { gap: 20px; }
  .header-actions { margin-left: 20px; }
  .about-map { grid-column: 1 / span 6; }
  .about-aside { grid-column: 8 / -1; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; gap: 12px; }

  .section-head--split > :first-child,
  .section-head--split > .section-intro { grid-column: 1 / -1; }
  .section-head--split .section-intro { max-width: 56ch; }

  .about-title, .about-intro { grid-column: 1 / -1; }
  .about-intro { margin-top: 24px; }
  .about-map, .about-aside { grid-column: 1 / -1; }


  .property-main, .property-aside { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --section-y: 88px; }
  .header-cta { height: 38px; padding: 0 12px 0 16px; font-size: 0.8438rem; }

  .header-ghost { display: none; }
  .hero { --scene-w: max(100vw, 980px); }
  .hero-inner { padding-top: calc(var(--header-h) + 40px); }
  .scene { --shift: -36.5%; margin-top: calc(var(--scene-h) * -0.3); }
  .scene-sun { left: 48%; }

  .fork-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .fork-path, .fork-path:first-child { padding: 36px 0 40px; }
  .fork-path + .fork-path { border-left: 0; border-top: 1px solid var(--line); }
  .fork-path { border-bottom: 1px solid var(--line); }
  .fork-path::before { left: calc(var(--gutter) * -1) !important; right: calc(var(--gutter) * -1) !important; }
  .fork-question { margin-top: 24px; }

  .facts > div { grid-template-columns: 5.5rem 1fr; }

  .property-main .btn { width: 100%; }
  .checklist li { grid-template-columns: 1fr; gap: 2px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { padding-bottom: 104px; }
  .site-footer--compact .footer-bottom { padding-bottom: 32px; }

  .action-bar { display: grid; }

  .form-grid { grid-template-columns: 1fr; }
  .flow-top { height: 60px; }
  .flow-logo { height: 22px; }
  .option-key { display: none; }
  .option-box { min-height: 58px; padding: 14px 16px; }
  .flow-nav {
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding-top: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    width: 100%;
    padding-inline: var(--gutter);
  }
  .flow-nav .btn--primary { flex: 1; max-width: 240px; }
  .flow-nav--sticky { border-top: 0; background: linear-gradient(to top, var(--white) 75%, rgb(255 255 255 / 0)); }
  .apply .flow-nav { width: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-top: 24px; }
  .btn--block-sm { width: 100%; max-width: none !important; }
  .dropzone-label { padding: 28px 20px; }
}

@media (max-width: 600px) {
  .map-label { font-size: 30px; }
  .map-sub { font-size: 13px; }
  .map-sea-label { font-size: 24px; }
  .map-small { font-size: 20px; }
  .map-note { font-size: 15px; }
}

@media (max-width: 400px) {
  .header-cta .btn-arrow { display: none; }
}

@media (hover: none) {
  .option-key { display: none; }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal='image']::after { display: none; }
  .scene-layer, .hero-inner { transform: none !important; opacity: 1 !important; }
  .btn { transform: none !important; }
}

@media print {
  .site-header, .action-bar, .scroll-cue, dialog { display: none !important; }
  .hero, .site-footer { background: none; color: #000; }
}

.legal ul { list-style: disc; padding-left: 1.2em; }
.legal .eyebrow { margin-bottom: 16px; }
