/* ============================================================
   AUREVI — Brand Site Stylesheet
   Palette: Matte Gold #C8A96A · Stone Grey #A8A29E ·
            Ink Black #1C1C1C · Warm White #F7F4EF
   Type:    Cormorant Garamond (serif display) · Inter (sans)
   ============================================================ */

:root {
  --gold: #C8A96A;
  --stone: #A8A29E;
  --ink: #1C1C1C;
  --cream: #F7F4EF;
  --cream-deep: #EFEAE2;
  --ink-soft: #2A2A2A;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typography ---------- */

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

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.4rem;
}

.eyebrow--stone { color: var(--stone); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  max-width: 46ch;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.08);
  padding: 0.75rem var(--pad);
}

.nav__brand img { height: 38px; width: auto; transition: filter 0.4s ease; }

.nav__links {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__links a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.nav__links a:hover, .nav__links a.active { border-color: var(--gold); color: var(--gold); }

/* Light nav over dark hero */
.nav--light:not(.scrolled) { color: var(--cream); }
.nav--light:not(.scrolled) .nav__links a:hover,
.nav--light:not(.scrolled) .nav__links a.active { color: var(--gold); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  z-index: 110;
}
.nav__toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor;
  transition: all 0.3s ease;
}
.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 18px; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1rem;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.7, 0, 0.3, 1);
  }
  .nav__links.open { transform: translateY(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav__toggle { color: var(--cream); }
  body.nav-open .nav__toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}

.hero--short { min-height: 72vh; }

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(28, 28, 28, 0.82) 0%,
    rgba(28, 28, 28, 0.35) 45%,
    rgba(28, 28, 28, 0.25) 100%
  );
}

.hero__content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 8vh, 6rem);
}

.hero__rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 1.8rem 0;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.04em;
  max-width: 52ch;
  color: rgba(247, 244, 239, 0.85);
}

/* ---------- Layout blocks ---------- */

.section {
  padding: clamp(4.5rem, 10vh, 8rem) var(--pad);
}

.section--tight { padding-top: clamp(3rem, 6vh, 5rem); padding-bottom: clamp(3rem, 6vh, 5rem); }

.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .eyebrow { color: var(--gold); }

.section--deep { background: var(--cream-deep); }

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split--offset { align-items: start; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.frame--tall img { aspect-ratio: 3 / 4; }
.frame--wide img { aspect-ratio: 16 / 9; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}

.btn:hover { background: var(--gold); color: var(--ink); }

.btn--light { color: var(--cream); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--gold); }

.textlink {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.textlink:hover { color: var(--gold); }

.section--ink .textlink { color: var(--cream); }
.section--ink .textlink:hover { color: var(--gold); }

/* ---------- Collections grid ---------- */

.collections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(28, 28, 28, 0.14);
}

.section--ink .collections { border-color: rgba(247, 244, 239, 0.18); }

.collection {
  padding: 2.6rem 1.8rem 2.6rem 0;
  border-right: 1px solid rgba(28, 28, 28, 0.14);
  margin-right: 1.8rem;
}

.collection:last-child { border-right: none; margin-right: 0; }

.section--ink .collection { border-color: rgba(247, 244, 239, 0.18); }

.collection__num {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.collection h3 { margin-bottom: 0.9rem; }

.collection p { font-size: 0.94rem; color: var(--stone); }

@media (max-width: 1000px) {
  .collections { grid-template-columns: 1fr 1fr; }
  .collection:nth-child(2) { border-right: none; }
  .collection { border-bottom: 1px solid rgba(28,28,28,0.14); }
  .section--ink .collection { border-color: rgba(247,244,239,0.18); }
}

@media (max-width: 560px) {
  .collections { grid-template-columns: 1fr; }
  .collection { border-right: none; margin-right: 0; padding-right: 0; }
}

/* ---------- Feature banner (Nash & Berry teaser) ---------- */

.feature {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  padding: clamp(6rem, 16vh, 11rem) var(--pad);
}

.feature__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(28,28,28,0.78) 0%, rgba(28,28,28,0.28) 70%);
}

/* ---------- Quote ---------- */

.quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 26ch;
  margin: 0 auto;
  text-align: center;
}

.quote em { color: var(--gold); font-style: normal; }

.quote__cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 1.8rem;
  line-height: 1.8;
}

.quote__cite span { display: block; letter-spacing: 0.14em; text-transform: none; font-size: 0.78rem; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}

.gallery figure { position: relative; overflow: hidden; }

.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 0.7rem;
}

.g-7 { grid-column: span 7; }
.g-5 { grid-column: span 5; }
.g-6 { grid-column: span 6; }
.g-12 { grid-column: span 12; }

@media (max-width: 720px) {
  .g-7, .g-5, .g-6 { grid-column: span 12; }
}

/* ---------- Schemes (interior palettes) ---------- */

.schemes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
}

@media (max-width: 900px) { .schemes { grid-template-columns: 1fr; } }

.scheme {
  border-top: 2px solid var(--gold);
  padding-top: 1.6rem;
}

.scheme__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 0.6rem;
}

.scheme h3 { margin-bottom: 1rem; }

.scheme ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.section--ink .scheme ul { color: rgba(247,244,239,0.78); }

.scheme li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(28,28,28,0.1);
}

.section--ink .scheme li { border-color: rgba(247,244,239,0.14); }

.scheme li:last-child { border-bottom: none; }

.swatches { display: flex; gap: 0.5rem; margin: 1rem 0 1.4rem; }

.swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(28,28,28,0.15);
}

/* ---------- Principles / numbered list ---------- */

.principles { counter-reset: principle; }

.principle {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding: 2.6rem 0;
  border-top: 1px solid rgba(28,28,28,0.14);
}

