/* =============================================================
   Roberto Zaidel — Design System v2 (Editorial)
   -------------------------------------------------------------
   Direção: editorial-jornal (Financial Times / New Yorker feel)
   4 tokens de cor · 2 famílias tipográficas · escala rigorosa
   ============================================================= */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* Paleta Zaidel — construída ao redor do carmim */
  --ink: #1a0808;              /* preto muito quente (vinho profundo) */
  --ink-70: rgba(26, 8, 8, .70);
  --ink-55: rgba(26, 8, 8, .55);
  --ink-30: rgba(26, 8, 8, .30);

  --paper: #f6f1ea;            /* paper cream (fundo principal, respiro) */
  --paper-dim: #ede4d5;        /* paper mais escuro (separação) */

  /* Escala de vermelhos — a espinha da identidade */
  --red-950: #2a0006;          /* vermelho quase preto (sombras) */
  --red-900: #4a0009;          /* vermelho muito escuro */
  --red-800: #7a0014;          /* vermelho escuro (hover) */
  --red-700: #960018;          /* CARMIM ZAIDEL (accent principal) */
  --red-600: #b01b2c;          /* vermelho médio-vivo */
  --red-500: #d43b4c;          /* vermelho vibrante (sobre fundo escuro) */
  --red-300: #e7a5ac;          /* vermelho pastel (backgrounds sutis) */
  --red-100: #f5dfe2;          /* vermelho quase branco */

  --accent: var(--red-700);    /* alias — o carmim é o accent oficial */
  --accent-hover: var(--red-800);
  --accent-light: var(--red-500);  /* pra usar sobre fundo escuro */

  --rule: #dcd3c3;             /* hairlines e dividers */
  --rule-red: rgba(150, 0, 24, .2);

  /* Escala tipográfica editorial */
  --step-0: 15px;              /* body */
  --step-1: 17px;              /* body large */
  --step-2: 21px;
  --step-3: 28px;
  --step-4: 40px;
  --step-5: 64px;
  --step-6: 96px;
  --step-7: 144px;             /* display hero */

  /* Escala de espaçamento (4px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 28px;
  --sp-5: 48px;
  --sp-6: 80px;

  /* Largura de conteúdo */
  --measure: 68ch;             /* linha de leitura confortável */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Motion */
  --ease-out: cubic-bezier(.22, .68, .17, 1);
  --ease-in: cubic-bezier(.55, 0, .74, .32);
  --dur-1: 180ms;
  --dur-2: 320ms;
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Impede zoom por gesture accidental no iOS */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Touch action - impede double-tap zoom em botões (Android/iOS) */
a, button, .btn-cta, .btn-icon, .btn-primary, .btn-secondary {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* ============================================================
   3. ACESSIBILIDADE
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-3);
  z-index: 9999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: .04em;
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus {
  top: var(--sp-3);
}

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

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

/* ============================================================
   4. TIPOGRAFIA EDITORIAL
   ============================================================ */
