:root {
  --color-primary: #0D1B2A;
  --color-primary-light: #4A545F;
  --color-accent: #C8A45D;
  --color-on-accent: #0D1B2A;
  --color-bg: #F7F7F5;
  --color-card: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-muted: #767676;
  --color-border: #E5E1D8;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 30, 40, 0.08);
  --shadow-strong: 0 10px 40px rgba(20, 30, 40, 0.18);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Placeholder banner ---------- */
.placeholder-banner {
  background: #FDF3E3;
  color: #8A5A17;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  border-bottom: 1px solid #F0DDB8;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 0;
  position: relative;
  z-index: 20;
}
.site-header--transparent {
  background: var(--color-primary);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
}
.logo span { color: var(--color-accent); }
.logo img { height: 104px; width: auto; display: block; }
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.header-phone .ico { font-size: 16px; }
.header-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.header-whatsapp .ico { color: #25D366; font-size: 17px; }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; }

.nav-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(320px, 84vw);
  background: var(--color-primary);
  z-index: 100;
  padding: 28px 26px;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -12px 0 30px rgba(0,0,0,.25);
}
.nav-panel.open { transform: translateX(0); }
.nav-panel-close {
  background: none; border: none; color: #fff; font-size: 22px; cursor: pointer;
  position: absolute; top: 22px; right: 22px;
}
.nav-panel ul { margin-top: 50px; display: flex; flex-direction: column; gap: 22px; }
.nav-panel a { color: #fff; font-size: 17px; font-weight: 500; }
.nav-panel a.active { color: var(--color-accent); }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(10,14,18,.5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-photo-placeholder {
  position: absolute;
  inset: -5% -5%;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(200,164,93,0.20), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(74,84,95,0.28), transparent 50%),
    linear-gradient(135deg, #1b2c3d 0%, #12212f 55%, #0D1B2A 100%);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  background: rgba(0,0,0,0.25);
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,12,16,.4) 0%, rgba(8,12,16,.18) 35%, rgba(8,12,16,.72) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  max-width: 1180px;
  white-space: nowrap;
  margin: 0 auto 48px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero p.subtitle {
  font-size: 17px;
  color: #E7ECEE;
  max-width: 560px;
  margin: 14px auto 40px;
}

/* ---------- Search bar (pill style, like reference) ---------- */
.search-box {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 46px;
  width: 100%;
}
.search-bar {
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.search-bar .field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-right: 1px solid var(--color-border);
  text-align: left;
  min-width: 0;
}
.search-bar .field:last-of-type { border-right: none; }
.search-bar .field .ico {
  color: var(--color-primary);
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  opacity: .7;
}
.search-bar .field .ico svg { width: 100%; height: 100%; display: block; }
.search-bar .field-text { min-width: 0; }
.search-bar .field-text label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 3px;
}
.search-bar select, .search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
  width: 100%;
  padding: 0;
  cursor: pointer;
}
.search-bar input { cursor: text; font-weight: 500; }
.search-bar input::placeholder { color: #9AA6AC; font-weight: 400; }
.btn-search {
  border: none;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
  font-size: 15px;
  padding: 0 36px;
  cursor: pointer;
  transition: filter .15s;
  white-space: nowrap;
}
.btn-search:hover { filter: brightness(1.06); }

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.section-heading p {
  color: var(--color-text-muted);
  font-size: 15px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-bar select {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 13px;
  font-family: var(--font-body);
}

/* ---------- Property grid ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.property-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.property-photo {
  height: 170px;
  background: repeating-linear-gradient(135deg, #E7E3D8, #E7E3D8 10px, #DBD6C7 10px, #DBD6C7 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A8574;
  font-size: 13px;
  font-weight: 600;
  position: relative;
}
.property-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.property-body { padding: 16px 18px 20px; }
.property-body h3 { font-size: 16px; margin-bottom: 4px; }
.property-loc { font-size: 13px; color: var(--color-text-muted); margin-bottom: 10px; }
.property-specs {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.property-price {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-primary);
}
.property-price small { font-size: 12px; font-weight: 400; color: var(--color-text-muted); }
.property-code { font-size: 11px; color: #9AA6AC; margin-top: 4px; }

.empty-state { text-align: center; color: var(--color-text-muted); padding: 40px; grid-column: 1 / -1; }

/* ---------- CTA / encomende ---------- */
.cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta h2 { font-family: var(--font-heading); font-size: 26px; margin-bottom: 12px; }
.cta p { color: #D9E3E8; margin-bottom: 24px; }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  font-size: 15px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}
.trust-strip .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}
.trust-item strong { display: block; color: var(--color-primary); font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #B7C0C8;
  padding: 44px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-family: var(--font-heading); }
.footer-grid p, .footer-grid li { margin-bottom: 8px; color: #A9B7BD; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #26363E;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #7C8B92;
}

/* ---------- WhatsApp floating button (bottom-left, with avatar, like reference) ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  border: 3px solid #25D366;
  font-size: 26px;
}
.whatsapp-float .avatar-initial {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
}
.whatsapp-float .badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #25D366;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #fff;
}

/* ---------- Inner pages (sobre, contato, encomende) ---------- */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.page-hero h1 { font-family: var(--font-heading); font-size: 30px; }
.content-block { max-width: 760px; margin: 0 auto; }
.content-block h2 { font-family: var(--font-heading); color: var(--color-primary); font-size: 22px; margin: 28px 0 12px; }
.content-block p { color: var(--color-text-muted); margin-bottom: 14px; }
.check-list { margin: 4px 0 20px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 15px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.form-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 620px;
  margin: 0 auto;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--color-text-muted); }
.form-consent input { width: auto; margin-top: 3px; }
.btn-submit {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.contact-method {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
}
.contact-method .icon { font-size: 26px; margin-bottom: 8px; }
.contact-method h4 { font-size: 14px; margin-bottom: 4px; }
.contact-method span { font-size: 13px; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .search-bar { flex-wrap: wrap; border-radius: 22px; }
  .search-bar .field { flex: 1 1 50%; border-bottom: 1px solid var(--color-border); }
  .btn-search { flex: 1 1 100%; padding: 16px; }
  .hero h1 { white-space: normal; }
}
@media (max-width: 560px) {
  .property-grid { grid-template-columns: 1fr; }
  .search-bar .field { flex: 1 1 100%; }
  .header-phone { display: none; }
}
