/* ==========================================================================
   Motor visual da landing page imobiliária
   As cores de marca vêm do config.js (tema.primaria / tema.acento).
   ========================================================================== */

:root {
  --ground: #edf0f3;
  --ground-2: #e2e7ec;
  --surface: #f9fafb;
  --glass: rgba(250, 251, 252, 0.7);
  --ink: #0a1628;
  --ink-2: #384556;
  --muted: #56616f;
  --soft: #97a0ad;
  --line: rgba(19, 41, 75, 0.1);
  --line-2: rgba(19, 41, 75, 0.16);
  --primary: #13294b;
  --primary-2: #24406c;
  --accent: #c21b2f;
  --wa: #137a41;

  --f-display: "Onest", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 1px 2px rgba(19, 41, 75, 0.04), 0 18px 40px -26px rgba(19, 41, 75, 0.28);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 4px rgba(19, 41, 75, 0.05), 0 32px 60px -30px rgba(19, 41, 75, 0.4);

  --header-top: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

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

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* Fundo em quadrícula, como papel de planta ---------------------------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(19, 41, 75, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 41, 75, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 85%);
}
.bg-grid::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  right: -18vw;
  top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 65%);
}

/* Tipografia ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.display,
.h2,
.h3 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.soft {
  color: var(--soft);
  background: linear-gradient(100deg, #7d8796, #b3bac4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.body-muted {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

/* Botões -------------------------------------------------------------------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn .ic { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 0.9rem; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -12px rgba(19, 41, 75, 0.65);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 16px 30px -12px rgba(19, 41, 75, 0.7); }
.btn-primary .ic { transition: transform 0.35s var(--ease); }
.btn-primary:hover .ic { transform: translateX(3px); }

.btn-ghost {
  background: var(--glass);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: #fff; border-color: var(--line-2); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -12px rgba(28, 158, 85, 0.7); }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.link-arrow .ic { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Superfícies --------------------------------------------------------------- */
.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  box-shadow: 0 8px 18px -10px rgba(19, 41, 75, 0.7);
}

