/* =========================================================
   Leopoldo Cabral & Associados — Home
   Tokens, base, layout, components, sections, responsive
   ========================================================= */

:root {
  /* Cor */
  --ink: #101216;
  --ink-2: #1a1d23;
  --ink-3: #272b33;
  --paper: #fbfaf7;
  --sand: #f3efe7;
  --sand-2: #e7e1d5;
  --wine: #8e1f2f;
  --wine-deep: #6f1522;
  --bronze: #b8976a;
  --muted: #6b6e75;
  --muted-on-dark: #a4a8b0;
  --line: rgba(16, 18, 22, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --focus: #c8743f;

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1rem; /* 16px */
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --text-hero: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem);

  /* Espaço */
  --gutter: clamp(1rem, 4.5vw, 4rem);
  --container: 1240px;
  --section-y: clamp(4.5rem, 6vw + 2rem, 8.5rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-sm: 4px;
  --radius: 8px;
  --header-h: 84px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.section-dark :focus-visible { outline-color: var(--bronze); }

/* ---------- Layout ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-sand { background: var(--sand); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-6) var(--space-8);
  align-items: end;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.section-head .section-note { max-width: 44ch; }
.section-head > .link-arrow, .section-head > .carousel-nav { justify-self: end; }
.section-foot { margin-top: var(--space-7); }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--space-4);
}
.section-dark .eyebrow { color: var(--bronze); }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-title em, .hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--wine);
}
.section-dark .section-title em { color: var(--bronze); }
.section-note { color: var(--muted); font-size: var(--text-md); line-height: 1.6; }
.section-dark .section-note { color: var(--muted-on-dark); }
.prose p + p { margin-top: var(--space-4); }
.prose { font-size: var(--text-md); line-height: 1.7; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1.05rem 1.75rem; font-size: var(--text-base); }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--sand-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow span { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.25s, color 0.25s;
}
.icon-btn:hover { background: var(--ink); color: #fff; }
.carousel-nav { display: flex; gap: var(--space-2); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: height 0.35s var(--ease-out), background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(16, 18, 22, 0.55), rgba(16, 18, 22, 0));
  opacity: 1; transition: opacity 0.35s;
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(251, 250, 247, 0.92);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::after { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.site-header:not(.is-scrolled) .brand-logo--dark, .site-header.is-scrolled .brand-logo--light { display: none; }
.site-header.nav-open-header .brand-logo--light { display: block; }
.site-header.nav-open-header .brand-logo--dark { display: none; }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.site-nav li a {
  font-size: var(--text-sm); font-weight: 500; position: relative; padding-block: 0.4rem;
}
.site-nav li a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav li a:hover::after, .site-nav li a.is-active::after { transform: scaleX(1); }
.nav-cta { padding: 0.7rem 1.1rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; position: relative; z-index: 60;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(100svh, 800px);
  min-height: 600px;
  max-height: 800px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: calc(clamp(2rem, 5vh, 3.5rem) + 56px);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-img { width: 100%; height: 115%; object-fit: cover; object-position: center 62%; will-change: transform; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16, 18, 22, 0.92) 0%, rgba(16, 18, 22, 0.55) 45%, rgba(16, 18, 22, 0.25) 100%),
    linear-gradient(to right, rgba(16, 18, 22, 0.55), rgba(16, 18, 22, 0) 60%);
}
.hero-content { margin-bottom: 0; }
.hero .eyebrow { color: var(--bronze); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  max-width: 18ch;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--space-5);
}
.hero-title em { color: var(--sand-2); }
.hero-lead { font-size: var(--text-md); max-width: 60ch; color: rgba(255, 255, 255, 0.82); margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.search-band { position: relative; z-index: 3; margin-top: -56px; background: linear-gradient(to bottom, transparent 56px, var(--paper) 56px); }
.quick-search {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.qs-field { padding: 0.65rem 1.1rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.15rem; }
.qs-field label { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.qs-field select {
  border: 0; background: transparent; padding: 0.15rem 0; font-weight: 500; width: 100%;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101216' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.5rem;
}
.qs-field select:focus-visible { outline-offset: 2px; }
.qs-submit { border-radius: var(--radius-sm); padding-inline: 2rem; margin-left: 0.5rem; }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: clamp(2rem, 5vh, 4rem);
  width: 1px; height: 64px; background: rgba(255, 255, 255, 0.25); overflow: hidden;
}
.scroll-hint span { position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: scrollLine 2.2s var(--ease-out) infinite; }
@keyframes scrollLine { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Números ---------- */
.numbers { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-on-dark); }
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: clamp(2.5rem, 4vw, 4rem);
}
.num { padding-inline: var(--space-5); border-left: 1px solid var(--line-on-dark); display: flex; flex-direction: column; gap: 0.5rem; }
.num:first-child { padding-left: 0; border-left: 0; }
.num-value { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); line-height: 1; font-weight: 300; color: #fff; }
.num-unit { font-size: 0.5em; vertical-align: super; color: var(--bronze); }
.num-label { font-size: var(--text-sm); color: var(--muted-on-dark); max-width: 24ch; line-height: 1.5; }