.display {
  font-family: 'Fraunces', 'Georgia', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.display--l { font-size: clamp(48px, 8vw, var(--step-6)); }
.display--xl { font-size: clamp(64px, 12vw, var(--step-7)); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.eyebrow--accent { color: var(--accent); }

.byline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.tabular {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  padding-top: calc(20px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: padding var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease-out), backdrop-filter var(--dur-2) var(--ease-out);
}

/* Header no scroll — bem mais compacto pra não atrapalhar leitura */
.site-header.is-scrolled {
  padding: 10px var(--gutter);
  padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(246, 241, 234, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.site-header.is-scrolled .site-brand { font-size: 18px; }
.site-header.is-scrolled .btn-cta { padding: 7px 14px; font-size: 12px; }
.site-header.is-scrolled .btn-icon { width: 34px; height: 34px; }

/* PÁGINAS INTERNAS — sem hero escuro, o header PRECISA ser sempre visível
   Força cor de texto escura e background sólido pra não sumir no bege */
.page-internal .site-header,
.page-internal .site-header.is-scrolled {
  background: rgba(255, 254, 251, 0.98);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.page-internal .site-header .site-brand,
.page-internal .site-header .site-nav a {
  color: var(--ink);
}

.page-internal .site-header .btn-cta {
  color: var(--paper);
}

.page-internal .site-header .btn-icon {
  border-color: var(--ink-30);
  color: var(--ink);
}
.page-internal .site-header .btn-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.page-internal .site-header .nav-link--strong {
  color: var(--ink);
  border-color: var(--ink);
}
.page-internal .site-header .nav-link--strong[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.site-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 48, 'SOFT' 30;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: inherit;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.85;
  transition: opacity var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-1) var(--ease-out);
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.btn-cta {
  background: var(--accent);
  color: var(--paper);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Botão circular pra ícone (Instagram) — borda visível, parece botão de verdade */
.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: inherit;
  border: 1.5px solid currentColor;
  opacity: 0.9;
  transition: color var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
  position: relative;
}

.btn-icon:hover {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}

.site-header.is-scrolled .btn-icon {
  border-color: var(--ink-30);
  color: var(--ink);
}

.site-header.is-scrolled .btn-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* Remove underline animado do nav no botão de ícone */
.site-nav a.btn-icon::after {
  display: none;
}

.btn-cta:hover {
  background: var(--accent-hover);
}

.btn-cta:active {
  transform: scale(0.97);
}

.site-nav a.btn-cta:hover::after {
  transform: scaleX(0);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* ============================================================
   6. HERO CINEMATOGRÁFICO (vídeo fullscreen + overlay + texto)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  margin: 0;
  max-width: none;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

/* Vídeo de fundo cobrindo tudo */
/* Hero background — inspiração Cartier: preto profundo com respiração de vermelho carmim.
   Sem vídeo/foto por padrão. Elegante, silencioso, luxuoso. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    /* Halo carmim central sutil (respiração da marca) */
    radial-gradient(ellipse 90% 60% at 50% 40%, rgba(150, 0, 24, 0.18) 0%, transparent 55%),
    /* Depth radial ao redor */
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(42, 0, 6, 0.75) 0%, transparent 60%),
    /* Base preto quase-vinho */
    linear-gradient(180deg, #0d0303 0%, #170608 50%, #0d0303 100%);
}

/* Grain sutil pra tirar a impressão de "plano CSS" */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none;
}

/* Linha carmim fininha no topo (assinatura editorial) */
.hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 25%, var(--accent) 75%, transparent 100%);
  z-index: 2;
}

/* Slideshow de vídeos empilhados com crossfade */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02) brightness(0.85);
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02) brightness(0.85);
  position: relative;
  z-index: 0;
}

/* Overlay MUITO mais leve — vídeo aparece bem, texto ainda legível
   Apenas escurece o RODAPÉ do hero pra o CTA ficar visível */
.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 3, 3, 0.08) 0%, rgba(13, 3, 3, 0.15) 55%, rgba(13, 3, 3, 0.55) 100%);
  pointer-events: none;
}

/* Container do conteúdo do hero */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px var(--gutter) 100px;
  padding-top: calc(140px + env(safe-area-inset-top));
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-5);
}

.hero-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(246, 241, 234, 0.15);
  gap: 20px;
  flex-wrap: wrap;
}

.hero-eyebrow-row .eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(246, 241, 234, 0.75);
  text-transform: uppercase;
}

.hero-eyebrow-row .eyebrow--accent {
  color: var(--accent-light);
}

.hero-eyebrow-row .byline {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(246, 241, 234, 0.75);
  text-transform: uppercase;
}

/* H1 no padrão das referências (Camper, Zorge9, Cartier, Petralithe):
   sans-serif geometric · uppercase · tamanho contido · sem itálico decorativo */
/* Nome do Roberto em destaque grande — signature editorial */
.hero-brand {
  margin: 32px 0 20px;
}

.hero-brand__name {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 4px 40px rgba(0, 0, 0, 0.65);
}

.hero-brand__rule {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin-top: 20px;
  box-shadow: 0 2px 20px rgba(150, 0, 24, 0.6);
}

