/* =========================================================
   Marquesi Imóveis — folha de estilo principal
   Conceito: caderno de endereços + linguagem de prancha
   ========================================================= */

/* Fontes self-hosted
   --------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Petrona";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/petrona-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Petrona";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/petrona-italic-latin.woff2") format("woff2");
}

/* Tokens
   --------------------------------------------------------- */
:root {
  --ink: #221c18;
  --ink-soft: #3b332e;
  --brown: #5f4c45;
  --muted: #635a52;
  --paper: #efeee8;
  --stone: #dfdcd1;
  --stone-soft: #e7e4db;
  --green: #2c4438;
  --green-deep: #21362c;
  --brass: #b08a3e;
  --focus: #8a6a2b;
  --line: rgba(34, 28, 24, 0.16);
  --line-strong: rgba(34, 28, 24, 0.34);
  --paper-line: rgba(239, 238, 232, 0.24);
  --paper-soft: rgba(239, 238, 232, 0.76);

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Petrona", Georgia, "Times New Roman", serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 84px;
  --radius: 0px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --h1: clamp(2.6rem, 5.2vw, 4.6rem);
  --h2: clamp(2rem, 3.6vw, 3.25rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

/* Enquanto o menu mobile está aberto, widgets flutuantes não competem
   com o painel nem entram na ordem de foco. */
body.menu-open .wa__widget_container,
body.menu-open .cc-window {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

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

/* Focus
   --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.announce :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--paper);
}

/* Título que recebe foco por script (limpar filtros): uma marca
   discreta à esquerda indica o novo ponto de leitura sem emoldurar
   o bloco inteiro. */
#imoveis-title:focus,
#imoveis-title:focus-visible {
  outline: none;
  padding-left: 18px;
  margin-left: -21px;
  box-shadow: inset 3px 0 0 var(--focus);
}

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

main > section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Skip link
   --------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

/* Typography helpers
   --------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

h1 {
  font-size: var(--h1);
  font-stretch: 112%;
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: var(--h2);
  font-stretch: 110%;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

.link-underline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.link-underline:hover {
  color: var(--green);
  text-decoration-thickness: 2px;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brown);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.link-button:hover {
  color: var(--green);
}

/* Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--paper);
}

.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--green);
}

.btn--paper:hover,
.btn--paper:focus-visible {
  background: #fbfaf6;
  border-color: #fbfaf6;
  color: var(--green-deep);
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.icon {
  flex: 0 0 auto;
}

/* Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(239, 238, 232, 0.97);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  background: rgba(239, 238, 232, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
  line-height: 0;
}

.brand svg {
  display: block;
  width: auto;
  height: 50px;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.header-cta {
  flex: 0 0 auto;
}

button.menu-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

body.menu-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px var(--gutter) 40px;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  overflow-y: auto;
}

body.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: none;
}

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.mobile-menu-contact p {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  line-height: 1.5;
}

.mobile-menu-contact a {
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu .btn {
  align-self: flex-start;
}

/* Hero
   --------------------------------------------------------- */
.hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.2vw, 32px);
  align-items: start;
}

.hero-copy {
  grid-column: 1 / span 5;
  padding-top: 6px;
}

.hero-lede {
  max-width: 39ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-top: 36px;
  padding: 18px;
  border: 1px solid var(--line-strong);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brown);
}

.field select {
  width: 100%;
  padding: 8px 26px 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background-color: transparent;
  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='%235F4C45' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 3px center;
  background-size: 11px 7px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}

.field select:focus-visible {
  outline-offset: 2px;
}

.field input[type="search"] {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  appearance: none;
}

.field input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.field input[type="search"]:focus-visible {
  outline-offset: 2px;
}

.search-submit {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 2px;
}

.hero-media {
  grid-column: 6 / -1;
  margin: 0;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.hero-photo img {
  width: 100%;
  height: auto;
  animation: hero-reveal 1s var(--ease) both;
}

.hero-copy h1 {
  animation: hero-rise 0.7s 0.08s var(--ease) both;
}

.hero-lede,
.search {
  animation: hero-rise 0.7s 0.18s var(--ease) both;
}

.hero-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  animation: hero-fade 0.6s 0.46s var(--ease) both;
}

.hero-caption-place {
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brown);
}