/* ---------- Imóveis ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: var(--space-6); }
.chip {
  padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--text-sm); font-weight: 500; color: var(--muted);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters-count { margin-left: auto; font-size: var(--text-sm); color: var(--muted); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 2rem);
}
.listing {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.listing:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(16, 18, 22, 0.35); border-color: transparent; }
.listing.is-hidden { display: none; }
.listing-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.listing:hover .listing-media img { transform: scale(1.04); }
.listing-tags { position: absolute; top: 0.85rem; left: 0.85rem; right: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.listing-tag {
  background: rgba(251, 250, 247, 0.94); color: var(--ink);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; border-radius: var(--radius-sm);
}
.listing-tag.is-highlight { background: var(--wine); color: #fff; }
.listing-body { padding: 1.25rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.listing-place { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.listing-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; line-height: 1.2; }
.listing-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.listing-desc { color: var(--muted); font-size: var(--text-sm); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.listing-price { font-weight: 700; font-size: var(--text-md); margin-top: 0.5rem; }
.listing-price small { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.1rem; }
.listing-specs {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--muted);
}
.listing-specs span { display: inline-flex; align-items: center; gap: 0.45rem; }
.listing-specs svg { width: 18px; height: 18px; color: var(--bronze); flex: none; }
.listing-specs strong { color: var(--ink); font-weight: 600; }
.listing-empty { text-align: center; color: var(--muted); padding-block: var(--space-7); }
.listing-empty a { color: var(--wine); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.about-media { position: sticky; top: calc(64px + 2rem); }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-sm); border: 1px solid var(--line-on-dark); }
.portrait--home { object-position: 50% 50%; }
.about-quote { margin-top: var(--space-5); padding-left: var(--space-4); border-left: 2px solid var(--bronze); }
.about-quote blockquote { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: var(--text-lg); line-height: 1.35; }
.about-quote figcaption { margin-top: 0.5rem; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); }
.about-copy .section-title { margin-bottom: var(--space-6); }
.about-copy .prose { color: rgba(251, 250, 247, 0.85); }
.about-facts { margin-block: var(--space-7); border-top: 1px solid var(--line-on-dark); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); }
.prose + .about-actions { margin-top: var(--space-7); }
.about-facts li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-4);
  padding-block: 1.1rem; border-bottom: 1px solid var(--line-on-dark);
}
.about-facts strong { font-weight: 600; }
.about-facts span { color: var(--muted-on-dark); font-size: var(--text-sm); }

/* ---------- Parceiros ---------- */
.partners { padding-bottom: calc(var(--section-y) - 1rem); }
.partners-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-6) var(--space-8); align-items: end; margin-bottom: var(--space-8); }
.partners-head .section-note { margin-bottom: var(--space-4); max-width: 44ch; }
.marquee {
  overflow: hidden; display: flex; gap: 0;
  border-block: 1px solid var(--line); padding-block: var(--space-5);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; flex: none; align-items: center; gap: clamp(2rem, 4vw, 4rem);
  padding-right: clamp(2rem, 4vw, 4rem);
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; }
.marquee-track img {
  height: 72px; width: auto; max-width: 200px; object-fit: contain;
  filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s;
}
.marquee-track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.post { display: flex; flex-direction: column; gap: 0.5rem; }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: var(--space-3); background: var(--sand-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.post:hover .post-media img { transform: scale(1.04); }
.post h3 {
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post h3 a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.4s var(--ease-out); }
.post:hover h3 a { background-size: 100% 1px; }
.post > p {
  color: var(--muted); font-size: var(--text-sm); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-more { align-self: flex-start; margin-top: auto; padding-top: 0.5rem; color: var(--wine); }

/* ---------- Contato ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact-media { position: absolute; inset: 0; z-index: -1; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.4); }
.contact-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--ink) 35%, rgba(16, 18, 22, 0.75)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-copy .section-title { margin-bottom: var(--space-5); }
.contact-channels { margin-top: var(--space-7); border-top: 1px solid var(--line-on-dark); }
.contact-channels li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-block: 1rem; border-bottom: 1px solid var(--line-on-dark); }
.channel-label { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 600; }
.contact-channels a { font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.contact-channels a:hover { border-color: var(--bronze); }

.contact-form {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color 0.25s, box-shadow 0.25s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101216' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.75rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 18, 22, 0.08); }
.field.has-error input, .field.has-error select { border-color: var(--wine); }
.field-error { font-size: var(--text-xs); color: var(--wine); min-height: 1em; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.form-hint { font-size: var(--text-xs); color: var(--muted); }
.form-status { font-size: var(--text-sm); font-weight: 600; min-height: 1.4em; }
.form-status.is-success { color: #1f6b3a; }
.form-status.is-error { color: var(--wine); }
.btn-loading { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn-loading { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: var(--paper); border-top: 1px solid var(--line-on-dark); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6); padding-block: clamp(3rem, 5vw, 5rem);
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: var(--space-4); color: var(--muted-on-dark); font-size: var(--text-sm); max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); margin-bottom: 0.4rem; font-weight: 600; }
.footer-col a { font-size: var(--text-sm); color: rgba(251, 250, 247, 0.85); transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: var(--text-sm); color: var(--muted-on-dark); line-height: 1.7; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  padding-block: var(--space-5); border-top: 1px solid var(--line-on-dark);
  font-size: var(--text-xs); color: var(--muted-on-dark);
}
.footer-bottom a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.form-hint a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.privacy-updated { font-size: var(--text-sm); color: var(--muted); }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--sand); padding: 0.1em 0.35em; border-radius: 3px; }

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(120px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { transform: translateY(-2px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); }
  .num:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand-logo { height: 38px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: var(--space-7); padding: calc(var(--header-h) + 1rem) var(--gutter) var(--space-7);
    background: var(--ink); color: #fff;
    transform: translateX(100%); transition: transform 0.45s var(--ease-out);
  }
  .site-nav.is-open { transform: none; }
  .site-nav ul { flex-direction: column; gap: var(--space-3); }
  .site-nav li a { font-family: var(--font-display); font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 300; }
  .site-nav li a::after { display: none; }
  body.nav-open { overflow: hidden; }
  .site-header.nav-open-header { color: #fff; background: transparent; box-shadow: none; }
  .site-header.nav-open-header .brand { position: relative; z-index: 60; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head > .link-arrow, .section-head > .carousel-nav { justify-self: start; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 420px; }
  .post-grid { grid-template-columns: 1fr; max-width: 560px; }
  .quick-search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qs-field:nth-child(3) { border-right: 0; }
  .qs-submit { grid-column: 1 / -1; margin: 0.5rem 0 0; padding-block: 0.9rem; }
}

@media (max-width: 640px) {
  .brand-logo { height: 32px; }
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .quick-search { grid-template-columns: 1fr; gap: 0; }
  .qs-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .qs-field:nth-child(3) { border-bottom: 0; }
  .scroll-hint { display: none; }
  .numbers-grid { grid-template-columns: 1fr; }
  .num { padding-left: 0; border-left: 0; padding-top: var(--space-4); border-top: 1px solid var(--line-on-dark); }
  .num:first-child { padding-top: 0; border-top: 0; }
  .listing-grid { grid-template-columns: 1fr; }
  .filters-count { flex-basis: 100%; margin-left: 0; }
  .about-facts li { grid-template-columns: 1fr; gap: 0.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-channels li { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .nav-cta { align-self: stretch; }
}

/* ---------- Movimento reduzido ---------- */
@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; }
  .reveal { opacity: 1; transform: none; }
  .hero-img { transform: none !important; }
  .marquee-track { animation: none; }
  .scroll-hint { display: none; }
}

