/* Rolling Hills Townhouses, 2026 redesign */
:root {
  --forest: #24382c;
  --forest-2: #2f4a3a;
  --moss: #6d8b5c;
  --clay: #b8643c;
  --clay-dark: #9c5130;
  --cream: #f7f3ec;
  --sand: #ece5d8;
  --ink: #1d231f;
  --muted: #5b655e;
  --line: #ddd5c6;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(29, 35, 31, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: .9em;
}
.eyebrow--light { color: #e8b48f; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.5em; border-radius: 999px;
  background: var(--clay); color: var(--white); text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 2px solid var(--clay);
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn--small { padding: .55em 1.15em; font-size: .88rem; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--forest); color: var(--cream);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: -.04em;
}
.brand__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--forest); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color .2s;
}
.nav__links a:not(.btn):hover, .nav__links a.is-current { color: var(--forest); }
.nav__call { display: none; color: var(--white); background: var(--clay); width: 42px; height: 42px; border-radius: 50%; place-items: center; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 8vw, 7rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: var(--forest); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.4rem; }
.hero__addr { font-size: .9rem; color: var(--muted); margin: 0; }
.hero__media { position: relative; padding: 0 0 12% 0; }
.hero__img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.hero__img--main { width: 100%; aspect-ratio: 4 / 3; }
.hero__img--inset {
  position: absolute; left: -9%; bottom: 0; width: 46%; aspect-ratio: 4 / 3;
  border: 6px solid var(--cream);
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--sand); }
.section__head { max-width: 640px; margin-bottom: 2.75rem; }
.section__head h2 { color: var(--forest); margin: 0; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), var(--shadow);
  transition: transform .3s;
}
.feature:hover { transform: translateY(-4px); }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature__body { padding: 1.3rem 1.4rem 1.5rem; }
.feature__body h3 { color: var(--forest); }
.feature__body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Gallery */
.filters { display: flex; gap: .5rem; }
.chip {
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: .5em 1.1em; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--line); color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; grid-auto-flow: dense; }
.tile {
  position: relative; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; background: var(--line);
  aspect-ratio: 4 / 3;
}
.tile--wide { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.tile:hover img { transform: scale(1.05); filter: brightness(1.05); }
.tile.is-hidden { display: none; }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 20, 17, .94);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  animation: fade .2s ease;
}
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; min-width: 0; }
.lb__img { max-width: 100%; max-height: 82vh; border-radius: 8px; object-fit: contain; }
.lb__count { color: rgba(255,255,255,.7); font-size: .85rem; }
.lb__btn {
  background: rgba(255,255,255,.1); color: var(--white); border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.9rem; line-height: 1;
  display: grid; place-items: center; justify-self: center; transition: background .2s;
}
.lb__btn:hover { background: rgba(255,255,255,.22); }
.lb__close { position: absolute; top: 16px; right: 16px; }
@keyframes fade { from { opacity: 0; } }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.location h2 { color: var(--forest); }
.location p { color: var(--muted); }
.location address { font-style: normal; font-weight: 500; font-size: 1.1rem; margin: 1.3rem 0 1.6rem; line-height: 1.5; }
.location__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact */
.contact { background: var(--forest); color: var(--cream); padding: clamp(4rem, 9vw, 6.5rem) 0; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,139,92,.35), transparent 65%); pointer-events: none;
}
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.contact h2 { color: var(--cream); }
.contact__lead { color: rgba(247,243,236,.78); max-width: 40ch; }
.contact__cards { display: grid; gap: .9rem; }
.ccard {
  display: flex; flex-direction: column; gap: .2rem; text-decoration: none;
  padding: 1.15rem 1.4rem; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, transform .2s;
}
.ccard:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.ccard__label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #e8b48f; font-weight: 600; }
.ccard__value { font-family: var(--serif); font-size: 1.6rem; }
.ccard__value--sm { font-size: 1.15rem; overflow-wrap: anywhere; }

/* Footer */
.footer { background: #1b2a21; color: rgba(247,243,236,.6); font-size: .88rem; padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer p { margin: 0; }
.eho {
  display: flex; align-items: center; gap: .7rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35;
  color: rgba(255,255,255,.62);
}
.eho img { width: 30px; height: auto; opacity: .8; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .hero__inner, .location, .contact__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; padding-bottom: 14%; }
  .hero__img--inset { left: auto; right: 4%; width: 42%; }
  .nav__links { display: none; }
  .nav__call { display: grid; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .features { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .lb { grid-template-columns: 1fr; }
  .lb__prev, .lb__next { position: absolute; bottom: 24px; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}
