:root {
  --navy: #12243a;
  --navy-2: #1b3554;
  --ink: #1a1f26;
  --gold: #c4a574;
  --gold-2: #d4bc8e;
  --cream: #f6f1e8;
  --paper: #fbf8f3;
  --white: #ffffff;
  --muted: #5c6670;
  --line: #e4ddd2;
  --shadow: 0 18px 50px rgba(18, 36, 58, 0.12);
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,248,243,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 20px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.15;
}
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}
.logo span { color: var(--gold); }
.iframe-frame {
  width: 100%;
  min-height: 920px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.city-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.city-cloud a {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
}
.city-cloud a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 0.92rem; color: var(--navy-2); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; gap: 10px; }
.menu-btn {
  display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--navy);
}

/* Hero */
.hero {
  position: relative; min-height: 86vh;
  display: grid; place-items: end start;
  background: #12243a center/cover no-repeat;
  color: var(--white);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,36,58,.25) 0%, rgba(18,36,58,.72) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 80px 0 70px; max-width: 720px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); margin: 12px 0 18px; }
.hero p { font-size: 1.12rem; color: #efe7d8; max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.search-bar {
  position: relative; z-index: 2;
  margin: -42px auto 0;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
}
.search-bar label { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 4px; }
.search-bar input, .search-bar select {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  padding: 11px 12px; border-radius: 10px; font-size: 0.95rem;
}

/* Sections */
.section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.muted { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18,36,58,.07);
  border: 1px solid #efe9de;
}
.card img { width: 100%; height: 230px; object-fit: cover; }
.card-body { padding: 20px; }
.price { font-family: var(--serif); font-size: 1.55rem; color: var(--navy); }
.meta { color: var(--muted); font-size: 0.9rem; margin: 6px 0 12px; }
.badge {
  display: inline-block; background: var(--navy); color: var(--cream);
  font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; margin-bottom: 8px;
}
.badge.sold { background: #7a5a3a; }

.services .card-body h3 { font-size: 1.6rem; margin-bottom: 8px; }
.icon-row { font-size: 1.4rem; margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split img { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat { background: var(--cream); padding: 16px; border-radius: 14px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--navy); }

.testimonials { background: var(--navy); color: var(--cream); }
.testimonials h2, .testimonials .muted { color: #efe7d8; }
.quote { background: rgba(255,255,255,.06); padding: 24px; border-radius: 16px; border: 1px solid rgba(196,165,116,.25); }
.quote p { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 16px; }

.cta-band {
  background: linear-gradient(135deg, var(--navy), #2a4b72);
  color: white; border-radius: 28px; padding: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.cta-band h2 { font-size: 2.4rem; }

footer {
  background: #0d1b2c; color: #d8d0c4; padding: 54px 0 24px; margin-top: 20px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.foot-grid h4 { color: var(--gold-2); font-family: var(--sans); font-weight: 500; margin-bottom: 12px; }
.foot-grid a { display: block; margin: 6px 0; color: #d8d0c4; }
.copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; font-size: 0.85rem; }

/* Page hero */
.page-hero {
  background: var(--navy) center/cover no-repeat;
  color: white; padding: 90px 0 70px;
  position: relative;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,27,44,.82), rgba(13,27,44,.35));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px;
}
.chip {
  border: 1px solid var(--line); background: white; padding: 8px 14px;
  border-radius: 999px; cursor: pointer; font-size: 0.88rem;
}
.chip.on, .chip:hover { background: var(--navy); color: white; border-color: var(--navy); }

.property-hero img { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.gallery-side { display: grid; gap: 12px; }
.gallery-side img { height: 254px; width: 100%; object-fit: cover; border-radius: 16px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.fact { background: white; border: 1px solid var(--line); padding: 16px; border-radius: 14px; }
.inquiry {
  background: white; border: 1px solid var(--line); padding: 24px; border-radius: 20px;
  position: sticky; top: 100px;
}
form { display: grid; gap: 12px; }
form input, form select, form textarea {
  width: 100%; padding: 12px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper);
}
form textarea { min-height: 120px; resize: vertical; }
.note { font-size: 0.82rem; color: var(--muted); }

.team-photo { width: 100%; height: 560px; object-fit: cover; object-position: top; border-radius: 24px; }

.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); margin: 36px 0 12px; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 22px 0 8px; color: var(--navy); }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 1.2rem; color: var(--muted); }
.prose li { margin: 7px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.quote .who { font-size: 0.88rem; color: var(--gold-2); }

.stats-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.stats-table th, .stats-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.stats-table th {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: left;
}
.stats-table td { color: var(--navy); }
.stats-table td:nth-child(n+2), .stats-table th:nth-child(n+2) { text-align: right; }
.stats-table tbody tr:hover { background: #f7f2e8; }
.prose-wide { max-width: 920px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 28px; }
.stat-row .stat b { font-size: 1.45rem; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open, .nav-cta.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--paper); padding: 20px; border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: block; }
  .search-bar, .grid-3, .grid-2, .split, .foot-grid, .facts, .gallery, .cta-band, .stat-row {
    grid-template-columns: 1fr;
  }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 78vh; }
  .property-hero img, .gallery-side img { height: 260px; }
  .team-photo { height: 380px; }
}
