:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1f2a24;
  --muted: #5b6660;
  --accent: #2f6b4f;
  --accent-ink: #ffffff;
  --line: #e4e0d8;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Inter, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 72px 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin: 0 0 .6em; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; background: rgba(250, 248, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; gap: 20px; align-items: center; }
.topbar nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.topbar nav a.nav-cta { background: var(--accent); color: var(--accent-ink); padding: 8px 16px; border-radius: 999px; }

.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgba(10,20,15,.55) 50%, rgba(10,20,15,.85) 100%), linear-gradient(90deg, rgba(10,20,15,.45) 0%, rgba(10,20,15,0) 65%); }
.hero h1, .hero .price, .hero .eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-text { position: relative; z-index: 1; max-width: 1120px; width: 100%; margin: 0 auto; padding: 48px 20px 64px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 14ch; }
.hero .eyebrow { color: #cfe8d9; }
.price { font-size: 1.25rem; margin: 0 0 1.4em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: currentColor; color: inherit; }
.hero .btn.primary { background: #fff; color: var(--ink); }

.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--muted); }
.facts span { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding: 6px 2px 0; }
.schools { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.contact-card, .address { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card { display: flex; gap: 22px; align-items: flex-start; }
.contact-card p { color: var(--muted); }
.avatar { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; flex: none; }
.contact .btn.ghost { color: var(--accent); }
.maplink { font-weight: 600; text-decoration: none; }

footer { padding-top: 0; color: var(--muted); font-size: .9rem; }

dialog { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog::backdrop { background: rgba(0, 0, 0, .85); }
dialog img { max-height: 90vh; width: auto; border-radius: 8px; }
dialog button { position: absolute; top: 6px; right: 10px; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; }

@media (max-width: 760px) {
  .wrap { padding: 52px 16px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact-card { flex-direction: column; }
}
