:root {
  --bg: #f4f1ec;
  --paper: #fffdf9;
  --surface: rgba(255, 253, 249, 0.92);
  --surface-strong: #ffffff;
  --ink: #17130f;
  --text: #332c25;
  --muted: #766d63;
  --line: rgba(55, 42, 29, 0.12);
  --gold: #b88a4a;
  --gold-dark: #8d6736;
  --green: #173b32;
  --green-soft: #e7eee9;
  --sand: #ded1bf;
  --shadow: 0 22px 70px rgba(30, 24, 16, 0.10);
  --shadow-strong: 0 32px 90px rgba(30, 24, 16, 0.18);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 138, 74, 0.18), transparent 32rem),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 55%, #eee7dc 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 96px 0; }

.topbar {
  background: var(--green);
  color: rgba(255,255,255,0.86);
  font-size: .86rem;
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-meta { display: flex; gap: 22px; flex-wrap: wrap; color: rgba(255,255,255,0.68); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(55,42,29,.08);
  background: rgba(255, 253, 249, .82);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  width: 176px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(23,19,15,.10));
}
nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav a { color: rgba(51,44,37,.78); font-weight: 700; font-size: .95rem; }
nav a:hover { color: var(--green); }
.nav-cta {
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #245f50);
  box-shadow: 0 14px 34px rgba(23,59,50,.18);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: grid;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 19, 15, .76) 0%, rgba(16,19,15,.54) 44%, rgba(16,19,15,.10) 100%),
    url('assets/hero.jpg') center 42% / cover no-repeat;
  transform: scale(1.02);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 64px;
}
.hero-copy { color: #fff; padding: 40px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 800;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}
h1, h2, h3 { margin: 0; line-height: 1.02; color: var(--ink); }
h1, h2 { font-family: 'Playfair Display', serif; letter-spacing: -.035em; }
h1 {
  max-width: 740px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
}
h2 { font-size: clamp(2.15rem, 4vw, 4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 16px; color: var(--muted); line-height: 1.75; }
.hero-copy p { max-width: 640px; color: rgba(255,255,255,.84); font-size: 1.12rem; }

.hero-actions, .contact-actions, .search-actions, .property-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn, .property-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 21px;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover, .property-link:hover, .search-tab:hover { transform: translateY(-2px); }
.btn-primary, .property-link.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 18px 40px rgba(141,103,54,.24);
}
.btn-secondary, .property-link.secondary {
  color: var(--ink);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.34);
}
.btn-block { width: 100%; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
  margin-top: 42px;
}
.trust-row div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}
.trust-row strong { display: block; color: var(--gold); margin-bottom: 6px; }
.trust-row span { color: rgba(255,255,255,.80); font-weight: 700; font-size: .92rem; }

.hero-search-card {
  position: relative;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 253, 249, .94);
  border: 1px solid rgba(255,255,255,.56);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}
.search-card-head h2 { font-size: 2rem; margin-bottom: 18px; }
.search-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.search-tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: #f4efe7;
  font-weight: 800;
  cursor: pointer;
}
.search-tab.active { color: #fff; background: var(--green); border-color: var(--green); }
.search-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.search-grid label { display: grid; gap: 8px; }
.search-grid span {
  color: var(--green);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 800;
}
.search-grid select, .search-grid input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}
.search-grid select:focus, .search-grid input:focus { border-color: rgba(184,138,74,.65); box-shadow: 0 0 0 4px rgba(184,138,74,.14); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.code-field { grid-column: 1 / -1; }

.intro-section { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.intro-copy { columns: 2; column-gap: 36px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head.centered { display: block; max-width: 760px; text-align: center; margin-inline: auto; }
.section-note { max-width: 430px; }
.results-count { margin: -6px 0 22px; font-weight: 800; color: var(--green); }

.instagram-section { background: linear-gradient(180deg, rgba(255,253,249,.72), rgba(23,59,50,.05)); }
.instagram-showcase { display: grid; grid-template-columns: .85fr .85fr 1.3fr; gap: 22px; align-items: stretch; }
.instagram-showcase article { position: relative; overflow: hidden; min-height: 430px; border-radius: 32px; background: var(--surface-strong); border: 1px solid rgba(55,42,29,.10); box-shadow: var(--shadow); }
.instagram-showcase img { width: 100%; height: 100%; object-fit: cover; }
.instagram-showcase article:not(.showcase-text-card)::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(15,19,16,.78)); }
.instagram-showcase article:not(.showcase-text-card) div { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; color: #fff; }
.instagram-showcase span { display: block; margin-bottom: 7px; color: var(--gold); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.instagram-showcase strong { display: block; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.55rem; line-height: 1.05; }
.showcase-text-card { display: flex; flex-direction: column; justify-content: center; padding: 38px; background: linear-gradient(135deg, #173b32, #245f50) !important; }
.showcase-text-card h3 { color: #fff; font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3vw, 3.1rem); margin-bottom: 16px; }
.showcase-text-card p { color: rgba(255,255,255,.76); }

.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface-strong);
  border: 1px solid rgba(55,42,29,.10);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.property-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-strong); }
.property-card img { width: 100%; height: 310px; object-fit: cover; }
.property-body { padding: 24px; }
.property-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.property-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(23,59,50,.10);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.property-price { color: var(--gold-dark); font-size: 1.25rem; font-weight: 900; white-space: nowrap; }
.property-title { font-family: 'Playfair Display', serif; font-size: 1.55rem; margin-bottom: 7px; }
.property-location { font-size: .95rem; margin-bottom: 12px; }
.property-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.property-specs li { padding: 8px 11px; border-radius: 999px; background: #f3eee6; color: var(--text); font-weight: 700; font-size: .84rem; }
.property-description { font-size: .96rem; }
.property-actions { margin-top: 18px; }
.property-link { min-height: 43px; padding: 10px 14px; font-size: .9rem; }
.property-link.secondary { background: #fbf7ef; border: 1px solid var(--line); }

.services-section { background: linear-gradient(180deg, transparent, rgba(23,59,50,.06)); }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card, .contact-box, .mini-card, .detail-panel {
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid rgba(55,42,29,.10);
  box-shadow: var(--shadow);
}
.service-card { position: relative; padding: 30px; overflow: hidden; }
.service-card::after { content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--green)); }
.service-index { display: inline-flex; margin-bottom: 22px; color: var(--gold-dark); font-weight: 900; letter-spacing: .16em; }
.service-card h3 { margin-bottom: 12px; }

.contact-section { padding-top: 72px; }
.contact-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 32px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(23,59,50,.96), rgba(23,59,50,.84)),
    url('assets/gallery-1.jpg') center / cover;
}
.contact-box h2, .contact-box p { color: #fff; }
.contact-box p { color: rgba(255,255,255,.76); }
.contact-box .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }

.whatsapp-chat { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: end; gap: 12px; }
.chat-bubble { max-width: 270px; padding: 13px 15px; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); border: 1px solid var(--line); }
.chat-bubble strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: .92rem; }
.chat-bubble span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.chat-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #34c759, #179347); box-shadow: 0 18px 36px rgba(30,169,82,.28); font-size: 1.35rem; }

