/* ============================================================
   Shaked Acquisitions — shared design system
   Used by every page. Palette: ink / cream / muted gold.
   ============================================================ */

:root {
  --ink: #14181c;
  --ink-2: #232a30;
  --cream: #f6f2ea;
  --cream-2: #efe9dd;
  --paper: #fbf9f4;
  --gold: #9a7b3f;
  --gold-2: #b8965a;
  --line: rgba(20, 24, 28, 0.14);
  --muted: #5c6469;
  --max: 1180px;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

a { color: inherit; }

img { display: block; max-width: 100%; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold);
}
.nav-links .btn.active::after { display: none; }
.nav-links .btn { margin-left: 6px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,21,0.35) 0%, rgba(15,18,21,0.15) 40%, rgba(15,18,21,0.82) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 76px; padding-top: 120px; max-width: 820px; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 500; }
.hero p.lede { font-size: clamp(17px, 2.2vw, 21px); margin: 24px 0 34px; max-width: 640px; color: rgba(255,255,255,0.92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--cream); border-bottom: 1px solid var(--line); padding: 84px 0 72px; }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { font-size: clamp(34px, 5.2vw, 56px); max-width: 900px; }
.page-header p { color: var(--muted); font-size: 18px; margin: 20px 0 0; max-width: 640px; }

/* ---------- Section rhythm ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }

/* ---------- About ---------- */
.about-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.about-grid h2 { font-size: clamp(30px, 4.4vw, 46px); }
.about-copy p { margin: 0 0 20px; color: var(--ink-2); }
.about-copy p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 34px; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--cream); padding: 22px 20px; }
.fact .n { font-family: var(--serif); font-size: 34px; line-height: 1; display: block; }
.fact .l { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: 0.03em; }

/* ---------- Buy box ---------- */
.criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.crit { border-top: 2px solid var(--gold); padding-top: 20px; }
.crit h3 { font-size: 20px; font-family: var(--serif); margin-bottom: 8px; }
.crit p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Portfolio ---------- */
.portfolio-band { background: var(--ink); color: var(--cream); }
.portfolio-band .eyebrow { color: var(--gold-2); }
.portfolio-band .section-head p { color: rgba(246,242,234,0.7); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  background: transparent; color: rgba(246,242,234,0.75);
  border: 1px solid rgba(246,242,234,0.22); border-radius: 100px;
  padding: 9px 20px; cursor: pointer; transition: .2s;
}
.filter:hover { color: #fff; border-color: rgba(246,242,234,0.5); }
.filter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--ink-2); border: 1px solid rgba(246,242,234,0.08);
  border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(0,0,0,0.35); }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0e1114; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(15,18,21,0.78); color: var(--gold-2);
  padding: 6px 11px; border-radius: 2px; backdrop-filter: blur(4px);
}
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 21px; color: #fff; }
.card-loc { font-size: 13.5px; letter-spacing: 0.03em; color: var(--gold-2); margin: 7px 0 12px; font-weight: 500; }
.card-desc { font-size: 14.5px; color: rgba(246,242,234,0.72); margin: 0; line-height: 1.6; }
.card-muted { color: rgba(246,242,234,0.5); font-style: italic; }
.card-sf { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(246,242,234,0.1); font-size: 13px; color: rgba(246,242,234,0.6); letter-spacing: 0.03em; }
.empty { grid-column: 1 / -1; color: rgba(246,242,234,0.6); padding: 40px 0; text-align: center; }

/* Portfolio teaser footer link */
.grid-more { margin-top: 44px; text-align: center; }

