:root {
  --ink: #2a2620;
  --bg: #faf6ef;
  --bg-alt: #f1ece0;
  --line: #ddd5c2;
  --sage: #5f6b4f;
  --sage-dark: #45502f;
  --olive-dark: #2a2f22;
  --cream: #f0ead9;
  --muted: #6b6558;
  --rust: #c17a4d;
  --serif: 'Source Serif 4', serif;
  --sans: 'Public Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: var(--sage); }
a:hover { color: var(--sage-dark); }
::selection { background: #d9dcc9; }

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

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow-light { color: #f0ead9; }
.eyebrow-muted { color: #b7c19a; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  font-family: inherit;
}
.btn-light { padding: 15px 32px; background: #fff; color: var(--ink); }
.btn-outline {
  padding: 14px 26px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  margin-top: 32px;
  cursor: pointer;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: transparent;
  transition: background 0.3s, color 0.3s;
  backdrop-filter: blur(8px);
}
.nav.scrolled { background: #faf6efee; }
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a.nav-cta {
  padding: 10px 22px;
  background: var(--sage);
  color: #fff !important;
  border-radius: 2px;
  font-weight: 600;
}

/* HERO */
.hero { position: relative; height: 100vh; min-height: 720px; width: 100%; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,10,0.35) 0%, rgba(20,20,10,0.1) 35%, rgba(20,20,10,0.55) 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-title {
  font-family: var(--serif);
  font-size: 68px;
  line-height: 1.05;
  color: #fff;
  max-width: 900px;
  margin: 0;
}
.hero-meta { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.hero-price { font-family: var(--serif); font-size: 34px; color: #f5d9a8; }
.hero-facts { display: flex; gap: 22px; color: #f0ead9; font-size: 16px; }

/* INTRO */
.intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 48px 90px;
  text-align: center;
}
.intro-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.3;
  max-width: 760px;
  margin: 0 auto 56px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.feature-icon { font-family: var(--serif); font-size: 30px; color: var(--rust); }
.feature-title { font-size: 16px; font-weight: 600; }
.feature-sub { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* FEATURE BANNER */
.feature-banner { position: relative; height: 78vh; min-height: 520px; width: 100%; }
.feature-banner-img { width: 100%; height: 100%; object-fit: cover; }
.feature-banner-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,20,10,0.5) 0%, rgba(20,20,10,0) 55%);
}
.feature-banner-content { position: absolute; left: 48px; bottom: 56px; max-width: 480px; }
.feature-banner-title {
  font-family: var(--serif);
  font-size: 32px;
  color: #fff;
  line-height: 1.25;
}

/* SECTION HEADING (shared) */
.section-heading { text-align: center; margin-bottom: 56px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0; }

/* GALLERY */
.gallery { max-width: 1280px; margin: 0 auto; padding: 100px 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }

/* DETAILS */
.details { background: var(--bg-alt); padding: 100px 48px; }
.details-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.details-image img { width: 100%; height: 560px; object-fit: cover; border-radius: 2px; }
.details-title { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 28px; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.spec { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.spec-label { font-size: 13px; color: #8a8272; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.spec-value { font-size: 19px; font-weight: 600; }

/* NEIGHBORHOOD */
.neighborhood { position: relative; padding: 110px 48px; background: var(--olive-dark); color: var(--cream); }
.neighborhood-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.neighborhood-title { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0 0 24px; }
.neighborhood-copy {
  font-size: 18px;
  line-height: 1.7;
  color: #d9d3bf;
  max-width: 720px;
  margin: 0 auto 56px;
}
.nearby-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.nearby { padding: 24px 16px; border: 1px solid rgba(240,234,217,0.2); border-radius: 2px; }
.nearby-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.nearby-sub { font-size: 13px; color: #b7ae95; }

/* CONTACT */
.contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}
.agent-name { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 6px; }
.agent-brokerage { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.agent-email { font-size: 16px; line-height: 1.8; }
.agent-email a { text-decoration: none; font-weight: 600; }
.contact-note { margin-top: 32px; font-size: 15px; line-height: 1.7; color: #55503f; max-width: 380px; }

.showing-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-alt);
  padding: 40px;
  border-radius: 2px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.showing-form input,
.showing-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  width: 100%;
}
.showing-form textarea { resize: vertical; }
.showing-form button {
  padding: 16px;
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.showing-form button:hover { background: var(--sage-dark); }
.showing-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
.form-error { font-size: 14px; color: #a5432f; margin: 0; }

.showing-thanks {
  background: var(--bg-alt);
  padding: 56px 40px;
  border-radius: 2px;
  text-align: center;
}
.showing-thanks h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 12px; }
.showing-thanks p { font-size: 15px; color: #55503f; margin: 0; }

/* TOUR POPUP */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 20, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.popup-overlay[hidden] { display: none; }
.popup-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border-radius: 2px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.popup-close:hover { color: var(--ink); }
.popup-title { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 12px; line-height: 1.3; }
.popup-copy { font-size: 15px; color: #55503f; line-height: 1.6; margin: 0 0 24px; }
.popup-card .showing-form { background: transparent; padding: 0; gap: 14px; }
.popup-card .showing-thanks { background: transparent; padding: 0; }

/* FLOOR PLAN LIGHTBOX */
.floorplan-card {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.floorplan-card img {
  width: 100%;
  height: auto;
  display: block;
}
.floorplan-overlay .popup-close { color: #55503f; }
.floorplan-overlay .popup-close:hover { color: var(--ink); }

/* FOOTER */
.footer {
  border-top: 1px solid #e5ddc9;
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8a8272;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-content { padding: 0 24px 48px; }
  .hero-title { font-size: 44px; }
  .intro { padding: 80px 24px 64px; }
  .intro-headline { font-size: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .feature-banner-content { left: 24px; right: 24px; }
  .gallery { padding: 64px 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid img { grid-column: span 1 !important; grid-row: span 1 !important; }
  .details { padding: 64px 24px; }
  .details-inner { grid-template-columns: 1fr; gap: 40px; }
  .details-image img { height: 320px; }
  .neighborhood { padding: 72px 24px; }
  .nearby-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { padding: 72px 24px; grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 8px; text-align: center; padding: 28px 24px; }
  .popup-card { padding: 40px 24px; }
}
