/* Belvedere Properties — shared design system
   Tokens verified from wander.com Playwright capture (see screenshots/design-tokens.md)
   No serif, no gold. Instrument Sans everywhere. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #FFFFFF;
  --text: #232323;
  --text-2: #636363;
  --muted: #8F8F8F;
  --surface: #F0F0F0;
  --band: #F7F7F7;
  --black: #000000;
  --hero-text: #F6F6F6;
  --radius-card: 16px;
  --radius-overlay: 24px;
  --nav-h: 72px;
  --maxw: 1200px;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: 52px; font-weight: 550; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
p  { color: var(--text); }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }

/* ---------- Buttons / pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 48px; padding: 0 26px;
  border-radius: 9999px; font-weight: 500; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-1px); }
.pill--black  { background: var(--black); color: #fff; }
.pill--white  { background: #fff; color: var(--text); border-color: #e6e6e6; }
.pill--ghost  { background: transparent; color: var(--text); border-color: #d6d6d6; }
.pill--sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border-radius: 9999px; background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 500;
}
.chip--light { background: rgba(255,255,255,.18); color: var(--hero-text); backdrop-filter: blur(4px); }

/* ---------- Photo placeholders (self-contained, no external images) ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,0) 60%),
    linear-gradient(160deg, #c9d2dc 0%, #aeb9c6 45%, #8f9bab 100%);
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: auto 0 12px 0; text-align: center;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.ph--warm { background:
  linear-gradient(135deg, rgba(0,0,0,.22), rgba(0,0,0,0) 60%),
  linear-gradient(150deg, #e8c9a3 0%, #d8a673 45%, #b9824f 100%); }
.ph--cool { background:
  linear-gradient(135deg, rgba(0,0,0,.22), rgba(0,0,0,0) 60%),
  linear-gradient(150deg, #b6c2cf 0%, #8b9bad 50%, #66758a 100%); }
.ph--green { background:
  linear-gradient(135deg, rgba(0,0,0,.2), rgba(0,0,0,0) 60%),
  linear-gradient(150deg, #c2d3bf 0%, #9bb59a 50%, #6f8c72 100%); }

/* Real photos (hotlinked) sit inside .ph / .inner / bg slots */
img.inner, .ph > img, .card-photo img.inner { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.gallery .main { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-card); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--bg); display: flex; align-items: center; z-index: 50;
  border-bottom: 1px solid #f1f1f1;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo img { height: 42px; width: auto; display: block; }
