/* ==========================================================
   Consegui Imóveis · Guilherme Santos
   Paleta extraída do logotipo oficial
   ========================================================== */
:root {
  --green: #1e4a36;
  --green-700: #16392a;
  --green-900: #0f281d;
  --terra: #bc6a4b;
  --terra-600: #a5583b;
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --white: #fffefb;
  --ink: #17211c;
  --ink-2: #4a554f;
  --ink-3: #7c847f;
  --line: #e2ddd1;
  --line-dark: rgba(246, 244, 238, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(23, 33, 28, .05), 0 8px 28px -12px rgba(23, 33, 28, .18);
  --shadow-lg: 0 30px 80px -30px rgba(15, 40, 29, .45);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
body.is-locked { overflow: hidden; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 18px;
}
.eyebrow--light { color: #e3a689; }
.h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.15rem);
  line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--green-900); font-variation-settings: "opsz" 120;
}
.h2--light { color: var(--paper); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; white-space: nowrap;
  min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: var(--paper); }
.btn--primary:hover { background: var(--green-700); box-shadow: 0 10px 24px -12px rgba(30, 74, 54, .7); }
.btn--accent { background: var(--terra); color: #fff; }
.btn--accent:hover { background: var(--terra-600); box-shadow: 0 10px 24px -12px rgba(188, 106, 75, .8); }
.btn--ghost { border-color: var(--line); color: var(--green-900); background: transparent; }
.btn--ghost:hover { border-color: var(--green); }
.btn--ghost .i { transition: transform .25s var(--ease); }
.btn--ghost:hover .i { transform: translateX(3px); }
.btn--wa { background: var(--green); color: var(--paper); min-height: 44px; padding: 0 18px; font-size: .88rem; }
.btn--wa:hover { background: var(--green-700); }
.link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: .92rem; color: var(--green); }
.link .i { transition: transform .25s var(--ease); }
.link:hover .i { transform: translateX(4px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #f6f4ee;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader img { width: min(560px, 86vw); height: auto; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.no-preloader .preloader { display: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(246, 244, 238, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(246, 244, 238, .9); border-color: var(--line); box-shadow: 0 6px 20px -18px rgba(0, 0, 0, .4); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--terra);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:not(.btn):hover, .nav > a.is-current { color: var(--green-900); }
.nav > a:not(.btn):hover::after, .nav > a.is-current::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--green-900); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 56px) 0 0; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.1rem);
  line-height: 1.04; letter-spacing: -.025em; margin: 0 0 26px; color: var(--green-900); font-variation-settings: "opsz" 144;
}
.hero__title em { font-style: italic; color: var(--terra); font-weight: 400; }
.hero__sub { font-size: 1.1rem; color: var(--ink-2); max-width: 36em; margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero__media.is-in img { transform: scale(1); }
.hero__tag {
  position: absolute; left: 18px; bottom: 18px; right: 18px; display: grid; gap: 2px;
  background: rgba(246, 244, 238, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r); padding: 14px 16px; font-size: .85rem; color: var(--ink-2);
}
.hero__tag strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--green-900); }
.hero__tag-k { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--terra); }

/* ---------- Busca ---------- */
.search {
  position: relative; z-index: 2; margin-top: 48px; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 10px 10px 12px;
}
.search__tabs { display: flex; gap: 4px; padding: 4px 6px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.search__tabs button { padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-3); transition: all .2s; white-space: nowrap; }
.search__tabs button:hover { color: var(--green-900); }
.search__tabs button.is-active { background: var(--paper-2); color: var(--green-900); }
.search__fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; padding: 10px 6px 0; align-items: end; }
.field { display: grid; gap: 4px; }
.field > span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-left: 2px; }
.field select, .field input {
  height: 50px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; background: var(--white);
  font-size: .96rem; width: 100%; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231e4a36' stroke-width='1.8' stroke-linecap='round' d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field select:hover, .field input:hover { border-color: #cfc8b8; }
.field select:focus, .field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 74, 54, .12); }
.search__btn { height: 50px; border-radius: var(--r); }

/* ---------- Trust ---------- */
.trust { padding: 72px 0 24px; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px 6px 0; }
.trust__item + .trust__item { padding-left: 22px; border-left: 1px solid var(--line); }
.trust__item .i { width: 30px; height: 30px; color: var(--terra); margin-top: 2px; }
.trust__item strong { display: block; font-size: .98rem; color: var(--green-900); line-height: 1.3; }
.trust__item span { font-size: .86rem; color: var(--ink-3); }

