/* Keystone Properties — design system
   Palette: warm cream / deep navy / terracotta. Type: PT Serif display, Roboto body. */

:root {
  --cream: #F9F0E8;
  --cream-2: #F3E6D8;
  --line: #E5D5C9;
  --navy: #051836;
  --navy-2: #0B2347;
  --navy-line: #1F304A;
  --ink: #3B3733;
  --muted: #857C74;
  --terra: #C1734F;
  --terra-soft: #D39583;
  --terra-dark: #A85F3E;
  --white: #FFFEFB;
  --serif: "PT Serif", Georgia, serif;
  --sans: "Roboto", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --radius: 4px;
  --shadow: 0 18px 40px -18px rgba(5, 24, 54, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terra-dark); text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.01em; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; color: var(--terra); }

.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra-dark);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--terra-soft); }

.section { padding: 96px 0; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #C5C8CD; }
.center { text-align: center; margin-top: 48px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  border: 1px solid transparent; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--terra); color: #fff; }
.btn-solid:hover { background: var(--terra-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-line { border-color: var(--terra); color: var(--terra-dark); }
.btn-line:hover { background: var(--terra); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 0.98rem; }
.btn-block { display: block; width: 100%; margin-bottom: 10px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy); color: #C5C8CD; font-size: 0.8rem; }
.topbar a { color: var(--terra-soft); margin-left: 18px; }
.topbar-in { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 4px; }

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 240, 232, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand .mark { width: 34px; height: 24px; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.01em; }
.brand-text em { font-style: italic; color: var(--terra); margin-left: 5px; }
.brand-light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  color: var(--navy); font-size: 0.95rem; font-weight: 400;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a.on { border-bottom-color: var(--terra); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 8px; transition: 0.2s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5, 24, 54, 0.88) 0%, rgba(5, 24, 54, 0.55) 55%, rgba(5, 24, 54, 0.25) 100%); }
.hero-in { position: relative; padding-top: 90px; padding-bottom: 40px; }
.hero h1 { color: var(--white); font-size: clamp(3rem, 8vw, 5.8rem); }
.hero .lede { color: #DDD6CE; font-size: 1.15rem; max-width: 540px; margin-top: 22px; font-weight: 300; }
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255, 255, 255, 0.16); margin-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stats > div { background: rgba(5, 24, 54, 0.5); padding: 22px 26px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--terra-soft); }
.hero-stats span { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: #BFC5CC; }

/* ---------- city cards ---------- */
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.city-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.city-card:hover img { transform: scale(1.045); }
.city-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px; background: linear-gradient(to top, rgba(5, 24, 54, 0.85), rgba(5, 24, 54, 0) 55%);
}
.city-overlay h3 { color: #fff; font-size: 2rem; }
.city-overlay span { color: var(--terra-soft); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- property cards ---------- */
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 26px -14px rgba(5, 24, 54, 0.22); transition: transform 0.25s, box-shadow 0.25s; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover figure img { transform: scale(1.05); }
.card-noimg, .team-noimg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--cream-2), var(--line)); }
.chip {
  position: absolute; top: 14px; left: 14px; background: rgba(5, 24, 54, 0.82); color: #fff;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
}
.price {
  position: absolute; bottom: 14px; left: 14px; background: var(--terra); color: #fff;
  font-size: 0.85rem; font-weight: 500; padding: 5px 12px; border-radius: 2px;
}
.card-body { padding: 20px 22px 22px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.card-meta { color: var(--muted); font-size: 0.9rem; }

/* ---------- about split ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-split p { margin-bottom: 16px; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; }
.step span { font-family: var(--serif); font-size: 2.4rem; color: var(--terra-soft); font-style: italic; }
.step h3 { margin: 10px 0 8px; font-size: 1.35rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); padding: 72px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0; }

/* ---------- page head ---------- */
.page-head { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: 84px 0 64px; }
.lede-dark { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin-top: 18px; }

/* ---------- filters + listing ---------- */
.listing-section { padding-top: 56px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.filters input, .filters select {
  font-family: var(--sans); font-size: 0.95rem; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px;
}
.filters input { flex: 1 1 240px; }
.filters select { appearance: auto; }
.filter-count { color: var(--muted); font-size: 0.9rem; margin-left: auto; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.avail-note {
  margin-top: 64px; background: var(--navy); border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.avail-note p { color: #C5C8CD; max-width: 560px; }
.avail-note strong { color: #fff; display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 4px; }

/* ---------- property detail ---------- */
.detail-head { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: 44px 0 34px; }
.crumbs { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.detail-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.detail-title h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.detail-sub { color: var(--muted); margin-top: 6px; }
.detail-price { font-family: var(--serif); font-size: 1.7rem; color: var(--terra-dark); font-style: italic; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 36px 0; }
.gallery button { border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-main { aspect-ratio: 16 / 10; }
.g-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-thumbs button { aspect-ratio: 1 / 1; }
.g-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 24, 54, 0.62); color: #fff; font-family: var(--serif); font-size: 1.4rem;
}
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 24, 54, 0.95);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox .lb-bar { color: #C5C8CD; font-size: 0.9rem; display: flex; gap: 24px; align-items: center; }
.lightbox button { background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: var(--radius); padding: 8px 16px; cursor: pointer; font-size: 1rem; }

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding-bottom: 80px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.facts > div { background: var(--white); padding: 16px 18px; }
.facts span { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts strong { font-family: var(--serif); font-size: 1.08rem; color: var(--navy); font-weight: 400; }
.detail-list { margin-bottom: 32px; }
.detail-list h3 { font-size: 1.4rem; margin-bottom: 12px; }
.detail-list ul { list-style: none; columns: 2; gap: 32px; }
.detail-list li { padding: 7px 0 7px 26px; position: relative; break-inside: avoid; }
.detail-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 2px; background: var(--terra); }
.detail-short { color: var(--muted); margin-bottom: 28px; }
.side-card { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 26px -14px rgba(5, 24, 54, 0.18); }
.side-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.side-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.side-contact { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: 0.9rem; color: var(--muted); }
.side-contact a { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }

/* ---------- team ---------- */
.about-split-light .about-img img { aspect-ratio: 4 / 3; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 26px -14px rgba(5, 24, 54, 0.18); text-align: center; padding-bottom: 20px; }
.team-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; margin-bottom: 16px; }
.team-noimg { aspect-ratio: 1 / 1; margin-bottom: 16px; }
.team-card h3 { font-size: 1.05rem; letter-spacing: 0.04em; }
.team-card p { color: var(--muted); font-size: 0.85rem; padding: 0 12px; }

/* ---------- residents ---------- */
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.res-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.res-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.res-card p { color: var(--muted); margin-bottom: 18px; }
.check-list { list-style: none; margin-bottom: 22px; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--terra); font-weight: 600; }
.res-emergency { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.92rem; }
.res-emergency strong { display: block; color: var(--navy); margin-bottom: 4px; }
.res-emergency a { display: block; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.office { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.office h3 { font-size: 1.4rem; margin-bottom: 6px; }
.office-phone { font-family: var(--serif); font-size: 1.8rem; color: var(--terra-dark); display: block; margin-bottom: 10px; }
.office p { color: var(--muted); font-size: 0.96rem; margin-bottom: 12px; }
.office-em { font-size: 0.88rem; }
.contact-form-card { background: var(--navy); border-radius: var(--radius); padding: 40px; }
.contact-form-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 20px; }
.contact-form-card label { display: block; color: #C5C8CD; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.contact-form-card input, .contact-form-card textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius);
  color: #fff; font-family: var(--sans); font-size: 1rem;
}
.contact-form-card input:focus, .contact-form-card textarea:focus { outline: 2px solid var(--terra); border-color: var(--terra); }
.form-note { color: var(--terra-soft); font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy); color: #C5C8CD; padding: 72px 0 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.foot-blurb { font-size: 0.95rem; margin-top: 16px; max-width: 340px; }
.site-foot h4 { color: var(--white); font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.site-foot a, .site-foot span { display: block; color: #C5C8CD; font-size: 0.95rem; padding: 4px 0; }
.site-foot a:hover { color: var(--terra-soft); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--navy-line); padding-top: 22px; padding-bottom: 22px; font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .about-split, .contact-grid, .res-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-grid { gap: 24px; }
  .side-card { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .grid-3, .city-grid, .team-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-thumbs { grid-template-columns: repeat(4, 1fr); }
  .topbar-in { justify-content: center; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 24px; gap: 18px;
  }
  .site-nav.open { display: flex; }
  .detail-list ul { columns: 1; }
  .facts { grid-template-columns: 1fr 1fr; }
}
