/* ============================================================================
   520 N Poplar St Unit I - listing site styles
   One stylesheet, no build step. Theme variables up top.
   ========================================================================== */

:root {
  --paper:      #f7f4ef;   /* warm off-white background */
  --paper-2:    #efeae2;   /* slightly deeper panel */
  --ink:        #20231f;   /* near-black, warm */
  --ink-soft:   #54564f;   /* muted body text */
  --line:       #ddd6ca;   /* hairlines */
  --accent:     #3a4b3f;   /* deep forest green */
  --accent-2:   #2c382e;   /* darker green */
  --gold:       #a9824b;   /* restrained metallic for eyebrows/rules */

  --maxw: 1200px;
  --gut: clamp(1.25rem, 5vw, 4rem);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 18px 50px -25px rgba(28, 30, 26, 0.45);
}

/* ---- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; }

/* ---- shared helpers ------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; margin-top: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 1.6rem; border-radius: 2px; border: 1px solid var(--accent);
  background: var(--accent); color: #f3f1ea; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* reveal-on-scroll (progressive; visible by default if JS/IO unsupported) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gut);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.is-solid {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.8rem;
}
.brand {
  font-family: var(--sans); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.82rem;
  color: #fff; transition: color .3s ease;
}
.site-header.is-solid .brand { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.82rem; letter-spacing: 0.06em; font-weight: 500;
  color: rgba(255,255,255,0.92); transition: color .2s ease;
}
.site-header.is-solid .nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--gold); }
.nav .btn { color: #f3f1ea; }
.site-header.is-solid .nav .btn { color: #f3f1ea; }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.site-header.is-solid .nav-toggle span { background: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 60; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 1.8rem; background: var(--paper); transform: translateX(100%);
    transition: transform .35s ease; pointer-events: none;
  }
  .nav.is-open { transform: none; pointer-events: auto; }
  .nav a, .site-header .nav a { color: var(--ink); font-size: 1.15rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span { background: var(--ink); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,18,14,.58) 0%, rgba(16,18,14,.30) 42%, rgba(16,18,14,.82) 100%);
}
.hero__inner { width: 100%; padding-bottom: clamp(2.5rem, 6vw, 5rem); padding-top: 7rem; text-shadow: 0 1px 18px rgba(0,0,0,0.45); }
.hero .eyebrow { color: #f1ead9; }
.hero__title { font-size: clamp(2.7rem, 8vw, 6rem); letter-spacing: -0.015em; max-width: 14ch; text-wrap: balance; }
.hero__tagline { font-size: clamp(1.05rem, 2vw, 1.4rem); margin: 1.2rem 0 0; max-width: 34ch; color: #f4f0e7; font-style: italic; font-family: var(--serif); text-wrap: balance; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem); margin-top: 2.4rem;
  padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.28);
}
.hero__stat .n { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); display: block; }
.hero__stat .l { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d9d2c4; }
.hero__scroll { position: absolute; right: var(--gut); bottom: 1.5rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #e9e2d2; opacity: .85; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 34px; background: currentColor; margin: .6rem auto 0; animation: scrollpulse 2s ease-in-out infinite; }
/* Anchored to the right gutter (clear of the left-aligned title/stats) and
   hidden on phones/small tablets, where the bottom stats fill the width and the
   cue would otherwise overlap them. */
@media (max-width: 768px) { .hero__scroll { display: none; } }
@keyframes scrollpulse { 0%,100%{ transform: scaleY(.4); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============================================================================
   INTRO
   ========================================================================== */
.intro { background: var(--paper); }
.intro__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.intro__lead { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.35; letter-spacing: -0.01em; max-width: 24ch; }
.intro__body { color: var(--ink-soft); font-size: 1.12rem; max-width: 52ch; }
.intro__body p + p { margin-top: 1.1rem; }
@media (min-width: 880px) {
  .intro__grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
}

/* ============================================================================
   FEATURE PLATES
   ========================================================================== */
.plates { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.plate { display: grid; gap: 2rem; align-items: center; }
.plate__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); }
.plate__num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); }
.plate__body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0.5rem 0 0.9rem; }
.plate__body p { color: var(--ink-soft); font-size: 1.1rem; max-width: 42ch; }
@media (min-width: 820px) {
  .plate { grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 5vw, 5rem); }
  .plate:nth-child(even) .plate__media { order: 2; }
}