/* ---------- Telas largas e baixas (notebooks 1280x720 / 1366x768) ---------- */
@media (min-width: 961px) and (max-height: 780px) {
  .hero { padding-top: calc(var(--header-h) + 1.5rem); }
  .hero-title { font-size: clamp(2.5rem, 1rem + 3.6vw, 4.25rem); margin-bottom: var(--space-4); }
  .hero-lead { margin-bottom: var(--space-5); font-size: var(--text-base); }
  .hero-content { margin-bottom: var(--space-5); }
  .btn-lg { padding: 0.9rem 1.5rem; }
}

/* =========================================================
   Páginas internas, filtros, imóvel, idioma (v3)
   ========================================================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.section-foot { display: flex; justify-content: center; }

/* Navegação: idioma + CTA */
.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: 0.9; }
.lang-switch button {
  min-width: 36px; min-height: 30px; padding: 0 0.55rem; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em;
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch button[aria-pressed="true"] { background: currentColor; }
.lang-switch button[aria-pressed="true"] { color: var(--ink); background: #fff; }
.site-header.is-scrolled .lang-switch button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.site-nav li a[aria-current="page"]::after { transform: scaleX(1); }

/* Google Tradutor: esconde a barra e os balões do widget */
body { top: 0 !important; position: static !important; }
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font { vertical-align: inherit !important; }

/* Cabeçalho das páginas internas */
.page-hero {
  background: var(--ink); color: var(--paper);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero .eyebrow { color: var(--bronze); }
.page-hero--compact { padding: 0; height: var(--header-h); }
.page-title {
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl);
  line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; max-width: 22ch;
}
.page-title em { font-style: italic; font-weight: 300; color: var(--bronze); }
.page-lead { margin-top: var(--space-5); max-width: 60ch; font-size: var(--text-md); color: var(--muted-on-dark); }
.breadcrumb { margin-bottom: var(--space-5); font-size: var(--text-sm); color: var(--muted-on-dark); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--paper); }

/* Filtros da página de imóveis */
.listings-page { padding-top: clamp(2rem, 4vw, 3rem); }
.filter-bar {
  display: grid; gap: var(--space-4);
  padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); margin-bottom: var(--space-5);
}
.filter-status { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-status .chip { cursor: pointer; display: inline-flex; align-items: center; }
.filter-status input { position: absolute; opacity: 0; pointer-events: none; }
.filter-status .chip:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-field label { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.filter-field select {
  width: 100%; padding: 0.75rem 2.75rem 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101216' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center;
}
.filter-field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 18, 22, 0.08); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.results-count { font-size: var(--text-sm); color: var(--muted); font-weight: 600; }
.listing-empty { text-align: center; padding: var(--space-8) var(--space-4); }
.listing-empty h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); margin-bottom: var(--space-3); }
.listing-empty p { color: var(--muted); margin-bottom: var(--space-5); }