.hero-caption-title {
  max-width: 26ch;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-caption-title a {
  text-decoration: none;
}

.hero-caption-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-caption-meta {
  text-align: right;
}

.hero-price {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-specs {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes hero-reveal {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Section heads
   --------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.section-head-copy h2 {
  max-width: 20ch;
}

.section-head-copy p {
  max-width: 52ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Neighborhoods
   --------------------------------------------------------- */
.neighborhoods {
  padding: clamp(56px, 6vw, 80px) 0 clamp(64px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.hood-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
}

.hood-list li {
  border-top: 1px solid var(--line-strong);
}

.hood-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 24px;
  text-decoration: none;
}

.hood-name {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.2s ease;
}

.hood-count {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.hood-link:hover .hood-name {
  color: var(--green);
}

.hood-link:hover .hood-count {
  color: var(--brown);
}

/* Listings
   --------------------------------------------------------- */
.listings {
  padding: clamp(64px, 7vw, 96px) 0 clamp(72px, 8vw, 104px);
  background: var(--stone-soft);
  border-top: 1px solid var(--line);
}

.results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -24px 0 28px;
}

.results {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px clamp(20px, 2.2vw, 32px);
}

.property {
  position: relative;
  grid-column: span 4;
  min-width: 0;
}

.property--lead {
  grid-column: span 7;
}

.property--medium {
  grid-column: span 5;
}

.property-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--stone);
}

.property--lead .property-media {
  aspect-ratio: 16 / 10;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.property:hover .property-media img,
.property:focus-within .property-media img {
  transform: scale(1.03);
}

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 9px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.card-dim {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 18px;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brown);
}

.card-dim::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-strong);
}

.card-dim i {
  position: absolute;
  top: 4px;
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.card-dim i:first-child {
  left: 0;
}

.card-dim i:last-child {
  right: 0;
}

.card-dim span {
  position: relative;
  padding: 0 10px;
  background: var(--stone-soft);
}

.property-body {
  padding-top: 14px;
}

.property-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

/* Aplica-se aos cards do tema; o título do imóvel no Estatik usa a
   largura disponível ao lado do preço. */
.property .property-title {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.property--lead .property-title {
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
}

.property--medium .property-title {
  font-size: clamp(1.35rem, 1.7vw, 1.55rem);
}

.property-title a {
  text-decoration: none;
}

.property-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.property:hover .property-title a,
.property:focus-within .property-title a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.property-price {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.property-place {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.4;
}

.property-specs {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brown);
}

.property-specs span + span::before {
  content: "/";
  margin: 0 8px;
  color: var(--line-strong);
}

.property[hidden] {
  display: none !important;
}

/* Em telas largas, o card médio acompanha a altura do destaque:
   a imagem cresce e as duas fichas fecham na mesma linha. */
@media (min-width: 901px) {
  .property--lead,
  .property--medium {
    display: flex;
    flex-direction: column;
  }

  .property--lead .property-media {
    flex: 0 0 auto;
  }

  .property--medium .property-media {
    flex: 1 1 auto;
    aspect-ratio: auto;
  }

  .property--medium .property-body {
    margin-top: 0;
  }
}

/* Empty state
   --------------------------------------------------------- */
.empty {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.empty h3 {
  font-size: 1.5rem;
  font-stretch: 108%;
}

.empty p {
  max-width: 48ch;
  margin-top: 10px;
  color: var(--muted);
}

.empty .btn {
  margin-top: 22px;
}

/* Announce
   --------------------------------------------------------- */
.announce {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--green);
  color: var(--paper);
}

.announce-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.2vw, 32px);
  align-items: center;
}

.announce-copy {
  grid-column: 1 / span 6;
}

.announce h2 {
  max-width: 17ch;
  color: var(--paper);
}

.announce-lede {
  max-width: 47ch;
  margin-top: 20px;
  color: var(--paper-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.benefits {
  margin-top: 38px;
  border-top: 1px solid var(--paper-line);
}

.benefits li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
}

.benefits h3 {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--paper);
}

.benefits p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--paper-soft);
}

.announce .btn {
  margin-top: 32px;
}

.announce-note {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--paper-soft);
}

.announce-art {
  grid-column: 8 / -1;
  justify-self: end;
  width: 100%;
  max-width: 500px;
  color: var(--brass);
}

.plan {
  width: 100%;
  height: auto;
  overflow: visible;
}

.plan-walls {
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: square;
}

.plan-windows {
  stroke: var(--paper);
  stroke-opacity: 0.55;
  stroke-width: 2;
}

.plan-labels text {
  fill: var(--paper);
  fill-opacity: 0.55;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.plan-dims {
  stroke: currentColor;
  stroke-opacity: 0.85;
  stroke-width: 1.5;
}

.plan-dims text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* About
   --------------------------------------------------------- */
.about {
  padding: clamp(64px, 8vw, 104px) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.2vw, 32px);
  align-items: start;
}

