/* Monte Aliança — design system
   Paleta extraída da marca: navy profundo, dourado, acento ciano. */

:root {
  --navy-900: #141826;
  --navy-800: #1b2030;
  --navy-700: #252b3f;
  --navy-600: #333a52;
  --gold: #c9a35c;
  --gold-light: #e2c588;
  --gold-dark: #a7843f;
  --cyan: #3fb6e8;
  --cream: #f7f3ec;
  --cream-2: #efe8dc;
  --paper: #fffdf9;
  --ink: #1b2030;
  --ink-soft: #4a5068;
  --muted: #747a90;
  --line: rgba(27, 32, 48, .12);
  --line-gold: rgba(201, 163, 92, .35);

  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 24, 38, .06), 0 12px 32px -12px rgba(20, 24, 38, .18);
  --gutter: 16px;
  --max: 1160px;
  --header-h: 68px;
}

/* ---------- Reset + defesas contra overflow (KNOWN_ISSUES) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
html, body { overflow-x: hidden; max-width: 100vw; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img, iframe, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4, .ph strong, .tipologias .preco strong, .step::before {
  font-variant-numeric: lining-nums;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-800); color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--navy .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--gold); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section--navy h2 { color: #fff; }
.section--navy .section-head p { color: #b9bed0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 8px 24px -10px rgba(201, 163, 92, .7); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-light { border-color: rgba(247, 243, 236, .35); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-navy { background: var(--navy-800); color: var(--cream); }
.btn-navy:hover { background: var(--navy-600); }
.btn-outline { border-color: rgba(27, 32, 48, .25); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-wa { background: #1f9e57; color: #fff; }
.btn-wa:hover { background: #1a8a4c; }
@media (max-width: 520px) {
  .btn { white-space: normal; padding: 13px 20px; font-size: .9rem; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 32, 48, .95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(201, 163, 92, .18);
  color: var(--cream);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 34px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--cream); letter-spacing: .01em; white-space: nowrap; }
.brand-tag { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 3px; white-space: nowrap; }
.nav-links { display: none; }
.nav-cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid rgba(247, 243, 236, .2); border-radius: 10px; color: var(--cream); cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid rgba(247, 243, 236, .08); padding: 8px 0 20px; }
.menu-open .mobile-menu { display: block; }
.mobile-menu a:not(.btn) { display: block; padding: 13px 0; text-decoration: none; color: var(--cream); border-bottom: 1px solid rgba(247, 243, 236, .06); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

@media (min-width: 1000px) {
  .menu-toggle, .mobile-menu, .menu-open .mobile-menu { display: none; }
  .nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
  .nav-links a { text-decoration: none; font-size: .9rem; color: #d3d6e0; transition: color .2s; }
  .nav-links a:hover { color: var(--gold-light); }
  .nav-cta { display: inline-flex; min-height: 42px; padding: 10px 20px; font-size: .88rem; }
  .brand img { height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(63, 182, 232, .10), transparent 60%),
    radial-gradient(700px 600px at 10% 100%, rgba(201, 163, 92, .12), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--cream);
  padding: 60px 0 72px;
}
.hero::after {
  content: ""; position: absolute; right: -220px; top: 50%; width: 640px; height: 640px; transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(201, 163, 92, .06) 34px 36px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #c6cad8; max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: .88rem; color: #aeb3c5; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }
.hero-emblem { display: none; justify-self: center; }
.hero-emblem img { width: 320px; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
@media (min-width: 900px) {
  .hero { padding: 104px 0 120px; }
  .hero-inner { grid-template-columns: 1.3fr .7fr; }
  .hero-emblem { display: block; }
}

/* ---------- Imóveis ---------- */
.imoveis-grid { display: grid; gap: 28px; }
.imoveis-grid > * { min-width: 0; }
@media (min-width: 1000px) { .imoveis-grid.is-multi { grid-template-columns: repeat(2, 1fr); } }

.imovel {
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  overflow: hidden; box-shadow: var(--shadow); display: grid;
}
.imovel > * { min-width: 0; }
@media (min-width: 1000px) {
  .imoveis-grid:not(.is-multi) .imovel { grid-template-columns: 1.1fr 1fr; }
}
.imovel-media { display: grid; gap: 10px; padding: 10px; background: var(--cream-2); align-content: start; }
.imovel-media > * { min-width: 0; }