/* Faixa de chamada */
.cta-band { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.cta-inner { display: grid; justify-items: start; gap: var(--space-4); }
.cta-inner .section-note { max-width: 56ch; }

/* Página do imóvel */
.property-hero { background: var(--ink); color: var(--paper); padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: var(--space-6); }
.property-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-4); }
.property-tags .listing-tag { background: rgba(255, 255, 255, 0.92); }
.property-tags .listing-tag.is-highlight { background: var(--wine); color: #fff; }
.listing-tag.is-outline { background: transparent !important; color: var(--paper); border: 1px solid var(--line-on-dark); }
.property-place { margin-top: var(--space-3); color: var(--muted-on-dark); font-size: var(--text-md); }
.property-gallery { background: linear-gradient(to bottom, var(--ink) 50%, var(--paper) 50%); }
.gallery {
  display: grid; gap: 0.5rem;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden;
}
.gallery-item { position: relative; overflow: hidden; background: var(--ink-3); cursor: zoom-in; }
.gallery-item.is-main { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out), opacity 0.3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(16, 18, 22, 0.55); color: #fff; font-weight: 600;
}
.gallery:has(.gallery-item:nth-child(1):last-child) { grid-template-columns: 1fr; }
.gallery:has(.gallery-item:nth-child(2):last-child) { grid-template-columns: 2fr 1fr; }
.gallery:has(.gallery-item:nth-child(2):last-child) .gallery-item:nth-child(2) { grid-row: span 2; }
.gallery:has(.gallery-item:nth-child(3):last-child) { grid-template-columns: 2fr 1fr; }
.gallery:has(.gallery-item:nth-child(4):last-child) .gallery-item:nth-child(4) { grid-column: span 2; }

