/* ─────────────────────────────────────────────────────────────────
   Refract Ventures — House landing pages
   Shared layout for the per-house homes (faye / littlesugar / ozarkgothic).
   Built on tokens.css. Each house sets --accent + --accent-soft in its
   own :root block after importing tokens.css.
   ───────────────────────────────────────────────────────────────── */

/* offset in-page anchor jumps so targets clear the sticky header */
html { scroll-padding-top: 76px; }

/* ─── Top bar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 16, 16, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}
.brand svg { width: 30px; height: 24px; display: block; }
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.brand .brand-name em { font-style: italic; color: var(--text-dim); }
.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.topbar-links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.topbar-links a:hover { color: var(--text); }
.topbar-links .here { color: var(--accent); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,16,16,0.45) 0%, rgba(17,16,16,0.15) 38%, rgba(17,16,16,0.75) 82%, var(--bg) 100%),
    radial-gradient(1200px 600px at 12% 100%, var(--accent-soft), transparent 60%);
}
/* Kontrast-style orbital line texture over each hero photo (per-house variants inline) */
.hero-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; opacity: 0.6;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x) 4.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 14ch;
}
.hero h1 em { font-style: italic; }
/* Per-house SVG logo lockups, used in place of the text title */
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img {
  display: block;
  width: auto;
  height: clamp(190px, 30vw, 360px);
  max-width: 100%;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.5));
}
.hero-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--text-dim);
  margin-top: 1.5rem;
  max-width: 40ch;
  line-height: 1.4;
}
.accent-rule {
  display: flex;
  gap: 7px;
  margin-top: 2rem;
}
.accent-rule span { width: 38px; height: 5px; border-radius: 2px; }
.accent-rule span:nth-child(1) { background: var(--prism-red); }
.accent-rule span:nth-child(2) { background: var(--prism-amber); }
.accent-rule span:nth-child(3) { background: var(--prism-blue); }
.accent-rule span:nth-child(4) { background: var(--prism-green); }
.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.hero-meta b { color: var(--text); font-weight: 600; }

/* ─── Sections ─── */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--gap-xl) var(--pad-x);
}
.section + .section { padding-top: 0; }
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  margin-bottom: var(--gap-md);
}
.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.5rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.section-head .lead {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 60ch;
}

/* ─── Unit cards ─── */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.unit-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.unit-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.unit-card.muted { opacity: 0.72; }
.unit-card.muted:hover { transform: none; border-color: var(--border-strong); }
.unit-thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface) center/cover no-repeat;
  position: relative;
}
.unit-thumb .status {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(17,16,16,0.74);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  border-radius: var(--pill-radius);
  padding: 0.35rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--prism-green); }
.status-dot.soon { background: var(--prism-amber); }
.status-dot.leased { background: var(--text-muted); }
.unit-info { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.unit-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.unit-name .at { color: var(--text-muted); font-size: 1rem; font-style: italic; }
.unit-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.unit-desc {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.unit-cta {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.unit-card:hover .unit-cta { color: var(--accent); }
.unit-cta.disabled { color: var(--text-muted); font-weight: 500; }

/* ─── Pillars ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.8rem;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.pillar-text { font-family: var(--sans); font-size: 0.92rem; color: var(--text-dim); line-height: 1.6; }

/* ─── Nearby chips ─── */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  padding: 0.5rem 1rem;
}
.chip b { color: var(--text); font-weight: 600; }

/* ─── Footer ─── */
.foot { border-top: 1px solid var(--border); margin-top: var(--gap-xl); }
.foot-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.foot-brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.04em; }
.foot-brand.foot-logo { line-height: 0; }
.foot-brand.foot-logo img { display: block; height: 34px; width: auto; max-width: 230px; opacity: 0.92; }
.foot-tag { font-family: var(--serif); font-style: italic; color: var(--text-dim); margin-top: 0.4rem; }
.foot-sub { font-family: var(--sans); font-size: 0.84rem; color: var(--text-muted); margin-top: 0.6rem; }
.foot-sub a { color: var(--text-dim); text-decoration: none; }
.foot-sub a:hover { color: var(--accent); }
.foot-links { display: flex; flex-direction: column; gap: 0.55rem; text-align: right; }
.foot-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.foot-links a:hover { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 0.8rem; }
  .unit-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .topbar-links .hide-sm { display: none; }
  .foot-links { text-align: left; }
}

/* Phones: clean single-row header + sensible hero-logo size.
   Gutters come from the site-wide --pad-x token — no local overrides. */
@media (max-width: 560px) {
  .topbar-inner { padding: 0.6rem var(--pad-x); gap: 0.6rem; }
  .brand-name   { font-size: 0.82rem; white-space: nowrap; }
  .topbar-links { gap: 0.9rem; font-size: 0.72rem; }
  .topbar-links a { white-space: nowrap; }
  /* keep the lockup left-aligned and fully on-screen on phones */
  .hero-logo    { text-align: left; }
  .hero-logo img { height: clamp(150px, 34vw, 230px); max-width: 100%; margin-left: 0; }
}
/* Very small phones: drop the wordmark, keep the mark (links get the room) */
@media (max-width: 360px) {
  .brand-name { display: none; }
}