.about-media {
  grid-column: 1 / span 5;
  margin: 0;
  overflow: hidden;
  background: var(--stone);
}

.about-media img {
  width: 100%;
  height: auto;
}

.about-copy {
  grid-column: 7 / span 4;
}

.about-copy h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
}

.about-copy blockquote {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.about-copy blockquote p {
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}

.about-copy blockquote footer {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brown);
}

.about-copy > p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.about-copy .link-underline {
  margin-top: 24px;
}

.facts {
  grid-column: 11 / -1;
}

.facts > div {
  padding: 14px 0 18px;
  border-top: 1px solid var(--line-strong);
}

.facts dt {
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brown);
}

.facts dd {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Footer
   --------------------------------------------------------- */
.site-footer {
  padding: clamp(56px, 7vw, 80px) 0 28px;
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.2vw, 32px);
  row-gap: 40px;
}

.footer-brand {
  grid-column: 1 / span 4;
}

.brand--footer {
  color: var(--paper);
}

.brand--footer svg {
  height: 46px;
}

.footer-brand > p {
  max-width: 30ch;
  margin-top: 18px;
  color: var(--paper-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-nav {
  grid-column: 5 / span 2;
  display: flex;
  flex-direction: column;
}

.footer-contact {
  grid-column: 7 / span 3;
  display: flex;
  flex-direction: column;
}

.footer-hours {
  grid-column: 10 / span 3;
  display: flex;
  flex-direction: column;
}

.site-footer h2 {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--brass);
}

.footer-nav a,
.footer-contact a,
.footer-privacy {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--paper-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a {
  margin-bottom: 8px;
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-privacy:hover {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-contact address {
  margin-bottom: 12px;
  color: var(--paper-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.footer-contact a {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.footer-hours p {
  color: var(--paper-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--paper-line);
  color: var(--paper);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.socials a:hover {
  border-color: var(--brass);
  background: rgba(239, 238, 232, 0.06);
}

.footer-privacy {
  margin-top: 18px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(239, 238, 232, 0.62);
}

/* Responsive
   --------------------------------------------------------- */
@media (max-width: 1120px) {
  .hero-copy {
    grid-column: 1 / -1;
    max-width: 780px;
  }

  .hero-media {
    grid-column: 1 / -1;
    margin-top: 28px;
  }

  .hero-lede {
    max-width: 52ch;
  }

  .about-media {
    grid-column: 1 / span 6;
  }

  .about-copy {
    grid-column: 7 / -1;
  }

  .facts {
    grid-column: 7 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    margin-top: 8px;
  }

  .footer-brand {
    grid-column: 1 / span 6;
  }

  .footer-nav {
    grid-column: 7 / span 2;
  }

  .footer-contact {
    grid-column: 9 / span 4;
  }

  .footer-hours {
    grid-column: 1 / span 6;
  }
}

/* Header: com a logo maior, a navegação completa cabe a partir de 980px;
   abaixo disso, painel. */
@media (max-width: 979px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  button.menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .property--lead {
    grid-column: 1 / -1;
  }

  .property--medium,
  .property--small {
    grid-column: span 6;
  }

  .property--lead .property-media {
    aspect-ratio: 16 / 9;
  }

  .hood-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .announce-copy {
    grid-column: 1 / -1;
  }

  .announce h2 {
    max-width: 22ch;
  }

  .announce-art {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 520px;
    margin-top: 40px;
  }

  .about-media {
    grid-column: 1 / span 5;
    max-width: none;
  }

  .about-copy {
    grid-column: 7 / -1;
    max-width: none;
    margin-top: 0;
  }

  .facts {
    grid-column: 1 / -1;
    margin-top: 36px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / span 6;
  }

  .footer-nav,
  .footer-hours {
    grid-column: 7 / span 6;
  }

  .footer-nav {
    margin-top: 0;
  }

  .footer-hours {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .hood-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-media {
    grid-column: 1 / -1;
    max-width: 560px;
  }

  .about-copy {
    grid-column: 1 / -1;
    max-width: 640px;
    margin-top: 32px;
  }

  .facts {
    grid-column: 1 / -1;
  }

  .property,
  .property--lead,
  .property--medium,
  .property--small {
    grid-column: 1 / -1;
  }

  .property--lead .property-title {
    font-size: 1.55rem;
  }

  .property--medium .property-title {
    font-size: 1.4rem;
  }

  .property-heading {
    gap: 16px;
  }

  .section-head {
    align-items: flex-start;
    gap: 18px;
  }

  .section-head-copy h2 {
    max-width: 18ch;
  }

  .results-row {
    margin-top: -16px;
  }

  .empty {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 72px;
  }

  .brand svg {
    height: 50px;
  }

  .brand--footer svg {
    height: 40px;
  }

  .header-inner {
    gap: 16px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .search {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .search-submit {
    grid-column: auto;
  }

  .hero-caption {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-caption-meta {
    text-align: left;
  }

  .hero-caption-title {
    font-size: 1.2rem;
  }

  .hood-list {
    grid-template-columns: 1fr;
  }

  .hood-link {
    padding: 15px 0 18px;
  }

  .hood-name {
    font-size: 1.25rem;
  }

  .benefits li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .property-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .property-price {
    font-size: 1.05rem;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-hours {
    grid-column: 1 / -1;
  }

  .footer-grid {
    row-gap: 32px;
  }
}

/* Reduced motion
   --------------------------------------------------------- */
@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;
  }
}

/* Integração WordPress / GeneratePress
   --------------------------------------------------------- */
body {
  min-height: 100vh;
}

.brand svg {
  color: inherit;
}

.admin-bar .site-header {
  top: 32px;
}

.admin-bar .mobile-menu {
  top: calc(var(--header-h) + 32px);
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .mobile-menu {
    top: calc(var(--header-h) + 46px);
  }
}

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

/* Páginas internas
   --------------------------------------------------------- */
.page-main {
  padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 7vw, 96px);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr);
  column-gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.page-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}

.page-layout .page-head {
  position: sticky;
  top: calc(var(--header-h) + clamp(24px, 3vw, 40px));
  margin-bottom: 0;
}

.page-head h1 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.08;
  text-wrap: balance;
}

.page-intro {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--muted);
}

.page-content {
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Páginas com a listagem do Estatik usam toda a largura. */
.page-layout--wide {
  display: block;
}

.page-layout--wide .page-head {
  position: static;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* O GeneratePress aplica margem ao .page-content quando ele não é o
   primeiro filho; no layout editorial ele alinha com o título. */
.page-layout > .page-content {
  margin-top: 0;
}

.page-content--wide {
  max-width: none;
}

.page-content > * + * {
  margin-top: 1.15em;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.page-content h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.page-content h3 {
  font-size: 1.3rem;
}

.page-content p,
.page-content li {
  color: var(--ink-soft);
}

.page-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.page-content a:hover {
  color: var(--green-deep);
}

.page-content ul,
.page-content ol {
  padding-left: 1.35em;
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li + li {
  margin-top: 0.4em;
}

.page-content blockquote {
  padding: 20px 0 20px 24px;
  border-left: 3px solid var(--brass);
  color: var(--ink-soft);
  font-style: italic;
}

.page-content img {
  height: auto;
}

.page-content figure {
  margin-top: 1.5em;
}

.page-content figcaption {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.page-content th,
.page-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.back-link {
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(28px, 4vw, 40px);
  }

  .page-layout .page-head {
    position: static;
  }
}

/* Listagens simples */
.post-list {
  display: grid;
  gap: 28px;
}

.post-summary {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.post-summary-title {
  font-size: 1.5rem;
}

.post-summary-title a {
  text-decoration: none;
}

.post-summary-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-summary-excerpt {
  max-width: 70ch;
  margin-top: 10px;
  color: var(--muted);
}

.post-list + .navigation,
.pagination {
  margin-top: 40px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

/* 404 */
.not-found {
  max-width: 62ch;
  padding: clamp(35px, 6vw, 70px) 0;
}

.not-found-code {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--stone);
}

.not-found h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.not-found p {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Arquivos de imóveis (bairros e cidades)
   --------------------------------------------------------- */
.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 48px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-strong);
}

.archive-head-copy {
  max-width: 62ch;
}

.archive-eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
}

.archive-head h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
}

.archive-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.archive-lede p {
  display: inline;
}

.archive-main .property-grid {
  row-gap: 52px;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(44px, 6vw, 64px);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination .page-numbers {
  border-color: var(--line-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
}

.pagination .page-numbers:hover {
  border-color: var(--ink);
}

.pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.pagination .dots {
  border-color: transparent;
}

@media (max-width: 560px) {
  .archive-head {
    align-items: flex-start;
    gap: 18px;
  }
}

/* A paginação do GeneratePress usa apenas .nav-links */
.archive-main .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(44px, 6vw, 64px);
}

.archive-main .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}

.archive-main .nav-links .page-numbers:hover {
  border-color: var(--ink);
}

.archive-main .nav-links .current {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.archive-main .nav-links .dots {
  border-color: transparent;
}

/* Estatik: aproxima botões de busca da paleta do tema */
.es-properties .es-btn.es-btn--primary:not(.es-btn--bordered):not(:hover):not(:active),
.elementor-kit-5 .es-btn.es-btn--primary:not(.es-btn--bordered):not(:hover):not(:active),
.es-modal .es-btn.es-btn--primary:not(.es-btn--bordered):not(:hover):not(:active) {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.es-properties .es-btn.es-btn--primary:hover,
.es-properties .es-btn.es-btn--primary:focus,
.elementor-kit-5 .es-btn.es-btn--primary:hover,
.elementor-kit-5 .es-btn.es-btn--primary:focus,
.es-modal .es-btn.es-btn--primary:hover,
.es-modal .es-btn.es-btn--primary:focus {
  background-color: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--paper);
}

/* O Estatik usa [class^="es-"] a:not(...), com especificidade maior. */
.es-property-section__title a:not(.es-btn):not(.page-numbers):not(.es-leave-border) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Descrições antigas trazem títulos colados como h1/h2 (às vezes com
   classes do site anterior). Uniformiza a escala dentro do valor do campo. */
.es-property-field__value h1,
.es-property-field__value h2,
.es-property-field__value h3,
.es-property-field__value h4,
.es-property-field__value h5,
.es-property-field__value h6 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.es-property-field__value > :first-child {
  margin-top: 0;
}

body .es-single .es-property-field__value a:not(.es-btn):not(.page-numbers):not(.es-leave-border) {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Banner de cookies (plugin Beautiful and Responsive Cookie Consent)
   --------------------------------------------------------- */
body .cc-window.cc-banner {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px var(--gutter);
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: 0 -8px 28px rgba(34, 28, 24, 0.08);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.55;
}

body .cc-window .cc-message {
  max-width: 78ch;
  color: var(--ink-soft);
}

body .cc-window .cc-link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body .cc-window .cc-btn.cc-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: 0;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

body .cc-window .cc-btn.cc-dismiss:hover,
body .cc-window .cc-btn.cc-dismiss:focus {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: var(--paper);
}

@media (max-width: 600px) {
  body .cc-window.cc-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    font-size: 0.8rem;
  }

  body .cc-window .cc-compliance {
    width: 100%;
  }

  body .cc-window .cc-btn.cc-dismiss {
    width: 100%;
  }
}

/* Forminator: rótulos com contraste AA sobre o papel.
   O plugin usa um seletor com ID, então é preciso !important. */
body .forminator-ui .forminator-label,
body .forminator-ui .forminator-label .forminator-required {
  color: var(--ink-soft) !important;
}

body .forminator-ui .forminator-label .forminator-required {
  color: var(--green) !important;
}

/* Forminator: botão de envio na paleta do tema e com contraste AA */
body .forminator-ui.forminator-design--default .forminator-button.button-form,
body .forminator-ui.forminator-design--default .forminator-button-submit.button-form,
body .forminator-ui.forminator-design--default .forminator-button,
body .forminator-ui.forminator-design--default .forminator-button-submit {
  border-color: var(--green) !important;
  background-color: var(--green) !important;
  color: var(--paper) !important;
}

body .forminator-ui.forminator-design--default .forminator-button:hover,
body .forminator-ui.forminator-design--default .forminator-button:focus,
body .forminator-ui.forminator-design--default .forminator-button-submit:hover,
body .forminator-ui.forminator-design--default .forminator-button-submit:focus {
  border-color: var(--green-deep) !important;
  background-color: var(--green-deep) !important;
  color: var(--paper) !important;
}

/* Estatik: badges com cores do tema e contraste AA.
   As cores originais vêm em style inline; por isso o !important. */
.es-badge[style] {
  background: var(--brown) !important;
}

.es-badge a {
  color: var(--paper) !important;
}

.es-badge:has(a[href*="/es_label/featured/"]) {
  background: var(--green) !important;
}

.es-badge:has(a[href*="/es_label/estuda-permuta/"]) {
  background: #155773 !important;
}

.es-badge:has(a[href*="/es_label/just-listed/"]) {
  background: #7a4a17 !important;
}

.es-badge:has(a[href*="/es_label/reservado/"]) {
  background: #6d1a66 !important;
}

.es-badge:has(a[href*="/es_label/vendido/"]) {
  background: #7d1d1d !important;
}