.principle:last-child { border-bottom: 1px solid rgba(28,28,28,0.14); }

.principle__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
}

.principle h3 { margin-bottom: 0.7rem; }

.principle p { max-width: 62ch; }

@media (max-width: 640px) {
  .principle { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- Stats / facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.fact__value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
}

.fact__label {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.4rem;
}

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

.form { display: grid; gap: 1.4rem; }

.form label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 0.5rem;
}

.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28,28,28,0.3);
  padding: 0.7rem 0;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

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

.footer {
  background: var(--ink);
  color: rgba(247, 244, 239, 0.72);
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--pad) 2.5rem;
  font-size: 0.9rem;
}

.footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,244,239,0.14);
}

@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand img { height: 60px; width: auto; margin-bottom: 1.4rem; }

.footer__tag {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer ul { list-style: none; }

.footer li { padding: 0.3rem 0; }

.footer a:hover { color: var(--gold); }

.footer__base {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

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

.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   AVAILABILITY / SITE PLAN
   ============================================================ */

.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 980px) {
  .plan-layout { grid-template-columns: 1fr; }
}

.plan {
  background: var(--cream-deep);
  border: 1px solid rgba(28, 28, 28, 0.1);
}

.plan svg { display: block; width: 100%; height: auto; }

/* Site-plan ground */
.plan .ground { fill: #E9EADF; }
.plan .greenway { fill: #DDE3D2; }
.plan .paving { fill: #E4E3D8; }
.plan .tree { fill: #B7C4A4; opacity: 0.85; }
.plan .tree-dark { fill: #9DAE8A; opacity: 0.85; }

.plan .plan-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.26em;
  fill: #6E7B62;
  text-transform: uppercase;
}

.plan .street-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3em;
  fill: var(--stone);
  text-transform: uppercase;
}

.plan .block-label {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  fill: #46543C;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(247, 244, 239, 0.9);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.plan .block-label tspan.small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Lots */
.lot { cursor: pointer; }
.lot:focus { outline: none; }
.lot:focus-visible .lot__shape { stroke: var(--gold); stroke-width: 6; }

.lot__shape {
  stroke: #2F4034;
  stroke-width: 3;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.lot__num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  pointer-events: none;
  transition: fill 0.3s ease;
}

/* Status fills */
.lot--available   .lot__shape { fill: #F7F4EF; stroke: var(--gold); stroke-width: 4; }
.lot--available   .lot__num   { fill: #1C1C1C; }

.lot--sold        .lot__shape { fill: #2F4034; stroke: #2F4034; }
.lot--sold        .lot__num   { fill: rgba(247, 244, 239, 0.55); }

.lot--phase2      .lot__shape { fill: #D8D4CB; stroke: #A8A29E; stroke-dasharray: 10 7; }
.lot--phase2      .lot__num   { fill: #6E6A64; }

.lot--unreleased  .lot__shape { fill: #EDEAE2; stroke: #BDB9B0; stroke-dasharray: 3 6; }
.lot--unreleased  .lot__num   { fill: #A8A29E; }

.lot:hover .lot__shape { stroke: var(--gold); stroke-width: 6; }
.lot.is-selected .lot__shape { stroke: var(--gold); stroke-width: 7; }

/* Legend */
.legend { list-style: none; margin-bottom: 2.2rem; }

.legend li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.1);
  font-size: 0.86rem;
}

.legend li:last-child { border-bottom: none; }

.legend .key {
  width: 26px; height: 18px;
  flex: 0 0 auto;
  border: 2px solid #2F4034;
}

.legend .key--available  { background: #F7F4EF; border-color: var(--gold); }
.legend .key--sold       { background: #2F4034; border-color: #2F4034; }
.legend .key--phase2     { background: #D8D4CB; border-color: #A8A29E; }
.legend .key--unreleased { background: #EDEAE2; border-color: #BDB9B0; }

.legend .count { margin-left: auto; color: var(--stone); font-size: 0.8rem; letter-spacing: 0.1em; }

/* Detail panel */
.lot-detail {
  border-top: 2px solid var(--gold);
  padding-top: 1.4rem;
  min-height: 150px;
}

.lot-detail__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.lot-detail__meta {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.9rem;
}

.lot-detail__status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid currentColor;
}

.lot-detail__status.is-available  { color: #8A6D2F; }
.lot-detail__status.is-sold       { color: #2F4034; }
.lot-detail__status.is-phase2     { color: #6E6A64; }
.lot-detail__status.is-unreleased { color: #A8A29E; }

.lot-detail__empty { color: var(--stone); font-size: 0.92rem; }

/* Admin bar */
.admin-bar {
  display: none;
  background: var(--ink);
  color: var(--cream);
  padding: 1.1rem var(--pad);
  position: sticky;
  top: 58px;
  z-index: 90;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

body.is-admin .admin-bar { display: flex; }

.admin-bar__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-bar__hint { color: rgba(247, 244, 239, 0.6); }

.admin-bar__actions { margin-left: auto; display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn-sm {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-sm:hover { background: var(--gold); color: var(--ink); }

.admin-status { font-size: 0.72rem; color: var(--gold); min-height: 1em; }

body.is-admin .lot__shape { cursor: pointer; }

.plan-note {
  font-size: 0.78rem;
  color: var(--stone);
  margin-top: 1.4rem;
  max-width: 60ch;
}

/* ---------- Contact form status ---------- */

.form-status {
  display: none;
  font-size: 0.92rem;
  padding-top: 0.2rem;
}

.form-status.is-visible { display: block; }
.form-status.is-ok { color: var(--ink); }
.form-status.is-error { color: #A6392F; }

.cf-turnstile { margin: 0.4rem 0; }

.form button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