/* ---- "and throughout" minor grid ---- */
.throughout { background: var(--accent); color: #efe9dc; }
.throughout .eyebrow { color: #b9c4ad; }
.throughout h2 { color: #f4efe3; }
.throughout__grid { display: grid; gap: 2rem 3rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .throughout__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .throughout__grid { grid-template-columns: 1fr 1fr 1fr; } }
.feat { border-top: 1px solid rgba(255,255,255,0.22); padding-top: 1.2rem; }
.feat h3 { font-size: 1.3rem; color: #f4efe3; }
.feat p { color: #cdd3c2; font-size: 1rem; margin: 0.5rem 0 0; }

/* ============================================================================
   GALLERY + LIGHTBOX
   ========================================================================== */
.gallery__grid {
  margin-top: 3rem; display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1040px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: 2px; background: var(--paper-2); cursor: zoom-in; aspect-ratio: 3 / 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(18,19,16,0.94); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 2px; }
.lightbox__btn { position: absolute; background: none; border: 0; color: #fff; opacity: .85; transition: opacity .2s; padding: 1rem; }
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { top: .5rem; right: .5rem; font-size: 2rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.6rem; line-height: 1; }
.lightbox__prev { left: .3rem; } .lightbox__next { right: .3rem; }
.lightbox__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #cfcabf; font-size: .8rem; letter-spacing: .1em; }

/* ============================================================================
   NEIGHBORHOOD
   ========================================================================== */
.hood { background: var(--paper-2); }
.hood__grid { display: grid; gap: 2.5rem; align-items: center; }
.hood__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); }
.hood__body p { color: var(--ink-soft); font-size: 1.1rem; }
.hood__body p + p { margin-top: 1.1rem; }
.hood__chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.chip { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--accent); border: 1px solid var(--line); border-radius: 100px; padding: .5rem 1rem; background: var(--paper); }
@media (min-width: 880px) { .hood__grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }

/* ============================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--accent-2); color: #efe9dc; }
.contact .eyebrow { color: #b9c4ad; }
.contact h2 { color: #f4efe3; font-size: clamp(2rem, 4.2vw, 3.25rem); }
.contact > .wrap > p { color: #cdd3c2; font-size: 1.125rem; max-width: 46ch; margin-top: 1rem; }
.contact__grid { display: grid; gap: 3rem; margin-top: 3.5rem; align-items: start; }
.agent { display: flex; gap: 1.3rem; align-items: center; }
.agent__photo { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; line-height: 0; }
.agent__photo:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.agent img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; border: 2px solid rgba(255,255,255,.3); transition: transform .2s; }
.agent__photo:hover img { transform: scale(1.05); }
.agent__view { display: inline-block; margin-top: .5rem; border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #b9c4ad; border-bottom: 1px solid rgba(185,196,173,.4); }
.agent__view:hover { color: var(--gold); border-color: var(--gold); }

/* Agent "face card" modal */
.agentcard { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; background: rgba(16,17,14,0.94); padding: 1.5rem; }
.agentcard.is-open { display: flex; }
.agentcard__inner { position: relative; width: 100%; max-width: 430px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: #111; }
.agentcard__inner img { width: 100%; display: block; max-height: 80vh; object-fit: cover; object-position: 50% 12%; }
.agentcard__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.6rem 1.5rem; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.9) 100%); }
.agentcard__name { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
.agentcard__role { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #ece6d8; margin-top: .35rem; }
.agentcard__lines { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.agentcard__phone { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: #fff; letter-spacing: .01em; }
.agentcard__email { font-size: 1.02rem; color: #fff; }
.agentcard__lines a:hover { color: var(--gold); }
.agentcard__close { position: absolute; top: .4rem; right: .7rem; z-index: 2; background: none; border: 0; color: #fff; font-size: 2.1rem; line-height: 1; cursor: pointer; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.agent .name { font-family: var(--serif); font-size: 1.5rem; }
.agent .role { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #b9c4ad; }
.contact__lines { margin-top: 2rem; display: grid; gap: 1.2rem; }
.contact__lines a { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.1rem; border-bottom: 1px solid transparent; }
.contact__lines a:hover { border-color: var(--gold); color: #fff; }
.contact__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.contact__cta .btn { background: var(--gold); border-color: var(--gold); color: #221d12; }
.contact__cta .btn:hover { background: #c39a5c; border-color: #c39a5c; }
.contact__cta .btn--ghost { background: transparent; color: #efe9dc; border-color: rgba(255,255,255,.5); }
.contact__cta .btn--ghost:hover { background: #efe9dc; color: var(--accent-2); }

.form { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.4rem); }
.form label { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #b9c4ad; margin-bottom: .4rem; }
.form .field + .field { margin-top: 1.2rem; }
.form input, .form textarea {
  width: 100%; background: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px; padding: .8rem .9rem; font-family: inherit; font-size: 1rem; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; margin-top: 1.4rem; background: var(--gold); border-color: var(--gold); color: #221d12; }
.form .btn:hover { background: #c39a5c; border-color: #c39a5c; }
.form__note { font-size: .8rem; color: #aab09f; margin-top: .9rem; text-align: center; }
@media (min-width: 880px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #cfcabf; padding-block: clamp(3rem, 6vw, 5rem); }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer .addr { font-family: var(--serif); font-size: 1.5rem; color: #f4efe3; }
.site-footer .muted { color: #9a988f; font-size: .95rem; margin-top: .5rem; }
.site-footer a:hover { color: #fff; }
.site-footer__legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: .8rem; color: #8a887f; line-height: 1.6; }
.site-footer__legal .eh { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #b3b1a7; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ============================================================================
   SIMPLE INTERIOR PAGES (renovation.html / documentation.html)
   ========================================================================== */
.doc { padding-top: 8rem; }
.doc .wrap { max-width: 920px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.doc .lead { color: var(--ink-soft); font-size: 1.2rem; max-width: 60ch; }
.doc h2 { font-size: 1.7rem; margin-top: 3rem; }
.doc h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin-top: 2rem; }
.doc p { color: var(--ink-soft); }
.doc__back { display: inline-block; margin-bottom: 2rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.doc__draft { background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1.2rem 1.4rem; margin: 2rem 0; font-size: .95rem; color: var(--ink-soft); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.doc .grid2 { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .doc .grid2 { grid-template-columns: 1fr 1fr; } }
