/* ============================================================
   Maneet Chauhan — Real Estate. Design tokens + shared system.
   Deliberately single-theme (warm off-white, near-black type,
   one restrained forest-green accent) — matches the brand's own
   "premium, minimal, no dark mode" direction, not an oversight.
   ============================================================ */

:root {
  --ink: #15140f;
  --ink-70: rgba(21, 20, 15, 0.7);
  --ink-55: rgba(21, 20, 15, 0.55);
  --ink-40: rgba(21, 20, 15, 0.4);
  --paper: #faf8f4;
  --stone: #eeeae1;
  --stone-dark: #ded7c8;
  --accent: #2c3b31;
  --accent-soft: #e7ebe6;
  --line: rgba(21, 20, 15, 0.08);
  --line-strong: rgba(21, 20, 15, 0.16);
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max: 78rem;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .wrap { padding-inline: 2.5rem; }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
}

nav.primary-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

nav.primary-nav a {
  font-size: 0.9rem;
  color: var(--ink-70);
  white-space: nowrap;
}

nav.primary-nav a:hover { color: var(--ink); }

.header-actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.header-actions .phone {
  font-size: 0.9rem;
  color: var(--ink-70);
  white-space: nowrap;
}

@media (min-width: 1080px) {
  nav.primary-nav, .header-actions { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--ink);
  padding: 0.85rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); background: var(--stone); }
.btn-inverted { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-inverted:hover { background: var(--stone); }
.btn-ghost-inverted { border-color: rgba(250,248,244,0.4); color: var(--paper); }
.btn-ghost-inverted:hover { border-color: var(--paper); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.menu-toggle span { width: 22px; height: 1px; background: var(--ink); display: block; }
@media (min-width: 1080px) { .menu-toggle { display: none; } }

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.5rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: block;
  padding: 0.65rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1080px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: radial-gradient(circle at 28% 18%, #262620 0%, var(--ink) 55%);
  color: var(--paper);
  padding-block: 6.5rem 4.5rem;
}

@media (min-width: 768px) {
  .hero { padding-block: 9rem 6rem; }
}

.hero .areas {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.55);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  max-width: 22ch;
}

.hero p.lede {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-size: 1.1rem;
  color: rgba(250,248,244,0.78);
}

.hero .actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Sections ---------- */

section { border-bottom: 1px solid var(--line); }
section.no-border { border-bottom: none; }
section.pad { padding-block: 5rem; }
@media (min-width: 768px) { section.pad { padding-block: 7rem; } }
section.pad-sm { padding-block: 3.5rem; }
section.tint { background: var(--stone); }
section.dark { background: var(--ink); color: var(--paper); }

h2.section-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.section-desc { margin-top: 1rem; max-width: 34rem; color: var(--ink-70); }
.dark .section-desc { color: rgba(250,248,244,0.7); }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
}

.view-all { font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.view-all:hover { color: var(--accent); }

/* ---------- Grids ---------- */

.grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (min-width: 640px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-6 { grid-template-columns: repeat(6, 1fr); } }

.grid-6 a {
  background: var(--paper);
  aspect-ratio: 1 / 1;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.88rem;
  transition: background-color 0.2s ease;
}
.grid-6 a:hover { background: var(--stone); }
.grid-6 a .arrow { margin-top: 0.5rem; color: var(--ink-40); transition: transform 0.2s ease; }
.grid-6 a:hover .arrow { transform: translateX(3px); }

.community-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 3rem;
}
@media (min-width: 640px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .community-grid { grid-template-columns: repeat(3, 1fr); } }
.community-grid a {
  background: var(--stone);
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background-color 0.2s ease;
}
.community-grid a:hover { background: var(--stone-dark); }
.community-grid .name { font-family: var(--font-display); font-size: 1.3rem; }
.community-grid .region { margin-top: 0.2rem; font-size: 0.8rem; color: var(--ink-55); }

/* ---------- Empty state ---------- */

.empty-state {
  border: 1px dashed var(--line-strong);
  padding: 4rem 2rem;
  text-align: center;
}
.empty-state p:first-child { font-size: 1.1rem; }
.empty-state p.desc { margin-top: 0.5rem; max-width: 30rem; margin-inline: auto; color: var(--ink-55); font-size: 0.92rem; }
.empty-state .cta { margin-top: 1.5rem; display: inline-block; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buy / sell split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}
@media (min-width: 640px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { background: var(--paper); padding: 3rem 1.5rem; }
@media (min-width: 768px) { .split > div { padding: 4rem 2.5rem; } }
.split h3 { font-size: 1.7rem; max-width: 20ch; margin-top: 0.75rem; }
.split p { margin-top: 1rem; max-width: 26ch; color: var(--ink-70); font-size: 0.95rem; }
.split .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .about-layout { grid-template-columns: 0.85fr 1.15fr; } }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Cards / lists ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 3rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid > a, .card-grid > div {
  background: var(--paper);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 13rem;
  transition: background-color 0.2s ease;
}
.card-grid > a:hover { background: var(--stone); }
.card-grid h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-sans); }
.card-grid p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-70); }

