/* tyemoody.com — sign landing pages (/home and /listings/<slug>) */
:root {
  --navy: #0D2B45;
  --navy-deep: #081E31;
  --orange: #E8622A;
  --orange-light: #F07830;
  --slate: #5A6F8A;
  --paper: #F8FAFC;
  --tint: #E7F0FB;
  --cream: #FDF2E2;
  --hair: #D7E0E8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13,43,69,.06), 0 8px 24px -12px rgba(13,43,69,.18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.deciding main { visibility: hidden; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 900; margin: 0; line-height: 1.08; }
p { font-family: "Bitter", Georgia, serif; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px;
}
.top .brand { font-weight: 700; letter-spacing: .02em; text-decoration: none; font-size: 15px; }
.top .brand small { display: block; font-weight: 400; color: var(--slate); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.top .call { font-size: 14px; color: var(--slate); text-decoration: none; }
.top .call:hover { color: var(--orange); }

/* ---------- hero ---------- */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); aspect-ratio: 3 / 2; box-shadow: var(--shadow);
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.clickable { cursor: zoom-in; }
.hero .scrim {
  position: absolute; inset: auto 0 0 0; padding: 56px 18px 16px; color: #fff;
  background: linear-gradient(to top, rgba(8,30,49,.88) 0%, rgba(8,30,49,.55) 45%, rgba(8,30,49,0) 100%);
  pointer-events: none;
}
.hero .scrim .eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .82; font-weight: 700;
}
.hero .scrim .street { font-family: "Playfair Display", serif; font-weight: 900; font-size: 27px; line-height: 1.05; margin-top: 3px; }
.hero .count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(8,30,49,.72); color: #fff; backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 7px 12px; border-radius: 999px; text-decoration: none;
}
.hero .noimg {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff;
}
.hero .noimg span { font-family: "Playfair Display", serif; font-weight: 900; font-size: 28px; }
.hero .noimg small { opacity: .75; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- badge ---------- */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; background: var(--tint); color: var(--navy);
}
.badge.soon { background: var(--cream); color: #8a3d12; }
.badge.sold { background: var(--navy); color: #fff; }
.badge.pending { background: var(--tint); }

/* ---------- headline ---------- */
.headline { margin-top: 20px; }
.headline .price { font-size: 42px; letter-spacing: -.015em; margin-top: 10px; font-family: "Playfair Display", serif; font-weight: 900; line-height: 1; }
.headline .price.hidden { font-size: 24px; line-height: 1.2; }
.headline .addr { margin-top: 8px; font-size: 17px; font-weight: 700; }
.headline .addr small { color: var(--slate); display: block; font-size: 14px; font-weight: 400; margin-top: 2px; }

.facts {
  display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px;
  border: 1px solid var(--hair); border-radius: var(--radius); background: #fff; overflow: hidden;
}
.facts li {
  flex: 1 1 33%; padding: 11px 12px; text-align: center;
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.facts li b { font-weight: 700; display: block; font-size: 17px; }
.facts li span { color: var(--slate); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 18px; margin-top: 10px;
  border-radius: var(--radius); font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px -8px rgba(232,98,42,.8); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.secondary { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--hair); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { font-weight: 400; opacity: .85; font-size: 13px; }
.cta { margin-top: 22px; }
.cta .note { margin: 10px 0 0; font-size: 13px; color: var(--slate); text-align: center; }

/* ---------- body copy ---------- */
.blurb { margin: 24px 0 0; max-width: 62ch; font-size: 16.5px; line-height: 1.65; }
.sectitle {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
  margin: 30px 0 10px;
}
.features {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14.5px;
}
.features li { display: flex; gap: 8px; align-items: flex-start; }
.features li::before { content: "—"; color: var(--orange-light); font-weight: 700; flex: none; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.gallery button {
  padding: 0; border: 0; background: var(--tint); border-radius: 10px; overflow: hidden;
  cursor: zoom-in; display: block; line-height: 0;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button.wide { grid-column: span 2; }
.gallery button.wide img { aspect-ratio: 16 / 9; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 99; background: rgba(8,30,49,.96); display: none; }
.lb.open { display: block; }
.lb .lb-img { position: absolute; inset: 56px 12px 64px; display: flex; align-items: center; justify-content: center; }
.lb .lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb .lb-close, .lb .lb-prev, .lb .lb-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 20px; line-height: 1;
}
.lb .lb-close { top: 10px; right: 12px; }
.lb .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-close:hover, .lb .lb-prev:hover, .lb .lb-next:hover { background: rgba(255,255,255,.22); }
.lb .lb-count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-size: 13px; opacity: .8; letter-spacing: .06em; }
body.lb-open { overflow: hidden; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248,250,252,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--hair);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { margin-top: 0; padding: 14px; font-size: 16px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- neighbor ---------- */
.neighbor {
  margin-top: 36px; padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
  box-shadow: var(--shadow);
}
.neighbor h2 { font-size: 26px; }
.neighbor p { margin: 10px 0 0; font-size: 15px; opacity: .88; }
.neighbor .btn.primary { margin-top: 18px; }
.neighbor .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }

/* ---------- /home chooser ---------- */
.chooser h1 { font-size: 32px; margin-top: 10px; }
.chooser p.lead { color: var(--slate); margin: 6px 0 18px; font-size: 15px; font-family: "Bitter", Georgia, serif; }
.card {
  display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--hair); margin-bottom: 14px; box-shadow: var(--shadow);
}
.card .hero { border-radius: 0; aspect-ratio: 16 / 9; box-shadow: none; }
.card .body { padding: 16px 18px 18px; }
.card .price { font-family: "Playfair Display", serif; font-weight: 900; font-size: 26px; }
.card .addr { font-size: 16px; margin-top: 2px; font-weight: 700; }
.card .addr small { color: var(--slate); display: block; font-size: 13px; font-weight: 400; }
.card .facts { font-size: 14px; margin-top: 10px; }
.card .facts li { padding: 8px 6px; }
.card .facts li b { font-size: 15px; }
.card .go { margin-top: 14px; font-weight: 700; color: var(--orange); font-size: 15px; }

.empty h1 { font-size: 32px; margin-top: 10px; }
.empty p { color: var(--slate); }
.sold-list { margin-top: 18px; }
.sold-list .card .price { font-size: 22px; }

/* ---------- compliance ---------- */
.compliance {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hair);
  font-size: 12px; color: var(--slate); line-height: 1.55;
}
.compliance p { font-family: "DM Sans", system-ui, sans-serif; margin: 0 0 6px; }

.fallback { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow); }

/* mobile: price + CTA must sit above the photo wall */
.cols { display: flex; flex-direction: column; }
.rail { order: -1; }
.media { order: 1; }

/* ---------- desktop two-column ---------- */
@media (min-width: 900px) {
  .wrap { max-width: 1080px; padding-bottom: 64px; }
  .wrap[data-page="listing"] .cols {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 36px; align-items: start; margin-top: 26px;
  }
  .wrap[data-page="listing"] .rail { order: 0; }
  .wrap[data-page="listing"] .media { order: 0; }
  .wrap[data-page="listing"] .rail { position: sticky; top: 20px; }
  .headline { margin-top: 0; }
  .hero { aspect-ratio: 16 / 10; }
  .hero .scrim .street { font-size: 34px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery button.wide { grid-column: span 3; }
  .features { grid-template-columns: 1fr 1fr; }
  .neighbor { padding: 32px 30px; }
  .neighbor h2 { font-size: 30px; }
}

/* ---------- price withheld until launch ---------- */
.pricewait {
  margin-top: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, #FFF7EC 0%, #FDF2E2 100%);
  border: 1px solid #F3DDBE;
}
.pricewait-k {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A4642C;
}
.pricewait-v {
  font-family: "Playfair Display", Georgia, serif; font-weight: 900;
  font-size: 25px; line-height: 1.12; margin-top: 4px; color: var(--navy);
}
.pricewait-n { font-family: "Bitter", Georgia, serif; font-size: 13.5px; color: #7B5327; margin-top: 7px; line-height: 1.45; }

/* ---------- open house ---------- */
.oh {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--hair);
}
.oh-k {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 8px;
}
.oh ul { list-style: none; margin: 0; padding: 0; }
.oh li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-top: 1px solid var(--hair); font-size: 15px;
}
.oh li:first-child { border-top: 0; padding-top: 0; }
.oh li b { font-weight: 700; }
.oh li span { color: var(--slate); font-size: 14px; white-space: nowrap; }

/* open-house promo band (drawing, events) */
.promo{background:var(--navy);color:#fff;border-radius:14px;padding:18px 18px 20px;margin:0 0 18px}
.promo-eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#E8622A;margin:0 0 6px}
.promo h2{font-size:21px;line-height:1.15;margin:0 0 7px;color:#fff}
.promo p{margin:0 0 14px;font-size:14.5px;line-height:1.5;color:#cfdcea}
.promo .btn.primary{display:block;text-align:center}
.promo .note{margin:10px 0 0;font-size:12px;color:#9fb3c8}