.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(10, 11, 14, 0.96); color: #fff; }
.lightbox::backdrop { background: rgba(10, 11, 14, 0.9); }
/* A linha e a coluna da grade têm tamanho definido: assim a foto (vertical ou horizontal) cabe inteira na tela */
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 4rem 1rem; box-sizing: border-box; }
.lightbox-img { width: auto; height: auto; max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; }
.lightbox-count { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); font-size: var(--text-sm); color: rgba(255, 255, 255, 0.75); }
.lightbox-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.2rem; transition: background-color 0.2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 1.25rem; top: 1rem; }

.property-body { padding-top: clamp(2.5rem, 5vw, 4rem); }
.property-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.block-title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); margin-bottom: var(--space-5); }
.block-title:not(:first-child) { margin-top: var(--space-8); }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.spec-list > div { padding: 1rem 0; border-bottom: 1px solid var(--line); padding-right: var(--space-4); }
.spec-list dt { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.spec-list dd { margin: 0.25rem 0 0; font-weight: 600; }
.property-aside { position: sticky; top: calc(64px + 1.5rem); }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); display: grid; gap: var(--space-3); box-shadow: 0 24px 48px -36px rgba(16, 18, 22, 0.4); }
.aside-label { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.aside-price { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; }
.aside-note { font-size: var(--text-sm); color: var(--muted); }
.aside-agent { display: flex; gap: 0.75rem; align-items: center; margin-top: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.aside-agent img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.aside-agent strong { display: block; color: var(--ink); }

/* Texto longo (imóvel e artigo) */
.article-body { font-size: var(--text-md); line-height: 1.75; color: var(--ink-2); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); margin-top: 1.8em; color: var(--ink); }
.article-body ul { padding-left: 1.2rem; list-style: disc; }
.article-body li + li { margin-top: 0.35em; }
.article-body li::marker { color: var(--bronze); }
.article-body a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.article-lead { font-size: var(--text-lg); line-height: 1.5; color: var(--ink); font-family: var(--font-display); font-weight: 300; }
.article-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.article-cover { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }
.property-facts-lead { font-weight: 600; color: var(--ink); }
.facts-updated { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--muted); }
.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-5); background: var(--sand); border-radius: var(--radius); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box p { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.6; }
.author-box .author-name { font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.author-box .link-arrow { margin-top: var(--space-3); display: inline-flex; }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--line); }

/* Sobre */
.about-page .about-copy .section-title { margin-bottom: var(--space-5); }
.prose-dark, .about-page .about-copy .prose, .article .prose { color: var(--ink-2); }
.about-quote--light blockquote { color: var(--ink); }
.about-quote--light figcaption { color: var(--muted); }
.steps--static .step { grid-template-columns: 4rem minmax(0, 1fr); }
.media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.media-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--sand-2); }

/* Parceiros */
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.partner-card > *, .partner-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); }
.partner-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6) var(--space-4); text-align: center; transition: border-color 0.3s, transform 0.3s var(--ease-out); }
.partner-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.partner-card img { height: 88px; width: auto; max-width: 100%; object-fit: contain; }
.partner-name { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }

/* Método (accordion) — usado na página Sobre */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) 44px;
  gap: var(--space-4) var(--space-6); align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line);
}
.step-index { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; color: var(--wine); line-height: 1; font-style: italic; }
.step-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-6); align-items: start; }
.step-body h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1.1; }
.step-body p { color: var(--muted); font-size: var(--text-md); }
.step-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: background-color 0.25s, border-color 0.25s; }
.step-toggle::before, .step-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.step-toggle::before { width: 14px; height: 1.5px; }
.step-toggle::after { width: 1.5px; height: 14px; transition: transform 0.3s var(--ease-out); }
.step-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.step-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(90deg); }
.step-more { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: var(--space-6); grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.step-more > p { grid-column: 2; overflow: hidden; color: var(--ink); max-width: 60ch; }
.step.is-open .step-more { grid-template-rows: 1fr; }
.step-body { cursor: pointer; }
.steps--static .step-body { cursor: default; }

/* Footer: título semântico */
.footer-title { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); margin-bottom: 0.4rem; font-weight: 600; }