.three-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .three-col { grid-template-columns: repeat(3, 1fr); } }
.three-col h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-sans); }
.three-col p { margin-top: 0.65rem; font-size: 0.92rem; color: var(--ink-70); }

.step-list { max-width: 42rem; margin-top: 3rem; display: flex; flex-direction: column; gap: 2.5rem; }
.step-list h3 { font-size: 1.2rem; }
.step-list p { margin-top: 0.65rem; color: var(--ink-70); }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 34rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 560px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 6rem; }

.consent { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.88rem; color: var(--ink-70); }
.consent input { margin-top: 0.3rem; }

.form-success {
  border: 1px solid var(--line-strong);
  background: var(--stone);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 34rem;
}
.form-success p.title { font-size: 1.1rem; }
.form-success p.sub { margin-top: 0.5rem; color: var(--ink-70); font-size: 0.9rem; }

.demo-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--ink-40);
  max-width: 34rem;
}

/* ---------- Mortgage calculator ---------- */

.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
@media (min-width: 960px) { .calc-layout { grid-template-columns: 1fr 1fr; } }
.calc-result {
  border: 1px solid var(--line-strong);
  background: var(--stone);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-result .amount { font-size: 2.6rem; font-family: var(--font-display); margin-top: 0.5rem; font-variant-numeric: tabular-nums; }
.calc-result .per { margin-top: 0.25rem; color: var(--ink-55); font-size: 0.92rem; }
.calc-result dl { margin-top: 2.5rem; border-top: 1px solid var(--line-strong); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.92rem; }
.calc-result dl div { display: flex; justify-content: space-between; }
.calc-result dt { color: var(--ink-55); }
.calc-result dd { margin: 0; font-variant-numeric: tabular-nums; }
.calc-disclaimer { margin-top: 2.5rem; font-size: 0.78rem; line-height: 1.6; color: var(--ink-55); }

/* ---------- Icons ---------- */

.icon-tile {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone);
  color: var(--ink);
  flex-shrink: 0;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.on-dark { background: rgba(250,248,244,0.12); color: var(--paper); }
.icon-tile.accent { background: var(--accent-soft); color: var(--accent); }

.card-grid .icon-tile { margin-bottom: 0.25rem; }
.three-col .icon-tile, .step-list .icon-tile { margin-bottom: 0.5rem; }

.grid-6 a .icon-tile { width: 34px; height: 34px; background: transparent; padding: 0; margin-bottom: 0.6rem; }
.grid-6 a .icon-tile svg { width: 22px; height: 22px; }

/* ---------- City skyline banners ---------- */

.city-banner {
  width: 100%;
  aspect-ratio: 600 / 150;
  background: var(--stone);
  overflow: hidden;
  margin-bottom: 2rem;
}
.city-banner svg { width: 100%; height: 100%; display: block; }

.city-banner.sm { aspect-ratio: 600 / 90; margin-bottom: 1.5rem; }
.city-banner.lg { aspect-ratio: 1200 / 200; margin: 2.5rem 0 3rem; }

/* ---------- Hero two-column layout + illustration ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
}
.hero-scene { display: none; }
@media (min-width: 900px) {
  .hero-scene { display: block; max-width: 30rem; margin-inline: auto; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 3px; }
  .hero-scene svg { width: 100%; height: auto; display: block; }
  .hero-scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* ---------- Split-section photos ---------- */

.split-scene {
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 320 / 260;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 3px;
}
.split-scene svg { width: 100%; height: 100%; display: block; }
.split-scene img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Hero skyline accent ---------- */

.hero { overflow: hidden; }
.hero-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-skyline svg { width: 100%; height: 100%; display: block; }

/* ---------- Pre-sale project cards ---------- */

.presale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 720px) { .presale-grid { grid-template-columns: repeat(2, 1fr); } }

.presale-card {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.presale-card .card-head h3 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; }
.presale-card .developer { margin-top: 0.3rem; font-size: 0.85rem; color: var(--ink-55); }
.presale-card .specs { display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: 0.86rem; }
.presale-card .specs .row { display: flex; justify-content: space-between; gap: 1rem; }
.presale-card .specs .label { color: var(--ink-55); flex-shrink: 0; }
.presale-card .specs .value { text-align: right; font-variant-numeric: tabular-nums; }
.presale-card .note { font-size: 0.78rem; color: var(--ink-40); }
.presale-card .cta-row a { font-size: 0.88rem; text-decoration: underline; text-underline-offset: 4px; }
.presale-card .cta-row a:hover { color: var(--accent); }

/* ---------- Jump nav (Pre-Sale page) ---------- */

.jump-nav {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.jump-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-70);
  white-space: nowrap;
}
.jump-nav a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }

/* ---------- Footer ---------- */

footer.site-footer { background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-block: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); }
.footer-grid ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid ul a { font-size: 0.9rem; color: var(--ink-70); }
.footer-grid ul a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.78rem; color: var(--ink-55); }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.max-2 { max-width: 42rem; }
.max-2.center { margin-inline: auto; }
.tag {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
}
