:root {
  --pine: #16352e;
  --pine-deep: #0d231e;
  --river: #2f6f78;
  --river-soft: #4a9aa3;
  --cedar: #9a6b45;
  --cedar-soft: #c4a07a;
  --mist: #e7f1ef;
  --foam: #f5f9f7;
  --ink: #13221d;
  --muted: #5a6e67;
  --line: rgba(22, 53, 46, 0.12);
  --shadow: 0 24px 60px rgba(13, 35, 30, 0.18);
  --radius: 4px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header.solid {
  background: rgba(245, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 1.5rem, var(--max));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: #fff;
  z-index: 2;
}

.site-header.is-scrolled .brand,
.site-header.solid .brand {
  color: var(--pine);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand span {
  max-width: 12ch;
  line-height: 1.15;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.site-header.is-scrolled .nav a,
.site-header.solid .nav a {
  color: var(--muted);
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

.site-header.is-scrolled .nav a:hover,
.site-header.is-scrolled .nav a.is-active,
.site-header.solid .nav a:hover,
.site-header.solid .nav a.is-active {
  color: var(--pine);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff !important;
}

.site-header.is-scrolled .nav-cta,
.site-header.solid .nav-cta {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: 0.25s ease;
}

.site-header.is-scrolled .nav-toggle span,
.site-header.solid .nav-toggle span {
  background: var(--pine);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 35, 30, 0.35) 0%, rgba(13, 35, 30, 0.15) 35%, rgba(13, 35, 30, 0.78) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(47, 111, 120, 0.35), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 1.2rem;
  max-width: 12ch;
  animation: riseIn 0.9s ease both;
}

.hero-lead {
  max-width: 36ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: riseIn 0.9s ease 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 560;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--pine-deep);
}

.btn-primary:hover {
  background: var(--mist);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--pine);
  color: #fff;
}

.btn-dark:hover {
  background: var(--pine-deep);
}

.btn-outline {
  border-color: var(--pine);
  color: var(--pine);
}

.btn-outline:hover {
  background: var(--pine);
  color: #fff;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-dark {
  background: var(--pine-deep);
  color: #fff;
}

.section-mist {
  background: var(--mist);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--river);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.section-dark .eyebrow {
  color: var(--river-soft);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section-text {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-text {
  color: rgba(255, 255, 255, 0.75);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.objects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.object-link {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.object-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  z-index: -2;
}

.object-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(13, 35, 30, 0.88) 100%);
  z-index: -1;
}

.object-link:hover img {
  transform: scale(1.06);
}

.object-link-body {
  position: absolute;
  inset: auto 0 0;
  padding: 1.8rem;
}

.object-link h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.object-link p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 34ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.house-tile {
  display: grid;
  grid-template-rows: 240px auto;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.house-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.house-tile-media {
  overflow: hidden;
  background: var(--mist);
}

.house-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.house-tile:hover .house-tile-media img {
  transform: scale(1.05);
}

.house-tile-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.house-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.chip {
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.house-tile h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.house-tile p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.price {
  font-weight: 650;
  color: var(--pine);
}

.page-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.page-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(13, 35, 30, 0.25), rgba(13, 35, 30, 0.82));
}

.page-hero .hero-content {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.8rem;
  max-width: 16ch;
  animation: riseIn 0.8s ease both;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery a,
.gallery button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery a:hover img,
.gallery button:hover img {
  transform: scale(1.05);
}

.gallery-wide {
  grid-column: span 2;
}

.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenities li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.amenities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--river);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.split-media {
  overflow: hidden;
  min-height: 420px;
}

.split-media img,
.split-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-dark .stat span {
  color: rgba(255, 255, 255, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  padding: 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.contact-card a:hover {
  color: var(--pine);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--foam);
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  color: var(--ink);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 360px;
  filter: grayscale(0.15) contrast(1.05);
}

.site-footer {
  background: var(--pine-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 18, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.float-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  gap: 0.55rem;
}

.float-cta a {
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.92rem;
}

.float-cta a.wa {
  background: #1f6b4a;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 900px) {
  .objects-grid,
  .houses-grid,
  .features,
  .split,
  .contact-grid,
  .footer-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .gallery-wide {
    grid-column: span 1;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(13, 35, 30, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    color: #fff !important;
    font-size: 1.25rem;
  }

  .nav-cta {
    border-color: rgba(255, 255, 255, 0.4);
  }

  body.nav-open {
    overflow: hidden;
  }

  .object-link {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.4rem, var(--max));
  }

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

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

  .float-cta {
    left: 1rem;
    right: 1rem;
  }

  .float-cta a {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .brand span {
    max-width: 10ch;
    font-size: 0.82rem;
  }
}
