:root {
  --ink: #10231d;
  --muted: #65756f;
  --brand: #0c7b5f;
  --brand-dark: #075642;
  --cream: #f5f2eb;
  --line: #dfe7e3;
  --white: #fff;
  --shadow: 0 18px 50px rgba(16, 35, 29, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.container {
  width: min(1160px, 92%);
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  z-index: 20;
  border-bottom: 1px solid rgba(223, 231, 227, .8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand span {
  color: var(--brand);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .95rem;
  font-weight: 600;
}

.main-nav a:not(.btn):hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
}

.btn-small {
  padding: 10px 16px;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16, 35, 29, .2);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--brand);
}

.btn-outline.dark {
  color: var(--ink);
}

.btn-full {
  width: 100%;
}

.hero {
  background: linear-gradient(135deg, #edf7f3 0%, #f9f7f1 100%);
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 14px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -.055em;
  margin: 0 0 22px;
}

.hero-copy > p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 700px;
}

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

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

.stats strong {
  display: block;
  font-size: 1.35rem;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.search-card {
  width: min(430px, 100%);
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.search-card h3 {
  margin-top: 0;
}

.search-card form,
.contact-form {
  display: grid;
  gap: 10px;
}

.search-card input,
.search-card select,
.filter-bar input,
.filter-bar select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  border-radius: 9px;
  font: inherit;
  background: #fff;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: #f8faf9;
}

.section-head {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-head h2,
.split h2,
.contact-grid h2,
.cta h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 0 0 14px;
}

.section-head p,
.split p,
.contact-grid p {
  color: var(--muted);
}

.row-between {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: #fff;
}

.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f5f0;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
  font-size: .93rem;
}

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

.property-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: .2s;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.property-image-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.property-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.badge.inline {
  position: static;
  display: inline-block;
  box-shadow: none;
  background: #e8f5f0;
  color: var(--brand);
}

.property-content {
  padding: 20px;
}

.property-content h3 {
  margin: 5px 0 8px;
  font-size: 1.08rem;
}

.location {
  color: var(--muted);
  font-size: .85rem;
  margin: 0;
}

.price {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.05rem;
}

.meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
}

.check-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

.quote-card {
  background: var(--cream);
  padding: 34px;
  border-radius: 18px;
}

.quote-card p {
  font-size: 1.15rem;
  color: var(--ink);
}

.cta {
  background: var(--ink);
  color: #fff;
  padding: 60px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta p {
  color: #c5d0cc;
}

.eyebrow.light {
  color: #8bd7bd;
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.page-hero {
  background: #eef6f3;
  padding: 72px 0;
}

.page-hero.compact h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.2fr .8fr auto auto;
  gap: 10px;
  margin-bottom: 18px;
}

.result-count {
  color: var(--muted);
  margin-bottom: 24px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.property-detail {
  padding: 60px 0 90px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--brand);
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: start;
}

.detail-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 18px;
}

.detail-panel {
  position: sticky;
  top: 105px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}

.detail-panel h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.detail-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand);
}

.detail-meta {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  margin: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta strong,
.detail-meta span {
  display: block;
}

.detail-meta span {
  font-size: .78rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-list strong,
.contact-list span {
  display: block;
}

.contact-list span {
  color: var(--muted);
}

.contact-form {
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 16px;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.alert.success {
  background: #e7f7ef;
  color: #126545;
}

.alert.error {
  background: #fff0f0;
  color: #9d2a2a;
}

.site-footer {
  background: #0a1b16;
  color: #d8e2de;
  padding: 56px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  color: #fff;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: #aebdb7;
  margin: 8px 0;
}

.footer-brand {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 34px;
  padding-top: 18px;
  color: #80918a;
  font-size: .85rem;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-content: start;
  }

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

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

  .detail-panel {
    position: static;
  }

  .detail-image {
    height: 460px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .row-between,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .hero {
    padding: 56px 0;
  }

  .section {
    padding: 64px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .service-grid,
  .property-grid,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .property-image-wrap {
    height: 210px;
  }

  .detail-image {
    height: 330px;
  }

  .detail-meta {
    flex-wrap: wrap;
  }
}