:root {
  --green: #2f5d3a;
  --green-dark: #22452b;
  --green-soft: #eef3ec;
  --ink: #1f2420;
  --muted: #5d665f;
  --line: #d9e0d6;
  --paper: #fbfaf6;
  --white: #ffffff;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--green); }
h3 { font-size: 1.2rem; color: var(--green); margin-top: 1.8em; }
a { color: var(--green); }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap, .wrap-wide { padding-inline: 32px; } }

/* Buttons */
.btn {
  display: inline-block;
  padding: .8em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-ghost-dark { border-color: var(--green); color: var(--green); margin: 0 .5em .6em 0; }
.btn-ghost-dark:hover { background: var(--green-soft); }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,14,.82) 0%, rgba(10,25,14,.45) 40%, rgba(10,25,14,0) 70%);
}
.hero-text { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px 56px; }
@media (min-width: 700px) { .hero-text { padding: 0 32px 72px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; margin: 0 0 .8em; opacity: .9; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); max-width: 14em; margin-bottom: .35em; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0 0 1.6em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Key figures */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.stats > div { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--green); white-space: nowrap; }
.stats span { font-size: .85rem; color: var(--muted); }
.stats .price { grid-column: 1 / -1; background: var(--green); }
.stats .price strong, .stats .price span { color: var(--white); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(5, 1fr); }
  .stats > div { border-top: 0; padding: 28px 12px; }
  .stats .price { grid-column: auto; }
}

/* Sections */
main > section { padding: 72px 0; }
@media (min-width: 900px) { main > section { padding: 96px 0; } }
.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.prose p { margin: 0 0 1em; max-width: 36em; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: -.3em; }
.address { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--green); }
.facts dd { margin: 0; }
.facts-price dd { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 420px) { .facts > div { grid-template-columns: 1fr; gap: 0; } }

.extras { list-style: none; padding: 0; margin: 0; }
.extras li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: var(--green-soft); border-radius: var(--radius); margin-bottom: 8px; }
.extras li span:last-child { font-weight: 600; white-space: nowrap; }

/* Gallery */
.gallery-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .wide { grid-column: span 2; } }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery .wide { grid-column: span 2; grid-row: span 2; }
}
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery a { display: block; flex: 1; overflow: hidden; border-radius: var(--radius); background: var(--green-soft); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: 6px 2px 0; }

/* Contact */
.contact { background: var(--green-soft); }
.contact-card {
  margin-top: 28px;
  max-width: 460px;
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 28px rgba(34,69,43,.08);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.contact-name { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 4px; }
.contact-line { font-size: 1.15rem; text-decoration: none; color: var(--ink); padding: 4px 0; }
.contact-line span { color: var(--green); display: inline-block; width: 1.5em; }
.contact-line:hover { color: var(--green); }
.contact-card .btn { margin-top: 14px; }

.footer { padding: 32px 0 40px; font-size: .85rem; color: var(--muted); }
.footer p { margin: .2em 0; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: rgba(12,16,13,.96);
  color: var(--white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 56px 16px 24px; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100vh - 130px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { margin-top: 12px; font-size: .95rem; opacity: .85; text-align: center; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: var(--white);
  border: 0; border-radius: 999px; width: 48px; height: 48px;
  font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