.hero-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(246, 241, 234, 0.9);
  max-width: 28ch;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-title em {
  font-style: normal;
  color: var(--paper);
  /* Sublinhado nativo respeita quebras de linha e nunca invade linhas vizinhas */
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  -webkit-text-decoration-color: var(--accent);
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.hero-lede {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(246, 241, 234, 0.9);
  max-width: 46ch;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-self: end;
}

.btn-primary {
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  color: var(--ink);
  padding: 15px 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--paper);
}

.btn-primary::after {
  content: "→";
  font-size: 15px;
  transition: transform var(--dur-1) var(--ease-out);
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

.btn-secondary {
  font-family: 'Manrope', sans-serif;
  padding: 15px 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid rgba(246, 241, 234, 0.5);
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}

.btn-secondary:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

/* Hint de scroll no rodapé do hero */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(246, 241, 234, 0.7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: scroll-hint 2.4s ease-in-out infinite;
}

.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(246, 241, 234, 0.6), transparent);
}

@keyframes scroll-hint {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

.btn-secondary--dark {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.btn-secondary--dark:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   7. SEÇÃO GENÉRICA
   ============================================================ */
.section {
  padding: var(--sp-6) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.section--dim {
  background: var(--paper-dim);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--dim .section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 18ch;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-lede {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 20;
  font-size: var(--step-2);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 50ch;
}

/* ============================================================
   NAV — link forte (Imóveis, primeira posição)
   ============================================================ */
.site-nav a.nav-link--strong {
  font-weight: 700;
  opacity: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  margin-right: 12px;
}
.site-nav a.nav-link--strong:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.site-nav a.nav-link--strong::after { display: none; }

/* ============================================================
   SECTION-HERO — cabeçalho grande de seção com CTA
   ============================================================ */
.section-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  max-width: 900px;
}

.section-hero .eyebrow--accent {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-title--xl {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
  max-width: none;
  margin: 0;
}

.section-title--xl em {
  font-style: italic;
  color: var(--accent);
}

.section-hero .section-lede {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 20;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 60ch;
  margin-top: 8px;
}

.section-hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Sub-seções do portfólio (Apartamentos / Casas) */
.portfolio-section {
  padding-top: 20px;
  margin-top: 20px;
}
.portfolio-section:first-of-type { margin-top: 0; padding-top: 0; }
/* Divisor entre Apartamentos e Casas (só entre eles, não depois da manchete) */
.portfolio-section + .portfolio-section {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  margin-top: 32px;
}

.portfolio-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.portfolio-section__title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'SOFT' 30;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.portfolio-section__title::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 16px;
  transform: translateY(-6px);
}

.portfolio-section__link {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur-1) var(--ease-out);
}
.portfolio-section__link:hover { border-bottom-color: var(--accent); }

.portfolio-cta-full {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}

.btn-primary--dark {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   8. PORTFÓLIO — IMÓVEL-HERO + GRADE
   ============================================================ */
.portfolio {
  display: grid;
  gap: 32px;
}

/* Manchete: um imóvel dominante */
.feature-card {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: stretch;
}

.feature-card__media {
  aspect-ratio: 4 / 3;
  background: var(--paper-dim);
  overflow: hidden;
  position: relative;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.98);
  transition: transform 800ms var(--ease-out);
}

.feature-card:hover .feature-card__media img {
  transform: scale(1.03);
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-3) 0;
}

.feature-card__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.feature-card__title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'SOFT' 40, 'WONK' 1;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.feature-card__price {
  font-family: 'Manrope', sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  margin: var(--sp-4) 0 var(--sp-3);
}

.feature-card__meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  margin-bottom: var(--sp-3);
}

.feature-card__specs {
  display: flex;
  gap: 24px;
  padding-top: 8px;
  font-family: 'Manrope', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-70);
}

/* Grade secundária */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.card {
  display: block;
  color: var(--ink);
  position: relative;
  transition: transform var(--dur-2) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
}

