:root {
  color-scheme: light;
  --color-ink: #15221d;
  --color-ink-soft: #31433b;
  --color-muted: #62716b;
  --color-line: #ded8c9;
  --color-paper: #fffdf8;
  --color-surface: #ffffff;
  --color-soft: #f8f5ee;
  --color-green: #174f3f;
  --color-green-dark: #10392f;
  --color-copper: #b86a3c;
  --color-copper-dark: #7f4224;
  --color-blue: #244f74;
  --color-success: #276749;
  --color-danger: #8f2c23;
  --shadow-sm: 0 1px 2px rgba(21, 34, 29, .08);
  --shadow-md: 0 18px 40px rgba(21, 34, 29, .12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--color-green-dark);
  text-underline-offset: .18em;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-copper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--color-green-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-tight {
  padding-block: clamp(36px, 6vw, 72px);
}

.band {
  background: var(--color-soft);
  border-block: 1px solid var(--color-line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 800;
  min-height: 44px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--color-green);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text small {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--color-soft);
  color: var(--color-green-dark);
}

.primary-nav a.button {
  color: #fff;
}

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

.nav-cta {
  margin-left: 6px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100dvh - 76px));
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-green-dark);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 24, 19, .88), rgba(10, 24, 19, .57) 42%, rgba(10, 24, 19, .12) 78%),
    linear-gradient(0deg, rgba(10, 24, 19, .62), rgba(10, 24, 19, 0) 42%);
}

