:root {
  --ink: #17201c;
  --muted: #5e6860;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #dfe2dc;
  --green: #254b3b;
  --green-2: #3f6f55;
  --brass: #b58a46;
  --clay: #8f6b54;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.review-locked {
  overflow: hidden;
}

body.review-locked > :not(.review-gate) {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}

.review-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(8, 21, 18, 0.92), rgba(23, 40, 34, 0.82)),
    url("assets/troon-listing/troon-01.webp") center / cover;
}

.review-gate[hidden] {
  display: none;
}

.review-gate-card {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid rgba(230, 216, 184, 0.46);
  border-radius: 6px;
  color: #f8f3e9;
  background: rgba(15, 29, 25, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.review-gate-card h1 {
  margin: 0 0 12px;
  color: #fffaf0;
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.review-gate-card p {
  color: rgba(248, 243, 233, 0.82);
}

.review-gate-card form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.review-gate-card label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-gate-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(230, 216, 184, 0.42);
  border-radius: 4px;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.08);
}

.review-gate-status {
  min-height: 1.4em;
  margin: 0;
  color: #ffd8c2;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(223, 226, 220, 0.8);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 12px clamp(18px, 4vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  color: var(--white);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 10px 14px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  overflow: hidden;
  position: relative;
}

.hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(12, 18, 15, 0.76), rgba(12, 18, 15, 0.38) 48%, rgba(12, 18, 15, 0.12));
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 780px;
  padding: clamp(72px, 10vh, 150px) clamp(20px, 6vw, 86px) clamp(44px, 7vh, 90px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 0.95;
  margin-bottom: 22px;
  max-width: 780px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 18px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.hero-copy {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 16px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--brass);
  color: #17110a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button.outline {
  border-color: var(--green);
  color: var(--green);
}

.listing-note,
.fine-print,
.site-footer,
.form-status {
  font-size: 0.86rem;
}

.listing-note {
  color: rgba(255, 255, 255, 0.78);
}

.hero-facts {
  background: rgba(251, 250, 246, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 clamp(20px, 6vw, 86px);
  max-width: 920px;
  position: relative;
  z-index: 3;
}

.hero-facts div {
  background: var(--paper);
  min-width: 0;
  padding: 18px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 850;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.quick-strip {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
  padding: 24px 20px 0;
}

.quick-strip div {
  border-left: 1px solid var(--line);
  min-width: 0;
  padding: 0 16px 24px;
}

.quick-strip div:first-child {
  border-left: 0;
}

.quick-strip span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quick-strip strong {
  display: block;
  margin-top: 6px;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(62px, 9vw, 110px) 20px;
}

.split-section {
  align-items: center;
  display: grid;
  gap: clamp(30px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.section-copy p:not(.eyebrow),
.wide-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-image img,
.lifestyle-grid img,
.featured-photo img {
  box-shadow: var(--shadow);
}

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

.section-heading {
  margin-bottom: 34px;
  max-width: 820px;
}

.highlight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-grid article {
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 158px;
  padding: 22px;
}

.highlight-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.gallery-section {
  max-width: 1360px;
}

.gallery-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  max-width: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-bar button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}

.filter-bar button[aria-selected="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.gallery-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.gallery-layout.all-view {
  grid-template-columns: 1fr;
}

.gallery-layout.all-view .featured-photo {
  display: none;
}

.featured-photo {
  margin: 0;
}

.featured-photo img {
  aspect-ratio: 16 / 10;
  background: #e7e5dc;
  cursor: zoom-in;
  object-fit: cover;
  width: 100%;
}

.featured-photo figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

.thumb-grid {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.gallery-layout.all-view .thumb-grid {
  align-items: start;
  columns: 4 220px;
  display: block;
  max-height: none;
  padding-right: 0;
}

.thumb-grid button,
.floor-plan-image {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

.thumb-grid button {
  aspect-ratio: 4 / 3;
  background: #e7e5dc;
  border: 3px solid transparent;
  overflow: hidden;
}

.thumb-grid button[aria-current="true"] {
  border-color: var(--brass);
}

.gallery-layout.all-view .thumb-grid button {
  aspect-ratio: auto;
  break-inside: avoid;
  cursor: zoom-in;
  display: block;
  margin: 0 0 12px;
  width: 100%;
}

.gallery-layout.all-view .thumb-grid img {
  aspect-ratio: auto;
  height: auto;
}

.floor-plan-section {
  align-items: start;
}

.floor-plan-image img {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}

.media-placeholder {
  background: var(--green);
  color: var(--white);
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
}

.media-placeholder div {
  border: 1px solid rgba(255, 255, 255, 0.25);
  max-width: 760px;
  padding: clamp(28px, 5vw, 48px);
}

.media-placeholder p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.lifestyle-section {
  max-width: 1280px;
}

.lifestyle-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.3fr 1fr 1fr;
}

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

.wide-copy {
  max-width: 840px;
  margin: 28px 0 0;
}

.presentation-section {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.proof-list {
  display: grid;
  gap: 10px;
}

.proof-list span {
  background: var(--white);
  border-left: 4px solid var(--green-2);
  box-shadow: 0 10px 28px rgba(23, 32, 28, 0.08);
  font-weight: 800;
  padding: 18px;
}

.contact-section {
  align-items: start;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.contact-form {
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(22px, 4vw, 34px);
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 7px;
  text-transform: uppercase;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  text-transform: none;
  width: 100%;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  color: var(--green);
  font-weight: 800;
  margin: 0;
}

.site-footer {
  background: #111713;
  color: rgba(255, 255, 255, 0.72);
  padding: 28px clamp(20px, 6vw, 80px);
}

.site-footer p {
  margin: 0 auto 8px;
  max-width: var(--max);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.image-modal {
  background: #101511;
  border: 0;
  color: var(--white);
  max-width: min(1120px, calc(100vw - 28px));
  padding: 14px;
  width: max-content;
}

.image-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.image-modal img {
  max-height: 78vh;
  object-fit: contain;
}

.image-modal p {
  color: rgba(255, 255, 255, 0.78);
  margin: 10px 40px 0 0;
}

.modal-close {
  background: var(--white);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  height: 40px;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .quick-strip,
  .highlight-grid,
  .gallery-layout,
  .lifestyle-grid,
  .presentation-section,
  .contact-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 20px;
  }

  .quick-strip div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .gallery-heading {
    align-items: start;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .thumb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
  }

  .gallery-layout.all-view .thumb-grid {
    columns: 3 180px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .hero {
    min-height: calc(100svh - 55px);
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(12, 18, 15, 0.72), rgba(12, 18, 15, 0.42) 42%, rgba(12, 18, 15, 0.72));
  }

  .hero-content {
    padding: 52px 18px 34px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-facts div {
    padding: 14px;
  }

  .section {
    padding: 58px 16px;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-layout.all-view .thumb-grid {
    columns: 2 145px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}
