:root {
  --ink: #17201b;
  --muted: #5f6964;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --line: #dedbd1;
  --green: #1f7a55;
  --gold: #b9822d;
  --blue: #2c6377;
  --clay: #a75e42;
  --red: #a94f3a;
  --shadow: 0 20px 60px rgba(23, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(18px, 5vw, 64px);
  background: rgba(248, 247, 242, 0.9);
  border-bottom: 1px solid rgba(222, 219, 209, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  width: 190px;
  height: auto;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 64px) 34px;
}

.hero-copy {
  max-width: 680px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-stat {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 148px;
  padding: 16px;
  color: #fff;
  background: rgba(23, 32, 27, 0.86);
  border-radius: 8px;
}

.hero-stat span {
  display: block;
  font-size: 34px;
  font-weight: 800;
}

.hero-stat small {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px clamp(18px, 5vw, 64px) 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stats-band article {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-band article:last-child {
  border-right: 0;
}

.stats-band span {
  display: block;
  margin-bottom: 4px;
  font-size: 36px;
  font-weight: 800;
}

.stats-band p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.portfolio-section {
  padding: 78px clamp(18px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.property-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.property-photo {
  position: relative;
  min-height: 240px;
  background: var(--photo);
}

.property-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(23, 32, 27, 0.04), rgba(23, 32, 27, 0.38)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 112px);
}

.status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.property-photo .status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.active,
.on-market {
  color: #fff;
  background: var(--green);
}

.coming-soon {
  color: #fff;
  background: var(--clay);
}

.pending {
  color: #fff;
  background: var(--gold);
}

.sold {
  color: #fff;
  background: var(--blue);
}

.card-body {
  padding: 20px;
}

.meta {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.details span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.details strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.photo-link,
.details-button {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
}

.photo-link:hover,
.details-button:hover {
  text-decoration: underline;
}

.featured {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 28px;
  align-items: stretch;
  padding: 72px clamp(18px, 5vw, 64px);
  color: #fff;
  background: var(--ink);
}

.featured p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.featured .eyebrow {
  color: #8dd1aa;
}

.featured-panel {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(31, 122, 85, 0.84), rgba(23, 32, 27, 0.54)),
    url("assets/land-crew-hero.jpg") center/cover;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.featured-panel h3 {
  margin-top: 18px;
  font-size: 28px;
}

.featured-panel .button {
  margin-top: 12px;
  background: #fff;
  color: var(--ink);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: 64px clamp(18px, 5vw, 64px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.contact-band p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-copy {
  max-width: 560px;
}

.contact-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 22px !important;
  font-weight: 800;
}

.contact-phone span {
  width: 100%;
  color: var(--muted);
  font-size: 13px;
}

.contact-phone a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inquiry-form {
  display: grid;
  gap: 16px;
}

.inquiry-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.inquiry-form legend,
.inquiry-form label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inquiry-form fieldset label {
  cursor: pointer;
}

.inquiry-form input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.inquiry-form input[type="radio"] + span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin: 0;
  padding: 0 14px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inquiry-form input[type="radio"]:checked + span {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="tel"],
.inquiry-form input[type="email"],
.inquiry-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form .button {
  justify-self: start;
  cursor: pointer;
  font: inherit;
}

.modal-open {
  overflow: hidden;
}

.listing-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 22px;
}

.listing-modal[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 27, 0.66);
}

.modal-panel {
  position: relative;
  z-index: 1;
  overflow: auto;
  width: min(1040px, 100%);
  max-height: min(860px, 92vh);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: rgba(23, 32, 27, 0.86);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

#modalContent {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 0;
}

.modal-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 18px;
  background: var(--paper);
}

.modal-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.modal-photos img:first-child {
  grid-column: 1 / -1;
}

.modal-copy {
  padding: 28px;
}

.modal-copy h2 {
  margin-top: 16px;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.modal-details {
  margin: 22px 0;
}

.modal-specs {
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.parcel-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.parcel-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.parcel-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.parcel-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 920px) {
  .hero,
  .featured,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  .stats-band,
  .property-grid {
    grid-template-columns: 1fr;
  }

  .stats-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band article:last-child {
    border-bottom: 0;
  }

  .details {
    grid-template-columns: 1fr;
  }

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

  #modalContent {
    grid-template-columns: 1fr;
  }

  .modal-photos {
    grid-template-columns: 1fr;
  }
}