.hero-content {
  width: min(760px, 100%);
  padding-block: clamp(72px, 10vw, 132px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f0c2a0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
}

p {
  margin: 0;
}

.lead {
  max-width: 68ch;
  color: var(--color-muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero .lead {
  margin-top: 20px;
  color: #f6efe4;
  font-size: clamp(19px, 2.4vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  background: var(--color-green);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover {
  background: var(--color-green-dark);
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.button.secondary {
  background: #fff;
  border-color: var(--color-line);
  color: var(--color-green-dark);
}

.button.secondary:hover {
  border-color: var(--color-green);
  background: var(--color-soft);
}

.button.copper {
  background: var(--color-copper);
}

.button.copper:hover {
  background: var(--color-copper-dark);
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, .12);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.trust-item {
  padding: 22px;
  background: var(--color-paper);
}

.trust-item strong {
  display: block;
  color: var(--color-green-dark);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1;
}

.trust-item span {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(24px, 5vw, 40px);
}

.section-head > div {
  max-width: 760px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-copper-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--color-green);
  background: var(--color-soft);
  border-radius: var(--radius-md);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card p,
.process-step p,
.testimonial p,
.article-card p,
.property-card p {
  margin-top: 10px;
  color: var(--color-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.media-panel {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.media-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.process {
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 26px;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-weight: 900;
}

.testimonial {
  padding: 28px;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.25;
}

.testimonial cite {
  display: block;
  margin-top: 18px;
  color: var(--color-muted);
  font-style: normal;
  font-weight: 800;
}

.testimonial cite a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.cta-band {
  background: var(--color-green-dark);
  color: #fff;
}

.cta-band .lead {
  color: #f6efe4;
}

.page-hero {
  padding-block: clamp(52px, 8vw, 96px);
  background: linear-gradient(135deg, var(--color-soft), #fff);
  border-bottom: 1px solid var(--color-line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: inherit;
}

.filters-panel {
  margin-top: -34px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.filter-toggle {
  display: none;
  width: 100%;
  margin-bottom: 12px;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(110px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field-label {
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfc7b6;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
  color: var(--color-ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.help-text {
  color: var(--color-muted);
  font-size: 14px;
}

.form-error {
  color: var(--color-danger);
  font-size: 14px;
  font-weight: 750;
}

.hidden-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
}

.flash-wrap {
  padding-block: 14px;
}

.flash {
  margin: 0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 800;
}

.flash-error {
  background: #fff0ed;
  color: var(--color-danger);
  border: 1px solid #f1beb6;
}

.flash-success {
  background: #e9f5ef;
  color: var(--color-success);
  border: 1px solid #afd6c2;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block: 30px 20px;
}

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

.property-card {
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.property-card:hover,
.property-card:focus-within {
  border-color: var(--color-green);
  box-shadow: var(--shadow-md);
}

.property-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: var(--color-soft);
}

.property-body {
  padding: 18px;
}

.property-price {
  color: var(--color-green-dark);
  font-size: 24px;
  font-weight: 900;
}

.property-body h2,
.property-body h3 {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 21px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.facts li,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--color-soft);
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.badge.available {
  background: #e9f5ef;
  color: #155739;
}

.badge.soon {
  background: #fff1e6;
  color: #713912;
}

.property-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.empty-state,
.loading-state {
  padding: 32px;
  border: 1px dashed #bdb5a4;
  border-radius: var(--radius-md);
  background: var(--color-soft);
  text-align: center;
}

.hidden {
  display: none !important;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-weight: 850;
  text-decoration: none;
}

.pagination [aria-current="page"] {
  background: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--color-ink-soft);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.chip[aria-pressed="true"],
.chip:hover {
  border-color: var(--color-green);
  background: #eaf3ef;
  color: var(--color-green-dark);
}

.article-card {
  overflow: hidden;
}

.article-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-soft);
}

.article-body {
  padding: 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 750;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(230px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.article-content {
  font-size: 18px;
}

.article-content > * + * {
  margin-top: 22px;
}

.article-content p,
.article-content li,
.content p,
.content li {
  color: var(--color-ink-soft);
}

.article-content h2 {
  margin-top: 46px;
  font-size: clamp(28px, 4vw, 38px);
}

.article-content h3 {
  margin-top: 32px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.3em;
}

.toc,
.side-panel {
  position: sticky;
  top: 100px;
  padding: 20px;
}

.toc ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.toc a,
.article-content a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.callout {
  padding: 22px;
  border-left: 5px solid var(--color-copper);
  background: var(--color-soft);
  border-radius: var(--radius-sm);
}

.pullquote {
  margin: 34px 0;
  padding: 30px;
  border-block: 1px solid var(--color-line);
  color: var(--color-green-dark);
  font-family: var(--font-display);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.18;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  padding: 16px 18px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

.accordion-panel {
  padding: 0 18px 18px;
  color: var(--color-muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.detail-summary {
  padding: 24px;
}

.site-footer {
  background: #101a16;
  color: #fff;
}

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

.site-footer a {
  color: #f6efe4;
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.chip input {
  width: 24px;
  height: 24px;
  min-height: 24px;
}

.footer-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #d7d0c3;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .grid-3,
  .grid-4,
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc,
  .side-panel {
    position: static;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    max-height: calc(100dvh - 68px);
    overflow: auto;
    padding: 18px var(--gutter) 28px;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
  }

  .primary-nav[data-open="true"] {
    display: grid;
    gap: 6px;
  }

  .primary-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 680px;
  }

  .hero img {
    object-position: 68% center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(10, 24, 19, .9), rgba(10, 24, 19, .56)),
      linear-gradient(0deg, rgba(10, 24, 19, .65), rgba(10, 24, 19, 0) 48%);
  }

  .trust-strip,
  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .property-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .results-bar {
    align-items: start;
    flex-direction: column;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .filters-grid {
    display: none;
    grid-template-columns: 1fr;
  }

  .filters-grid[data-open="true"] {
    display: grid;
  }

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

  .property-actions,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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

}

@media (max-width: 460px) {
  :root {
    --gutter: 16px;
  }

  .brand-text small {
    display: none;
  }

  h1,
  .display {
    font-size: 40px;
  }

  .hero {
    min-height: 660px;
  }

  .trust-item {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