.card__media {
  aspect-ratio: 4 / 5;
  background: var(--paper-dim);
  overflow: hidden;
  margin-bottom: var(--sp-3);
  position: relative;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.98);
  transition: transform 800ms var(--ease-out);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__number {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Manrope', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--paper);
  background: rgba(26, 22, 20, .7);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}

.card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: var(--accent);
  padding: 5px 10px;
  text-transform: uppercase;
}

.card__specs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-70);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.card__title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'SOFT' 40;
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
  min-height: 2.5em;
}

.card__price {
  font-family: 'Manrope', sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.card__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 0;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin-top: 4px;
}

.card__meta::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   9. SOBRE — retrato + texto lado a lado, sem espaço vazio
   ============================================================ */
.section--about {
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
}

.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-5);
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content .eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-content .section-title {
  max-width: 20ch;
  margin: 0 0 8px;
}

.about-body {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 20;
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink);
}

.about-body p + p {
  margin-top: 1em;
}

.about-body p:first-child::first-line {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about-image {
  aspect-ratio: 3 / 4;
  background: var(--paper-dim);
  overflow: hidden;
  max-height: 620px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.92) contrast(1.03);
}

/* Stats/números do Roberto */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule);
}

.about-stat__num {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'SOFT' 30;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.about-stat__label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-top: 6px;
}

.about-stat__label--multi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.about-stat__label--multi span {
  display: block;
  white-space: nowrap;
}

/* ============================================================
   10. SERVIÇOS NUMERADOS (é uma sequência real: escuta → busca → negociação → fechamento)
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  counter-reset: service;
}

.service {
  padding-top: var(--sp-3);
  border-top: 2px solid var(--ink);
  counter-increment: service;
}

.service::before {
  content: "0" counter(service);
  font-family: 'Manrope', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-3);
}

.service__title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'SOFT' 40;
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}

.service__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70);
}

/* ============================================================
   11. CONTATO / CTA FINAL
   ============================================================ */
.cta-final {
  padding: var(--sp-6) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.cta-final__title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 auto var(--sp-3);
}

.cta-final__title em {
  font-style: italic;
  font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 1;
  color: var(--accent);
}

.cta-final__lede {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 18;
  font-size: var(--step-2);
  line-height: 1.5;
  opacity: 0.75;
  max-width: 44ch;
  margin: 0 auto var(--sp-5);
}

.cta-final .btn-cta {
  background: var(--accent);
  padding: 18px 40px;
  font-size: 14px;
}

.cta-final .btn-cta:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  padding: var(--sp-5) var(--gutter) var(--sp-4);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--sp-3);
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 32, 'SOFT' 30;
  font-size: var(--step-3);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-70);
  max-width: 30ch;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink);
  transition: color var(--dur-1) var(--ease-out);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 11px;
  color: var(--ink-55);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   13. STICKY CTA MOBILE (WhatsApp)
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(26, 22, 20, 0.06);
}

.mobile-cta a {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background var(--dur-1) var(--ease-out);
}

.mobile-cta__primary {
  background: var(--accent);
  color: var(--paper);
}

.mobile-cta__primary:active {
  background: var(--accent-hover);
}

.mobile-cta__secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* ============================================================
   14. IMÓVEL — SLIDESHOW E PÁGINA INDIVIDUAL
   ============================================================ */
.imovel-hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 500px;
  background: var(--ink);
  overflow: hidden;
  margin-top: 0;
}

.imovel-slideshow {
  position: absolute;
  inset: 0;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.imovel-slideshow::-webkit-scrollbar {
  display: none;
}

.imovel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: center/contain no-repeat var(--ink);
  cursor: zoom-in;
  filter: saturate(0.9) contrast(1.05);
}

.imovel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(244, 240, 232, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  z-index: 5;
  backdrop-filter: blur(8px);
}

.imovel-nav:hover {
  background: var(--paper);
  transform: translateY(-50%) scale(1.06);
}

.imovel-nav--prev { left: 24px; }
.imovel-nav--next { right: 24px; }

.imovel-counter {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 8px 14px;
  background: rgba(26, 22, 20, 0.7);
  color: var(--paper);
  font-family: 'Manrope', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
  z-index: 5;
}

