/* =========================================================
   NOHO LIV — SITE STYLES
   Palette matches the existing brand direction (cream body,
   deep ink header/footer, brick accent). SAMUEL: adjust the
   variables below to the exact current brand values if they
   differ — everything derives from them.
   ========================================================= */
:root {
  --cream: #f8f3ea;
  --panel: #ffffff;
  --ink: #1d1a16;
  --ink-soft: #4c463f;
  --line: #e4dccf;
  --accent: #b23a2a;        /* brick red — primary CTA */
  --accent-dark: #93301f;
  --deep: #17211c;          /* header/footer */
  --gold: #b98a2f;
  --radius: 14px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  padding-bottom: 76px; /* room for mobile action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--accent); font-weight: 700; margin: 0 0 .6em;
}
section { padding: 56px 0; }
.section-alt { background: #fdfaf4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.button {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-dark); }
.button--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--secondary:hover { background: var(--ink); color: #fff; }
.button--ghost { background: transparent; color: var(--ink-soft); text-decoration: underline; border: 0; padding: 10px 8px; }
.button--small { padding: 9px 18px; font-size: .9rem; }
.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- sticky bar (spec §5) ---------- */
.sticky-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--deep); color: #fff;
  text-align: center; padding: 10px 14px; font-weight: 600;
  font-size: .95rem;
}
.sticky-bar a { color: #fff; text-decoration: none; display: block; }
.sticky-bar strong { color: #ffd8a8; }

/* ---------- header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark {
  background: var(--deep); color: #fff; border-radius: 50%;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.brand__name { display: block; font-weight: 800; letter-spacing: .06em; }
.brand__sub { display: block; font-size: .68rem; letter-spacing: .3em; color: var(--ink-soft); }

/* ---------- hero (spec §6) ---------- */
.hero { padding: 64px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 span { display: block; }
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 18px; }
.hero__residences { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.chip {
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: .95rem;
}
.chip--corner { border-color: var(--gold); }
.availability { font-weight: 600; color: var(--ink-soft); margin: 0 0 14px; }
.availability.is-stale .availability__count { display: none; }
.availability .availability__fallback { display: none; }
.availability.is-stale .availability__fallback { display: inline; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.badges li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; font-size: .88rem; font-weight: 600;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__media img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.hero__media figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- comparison (spec §7) ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 28px; }
.res-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.res-card__badge {
  align-self: flex-start; font-size: .72rem; letter-spacing: .12em; font-weight: 800;
  text-transform: uppercase; padding: 6px 12px; border-radius: 6px;
  background: #eef3ee; color: #24513b;
}
.res-card--corner .res-card__badge { background: #f7efdd; color: #7c5a14; }
.res-card__title { font-size: 1.4rem; font-weight: 800; }
.res-card__hook { color: var(--accent); font-weight: 700; }
.proofs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.proofs li { padding-left: 22px; position: relative; font-size: .95rem; }
.proofs li::before { content: "✓"; position: absolute; left: 0; color: #24513b; font-weight: 800; }
.cost-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cost-table th, .cost-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table td:last-child { text-align: right; font-weight: 600; }
.res-card__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.floorplan-note { font-size: .78rem; color: var(--ink-soft); }

/* ---------- what comes with it (spec §9) ---------- */
.include-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 26px; }
.include-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.include-card h3 { margin-bottom: .4em; }
.include-card p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.property-strip {
  margin-top: 26px; text-align: center; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-soft);
}
.map-wrap { margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-actions { text-align: center; margin-top: 16px; }

/* ---------- galleries (spec §10) ---------- */
.gallery-group { margin-top: 30px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.img-label { font-size: .74rem; color: var(--ink-soft); margin-top: 5px; }
.gallery-actions { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.video-block { margin-top: 26px; }
.video-block video { width: 100%; border-radius: var(--radius); }
.video-note { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- good to know (spec §11) ---------- */
.gtk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 34px; margin-top: 26px; }
.gtk-item { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 20px; }
.gtk-item h3 { margin-bottom: .3em; font-size: 1.02rem; }
.gtk-item p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* ---------- tour (spec §12) ---------- */
#book-tour { scroll-margin-top: 90px; }
.tour-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; margin-top: 26px; }
.calendar-shell {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 640px; display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.callback {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.callback label { display: block; font-weight: 700; font-size: .88rem; margin: 14px 0 5px; }
.callback input, .callback select {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; background: #fff;
}
.consent { font-size: .78rem; color: var(--ink-soft); margin-top: 14px; }
.consent label { display: flex; gap: 8px; font-weight: 400; align-items: flex-start; margin: 10px 0 0; font-size: .78rem; }
.consent input { width: auto; margin-top: 2px; }
#callback-status { font-size: .9rem; font-weight: 600; margin-top: 10px; color: #24513b; min-height: 1.2em; }

/* ---------- FAQ + footer (spec §13) ---------- */
.faq-list { margin-top: 26px; }
.faq-list details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px;
}
.faq-list summary { font-weight: 700; cursor: pointer; }
.faq-list p { color: var(--ink-soft); font-size: .94rem; margin: 10px 0 0; }
.final-cta { text-align: center; }
.final-cta .hero__cta { justify-content: center; margin-top: 18px; }

.site-footer { background: var(--deep); color: #d9d4ca; padding: 44px 0 90px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
.footer-legal { font-size: .82rem; margin-top: 18px; color: #a9a396; }

/* ---------- mobile action bar (spec §18) ---------- */
.mobile-action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: none; gap: 10px; padding: 10px 14px;
  background: rgba(23, 33, 28, .97);
}
.mobile-action-bar a {
  flex: 1; text-align: center; padding: 13px 10px; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: .95rem;
  background: #fff; color: var(--ink);
}
.mobile-action-bar a.primary { background: var(--accent); color: #fff; }

/* ---------- content pages (privacy / terms / accessibility) ---------- */
.content-page { padding: 48px 0 64px; }
.content-page .narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.content-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.content-page h2 { font-size: 1.25rem; margin-top: 1.6em; }
.content-page p { color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .compare-grid, .tour-grid, .gtk-grid { grid-template-columns: 1fr; }
  .include-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .mobile-action-bar { display: flex; }
}
@media (max-width: 520px) {
  .include-grid { grid-template-columns: 1fr; }
  .sticky-bar { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
