/* ===== Theme ===== */
:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --panel: #18181b;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2efe9;
  --muted: #9b978f;
  --gold: #c9a46a;
  --gold-2: #e3c891;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-2); }

/* ===== Type helpers ===== */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.01em;
}
.center { text-align: center; margin-top: 3.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.btn-solid { background: var(--gold); color: #111; }
.btn-solid:hover { background: transparent; color: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad);
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.05rem; color: var(--gold-2);
  letter-spacing: 0.05em;
}
.brand-text {
  font-size: 0.8rem; letter-spacing: 0.4em; font-weight: 500; line-height: 1.3;
  display: flex; flex-direction: column;
}
.brand-text small { font-size: 0.56rem; letter-spacing: 0.35em; color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 2.4rem; align-items: center; }
.nav a {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500;
  position: relative; padding: 0.3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s;
}
.nav a:hover::after { width: 100%; }
.nav .nav-cta { border: 1px solid var(--gold); padding: 0.6rem 1.3rem; color: var(--gold-2); }
.nav .nav-cta::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--text); margin: 7px 0; transition: transform .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 8rem var(--pad) 6rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,164,106,.20), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(201,164,106,.10), transparent 60%),
    linear-gradient(180deg, #0b0b0c 0%, #141210 60%, #0b0b0c 100%);
}
.hero-bg::before { /* architectural line pattern */
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 120px);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 120px 120px; } }
.hero-inner { position: relative; max-width: 760px; }
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 8rem); line-height: 0.95; margin: 0 0 1.8rem;
}
.hero-sub { max-width: 480px; color: #cfcac1; font-size: 1rem; margin: 0 0 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-districts {
  position: absolute; right: var(--pad); bottom: 6rem;
  list-style: none; margin: 0; padding: 0; text-align: right;
}
.hero-districts li {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1rem, 1.8vw, 1.5rem); letter-spacing: 0.08em; line-height: 1.25;
}
.hero-districts .label { font-size: 0.65rem; letter-spacing: 0.35em; color: var(--gold); font-weight: 500; margin-bottom: 0.6rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; width: 1px; height: 54px;
  background: rgba(255,255,255,.15); overflow: hidden;
}
.scroll-cue span { position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--gold); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { to { top: 110%; } }

/* ===== Sections ===== */
.section { padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.section-head { text-align: center; margin-bottom: 4rem; }

/* ===== Listings ===== */
.listings { background: var(--bg-2); }
.filters { display: inline-flex; gap: 0.5rem; margin-top: 2rem; border: 1px solid var(--line); padding: 0.35rem; }
.filter {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 0.6rem 1.2rem; transition: background .3s, color .3s;
}
.filter.active, .filter:hover { background: var(--gold); color: #111; }
.listing-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  max-width: 1400px; margin: 0 auto;
}
.card { background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .5s, border-color .5s; }
.card:hover { transform: translateY(-6px); border-color: rgba(201,164,106,.5); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; filter: saturate(.9); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65)); }
.tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  background: rgba(11,11,12,.8); color: var(--gold-2); border: 1px solid rgba(201,164,106,.5);
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; padding: 0.4rem 0.8rem; font-weight: 500;
}
.card-price {
  position: absolute; left: 1.4rem; bottom: 1rem; z-index: 1;
  font-family: var(--serif); font-size: 1.9rem; font-weight: 400;
}
.card-body { padding: 1.5rem 1.4rem 1.6rem; }
.card-body h3 { margin: 0; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.card-body .addr { margin: 0.3rem 0 1rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; }
.card-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: #cfcac1; padding-top: 1rem; border-top: 1px solid var(--line); }
.card-meta span + span::before { content: "/"; margin-right: 1.2rem; color: var(--gold); }
.card-link { display: inline-block; margin-top: 1.2rem; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-2); }
.card-link::after { content: " →"; transition: margin .3s; }
.card:hover .card-link::after { margin-left: 6px; }

/* ===== About ===== */
.about {
  display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.15fr; gap: clamp(3rem, 7vw, 7rem);
  align-items: center; max-width: 1300px; margin: 0 auto;
}
.about-photo { position: relative; background: #f4f3f1; padding-top: 2rem; }
.about-photo::before { content: ""; position: absolute; inset: -1.2rem 1.2rem 1.2rem -1.2rem; border: 1px solid var(--gold); z-index: -1; }
.about-photo img { width: 100%; max-height: 720px; object-fit: contain; object-position: bottom; }
.about-badge {
  position: absolute; right: -1.5rem; bottom: 2.5rem;
  background: var(--bg); border: 1px solid var(--gold); padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.about-badge strong { font-family: var(--serif); font-size: 2.8rem; font-weight: 300; color: var(--gold-2); line-height: 1; }
.about-badge span { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; line-height: 1.5; }
.about-copy p { color: #cfcac1; max-width: 600px; }
.about-copy .section-title { margin-bottom: 1.8rem; }
.about-copy .lead { font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; color: var(--text); font-weight: 300; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold-2) !important; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2.5rem 0 1.5rem; }
.stats div { padding: 1.6rem 0.5rem; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1; color: var(--gold-2); }
.stats span { display: block; margin-top: 0.6rem; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.cea { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted) !important; }

/* ===== Reviews ===== */
.reviews { background: var(--bg-2); }
.stars { color: var(--gold); letter-spacing: 0.3em; margin-top: 1.4rem; font-size: 1.1rem; }
.stars span { color: var(--muted); letter-spacing: 0.2em; font-size: 0.65rem; text-transform: uppercase; margin-left: 0.6rem; vertical-align: middle; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.review { margin: 0; padding: 3rem 2.6rem 2.4rem; border: 1px solid var(--line); background: var(--panel); position: relative; }
.quote-mark { position: absolute; top: 0.6rem; left: 1.8rem; font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--gold); opacity: .5; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; font-weight: 300; position: relative; }
.review figcaption { margin-top: 1.6rem; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.read-more { margin-top: 1rem; background: none; border: 0; padding: 0; color: var(--gold-2); cursor: pointer; font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; border-bottom: 1px solid currentColor; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); max-width: 1300px; margin: 0 auto; align-items: start; }
.contact-copy > p { color: #cfcac1; margin: 1.8rem 0 2.4rem; max-width: 460px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { width: 110px; flex: none; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); padding-top: 0.25rem; }
.contact-list a:hover { color: var(--gold-2); }
.contact-form { display: grid; gap: 1.4rem; background: var(--panel); padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact-form label { display: grid; gap: 0.5rem; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--sans); font-size: 0.95rem; color: var(--text); font-weight: 300;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.2);
  padding: 0.6rem 0; outline: none; transition: border-color .3s; resize: vertical;
  letter-spacing: normal; text-transform: none;
}
.contact-form select option { background: var(--panel); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form .btn { justify-self: start; margin-top: 0.5rem; }
.form-status { margin: 0; font-size: 0.85rem; color: var(--gold-2); min-height: 1.2em; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem var(--pad); display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.site-footer p { margin: 0; font-size: 0.72rem; letter-spacing: 0.12em; color: #cfcac1; }
.site-footer .muted { color: var(--muted); }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #111; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg::before, .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; margin: 0 auto; }
  .hero-districts { position: static; text-align: left; margin-top: 3rem; }
  .hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: rgba(11,11,12,.98);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 0.9rem; }
  .nav-toggle { position: relative; z-index: 60; }
  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .about-badge { right: 0.8rem; }
  .listing-grid { grid-template-columns: 1fr; }
}