/* Headshot placeholder (until Brian delivers his photo) */
.headshot-ph { aspect-ratio: 4/5; border-radius: var(--radius-card); display: grid; place-items: center; gap: 8px;
  background: radial-gradient(circle at 50% 32%, #2c3f63 0%, #16223d 74%); color: #fff; text-align: center; }
.headshot-ph .mono { font-size: 46px; font-weight: 600; letter-spacing: .06em; }
.headshot-ph small { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.headshot-photo { aspect-ratio: 4/5; width: 100%; object-fit: cover; object-position: center top; border-radius: var(--radius-card); display: block; }
.logo .seal {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #2c3f63 0%, #16223d 72%);
  color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28), 0 1px 3px rgba(0,0,0,.22);
}
.logo .wordmark small { display: block; font-size: 9px; letter-spacing: .18em; color: var(--muted); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.hamburger {
  width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  display: grid; place-items: center; gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: #fff; z-index: 60;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 30px; font-weight: 550; letter-spacing: -0.02em; }
.mobile-menu .close { position: absolute; top: 22px; right: 26px; font-size: 30px; background: none; border: none; cursor: pointer; }

.page { padding-top: var(--nav-h); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { display: block; }
.card .card-photo { aspect-ratio: 4/3; margin-bottom: 14px; transition: transform .35s ease; }
.card .card-photo .inner { width: 100%; height: 100%; transition: transform .5s ease; }
.card:hover { transform: translateY(-4px); transition: transform .25s ease; }
.card:hover .card-photo .inner { transform: scale(1.05); }
.card-photo { position: relative; }
.card-status {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  height: 30px; padding: 0 14px; border-radius: 9999px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; display: inline-flex; align-items: center; text-transform: uppercase;
}
.status--active   { background: var(--black); color: #fff; }
.status--inactive { background: var(--surface); color: var(--text-2); }
.status--soon     { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.85); }
.card.is-inactive .card-photo .inner { opacity: .7; filter: grayscale(.15); }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 3px; }
.card-meta  { color: var(--text-2); font-size: 14px; margin-bottom: 6px; }
.card-price { font-size: 17px; font-weight: 600; }
.card-price.is-hidden { color: var(--text-2); font-weight: 500; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat .cap { color: var(--text-2); font-size: 14px; margin-top: 10px; }

/* ---------- Bands ---------- */
.band-black { background: var(--black); color: #fff; }
.band-black h2, .band-black p { color: #fff; }
.band-gray { background: var(--band); }

/* ---------- Footer ---------- */
.footer-band { position: relative; min-height: 320px; background: var(--black); color: #fff; overflow: hidden; }
.footer-band .bg { position: absolute; inset: 0; opacity: .55; }
.footer-band .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.footer-band .blurbs { display: grid; gap: 28px; }
.footer-band .blurb { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.footer-band .blurb .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 18px; }
.footer-band .blurb p { color: rgba(255,255,255,.82); font-size: 15px; }

.footer-cols { padding: 64px 0 40px; }
.footer-cols .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer-cols ul { list-style: none; display: grid; gap: 10px; }
.footer-cols a { color: var(--text-2); font-size: 15px; }
.footer-cols a:hover { color: var(--text); }

.footer-legal { border-top: 1px solid #eee; }
.footer-legal .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 20px 24px; font-size: 13px; color: var(--muted); }
.eho { width: 26px; height: 26px; border: 1px solid #ccc; border-radius: 4px; display: inline-grid; place-items: center; font-size: 8px; font-weight: 700; line-height: 1; text-align: center; color: var(--text-2); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field input, .field textarea, .field select {
  font-family: var(--font); font-size: 15px; color: var(--text);
  border: 1px solid #e2e2e2; border-radius: 12px; padding: 13px 15px; background: #fff; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--text); }
.toggle-row { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end; color: var(--hero-text); }
.hero .bg { position: absolute; inset: 0; }
.hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.25) 100%); }
.hero .container { position: relative; z-index: 2; padding-bottom: 72px; }
.hero h1 { color: var(--hero-text); max-width: 14ch; margin: 18px 0 16px; }
.hero .sub { color: rgba(246,246,246,.86); font-size: 19px; max-width: 46ch; margin-bottom: 26px; }
.hero-alt { font-size: 13px; color: var(--text-2); margin-top: 14px; }
.hero-alt b { color: var(--text); font-weight: 600; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 34px; gap: 20px; }
.section-head h2 { font-size: 30px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 60ch; }

/* ---------- Lead overlay ---------- */
.overlay-demo { background: var(--band); }
.lead-card {
  background: #fff; border-radius: var(--radius-overlay); padding: 40px; max-width: 460px; margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.lead-card { position: relative; }
.lead-card .chips { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.lead-card .close-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.chips .chip { cursor: pointer; user-select: none; transition: background .15s, color .15s; }
.chips .chip--sel { background: var(--text); color: #fff; }

/* Lead-capture modal */
.modal { position: fixed; inset: 0; background: rgba(18,18,24,.55); backdrop-filter: blur(2px);
  display: none; place-items: center; z-index: 200; padding: 20px; }
.modal.open { display: grid; }
.modal .lead-card { animation: lead-pop .26s ease both; }
@keyframes lead-pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* Map embeds */
.map { overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .section { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .footer-band .container { grid-template-columns: 1fr; }
  .footer-cols .container { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .two-col { grid-template-columns: 1fr !important; }
}