/* ---------- Seções ---------- */
.section { padding: 112px 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--green-900); color: rgba(246, 244, 238, .78); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section__lead { margin: 0; color: var(--ink-2); max-width: 34em; justify-self: end; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2);
  transition: all .2s var(--ease); background: transparent;
}
.chip:hover { border-color: var(--green); color: var(--green-900); }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--paper); }
.results { font-size: .88rem; color: var(--ink-3); margin: 0 0 22px; min-height: 1.5em; }
.results button { color: var(--terra); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* ---------- Cards de imóveis ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; cursor: pointer; text-align: left;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .5s; }
.card:hover .card__media img { transform: scale(1.045); }
.card__badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--white); color: var(--green-900);
}
.badge--venda { background: var(--green); color: var(--paper); }
.badge--lancamento { background: var(--terra); color: #fff; }
.badge--locacao { background: #2f5d73; color: #fff; }
.badge--soft { background: rgba(255, 254, 251, .92); color: var(--ink-2); backdrop-filter: blur(6px); }
.card__count { position: absolute; right: 14px; bottom: 14px; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(15, 40, 29, .55); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.card__loc .i { color: var(--terra); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.015em; margin: 0; color: var(--green-900); }
.card__tag { margin: -6px 0 0; color: var(--ink-2); font-size: .94rem; }
.card__specs { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: auto; }
.card__specs span { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink-2); }
.card__specs .i { color: var(--green); width: 18px; height: 18px; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.price strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--green-900); letter-spacing: -.01em; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--terra); }
.card__more .i { transition: transform .3s var(--ease); }
.card:hover .card__more .i { transform: translateX(4px); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px; border: 1px dashed #cfc8b8; border-radius: var(--r-lg); background: var(--white);
}
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--green-900); margin: 0 0 8px; }
.empty p { color: var(--ink-2); margin: 0 auto 24px; max-width: 32em; }
.disclaimer { font-size: .8rem; color: var(--ink-3); margin: 28px 0 0; max-width: 60em; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; background: var(--white); border-radius: var(--r-lg); padding: 34px 28px 30px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__n { position: absolute; top: 26px; right: 26px; font-family: var(--serif); font-size: .95rem; color: var(--ink-3); }
.service__i { width: 40px; height: 40px; color: var(--terra); margin-bottom: 8px; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 1.38rem; line-height: 1.15; color: var(--green-900); margin: 0; }
.service p { margin: 0 0 8px; color: var(--ink-2); font-size: .95rem; flex: 1; }

/* ---------- Regularização ---------- */
.reg { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.reg__intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.reg__intro p { font-size: 1.05rem; margin: 22px 0 0; }
.reg__intro strong { color: var(--paper); font-weight: 600; }
.reg__intro .btn { margin-top: 34px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.steps span {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(227, 166, 137, .5); color: #e3a689;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem;
}
.steps h4 { margin: 0 0 6px; color: var(--paper); font-size: 1.08rem; font-weight: 600; }
.steps p { margin: 0; font-size: .95rem; }
.checklist { margin-top: 40px; background: rgba(246, 244, 238, .05); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 30px 32px; }
.checklist h4 { margin: 0 0 18px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #e3a689; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checklist li { display: flex; gap: 10px; font-size: .94rem; color: rgba(246, 244, 238, .88); line-height: 1.45; }
.checklist .i { color: #8fc2a6; margin-top: 1px; }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.sim__intro p:not(.eyebrow) { color: var(--ink-2); margin: 22px 0 0; }
.sim__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.sim__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sim__toggle { display: inline-flex; margin: 20px 0; padding: 4px; background: var(--paper-2); border-radius: 999px; }
.sim__toggle button { padding: 8px 22px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--ink-3); transition: all .2s; }
.sim__toggle button.is-active { background: var(--green); color: var(--paper); }
.sim__out { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.sim__out div { padding: 18px 14px 4px 0; }
.sim__out div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.sim__out span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sim__out strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--green-900); white-space: nowrap; }
.sim__note { font-size: .78rem; color: var(--ink-3); margin: 16px 0 0; }

/* ---------- Parceiros ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px;
  animation: fadeUp .5s var(--ease) both;
}
.partner__top { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.partner__cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); display: inline-flex; align-items: center; gap: 6px; }
.partner__seal { font-size: .7rem; font-weight: 600; color: var(--green); background: rgba(30, 74, 54, .08); padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.partner h3 { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--green-900); }
.partner p { margin: 0; font-size: .92rem; color: var(--ink-2); flex: 1; }
.partner__area { font-size: .82rem; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.partner .btn { margin-top: 10px; min-height: 44px; font-size: .88rem; align-self: flex-start; }
.partners__note { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-3); margin: 4px 0 0; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 88px; align-items: start; }
.about__photo { margin: 0; position: sticky; top: calc(var(--header-h) + 40px); }
.about__photo img, .about__placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.about__placeholder {
  display: grid; place-content: center; text-align: center; gap: 10px;
  background: radial-gradient(120% 90% at 20% 10%, #2a5c45 0%, var(--green) 45%, var(--green-900) 100%);
  position: relative; overflow: hidden;
}
.about__placeholder::after {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(246, 244, 238, .16); border-radius: calc(var(--r-lg) - 8px);
}
.about__placeholder span { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 10vw, 8rem); line-height: 1; color: var(--paper); letter-spacing: -.04em; }
.about__placeholder small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #e3a689; font-weight: 700; }
.about__photo figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 16px 4px 0; font-size: .88rem; color: var(--ink-3); }
.about__photo figcaption strong { color: var(--green-900); font-weight: 600; }
.about__text > p { color: var(--ink-2); margin: 0 0 18px; }
.about__text .h2 { margin-bottom: 28px; }
.about__lead { font-size: 1.15rem; color: var(--ink) !important; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 36px; border-top: 1px solid var(--line); }
.about__facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.about__facts div:nth-child(odd) { padding-right: 18px; }
.about__facts div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.about__facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.about__facts dd { margin: 4px 0 0; color: var(--green-900); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { background: var(--terra); color: #fff; padding: 72px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); margin: 0; line-height: 1.1; max-width: 18em; letter-spacing: -.02em; }
.cta .btn--accent { background: var(--paper); color: var(--green-900); }
.cta .btn--accent:hover { background: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(246, 244, 238, .66); padding: 80px 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { width: 220px; height: auto; margin-bottom: 20px; }
.footer__brand p { margin: 0 0 10px; max-width: 26em; }
.footer__creci { color: #e3a689; font-weight: 600; letter-spacing: .04em; }
.footer h5 { margin: 6px 0 18px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color .2s; display: inline-flex; gap: 8px; align-items: center; }
.footer a:hover { color: var(--paper); }
.footer .muted { color: rgba(246, 244, 238, .45); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .8rem; color: rgba(246, 244, 238, .45); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease), opacity .3s; transform: translateY(90px); opacity: 0;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .i { width: 28px; height: 28px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 26, 19, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.modal__panel {
  position: relative; width: min(1180px, 100%); height: min(820px, calc(100vh - 48px)); height: min(820px, calc(100dvh - 48px)); overflow: hidden;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .45s var(--ease);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); outline: none;
}
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s;
}
.modal__close:hover { transform: rotate(90deg); }
.modal__close .i { width: 20px; height: 20px; }
.gallery { background: var(--green-900); padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; }
.gallery__main { position: relative; border-radius: var(--r); overflow: hidden; background: #0b1f16; aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.gallery__main img.is-loading { opacity: .25; }
.gallery__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(246, 244, 238, .9); color: var(--green-900); display: grid; place-items: center; transition: background .2s;
}
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--prev .i { transform: rotate(180deg); }
.gallery__nav--next { right: 12px; }
.gallery__cap { position: absolute; left: 12px; bottom: 12px; margin: 0; font-size: .78rem; color: #fff; background: rgba(0, 0, 0, .45); padding: 4px 10px; border-radius: 999px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gallery__thumbs button { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; opacity: .5; transition: opacity .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: -2px; }
.gallery__thumbs button:hover { opacity: .85; }
.gallery__thumbs button.is-active { opacity: 1; outline-color: var(--terra); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 40px 38px 36px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.modal__body .card__badges { position: static; }
.m-title { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.05; letter-spacing: -.02em; margin: 0; color: var(--green-900); }
.m-builder { font-size: .85rem; color: var(--ink-3); margin: 6px 0 0; }
.m-desc { margin: 0; color: var(--ink-2); }
.m-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.m-h { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin: 0 0 10px; }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; color: var(--ink); font-weight: 500; }
.amen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.amen li { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.units { width: 100%; border-collapse: collapse; font-size: .86rem; background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.units th { text-align: left; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); padding: 10px 12px; font-weight: 700; }
.units td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.units td:last-child { font-weight: 600; color: var(--green-900); }
.units-wrap { overflow-x: auto; }
.units caption { caption-side: bottom; text-align: left; font-size: .76rem; color: var(--ink-3); padding-top: 8px; }
.m-note { font-size: .88rem; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0; }
.m-actions { display: grid; gap: 10px; position: sticky; bottom: -36px; padding: 16px 0 0; background: linear-gradient(to bottom, rgba(246, 244, 238, 0), var(--paper) 24%); }
.m-actions .btn { width: 100%; }
.m-docs { display: grid; gap: 8px; }
.m-docs a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font-size: .9rem; font-weight: 600; color: var(--green-900); transition: border-color .2s; }
.m-docs a:hover { border-color: var(--green); }
.m-docs .i { color: var(--terra); }
.m-addr { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-2); margin: 0; }
.m-addr .i { color: var(--terra); margin-top: 3px; }

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.985); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .reg { gap: 56px; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 34px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; min-height: 52px; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { aspect-ratio: 16 / 11; }
  .hero__media img { object-position: center 40%; }
  .search { margin-top: 24px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .section { padding: 84px 0; }
  .section__head { grid-template-columns: 1fr; gap: 18px; }
  .section__lead { justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .reg, .sim, .about { grid-template-columns: 1fr; gap: 48px; }
  .reg__intro, .about__photo { position: static; }
  .about__photo { max-width: 460px; }
  .partners { grid-template-columns: 1fr 1fr; }
  .modal { padding: 0; }
  .modal__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: 100%; max-height: none; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
  .gallery { overflow: visible; }
  .modal__body { overflow: visible; }
  .m-actions { bottom: -36px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .search__fields { grid-template-columns: 1fr; }
  .search__tabs button { padding: 8px 11px; font-size: .84rem; }
  .hero__actions .btn { width: 100%; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item, .trust__item + .trust__item { padding: 18px 0 4px; border-left: 0; }
  .services, .partners { grid-template-columns: minmax(0, 1fr); }
  .checklist { padding: 24px 20px; }
  .checklist ul { grid-template-columns: 1fr; }
  .sim__card { padding: 22px 18px; }
  .sim__fields { grid-template-columns: 1fr 1fr; }
  .sim__out { grid-template-columns: 1fr 1fr; }
  .sim__out div:nth-child(3) { padding-left: 0; border-left: 0; }
  .sim__out strong { font-size: 1.12rem; }
  .card__body { padding: 20px; }
  .card__title { font-size: 1.5rem; }
  .gallery__thumbs { grid-template-columns: repeat(5, 1fr); }
  .modal__body { padding: 28px 20px 28px; }
  .m-title { font-size: 1.8rem; }
  .about__facts { grid-template-columns: 1fr; }
  .about__facts div:nth-child(n) { padding: 14px 0; border-left: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .cta .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ==========================================================
   Acentos em terracota: mais laranja nos elementos de ação,
   no mesmo tom do bloco "Vamos encontrar o seu imóvel"
   ========================================================== */
:root { --terra-50: #f7e9e2; --terra-100: #f1d8cc; }

/* Botões */
.btn--primary, .btn--wa { background: var(--terra); color: #fff; }
.btn--primary:hover, .btn--wa:hover { background: var(--terra-600); box-shadow: 0 10px 24px -12px rgba(188, 106, 75, .8); }
.btn--ghost:hover { border-color: var(--terra); color: var(--terra-600); }

/* Caixa de busca: faixa superior laranja + botão laranja */
.search { padding: 0; overflow: hidden; border-color: var(--terra-100); }
.search__tabs { background: var(--terra); border-bottom: 0; padding: 12px 14px; gap: 6px; }
.search__tabs button { color: rgba(255, 255, 255, .82); }
.search__tabs button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.search__tabs button.is-active { background: var(--paper); color: var(--terra-600); }
.search__fields { padding: 16px 16px 18px; }
.search .field > span { color: var(--terra-600); }
.field select:focus, .field input:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(188, 106, 75, .16); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23bc6a4b' stroke-width='1.8' stroke-linecap='round' d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}

/* Faixa de credenciais em laranja */
.trust { background: var(--terra); margin-top: 72px; padding: 34px 0 30px; }
.trust__grid { border-top: 0; }
.trust__item { padding-top: 6px; }
.trust__item + .trust__item { border-left-color: rgba(255, 255, 255, .22); }
.trust__item .i { color: var(--paper); }
.trust__item strong { color: #fff; }
.trust__item span { color: rgba(255, 255, 255, .8); }

/* Filtros e seletores */
.chip:hover { border-color: var(--terra); color: var(--terra-600); }
.chip.is-active { background: var(--terra); border-color: var(--terra); color: #fff; }
.sim__toggle { background: var(--terra-50); }
.sim__toggle button.is-active { background: var(--terra); color: #fff; }
.sim__card { border-top: 4px solid var(--terra); }

/* Detalhes */
.hero__tag-k { justify-self: start; background: var(--terra); color: #fff; padding: 3px 9px; border-radius: 999px; margin-bottom: 4px; }
.service { border-top: 3px solid transparent; }
.service:hover { border-top-color: var(--terra); }
.steps span { background: var(--terra); border-color: var(--terra); color: #fff; }
.partner__seal { color: var(--terra-600); background: var(--terra-50); }
.m-price { border-left: 4px solid var(--terra); }
.results button { color: var(--terra-600); }

@media (max-width: 960px) {
  .trust { margin-top: 56px; }
  .trust__item:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .trust__item, .trust__item + .trust__item { padding: 14px 0 4px; }
  .trust__item + .trust__item { border-top: 1px solid rgba(255, 255, 255, .22); }
}
