:root {
  --ink: #17231d;
  --forest: #1f4334;
  --forest-2: #2c5b47;
  --cream: #f7f2e8;
  --sand: #ebe2d0;
  --line: #d9cfba;
  --accent: #c4592f;
  --accent-ink: #fff8f2;
  --muted: #5d6a62;
  --radius: 14px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 0.6em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.band { background: var(--sand); }
.band-dark { background: var(--forest); color: var(--cream); }
.two-col { display: grid; gap: clamp(24px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }
.band-dark .lead { color: #cfdcd3; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ad4c26; }
.btn-solid { background: var(--forest); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; background: rgba(247,242,232,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { font: 600 1.05rem var(--display); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-art, .hero-shade { position: absolute; inset: 0; }
.hero-art > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { background: linear-gradient(180deg, rgba(15,28,22,.15) 0%, rgba(15,28,22,.25) 40%, rgba(15,28,22,.86) 100%); }
.hero-content { position: relative; padding: 48px 0 56px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); max-width: 14ch; }
.hero-tagline { font-size: clamp(1.1rem, 2.2vw, 1.45rem); margin: 14px 0 6px; max-width: 34ch; }
.hero-location { opacity: .88; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Facts */
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: -36px; position: relative; z-index: 2;
  box-shadow: 0 18px 40px -24px rgba(23,35,29,.45);
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: #fffdf8; padding: 18px 20px; }
.fact dt { font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 4px 0 0; font: 600 1.15rem var(--display); }
.facts dl { margin: 0; display: contents; }

/* Highlights */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlights li {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; font-weight: 500;
}
.highlights li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}

/* Gallery */
.section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; max-width: 100%; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; font: 500 .92rem var(--body); color: var(--ink); cursor: pointer;
}
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.tile {
  position: relative; padding: 0; border: 0; background: var(--line); cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; width: 100%;
}
@media (min-width: 760px) { .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.tile > img, .tile > svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tile:hover > img, .tile:hover > svg { transform: scale(1.04); }
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; text-align: left;
  color: #fff; font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(15,28,22,.78));
}
.tile-label b { display: block; font: 600 1rem var(--display); }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,253,248,.92); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
}
.note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }

/* Units */
.units { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.unit { background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.unit .type { font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.unit h3 { font: 600 1.6rem var(--display); margin: 4px 0 10px; }
.unit .area { margin: 0; }
.unit .price { margin: 10px 0 0; font-weight: 600; color: var(--forest-2); }

/* Enquiry */
.address { margin-top: 24px; font-weight: 500; }
.link { color: #f3c9b5; font-weight: 600; }
.enquiry { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.enquiry label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.enquiry input, .enquiry select {
  min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fffdf8; font: inherit; color: inherit; width: 100%;
}
.form-error { color: #a3261a; margin: 0; font-weight: 500; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }

.footer { padding: 32px 0 110px; color: var(--muted); font-size: .88rem; }
.footer p { margin-bottom: .4em; }
@media (min-width: 760px) { .footer { padding-bottom: 40px; } }

/* Sticky mobile contact bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,242,232,.96);
  border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* Empty / error state */
.state { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 40px 20px; }
.state h1 { font-size: 2rem; margin-bottom: 12px; }
.state p { color: var(--muted); max-width: 40ch; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(12,20,16,.94);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 16px;
}
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; min-width: 0; }
.lb-media { width: min(100%, 1100px); max-height: 78vh; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #0c1410; }
.lb-media > * { width: 100%; height: 100%; object-fit: contain; display: block; }
.lightbox figcaption { color: #e8efe9; text-align: center; }
.lb-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb-close { position: absolute; top: 14px; right: 14px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile > img, .tile > svg { transition: none; }
}