/* Responsivo das novas peças */
@media (max-width: 1100px) {
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .property-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 960px) {
  .site-nav .nav-actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--space-5); }
  .site-nav .lang-switch { align-self: flex-start; color: #fff; }
  .site-nav .lang-switch button[aria-pressed="true"] { color: var(--ink); background: #fff; }
  .partners-head { grid-template-columns: 1fr; align-items: start; }
  .property-grid { grid-template-columns: 1fr; }
  .property-aside { position: static; order: -1; }
  .gallery { aspect-ratio: 4 / 3; grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
  .gallery-item.is-main { grid-column: span 2; grid-row: auto; }
  .gallery-item:nth-child(n+4) { display: none; }
  .step { grid-template-columns: 2.5rem minmax(0, 1fr) 44px; column-gap: var(--space-4); }
  .steps--static .step { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .step-body { grid-template-columns: 1fr; gap: var(--space-2); }
  .step-more { grid-template-columns: 1fr; }
  .step-more > p { grid-column: 1; }
}
@media (max-width: 640px) {
  .hero { height: auto; min-height: min(100svh, 800px); max-height: 800px; padding-bottom: var(--space-7); }
  .search-band { margin-top: 0; background: var(--ink); padding: var(--space-5) 0 var(--space-6); }
  .filter-fields { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .partner-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card img { height: 64px; }
  .results-bar { flex-wrap: wrap; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1.25rem; transform: none; }
}

/* ---------- Ficha do imóvel (v5) ---------- */
.facts { margin-bottom: var(--space-8); }
.facts-key {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: var(--space-5);
}
.facts-key li { display: grid; gap: 0.35rem; padding: clamp(1rem, 2.5vw, 1.5rem); }
.facts-key li + li { border-left: 1px solid var(--line); }
.facts-key svg { width: 26px; height: 26px; color: var(--bronze); margin-bottom: 0.35rem; }
.facts-key strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.05; }
.facts-key span { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
.facts-table > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts-table dt { color: var(--muted); font-size: var(--text-sm); }
.facts-table dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Compartilhar ---------- */
.share { display: grid; gap: 0.6rem; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.share-label { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.share-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-width: 42px; height: 42px; padding: 0 0.7rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: var(--text-sm); font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.share-btn svg { width: 18px; height: 18px; flex: none; }
.share-btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.share-btn--whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn--email:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.share-btn--copy.is-copied { background: var(--ink); border-color: var(--ink); color: #fff; }
.share-feedback { font-size: var(--text-sm); color: #1f6b3a; font-weight: 600; min-height: 1.2em; }
.share-feedback:empty { display: none; }
.share--wide { border-top: 0; border-block: 1px solid var(--line); padding-block: var(--space-5); grid-template-columns: auto 1fr; align-items: center; column-gap: var(--space-5); }
.share--wide .share-feedback { grid-column: 1 / -1; }
.aside-card .share { margin-top: var(--space-2); }

@media (max-width: 760px) {
  .facts-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-key li:nth-child(3) { border-left: 0; }
  .facts-key li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts-table { grid-template-columns: 1fr; }
  .share--wide { grid-template-columns: 1fr; }
}

/* ---------- Perguntas frequentes (Contato) ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-grid header .section-title { margin-bottom: var(--space-4); }
.faq-grid .section-note a { color: var(--wine); font-weight: 600; border-bottom: 1px solid currentColor; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: 1.25rem 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); line-height: 1.3; }
.faq-icon { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: background-color 0.25s, border-color 0.25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; transition: transform 0.3s var(--ease-out); }
.faq-item[open] .faq-icon { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item p { padding: 0 3rem 1.4rem 0; color: var(--muted); font-size: var(--text-md); line-height: 1.7; max-width: 65ch; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; } .faq-item p { padding-right: 0; } }

/* ---------- Localização (página do imóvel) ---------- */
.location { margin-top: var(--space-8); }
.location-address { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 600; margin-bottom: var(--space-4); }
.location-address svg { width: 20px; height: 20px; color: var(--bronze); flex: none; margin-top: 0.15rem; }
.map-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sand-2); margin-bottom: var(--space-4); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

.facts-link { color: inherit; border-bottom: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.facts-link:hover { color: var(--wine); border-color: currentColor; }