.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm);
  border: 1.5px dashed rgba(167, 132, 63, .6);
  background: repeating-linear-gradient(135deg, rgba(201, 163, 92, .09) 0 12px, transparent 12px 24px), var(--cream);
  color: var(--gold-dark); padding: 16px;
}
.ph--tour {
  aspect-ratio: 16 / 7; border-color: rgba(63, 182, 232, .6); color: #1f7fab;
  background: repeating-linear-gradient(135deg, rgba(63, 182, 232, .08) 0 12px, transparent 12px 24px), var(--cream);
}
.ph svg { width: 34px; height: 34px; margin: 0 auto 8px; opacity: .85; display: block; }
.ph strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.ph small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.ph-badge {
  position: absolute; top: 10px; left: 10px; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255, 253, 249, .92); padding: 4px 8px; border-radius: 999px; color: var(--muted);
}

.gallery { display: grid; gap: 8px; }
.gallery-main { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy-700); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.gallery-thumbs button { flex: 0 0 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.imovel-body { padding: 26px 20px 28px; display: flex; flex-direction: column; }
@media (min-width: 600px) { .imovel-body { padding: 34px 34px 36px; } }
.imovel-status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #17734a; background: rgba(31, 158, 87, .1); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.imovel-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9e57; box-shadow: 0 0 0 3px rgba(31, 158, 87, .18); }
.imovel h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 6px; }
.imovel-local { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.imovel-local svg { width: 16px; height: 16px; color: var(--gold-dark); flex: none; }
.imovel-desc { color: var(--ink-soft); font-size: .97rem; }
.tipologias { list-style: none; margin: 4px 0 14px; padding: 0; border-top: 1px solid var(--line); }
.tipologias li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tipologias .tipo { font-weight: 500; }
.tipologias .preco { text-align: right; white-space: nowrap; }
.tipologias .preco small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tipologias .preco strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy-800); }
.imovel-note { font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.imovel-ctas { display: grid; gap: 10px; margin-top: auto; }
@media (min-width: 600px) { .imovel-ctas { grid-template-columns: 1fr 1fr; } }

.imoveis-more {
  margin-top: 28px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-gold);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: rgba(201, 163, 92, .06);
}
.imoveis-more p { margin: 0; color: var(--ink-soft); max-width: 640px; }

/* ---------- Como funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps > * { min-width: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  counter-increment: step; position: relative;
  background: var(--navy-700); border: 1px solid rgba(201, 163, 92, .18); border-radius: var(--radius);
  padding: 26px 22px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 16px;
}
.step h3 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.step p { font-size: .92rem; color: #b9bed0; margin: 0; }
.step a { color: var(--gold-light); }
.steps-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Garantias ---------- */
.split { display: grid; gap: 36px; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.split .section-head { margin-bottom: 0; }
.garantias { display: grid; gap: 14px; }
.garantia {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.garantia .num {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold); font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
}
.garantia h3 { font-size: 1.3rem; margin-bottom: 4px; }
.garantia p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.garantia--muted { background: transparent; border-style: dashed; border-color: var(--line-gold); }
.garantia--muted .num { background: transparent; border: 1px solid var(--line-gold); color: var(--gold-dark); }
.garantia--muted .num svg { width: 22px; height: 22px; }

/* ---------- Diferenciais ---------- */
.features { display: grid; gap: 18px; }
.features > * { min-width: 0; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 28px 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.feature:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold); margin-bottom: 18px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-gold); color: var(--gold-dark); font-family: var(--sans); font-size: 1.1rem; font-weight: 400; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 1em; padding-left: 1.2em; }
.faq .answer a { color: var(--gold-dark); }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(201, 163, 92, .16), transparent 70%), var(--navy-900);
  color: var(--cream); padding: 80px 0;
}
.cta-band img { width: 96px; height: auto; margin: 0 auto 18px; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: #b9bed0; max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9aa0b4; border-top: 1px solid rgba(201, 163, 92, .15); padding: 56px 0 96px; font-size: .9rem; }
@media (min-width: 768px) { .site-footer { padding-bottom: 32px; } }
.footer-grid { display: grid; gap: 32px; }
.footer-grid > * { min-width: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #d3d6e0; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand p { margin: 16px 0 0; max-width: 360px; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(247, 243, 236, .08); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; color: #7d8398; }
.footer-legal p { margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; } }

/* ---------- Página de texto (privacidade / 404) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--gold-dark); }
.doc .updated { color: var(--muted); font-size: .88rem; }
.err { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.err .num { font-family: var(--serif); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--gold); }
.err .hero-ctas { justify-content: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
}