/* Detalhe do imóvel */
.detail-page { background: var(--bg); }
.detail-main { padding-top: 54px; }
.detail-hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: 30px; align-items: start; }
.detail-gallery { display: grid; gap: 14px; }
.detail-main-image { width: 100%; height: 650px; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow-strong); }
.detail-thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.detail-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 22px; }
.detail-panel { padding: 34px; position: sticky; top: 110px; }
.detail-title { margin: 18px 0 12px; color: var(--ink); font-size: clamp(2.4rem, 4vw, 4.4rem); }
.detail-location { margin-bottom: 12px; }
.detail-price { margin: 20px 0; color: var(--gold-dark); font-size: 2rem; font-weight: 900; }
.detail-code-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.detail-code-row span { padding: 8px 10px; border-radius: 999px; background: #f3eee6; font-size: .84rem; font-weight: 800; }
.detail-section { margin-top: 38px; }
.detail-grid-two { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.mini-card { padding: 30px; }
.detail-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.detail-list li { position: relative; padding-left: 26px; color: var(--text); font-weight: 700; }
.detail-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.fact-item { padding: 15px; border-radius: 18px; background: #f7f1e8; border: 1px solid var(--line); }
.fact-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.fact-item strong { color: var(--ink); }

@media (max-width: 1050px) {
  .hero-grid, .detail-hero, .contact-box { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-search-card { max-width: 680px; }
  .properties-grid, .cards-grid-3, .instagram-showcase { grid-template-columns: repeat(2, 1fr); }
  .showcase-text-card { grid-column: 1 / -1; min-height: 280px !important; }
  .detail-panel { position: static; }
}
@media (max-width: 780px) {
  .section { padding: 76px 0; }
  .topbar-inner, .nav, nav, .section-head { align-items: flex-start; flex-direction: column; }
  .brand-logo { width: 148px; height: auto; }
  .hero-bg { background-position: center; }
  h1 { font-size: 3.2rem; }
  .trust-row, .intro-grid, .detail-grid-two, .facts-grid { grid-template-columns: 1fr; }
  .intro-copy { columns: 1; }
  .search-tabs, .search-grid, .inline-fields, .properties-grid, .cards-grid-3, .instagram-showcase { grid-template-columns: 1fr; }
  .instagram-showcase article { min-height: 360px; }
  .property-card img { height: 330px; }
  .detail-main-image { height: 520px; }
  .detail-thumb { height: 120px; }
  .contact-box { padding: 30px; }
  .whatsapp-chat { right: 12px; left: 12px; bottom: 12px; align-items: stretch; }
  .chat-bubble { max-width: none; flex: 1; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 24px, 1180px); }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.1rem; }
  .hero-search-card, .detail-panel, .mini-card { padding: 22px; border-radius: 24px; }
  .property-card img { height: 280px; }
  .detail-main-image { height: 420px; }
  .chat-bubble { display: none; }
}
