/* ============ Rhino Cove, Design System ============ */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --bg-soft: #F1EEE7;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --line: #E5E1D6;
  --line-2: #D8D3C5;
  --brand: #1E40AF;
  --brand-2: #1D3FAA;
  --brand-soft: #EEF2FF;
  --accent: #10B981;
  --accent-soft: #ECFDF5;
  --warn: #B45309;
  --danger: #B91C1C;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .10), 0 4px 8px rgba(15, 23, 42, .04);

  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter Tight", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.serif { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #CBD5E1;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.topbar .inner {
  max-width: 1440px; margin: 0 auto;
  padding: 8px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: nowrap;
}
.topbar .pill { white-space: nowrap; }
.topbar .inner > * { white-space: nowrap; }
.topbar a { color: #E2E8F0; }
.topbar .pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); }
.topbar .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px rgba(16,185,129,.25); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .inner {
  max-width: 1440px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; gap: 32px;
}
.logo {
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  font-family: "Instrument Serif", serif;
  font-size: 26px; letter-spacing: -0.01em;
  color: var(--ink);
}
.logo img.brand-img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 44px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  image-rendering: auto;
}
header.site .logo img.brand-img { /* transparent PNG, no blend mode needed */ }
.mobile-nav-cta { display: none; }
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: "Inter Tight", sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: -.02em;
}
.logo em { font-style: italic; color: var(--brand); }
/* Footer uses dedicated logo-footer.png (already light-colored for dark bg) */
footer.site .logo img.brand-img { /* no filter needed — file is pre-optimized */ }

nav.primary { display: flex; gap: 4px; margin-left: 16px; }
nav.primary a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s;
}
nav.primary a:hover { background: var(--bg-soft); color: var(--ink); }
nav.primary a.active { color: var(--ink); background: var(--bg-soft); }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: all .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #000; }
.btn-brand {
  background: var(--brand);
  color: white;
}
.btn-brand:hover { background: var(--brand-2); }
.btn-outline {
  border-color: var(--line-2);
  background: var(--bg-elev);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { padding: 10px 14px; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn .arrow {
  width: 14px; height: 14px;
  display: inline-block; flex-shrink: 0;
  transition: transform .18s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .bar { width: 24px; height: 1px; background: var(--ink-3); }

h1.display, .display {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}
h2.title, .title {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}
h3.heading, .heading {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 20px; line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.lead {
  font-size: 19px; line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .2s;
}
.card.hover:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

/* ---------- Tags / chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-soft);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.tag.accent { background: var(--accent-soft); color: #047857; }
.tag.dark { background: var(--ink); color: var(--bg); }
.tag.outline { background: transparent; border: 1px solid var(--line-2); }

/* ---------- Footer ---------- */
footer.site {
  margin-top: 120px;
  background: var(--ink);
  color: #94A3B8;
  padding: 80px 0 40px;
}
footer.site .inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
footer.site .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
footer.site h5 {
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #E2E8F0; margin: 0 0 20px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
footer.site a:hover { color: #fff; }
footer.site .legal {
  padding-top: 32px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
}
footer.site .logo { color: #fff; }
footer.site .logo .mark { background: var(--bg); color: var(--ink); }

/* ---------- Utilities ---------- */
.row { display: flex; gap: 16px; align-items: center; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.divider { height: 1px; background: var(--line); }
.hairline { border-top: 1px solid var(--line); }

/* ---------- Section ---------- */
section.block { padding: 110px 0; }
section.block.tight { padding: 64px 0; }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-bottom: 56px; align-items: end;
}
.section-head .right { color: var(--ink-2); font-size: 17px; }

/* ---------- Marquee numbers ---------- */
.stat .n {
  font-family: "Instrument Serif", serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .l { font-size: 13px; color: var(--ink-3); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Form ---------- */
.input, .select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30, 64, 175, .12); }
.label { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- Range slider ---------- */
input[type="range"].rc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
}
input[type="range"].rc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--ink);
  border: 4px solid var(--bg-elev);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s;
}
input[type="range"].rc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"].rc-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--ink);
  border: 4px solid var(--bg-elev);
  cursor: pointer;
}

/* ---------- Property cards ---------- */
.listing {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
}
.listing:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.listing .photo {
  aspect-ratio: 4/3; background: var(--bg-soft);
  position: relative; overflow: hidden;
}
.listing .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing:hover .photo img { transform: scale(1.04); }
.listing .badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.listing .badges .tag { backdrop-filter: blur(8px); background: rgba(255,255,255,.92); }
.listing .save { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.92); display: grid; place-items: center; backdrop-filter: blur(8px); }
.listing .body { padding: 20px; }
.listing .price { font-family: "Instrument Serif", serif; font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.listing .addr { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.listing .meta { display: flex; gap: 14px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.listing .meta b { color: var(--ink); font-weight: 600; }

/* ---------- Inline icons ---------- */
.i { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; }
.i-sm { width: 14px; height: 14px; }
.i-lg { width: 22px; height: 22px; }

/* ---------- Page intro pattern ---------- */
.page-intro {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-intro h1 { margin-top: 16px; }
.page-intro .lead { margin-top: 24px; font-size: 21px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .wrap, .wrap-wide { padding: 0 20px; }
  nav.primary { display: none; }
  footer.site .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-head { grid-template-columns: 1fr; }
}