/* ---------- Principals ---------- */
.principals-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 760px; }
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--cream-2); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 24px; margin-top: 20px; }
.person .role { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Media ---------- */
.media-list { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.media-item {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--paper); padding: 26px 28px; text-decoration: none;
  transition: background .2s, padding-left .2s;
}
.media-item:hover { background: var(--cream); padding-left: 34px; }
.media-item h3 { font-size: 20px; font-weight: 500; }
.media-item .arrow { color: var(--gold); font-size: 22px; flex: 0 0 auto; }

/* ---------- Contact ---------- */
.contact-band { background: var(--ink); color: var(--cream); }
.contact-band .eyebrow { color: var(--gold-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-grid h2 { font-size: clamp(30px, 4.4vw, 46px); color: #fff; }
.contact-info { margin-top: 24px; }
.contact-info .row { padding: 18px 0; border-top: 1px solid rgba(246,242,234,0.12); }
.contact-info .row:first-of-type { border-top: 0; }
.contact-info .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.contact-info a { color: var(--cream); text-decoration: none; border-bottom: 1px solid transparent; }
.contact-info a:hover { border-bottom-color: var(--gold-2); }
.send-note { margin-top: 26px; font-size: 14.5px; color: rgba(246,242,234,0.72); line-height: 1.6; }

form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; letter-spacing: 0.04em; color: rgba(246,242,234,0.75); margin-bottom: 7px; }
input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: #fff;
  background: rgba(246,242,234,0.06); border: 1px solid rgba(246,242,234,0.2);
  border-radius: 3px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: rgba(246,242,234,0.4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-2); background: rgba(246,242,234,0.1); }
select option { color: #14181c; }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: rgba(246,242,234,0.5); margin: 2px 0 0; }
form .btn-primary { justify-content: center; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; max-width: 720px; margin: 0 auto; }
.cta-band p { color: rgba(246,242,234,0.75); font-size: 18px; margin: 20px auto 32px; max-width: 560px; }
.cta-band .eyebrow { color: var(--gold-2); }

/* ---------- Footer ---------- */
footer { background: #0e1114; color: rgba(246,242,234,0.7); padding: 56px 0 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot-brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; }
.foot-brand span { color: var(--gold-2); }
.foot-addr { margin: 12px 0 0; max-width: 320px; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: 14px; text-decoration: none; color: rgba(246,242,234,0.7); }
.foot-links a:hover { color: #fff; }
.foot-meta { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(246,242,234,0.12); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-meta a { color: rgba(246,242,234,0.7); text-decoration: none; }
.foot-meta a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .criteria { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .page-header { padding: 60px 0 52px; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 28px 22px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin: 14px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .hero { min-height: 92vh; }
  .grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .criteria { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-media img, .media-item { transition: none; }
}

/* ============================================================
   Property detail pages (public/properties/*.html)
   ============================================================ */
.prop-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.prop-hero-img { position: absolute; inset: 0; }
.prop-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.prop-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,17,28,0.86) 0%, rgba(13,17,28,0.40) 46%, rgba(13,17,28,0.12) 100%);
}
.prop-hero-inner { position: relative; z-index: 2; width: 100%; padding: 116px 0 50px; }
.prop-back {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px;
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em; transition: color .2s;
}
.prop-back:hover { color: #fff; }
.prop-hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 18ch; text-shadow: 0 1px 22px rgba(8,10,18,0.5); }
.prop-hero .sub { font-size: clamp(17px, 2.1vw, 21px); color: rgba(255,255,255,0.92); margin: 18px 0 28px; max-width: 58ch; text-shadow: 0 1px 22px rgba(8,10,18,0.5); }

/* Key facts row */
.prop-facts { background: var(--cream); border-bottom: 1px solid var(--line); }
.prop-facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); padding: 0; }
.prop-facts .wrap-pad { padding: 0 28px; }
.pfact { background: var(--cream); padding: 26px 24px; }
.pfact:first-child { padding-left: 0; }
.pfact .k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.pfact .v { font-family: var(--serif); font-size: 21px; line-height: 1.2; }

/* The Center — prose */
.prop-prose { max-width: 760px; }
.prop-block { margin-top: 34px; }
.prop-block:first-of-type { margin-top: 40px; }
.prop-block h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 10px; }
.prop-block p { color: var(--ink-2); margin: 0; font-size: 17px; line-height: 1.7; }

/* Gallery */
.prop-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prop-gallery button { padding: 0; border: 0; background: #0e1114; cursor: pointer; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; display: block; }
.prop-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.prop-gallery button:hover img { transform: scale(1.05); }
.prop-gallery button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 760px) { .prop-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,16,0.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox .lb-btn {
  position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.22); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev { left: 12px; } .lb-next { right: 12px; } .lightbox .lb-btn { width: 42px; height: 42px; } }

@media (prefers-reduced-motion: reduce) { .prop-gallery img { transition: none; } }

/* ============================================================
   Leasing page — availability table + process
   ============================================================ */
.avail-intro { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 760px; }
.avail-intro a { color: var(--gold); text-decoration: underline; }
.avail-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); -webkit-overflow-scrolling: touch; }
.avail-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.avail-table thead th { text-align: left; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--cream-2); white-space: nowrap; }
.avail-table thead th.num { text-align: right; }
.avail-table tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.avail-table tbody tr:last-child td { border-bottom: 0; }
.avail-table tbody tr:hover { background: var(--cream); }
.avail-table .property-cell { font-weight: 500; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.avail-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.avail-table .status-now { display: inline-block; font-size: 12.5px; font-weight: 600; color: #2f6b3c; background: rgba(47,107,60,0.10); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.avail-table .status-future { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--gold); background: rgba(154,123,63,0.12); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.avail-table .inquire-btn { display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 8px 16px; border-radius: 6px; transition: all .2s; white-space: nowrap; }
.avail-table .inquire-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.lease-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.lease-step .step-num { font-family: var(--serif); font-size: 30px; color: var(--gold-2); margin-bottom: 12px; }
.lease-step h3 { font-size: 21px; margin-bottom: 10px; }
.lease-step p { color: var(--muted); font-size: 15.5px; margin: 0; line-height: 1.6; }

@media (max-width: 860px) {
  .lease-process { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}
@media (max-width: 560px) {
  .lease-process { grid-template-columns: 1fr; }
  .avail-table thead th, .avail-table tbody td { padding: 13px 14px; }
}
