:root {
  --ink: #0f1c1f;
  --ink-soft: #3a4a4e;
  --muted: #6b7a7e;
  --paper: #f6f3ec;
  --paper-2: #ebe6db;
  --white: #ffffff;
  --lake: #1a5f6a;
  --lake-deep: #0e3d45;
  --lake-soft: #d7ebef;
  --sand: #c4a574;
  --shadow: 0 18px 50px rgba(15, 28, 31, 0.12);
  --radius: 18px;
  --max: 1180px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

code {
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lake);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 500;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 1rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 243, 236, 0.88);
  border-bottom: 1px solid rgba(15, 28, 31, 0.06);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-address {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-place {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

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

.nav-cta {
  background: var(--lake);
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--lake-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 61, 69, 0.15) 0%, rgba(14, 61, 69, 0.72) 70%, rgba(14, 61, 69, 0.9) 100%),
    linear-gradient(90deg, rgba(14, 61, 69, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
}

.hero .eyebrow {
  color: #b7e0e7;
}

.hero-lead {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0 1.75rem;
  max-width: 42rem;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  backdrop-filter: blur(8px);
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stats span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  background: var(--sand);
  color: var(--ink);
}

.btn-primary:hover {
  background: #d4b588;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

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

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-sub {
  margin-top: 0.5rem;
}

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

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--lake);
  box-shadow: 0 0 0 4px var(--lake-soft);
}

.split-media {
  display: grid;
  gap: 1rem;
}

.photo-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card-offset {
  width: 86%;
  margin-left: auto;
  margin-top: -2.5rem;
}

.photo-card figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Features */
.features {
  background: linear-gradient(180deg, var(--paper) 0%, var(--lake-soft) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 28, 31, 0.06);
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lake-soft);
  color: var(--lake-deep);
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter {
  border: 1px solid rgba(15, 28, 31, 0.12);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  background: var(--lake);
  border-color: var(--lake);
  color: var(--white);
}

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

.gallery-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-2);
  aspect-ratio: 1;
}

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

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.is-hidden {
  display: none;
}

/* Details */
.details {
  background: var(--ink);
  color: var(--white);
}

.details .eyebrow {
  color: #8fd0da;
}

.details h2,
.details h3 {
  color: var(--white);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.detail-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.detail-block dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.detail-block dl div {
  display: grid;
  gap: 0.15rem;
}

.detail-block dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.detail-block dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.detail-price .price {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--white);
  margin: 0.5rem 0 0.25rem;
}

.price-meta {
  color: rgba(255, 255, 255, 0.65) !important;
  margin: 0 0 0.35rem !important;
  font-size: 0.95rem;
}

.detail-price .btn {
  margin-top: 1.25rem;
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--white);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.contact-card-zillow {
  grid-template-columns: 1fr;
  max-width: 40rem;
  margin-inline: auto;
  text-align: left;
}

.zillow-actions {
  margin: 1.75rem 0 0;
}

.site-footer a {
  color: var(--lake);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-list a {
  color: var(--lake);
}

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

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 28, 31, 0.12);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--lake-soft);
  border-color: var(--lake);
}

.form-note {
  font-size: 0.85rem;
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(15, 28, 31, 0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0.25rem 0 0;
}

.footer-fine {
  max-width: 28rem;
  font-size: 0.85rem;
  color: var(--muted) !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 16, 18, 0.92);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-height: 90vh;
  display: grid;
  justify-items: center;
}

.lightbox img {
  max-height: 80vh;
  width: auto;
  max-width: min(96vw, 1200px);
  border-radius: 10px;
  object-fit: contain;
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.75rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

body.lightbox-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 980px) {
  .split,
  .contact-card,
  .details-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .photo-card-offset {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(15, 28, 31, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

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

  .nav-cta {
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .split,
  .contact-card,
  .details-grid,
  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: 78vh;
  }

  .section {
    padding: 3.5rem 0;
  }
}
