/* Public landing page styles. Exported as /site.css. */
:root {
  --forest: #14402e;
  --pine: #1d5c41;
  --leaf: #2f8a5b;
  --sage: #8fc4a2;
  --mint: #e8f3ec;
  --paper: #f8f7f2;
  --ink: #1a2420;
  --muted: #5a6a62;
  --line: #dfe6e1;
  --radius: 14px;
  --shadow: 0 10px 30px rgb(20 64 46 / 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

a { color: var(--pine); }

h1, h2, h3 { line-height: 1.2; color: var(--forest); text-wrap: balance; }

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

.preview-bar {
  position: sticky; top: 0; z-index: 50;
  background: #f5c542; color: #3a2d00;
  text-align: center; font-weight: 600; font-size: .85rem; padding: 4px;
}

/* Header */
.site-header {
  background: linear-gradient(120deg, var(--forest) 0%, var(--pine) 55%, var(--leaf) 100%);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; color: #fff; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.brand-tagline { font-size: .8rem; opacity: .85; letter-spacing: .04em; }
.phone-pill {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 16px; border-radius: 999px;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .35);
  color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap;
  transition: background .2s;
}
.phone-pill:hover { background: rgb(255 255 255 / .24); }
.phone-pill svg { width: 18px; height: 18px; }

@media (max-width: 560px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 1.1rem; }
  .phone-pill { padding: 8px 12px; font-size: .9rem; }
}

/* Hero */
.hero {
  position: relative; min-height: 340px; max-height: 78vh; overflow: hidden;
  background: linear-gradient(160deg, var(--pine), var(--forest));
  display: grid;
}
.hero > picture, .hero-overlay { grid-area: 1 / 1; }
.hero-img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; }
.hero-overlay {
  align-self: end; color: #fff; padding-block: 72px 28px;
  background: linear-gradient(to top, rgb(10 30 22 / .82), rgb(10 30 22 / 0));
}
.hero h1 { color: #fff; margin: 8px 0 0; font-size: clamp(1.8rem, 5vw, 3rem); }
.hero-city { margin: 2px 0 0; font-size: 1.1rem; opacity: .92; }
.hero-price { margin: 10px 0 0; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--sage); color: var(--forest);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* Facts */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.fact-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 0; padding-block: 18px; gap: 12px;
}
.fact { text-align: center; padding: 6px; }
.fact dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; color: var(--forest); }

/* Open house */
.open-house { background: var(--mint); border-bottom: 1px solid var(--line); }
.open-house .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-block: 14px; align-items: baseline; }
.open-house strong { color: var(--forest); text-transform: uppercase; letter-spacing: .06em; }
.open-house-note { color: var(--muted); }
.open-house[hidden] { display: none; }

/* About */
.about { padding-block: 48px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
.copy h3 { font-size: 1.2rem; margin-top: 1.6em; }
.copy p { margin: 0 0 1em; }
.copy ul, .copy ol { padding-left: 1.3em; }
.copy li { margin: .25em 0; }
.copy blockquote { margin: 1em 0; padding: .5em 1em; border-left: 4px solid var(--sage); background: var(--mint); border-radius: 0 8px 8px 0; }

.contact-card {
  position: sticky; top: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.contact-card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.contact-card > p { margin: 0 0 16px; color: var(--muted); }
.btn {
  display: block; text-align: center; text-decoration: none; font-weight: 700;
  padding: 13px 18px; border-radius: 10px; margin-top: 10px; transition: transform .1s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--pine); }
.btn-secondary { background: var(--mint); color: var(--forest); }
.btn-secondary:hover { background: #d7ebdf; }
.location { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.location p { margin: 0 0 6px; }

/* Gallery */
.gallery-section { padding-block: 8px 56px; }
.gallery-section h2 { font-size: 1.6rem; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px;
}
.gallery-item {
  position: relative; display: block; overflow: hidden; border-radius: 12px;
  aspect-ratio: 4 / 3; background: var(--mint); box-shadow: 0 2px 8px rgb(0 0 0 / .06);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px;
  color: #fff; font-size: .9rem;
  background: linear-gradient(to top, rgb(0 0 0 / .65), rgb(0 0 0 / 0));
}

/* Call to action */
.cta {
  background: linear-gradient(120deg, var(--forest), var(--leaf));
  color: #fff; text-align: center; padding-block: 44px;
}
.cta h2 { color: #fff; margin: 0 0 6px; font-size: 1.8rem; }
.cta p { margin: 0; font-size: 1.15rem; }
.cta a { color: #fff; font-weight: 700; }

/* Under construction */
.construction {
  background: linear-gradient(160deg, var(--pine), var(--forest));
  color: #fff; text-align: center;
  min-height: calc(100dvh - 140px); display: grid; align-items: center; padding-block: 64px;
}
.construction-inner { max-width: 640px; }
.construction h1 { color: #fff; margin: 14px 0 0; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.construction-message { margin: 14px 0 0; font-size: 1.15rem; opacity: .92; white-space: pre-line; }
.construction-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.construction-actions .btn { margin-top: 0; min-width: 200px; }

/* Footer */
.site-footer { padding-block: 20px; color: var(--muted); font-size: .85rem; text-align: center; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgb(8 18 14 / .95); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; place-items: center; gap: 10px; height: 100dvh; padding: 48px 0 24px; touch-action: pan-y; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; }
.lightbox figcaption { min-height: 1.4em; text-align: center; padding-inline: 8px; }
.lightbox button {
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: 12px; opacity: .8;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { position: absolute; top: 4px; right: 8px; }
.lb-count { position: absolute; top: 16px; left: 18px; font-size: .9rem; opacity: .75; }
@media (max-width: 600px) {
  /* The arrows are absolutely positioned here, so they leave the grid; one column keeps the photo full width. */
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 8px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* Before & after */
.ba-page { padding-block: 32px 56px; }
.ba-page h1 { margin-bottom: 0; }
.ba-intro { color: var(--muted); margin-top: 4px; }
.ba-item { margin-top: 40px; }
.ba-item h2 { font-size: 1.35rem; }
.ba-slider {
  position: relative; max-width: 900px; overflow: hidden; border-radius: 12px;
  background: var(--mint); user-select: none; box-shadow: var(--shadow);
}
.ba-slider picture, .ba-before-clip { position: absolute; inset: 0; }
.ba-slider img { width: 100%; height: 100%; object-fit: cover; }
.ba-before-clip { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 6px rgb(0 0 0 / .4); pointer-events: none;
}
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--forest);
  display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 8px rgb(0 0 0 / .3);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba-tag {
  position: absolute; top: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgb(0 0 0 / .55); color: #fff; font-size: .8rem; font-weight: 600; pointer-events: none;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
.ba-singles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 14px; max-width: 900px; }
.ba-singles figure { margin: 0; }
.ba-singles img { border-radius: 12px; }
.ba-singles figcaption { font-weight: 600; color: var(--muted); margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