/* Info do imóvel */
.imovel-info {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-5) var(--gutter) var(--sp-4);
}

.imovel-info__eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  gap: 20px;
  flex-wrap: wrap;
}

.imovel-info__tipo {
  color: var(--accent);
}

.imovel-info__location {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.imovel-info__title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 0;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  max-width: 24ch;
}

/* Preço dominante — reduzido de 120 pra 72 pra combinar com o title menor */
.imovel-info__preco {
  font-family: 'Manrope', sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.imovel-info__preco-consulte {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'SOFT' 60;
  font-style: italic;
  font-weight: 400;
}

/* Specs subordinados */
.imovel-specs {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sp-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-4);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--sp-5);
}

.spec {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.spec__num {
  font-family: 'Manrope', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.spec__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-top: 6px;
}

/* Descrição editorial */
.imovel-body {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-5) var(--gutter);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--sp-5);
  align-items: start;
}

.imovel-descricao {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 20;
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--ink);
  max-width: var(--measure);
}

.imovel-descricao h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 48, 'SOFT' 30, 'WONK' 1;
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}

.imovel-descricao h2:not(:first-child) {
  margin-top: var(--sp-5);
}

.imovel-descricao p + p {
  margin-top: 1em;
}

.imovel-caracs {
  list-style: none;
  columns: 2;
  column-gap: var(--sp-4);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.imovel-caracs li {
  break-inside: avoid;
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.imovel-caracs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.imovel-sidebar {
  position: sticky;
  top: 100px;
  padding: var(--sp-4);
  background: var(--paper-dim);
}

.imovel-sidebar__title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 32, 'SOFT' 40, 'WONK' 1;
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.imovel-sidebar__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.imovel-sidebar__lede {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 18;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-70);
  margin-bottom: var(--sp-3);
}

.imovel-sidebar .btn-cta {
  width: 100%;
  padding: 16px;
  justify-content: center;
  font-size: 14px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26, 22, 20, 0.96);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: rgba(244, 240, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  color: var(--paper);
  background: rgba(244, 240, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ============================================================
   15. LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--paper-dim) 0%, #d8d0bc 50%, var(--paper-dim) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   16. REVEAL SUTIL (motion que sussurra)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   17. MENU MOBILE
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  padding: 24px var(--gutter);
  padding-top: calc(24px + env(safe-area-inset-top));
  flex-direction: column;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.mobile-menu__nav a {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 40, 'SOFT' 30;
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mobile-menu__nav .btn-cta {
  align-self: flex-start;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

/* ============================================================
   18. RESPONSIVO
   ============================================================ */
/* ============================================================
   RESPONSIVO — Mobile / Tablet
   iOS + Android: touch targets 44px+, safe-area, dynamic viewport
   ============================================================ */

/* Tablet e mobile grande — 960px pra baixo */
@media (max-width: 960px) {
  .site-nav a:not(.btn-cta):not(.btn-icon) { display: none; }
  .menu-toggle { display: flex; }

  /* Header mais compacto */
  .site-header {
    padding: 14px var(--gutter);
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .site-brand { font-size: 20px; }

  .site-nav { gap: 8px; }

  /* Botões táteis no header */
  .btn-cta {
    padding: 9px 16px;
    font-size: 12px;
  }
  .btn-icon {
    width: 42px;
    height: 42px;
  }

  /* Hero mobile */
  .hero {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-content {
    padding: 120px var(--gutter) 100px;
    padding-top: calc(120px + env(safe-area-inset-top));
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    gap: var(--sp-4);
  }

  .hero-eyebrow-row {
    padding-bottom: 16px;
    margin-bottom: 0;
  }

  .hero-eyebrow-row .eyebrow,
  .hero-eyebrow-row .byline {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .hero-brand { margin: 24px 0 16px; }

  .hero-brand__name {
    font-size: clamp(42px, 12vw, 72px);
    line-height: 0.94;
  }

  .hero-brand__rule {
    width: 60px;
    height: 2px;
    margin-top: 16px;
  }

  .hero-title {
    font-size: clamp(15px, 4vw, 22px);
    max-width: 22ch;
  }

  .hero-body {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    justify-self: stretch;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    min-height: 48px;
    text-align: center;
    padding: 14px 24px;
  }

  .btn-secondary { padding: 14px 24px 12px; }

  .hero-scroll-hint { display: none; }

  /* Seções gerais */
  .section {
    padding: var(--sp-5) var(--gutter);
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 36px);
  }

  /* Portfolio */
  .feature-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card__media {
    aspect-ratio: 4 / 3;
  }

  .feature-card__title {
    font-size: clamp(22px, 4.5vw, 32px);
  }

  .feature-card__price {
    font-size: clamp(26px, 5.5vw, 40px);
  }

  /* Sobre */
  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-image {
    order: -1;
    aspect-ratio: 3 / 4;
    max-width: 420px;
    max-height: none;
    margin: 0 auto;
    width: 100%;
  }

  .about-body {
    font-size: 16px;
    line-height: 1.7;
  }

  /* Serviços/Método */
  .services {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* CTA final */
  .cta-final { padding: var(--sp-5) var(--gutter); }

  /* Página do imóvel */
  .imovel-hero {
    height: 56vh;
    height: 56dvh;
    min-height: 380px;
    margin-top: 64px;
  }

  .imovel-nav {
    width: 44px;
    height: 44px;
  }

  .imovel-nav--prev { left: 12px; }
  .imovel-nav--next { right: 12px; }

  .imovel-info {
    padding: var(--sp-4) var(--gutter) var(--sp-3);
  }

  .imovel-info__title {
    font-size: clamp(28px, 7vw, 44px);
    max-width: 100%;
  }

  .imovel-info__preco {
    font-size: clamp(40px, 10vw, 72px);
  }

  .imovel-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: var(--sp-4) var(--gutter);
  }

  .imovel-sidebar {
    position: static;
  }

  .imovel-caracs {
    columns: 1;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* CTA fixo no mobile (WhatsApp) */
  .mobile-cta {
    display: flex;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .mobile-cta a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Menu mobile — full screen, respeita safe-area */
  .mobile-menu {
    padding: 24px var(--gutter);
    padding-top: calc(24px + env(safe-area-inset-top));
    overscroll-behavior: contain;
  }

  .mobile-menu__nav a {
    font-size: 30px;
    padding: 4px 0;
  }
}

/* Mobile médio — 640px pra baixo */
@media (max-width: 640px) {
  :root {
    --sp-4: 20px;
    --sp-5: 36px;
    --sp-6: 56px;
  }

  .hero-content { padding: 100px 20px 90px; padding-top: calc(100px + env(safe-area-inset-top)); }

  .hero-brand__name {
    font-size: clamp(40px, 13vw, 64px);
  }

  .hero-title {
    font-size: 15px;
    letter-spacing: 0.05em;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cta-final__title {
    font-size: clamp(30px, 8vw, 48px);
  }

  .cta-final__lede {
    font-size: 16px;
  }
}

/* Mobile pequeno — 420px pra baixo */
@media (max-width: 420px) {
  :root {
    --gutter: 18px;
  }

  .site-brand { font-size: 18px; }

  .site-nav .btn-cta {
    padding: 8px 12px;
    font-size: 11px;
  }

  .btn-icon { width: 40px; height: 40px; }

  .hero-content {
    padding: 90px 18px 80px;
    padding-top: calc(90px + env(safe-area-inset-top));
  }

  .hero-brand__name {
    font-size: 44px;
    line-height: 0.92;
  }

  .hero-brand__rule {
    width: 48px;
  }

  .hero-title {
    font-size: 13px;
    letter-spacing: 0.06em;
    max-width: 24ch;
  }

  .hero-lede {
    font-size: 15px;
  }

  .imovel-info__preco { font-size: 44px; }
  .imovel-info__title { font-size: 26px; }

  .spec__num { font-size: 22px; }
}

/* Bem pequeno — iPhone SE etc */
@media (max-width: 360px) {
  .hero-brand__name { font-size: 38px; }
  .site-nav { gap: 4px; }
  .btn-cta { padding: 8px 10px; font-size: 10px; }
}

/* Prevenir zoom automático do iOS em inputs (fonte < 16px) */
@media (max-width: 720px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* iPhone landscape — hero curto */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-content {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .hero-brand__name { font-size: 40px; }
  .imovel-hero { height: 100vh; height: 100dvh; }
}

/* ============================================================
   19. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   PÁGINA /IMÓVEIS — hero + filtros + grid
   ============================================================ */
.imoveis-page {
  padding-top: 80px; /* espaço abaixo do header fixo compacto */
}

.imoveis-hero {
  background: var(--paper);
  padding: var(--sp-5) var(--gutter) var(--sp-4);
  border-bottom: 1px solid var(--rule);
}

.imoveis-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.imoveis-hero .eyebrow--accent {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.imoveis-hero .section-title--xl {
  margin: 0;
}

.imoveis-hero .section-lede {
  font-family: 'Fraunces', serif;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--ink-70);
  max-width: 60ch;
  margin-top: 4px;
}

/* Filtros — barra sticky */
.imoveis-filtros {
  background: var(--paper);
  padding: var(--sp-3) var(--gutter);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 60px;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246, 241, 234, 0.96);
}

.filtros-form {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 0.8fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}

.filtro-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filtro-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.filtro-input,
.filtro-select {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
  width: 100%;
  min-height: 42px;
  appearance: none;
  -webkit-appearance: none;
}

.filtro-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'><path d='M1 1l5 5 5-5' stroke='%231a0808' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.filtro-input:focus,
.filtro-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filtro-group--actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: end;
}

.filtro-group--actions .btn-primary {
  padding: 10px 24px;
  min-height: 42px;
}

.btn-secondary--sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* Resultado */
.imoveis-lista {
  padding: var(--sp-5) var(--gutter) var(--sp-6);
  max-width: var(--container);
  margin: 0 auto;
}

.lista-summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.lista-summary__count {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
}

.lista-summary__hint {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--ink-70);
}

.imoveis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4) var(--sp-3);
}

.lista-vazia {
  padding: var(--sp-6) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.lista-vazia h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--ink);
  max-width: 20ch;
}

.lista-vazia p {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--ink-70);
  max-width: 50ch;
}

.lista-vazia a {
  color: var(--accent);
  text-decoration: underline;
}

.lista-vazia .btn-primary {
  text-decoration: none;
}

/* CTAs no imóvel individual (topo da galeria) */
.imovel-cta-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 16px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.imovel-cta-strip .btn-primary,
.imovel-cta-strip .btn-secondary {
  min-height: 42px;
}

/* Responsivo página imoveis */
@media (max-width: 960px) {
  .filtros-form {
    grid-template-columns: 1fr 1fr;
  }
  .filtro-group--actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .filtro-group--actions .btn-primary { flex: 1; }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-image {
    aspect-ratio: 3 / 4;
    max-width: 420px;
    max-height: none;
    order: -1;
    margin: 0 auto;
  }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about-stat__num { font-size: 24px; }

  .section-title--xl { font-size: clamp(36px, 8vw, 60px); }
  .portfolio-section__title { font-size: clamp(24px, 5vw, 32px); }
  .portfolio-section__title::before { width: 24px; margin-right: 12px; }
}

@media (max-width: 640px) {
  .filtros-form {
    grid-template-columns: 1fr;
  }
  .imoveis-filtros { top: 52px; }
  .about-stats { grid-template-columns: 1fr; text-align: center; }
  .about-stats { border-top: none; padding-top: 0; }
  .about-stat { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .about-stat:last-child { border-bottom: none; }

  .section-hero__actions { flex-direction: column; align-items: stretch; }
  .section-hero__actions .btn-primary,
  .section-hero__actions .btn-secondary { justify-content: center; }

  .portfolio-section__header { flex-direction: column; align-items: flex-start; }
  .portfolio-section__link { font-size: 12px; }
}
