/* ═══════════════════════════════════════════════════════════
   TOSALET RESIDENCES — House Detail Page Styles
   ══════════════════════════════════════════════════════════ */

/* ── HERO ── */
.house-hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.house-hero__media {
  position: absolute;
  inset: -20% 0;
}
.house-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.house-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,12,5,0.05) 0%,
    rgba(30,12,5,0.48) 100%
  );
}
.house-hero__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 clamp(2.5rem,7vw,7rem) 5rem;
  color: #ede4d5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.house-hero__num {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  opacity: 0.3;
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.house-hero__title {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.house-hero__title em {
  font-style: italic;
  font-weight: 300;
}
.house-hero__meta {
  font-size: 0.8rem;
  line-height: 2.1;
  color: rgba(237,228,213,0.6);
  padding-top: 1.5rem;
}
.house-hero__meta strong {
  display: block;
  color: rgba(237,228,213,0.35);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 0.75rem;
}
.house-hero__meta strong:first-child { margin-top: 0; }

/* ── INTRO ── */
.h-intro {
  padding: clamp(5rem, 10vw, 9rem) clamp(2.5rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.h-intro__quote {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.h-intro__quote em { font-style: italic; color: var(--accent); }
.h-intro__body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-mid);
}
.h-intro__body p + p { margin-top: 1.5rem; }

/* ── SPEC BAR ── */
.spec-bar {
  background: var(--bg-warm);
  padding: 2.5rem clamp(2.5rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}
.spec-bar__label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.spec-bar__value {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── PHOTO BLOCKS ── */
.photo-full {
  overflow: hidden;
}
.photo-full img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.photo-full--tall img { height: clamp(480px, 70vh, 820px); }
.photo-full--med  img { height: clamp(360px, 55vh, 640px); }

/* Vertical rhythm between photo blocks */
.photo-full + .photo-split,
.photo-full + .h-text,
.photo-split + .photo-full,
.photo-split + .photo-split,
.photo-split + .h-text,
.photo-split + .h-pullquote {
  margin-top: clamp(2rem, 4vw, 4rem);
}

.photo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
}
.photo-split--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.photo-split--wide {
  grid-template-columns: 58fr 42fr;
}
.photo-item {
  overflow: hidden;
  background: var(--line);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  decoding: async;
}
.photo-item--tall { height: clamp(420px, 65vh, 760px); }
.photo-item--med  { height: clamp(320px, 50vh, 580px); }
.photo-item--short{ height: clamp(260px, 38vh, 460px); }

/* ── TEXT INTERLUDE ── */
.h-text {
  padding: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 7vw, 7rem);
  max-width: 700px;
}
.h-text--right { margin-left: auto; }
.h-text--center { margin: 0 auto; text-align: center; }

.h-text__label {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.h-text__heading {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.h-text__heading em { font-style: italic; color: var(--accent); }
.h-text__body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-mid);
}
.h-text__body p + p { margin-top: 1.25rem; }

/* ── PULL QUOTE ── */
.h-pullquote {
  padding: clamp(5rem, 10vw, 9rem) clamp(2.5rem, 7vw, 7rem);
  text-align: center;
}
.h-pullquote__text {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin: 0 auto;
}
.h-pullquote__text em { font-style: italic; color: var(--accent); }

/* ── MATERIALS LIST ── */
.h-materials {
  background: var(--bg-dark);
  padding: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.h-materials__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ede4d5;
}
.h-materials__title em { font-style: italic; color: var(--gold); }
.h-materials__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.h-materials__item {
  font-family: var(--f-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.7;
  padding: 1rem 0;
}

/* ── DARK PAGE OVERRIDES ────────────────────────────────────
   House detail pages are dark like the landing.
   Override all light-background sections here.            */
body {
  background: var(--bg-dark);
}

/* Nav on dark pages must use dark scrolled bg */
.nav.scrolled {
  background: rgba(30,12,5,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ede4d5;
}

.h-intro__quote { color: #F0D898; }
.h-intro__body  { color: rgba(240,210,148,0.55); }

.spec-bar {
  background: #3d1202;
}
.spec-bar__label { color: rgba(240,210,148,0.38); }
.spec-bar__value { color: #F0D898; }

.h-text__heading { color: #F0D898; }
.h-text__body    { color: rgba(240,210,148,0.55); }

.h-pullquote__text { color: #F0D898; }

.photo-item { background: #1e0c05; }
.photo-split { background: #1e0c05; }

/* ── NEXT HOUSE PANEL ── */
.next-house {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 55vh;
  text-decoration: none;
}
.next-house__photo {
  overflow: hidden;
}
.next-house__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
  display: block;
}
.next-house:hover .next-house__photo img { transform: scale(1.04); }
.next-house__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem clamp(2.5rem,5vw,5rem);
  background: var(--bg-dark);
}
.next-house__label {
  font-size: 0.63rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240,210,148,0.38);
  display: block;
  margin-bottom: 0.75rem;
}
.next-house__name {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #F0D898;
  transition: color 0.3s;
}
.next-house:hover .next-house__name { color: var(--gold); }
.next-house__cta {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