/* Imagens com fallback ------------------------------------------------------ */
.pic {
  position: relative;
  overflow: hidden;
  background: var(--ground-2);
}
.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pic.missing {
  background:
    repeating-linear-gradient(135deg, rgba(19, 41, 75, 0.05) 0 1px, transparent 1px 11px),
    linear-gradient(160deg, #e3e8ee, #cfd6df);
}
.pic.missing::after {
  content: "Foto · " attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 80%;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(19, 41, 75, 0.25);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

/* Beta ---------------------------------------------------------------------- */
.beta-bar {
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  background: #0a1628;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-align: center;
}
.beta-bar b { color: #fff; font-weight: 500; }
.beta-bar i {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 1px dashed #f0b35a;
  vertical-align: middle;
  margin-right: 4px;
}
.is-beta { --header-top: 50px; }
.is-beta .is-exemplo { outline: 1.5px dashed #e39a2d; outline-offset: 4px; }

/* Cabeçalho ----------------------------------------------------------------- */
.header {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  top: var(--header-top);
  transition: top 0.4s var(--ease);
}
.is-beta.scrolled .header { top: 12px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.scrolled .header-inner {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex: none;
}
.brand-logo { height: 40px; width: auto; object-fit: contain; flex: none; }
.portrait .pic { background: linear-gradient(170deg, #f3f5f7, #dde2e8); }
.portrait .pic img { object-position: center top; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: background-color 0.25s, color 0.25s;
}
.nav a:hover { background: rgba(19, 41, 75, 0.06); color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  place-items: center;
  cursor: pointer;
}

.drawer {
  position: fixed;
  z-index: 49;
  inset: 0;
  padding: calc(var(--header-top) + 96px) 20px 32px;
  background: rgba(237, 240, 243, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  align-content: start;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.drawer a:not(.btn) {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.drawer .btn { margin-top: 20px; }
.menu-open .drawer { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

/* Secções ------------------------------------------------------------------- */
.sec { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.sec-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-head .lead { color: var(--muted); font-size: 1.05rem; }
.sec-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-head-row .sec-head { margin-bottom: 0; }

.divider {
  height: 1px;
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* Hero ---------------------------------------------------------------------- */
.hero { padding: calc(var(--header-top) + 128px) 0 clamp(64px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.pill {
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.pill::before { display: none; }
.live {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 44px;
  padding-top: 28px;
  margin-top: 4px;
  border-top: 1px solid var(--line-2);
}
.stats div { display: grid; gap: 2px; }
.stats dd {
  order: -1;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual { position: relative; }
.portrait {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.portrait .pic { position: absolute; inset: 0; border-radius: inherit; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 55%, rgba(10, 22, 40, 0.45));
  pointer-events: none;
}
.portrait-caption {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
}
.portrait-caption strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.portrait-caption span { font-size: 0.85rem; color: var(--muted); }
.caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-family: var(--f-mono);
  font-size: 10px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}


/* O que procura ------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
  border-radius: var(--r-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background-color 0.3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); background: rgba(255, 255, 255, 0.85); }
.feature .h3 { margin-top: 10px; }

/* Sobre --------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-photo {
  position: sticky;
  top: 110px;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
}
.about-photo .pic { position: absolute; inset: 0; border-radius: inherit; }
.about-seal {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
}
.about-seal strong { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; }
.about-seal span { font-size: 0.85rem; color: var(--muted); }
.about-copy { display: grid; gap: 22px; }
.about-copy p { color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

.zones { display: flex; flex-wrap: wrap; gap: 8px; }
.zone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  font-size: 0.85rem;
  color: var(--ink-2);
}
.zone .ic { width: 14px; height: 14px; color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.pillar {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: var(--r-md);
}
.pillar h3 { font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }

/* Equipa -------------------------------------------------------------------- */
.team {
  --cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  max-width: calc(var(--cols) * 320px);
  gap: 16px;
}
.member { display: grid; gap: 14px; }
.member .pic {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
.member .pic img { transition: transform 0.8s var(--ease); }
.member:hover .pic img { transform: scale(1.04); }
.member strong { display: block; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.015em; }
.member span { font-size: 0.88rem; color: var(--muted); }

/* Prémios e conquistas ------------------------------------------------------ */
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.award {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.award:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.award > .pic { aspect-ratio: 4 / 5; }
.award-icon {
  display: grid;
  place-items: center;
  margin: 24px 24px 0;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
}
.award-icon .ic { width: 26px; height: 26px; stroke-width: 1.5; }
.award-body { display: grid; align-content: start; gap: 8px; padding: 20px 22px 24px; }
.award-year {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.award-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.award-years li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: var(--primary);
}
.award-org {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Imóveis ------------------------------------------------------------------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
}
.tab {
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.tab[aria-selected="true"] { background: var(--primary); color: #fff; }
.tab .count { font-family: var(--f-mono); font-size: 11px; opacity: 0.6; margin-left: 4px; }

.listings {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 20px;
}
.listing {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.listing[hidden] { display: none; }
.listing .pic { aspect-ratio: 4 / 3; }
.listing .pic img { transition: transform 0.9s var(--ease); }
.listing:hover .pic img { transform: scale(1.05); }
.listing-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.listing-badge.sold { background: var(--accent); color: #fff; }
.listing-body { display: grid; gap: 10px; padding: 20px 22px 22px; flex: 1; align-content: start; }
.listing-zone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.listing-zone .ic { width: 14px; height: 14px; }
.listing-specs {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.listing-specs span { display: inline-flex; align-items: center; gap: 6px; }
.listing-specs .ic { width: 16px; height: 16px; color: var(--muted); }
.listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.price {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price small { font-size: 0.8rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-old {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  text-decoration-color: var(--accent);
}
.listings-foot { display: flex; justify-content: center; margin-top: 40px; }

/* Avaliação ----------------------------------------------------------------- */
.valuation {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--ink-2); }
.checklist .tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(19, 41, 75, 0.08);
  color: var(--primary);
  flex: none;
  margin-top: 1px;
}
.checklist .tick .ic { width: 14px; height: 14px; stroke-width: 2.2; }

.panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(28, 158, 85, 0.1);
  color: #16794a;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > label,
.field > legend {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
textarea.input { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7786' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 38px;
}
.input::placeholder { color: var(--soft); }
.input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19, 41, 75, 0.08);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.sheet {
  display: grid;
  gap: 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--primary);
  color: #fff;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.sheet-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.sheet-row + .sheet-row { border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.sheet-row dt { color: rgba(255, 255, 255, 0.55); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; }
.sheet-row dd { margin-left: auto; text-align: right; color: #fff; }
.sheet-row dd.empty { color: rgba(255, 255, 255, 0.62); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel-actions .btn { flex: 1 1 200px; }

/* Processo ------------------------------------------------------------------ */
.anchor { display: block; height: 0; }
.process-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.process-head .sec-head { margin-bottom: 0; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  counter-reset: step;
}
.steps[hidden] { display: none; }
.step {
  position: relative;
  display: grid;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ground);
  border: 1.5px solid var(--primary);
}
.step-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.step-big {
  position: absolute;
  top: 18px;
  right: 0;
  font-family: var(--f-display);
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(19, 41, 75, 0.07);
  pointer-events: none;
}
.steps.is-anim .step { animation: stepIn 0.7s var(--ease) both; }
.steps.is-anim .step:nth-child(2) { animation-delay: 0.05s; }
.steps.is-anim .step:nth-child(3) { animation-delay: 0.1s; }
.steps.is-anim .step:nth-child(4) { animation-delay: 0.15s; }
.steps.is-anim .step:nth-child(5) { animation-delay: 0.2s; }
.steps.is-anim .step:nth-child(6) { animation-delay: 0.25s; }
@keyframes stepIn {
  from { opacity: 0.2; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Porquê -------------------------------------------------------------------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.reason {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 32px 28px 36px 0;
  border-bottom: 1px solid var(--line-2);
}
.reason:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.reason .ic { width: 26px; height: 26px; color: var(--primary); margin-bottom: 8px; stroke-width: 1.4; }

/* Testemunhos --------------------------------------------------------------- */
.quotes {
  columns: 3 300px;
  column-gap: 16px;
}
.quote {
  break-inside: avoid;
  display: grid;
  gap: 18px;
  margin: 0 0 16px;
  padding: 26px;
  border-radius: var(--r-lg);
}
.stars { display: flex; gap: 2px; color: #e0a526; }
.stars .ic { width: 16px; height: 16px; }
.quote blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.08rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ground-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.quote strong { display: block; font-weight: 500; font-size: 0.95rem; }
.quote small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* FAQ ----------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq .sec-head { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic {
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--ease);
  color: var(--muted);
}
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }

/* CTA ----------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 50% 0%, var(--primary-2), var(--primary) 55%, #0a1628);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000, transparent);
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { color: rgba(255, 255, 255, 0.6); }
.cta-band .h2 { color: #fff; max-width: 16em; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 34em; }
.cta-band .actions { justify-content: center; margin-top: 6px; }

/* Contacto ------------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy { display: grid; gap: 26px; }
.contact-list { display: grid; gap: 4px; }
.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.contact-list .icon-circle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  color: var(--primary);
  flex: none;
}
.contact-list .icon-circle .ic { width: 18px; height: 18px; }
.contact-list strong { display: block; font-weight: 500; }
.contact-list small { display: block; font-size: 0.8rem; color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  transition: background-color 0.25s, color 0.25s;
}
.socials a:hover { background: var(--primary); color: #fff; }
.socials .ic { width: 18px; height: 18px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
}
.consent input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-msg {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
}
.form-msg.ok { background: rgba(28, 158, 85, 0.1); color: #15623d; }
.form-msg.warn { background: rgba(227, 154, 45, 0.12); color: #7a4d0b; }
.hp { position: absolute; left: -9999px; }

/* Rodapé -------------------------------------------------------------------- */
.footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: #0a1628;
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(56px, 7vw, 88px) 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .brand-mark { background: #fff; color: #0a1628; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgba(255, 255, 255, 0.5); }
.footer h3, .footer h4 {
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-about { display: grid; gap: 18px; align-content: start; }
.footer-about p { max-width: 30em; }
.footer .socials a { background: transparent; border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.footer .socials a:hover { background: #fff; color: #0a1628; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); }

/* Flutuantes ---------------------------------------------------------------- */
.wa-float {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 16px 32px -12px rgba(28, 158, 85, 0.7);
  transition: transform 0.35s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 28px; height: 28px; }

.mobile-bar {
  position: fixed;
  z-index: 45;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}
.mobile-bar .ic { width: 18px; height: 18px; }
.mobile-bar .m-wa { color: var(--wa); }
.mobile-bar .m-main { background: var(--primary); color: #fff; }

/* Revelação ao fazer scroll (só abaixo da dobra) ------------------------------ */
.rv { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.pre { opacity: 0; transform: translateY(18px); }

/* ==========================================================================
   Camada premium
   Serifa editorial nos destaques (eco do monograma SF), etiquetas discretas
   em sentence case, superfícies calmas, grão subtil em vez de quadrícula.
   ========================================================================== */
:root {
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ground: #eef0f2;
  --ground-2: #e4e8ec;
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(13, 29, 54, 0.04), 0 12px 32px -20px rgba(13, 29, 54, 0.22);
  --shadow-lift: 0 2px 6px rgba(13, 29, 54, 0.05), 0 30px 60px -32px rgba(13, 29, 54, 0.38);
}

/* Fundo: luz suave e grão, sem quadrícula */
.bg-grid {
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(19, 41, 75, 0.05), rgba(19, 41, 75, 0) 60%);
  background-size: auto;
  mask-image: none;
  -webkit-mask-image: none;
}
.bg-grid::after {
  width: auto; height: auto; inset: 0; top: 0; right: 0; border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.13 0 0 0 0 0.22 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.22;
}

/* Títulos: destaque em serifa itálica, na cor da marca */
.display { font-size: clamp(2.5rem, 4.8vw, 4.1rem); letter-spacing: -0.035em; line-height: 1.04; }
.h2 { letter-spacing: -0.03em; line-height: 1.08; }
.soft {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--primary);
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.01em;
}
.cta-band .soft { color: #fff; }

/* Etiquetas: discretas, sem maiúsculas nem letra técnica */
.eyebrow {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-2);
  gap: 12px;
}
.eyebrow::before { width: 22px; height: 1px; border-radius: 0; background: var(--accent); }
.pill { padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pill::before { display: block; }
.pill .live { display: none; }

.panel-title, .step-num, .listing-zone, .stats dt, .award-org, .award-year,
.footer h3, .footer h4, .sheet-row dt, .field > label, .field > legend, .link-arrow,
.brand-sub, .quote small, .float-card .label {
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.panel-title, .step-num, .listing-zone, .award-org, .sheet-row dt, .field > label, .field > legend, .brand-sub { font-size: 12.5px; }
.stats dt { font-size: 13px; color: var(--muted); }
.footer h3, .footer h3, .footer h4 { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.link-arrow { font-size: 14px; }
.listing-badge, .caption-badge, .status { font-family: var(--f-body); font-weight: 500; letter-spacing: 0.06em; }

/* Números do topo em serifa */
.stats dd { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.6rem, 3.6vw, 3.2rem); letter-spacing: -0.02em; line-height: 1; }
.stats { gap: 12px 56px; }
.step-big { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: rgba(19, 41, 75, 0.09); }

/* Botões: cor sólida, sem gradiente */
.btn-primary { background: var(--primary); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 12px 24px -14px rgba(13, 29, 54, 0.7); }
.btn-primary:hover { background: #1c3760; }
.btn:active { transform: translateY(1px) scale(0.99); }

/* Superfícies calmas: sem vidro nos cartões, contorno fino */
.glass {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(13, 29, 54, 0.07);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.scrolled .header-inner,
.portrait-caption,
.about-seal,
.mobile-bar {
  background: rgba(250, 251, 252, 0.8);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.icon-tile {
  background: none;
  color: var(--primary);
  border: 1px solid rgba(13, 29, 54, 0.14);
  border-radius: 50%;
  box-shadow: none;
}
.award-icon { background: none; color: var(--primary); border: 1px solid rgba(13, 29, 54, 0.14); border-radius: 50%; }
.feature:hover, .listing:hover, .award:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.9); }

/* Retrato do topo: moldura fina */
.portrait { border: 0; outline: 1px solid rgba(13, 29, 54, 0.08); outline-offset: 10px; }
.portrait::after { background: linear-gradient(180deg, rgba(10, 22, 40, 0) 60%, rgba(10, 22, 40, 0.28)); }

/* Testemunhos: aspas em serifa */
.quote blockquote { font-family: var(--f-serif); font-size: 1.35rem; line-height: 1.38; letter-spacing: 0; }

/* Faixa final: sem quadrícula, com grão */
.cta-band::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: auto;
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.12;
}
.cta-band { background: radial-gradient(120% 140% at 50% 0%, #1f3a63, var(--primary) 55%, #0a1628); }
.sheet { background-image: none; }

/* Mais respiração entre secções */
.sec { padding-block: clamp(84px, 11vw, 144px); }


/* Prémios: grelha de 3 iguais; o nível 1 destaca-se pela cor e por uma etiqueta, não pelo tamanho */
.awards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.award.nivel-1, .award.nivel-2, .award.nivel-3 { grid-column: auto; }
.award { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; align-items: start; gap: 0; }
.award-icon { margin: 20px 0 0 20px; width: 40px; height: 40px; }
.award-icon .ic { width: 20px; height: 20px; }
.award-body { padding: 18px 20px 20px 14px; gap: 6px; }
.award .h3 { font-size: 1.05rem; }
.award-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 2px 0; }
.award-value strong { font-family: var(--f-serif); font-weight: 400; font-size: 1.55rem; line-height: 1.05; color: var(--primary); }
.award-value span { font-size: 0.82rem; color: var(--muted); }
.award .body-muted { font-size: 0.85rem; line-height: 1.5; }
.award.nivel-1 {
  position: relative;
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 40px -24px rgba(13, 29, 54, 0.7);
}
.award.nivel-1:hover { background: #1c3760; }
.award.nivel-1::after {
  content: "Maior distinção";
  position: absolute; top: 14px; right: 14px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: #fff;
}
.award.nivel-1 .award-icon { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.award.nivel-1 .h3, .award.nivel-1 .award-value strong { color: #fff; }
.award.nivel-1 .award-org, .award.nivel-1 .body-muted, .award.nivel-1 .award-value span { color: rgba(255, 255, 255, 0.75); }
.award.nivel-1 .award-years li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; }

/* Responsivo ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hero-grid,
  .about,
  .valuation,
  .contact,
  .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 520px; width: 100%; justify-self: center; }
  .about-photo { position: relative; top: 0; max-width: 520px; }
  .faq .sec-head { position: static; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listings,
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .reason:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .is-beta { --header-top: 58px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 60px; padding: 0 8px 0 10px; }
  .header-cta .btn { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 14px; }
  .brand-sub { display: none; }
  .tabs { scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .hero { padding-top: calc(var(--header-top) + 96px); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
  .stats dt { font-size: 10px; letter-spacing: 0.08em; }
  .actions .btn { flex: 1 1 auto; }
  .grid-3,
  .listings,
  .steps,
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .team { gap: 12px; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .reason,
  .reason:nth-child(2n) { padding: 26px 0; border-left: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .tabs { overflow-x: auto; max-width: 100%; }
  .faq-item p { padding-right: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding-bottom: 96px; }
  .wa-float { display: none; }
  .mobile-bar { display: grid; }
}

/* Afinações finais para telemóvel ------------------------------------------ */
@media (max-width: 760px) {
  .pill { font-size: 11px; letter-spacing: 0.06em; padding: 8px 12px 8px 10px; max-width: 100%; white-space: nowrap; }
  .lead { font-size: 1rem; }
  .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .sec { padding-block: 64px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head-row, .process-head { margin-bottom: 32px; gap: 20px; }
  .tabs { width: 100%; }
  .tab { padding: 10px 13px; font-size: 0.85rem; white-space: nowrap; flex: none; }
  .member span { display: block; font-size: 0.8rem; line-height: 1.4; margin-top: 2px; }
  .about-seal { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .about-seal span { font-size: 0.8rem; }
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .award-icon { margin: 16px 16px 0; width: 40px; height: 40px; border-radius: 12px; }
  .award-icon .ic { width: 22px; height: 22px; }
  .award-body { padding: 12px 16px 18px; gap: 6px; }
  .award .h3 { font-size: 1rem; }
  .award-org { font-size: 10.5px; letter-spacing: 0.04em; }
  .award-years li { font-size: 11px; padding: 3px 8px; }
  .award .body-muted { font-size: 0.8rem; line-height: 1.45; }
  .listing-body { padding: 18px; }
  .price { font-size: 1.2rem; }
  .quote { padding: 22px; }
  .quote blockquote { font-size: 1rem; }
  .faq-item summary { font-size: 1.02rem; padding: 20px 0; }
  .cta-band { padding: 48px 20px; border-radius: 24px; }
  .panel { border-radius: 24px; }
  .contact-list strong { font-size: 0.95rem; overflow-wrap: anywhere; }
  .quotes { columns: auto; column-count: 1; }
  .quote { width: 100%; }
  .stats dt { font-size: 11px; }
  .caption-badge { font-size: 11px !important; }
  .chip span { height: 44px; padding: 0 16px; }
  .portrait-caption { padding: 12px 14px; }
  .header-inner { padding: 0 8px 0 18px; }
  .brand { gap: 10px; }
  .brand-logo { height: 28px; }
  .brand-name { font-size: 14px; }
  .sec { padding-block: 72px; }
  .stats dd { font-size: 2.4rem; }
  .quote blockquote { font-size: 1.2rem; }
  .portrait { outline-offset: 6px; }
  .eyebrow { font-size: 12.5px; }
  .display { font-size: 2.25rem; }
  .awards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .award { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; align-items: start; }
  .award-icon { margin: 18px 0 0 18px; }
  .award-body { padding: 16px 18px 18px 14px; }
  .award .h3 { font-size: 1.05rem; }
  .award-org { font-size: 12px; }
}

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

/* Prémios em ecrãs médios e telemóvel */
@media (max-width: 1080px) { .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .awards { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Acessibilidade: ligação para saltar para o conteúdo (visível só com o teclado) */
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px;
  background: #0d0d0d; color: #fff; font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 12px; outline: 3px solid #fff; outline-offset: 2px; }

/* Número decorativo dos passos em conteúdo gerado (não é lido nem conta para contraste) */
.step-big::before { content: attr(data-n); }

/* Legenda dos grupos de opções (ex.: Objetivo): o legend não recebe o gap da grelha, por isso leva margem própria */
fieldset.field > legend { margin-bottom: 12px; }
.chips { gap: 10px; }
