/* The Habitat at Highlands — spacious editorial layout (no grid frames) */

:root {
  --hb-forest: #1a3d2e;
  --hb-green: #2d5a45;
  --hb-sage: #e8efe9;
  --hb-cream: #faf9f6;
  --hb-orange: #e07a2f;
  --hb-text: #2a2a2a;
  --hb-muted: #5c5c5c;
  --hb-max: 46rem;
  --hb-wide: 72rem;
}

body.hb-page {
  background: var(--hb-cream);
  color: var(--hb-text);
  font-family: 'Inter', system-ui, sans-serif;
}

.hb-page .site-header,
.hb-page .top-bar {
  position: relative;
  z-index: 20;
}

/* ——— Hero ——— */
.hb-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hb-hero-media {
  position: absolute;
  inset: 0;
}

.hb-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 20, 0.15) 0%, rgba(10, 28, 20, 0.82) 78%);
}

.hb-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--hb-wide);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem);
}

.hb-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.hb-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  max-width: 14ch;
  margin: 0 0 1.5rem;
}

.hb-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  margin: 0 0 2.5rem;
}

.hb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hb-hero-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hb-hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ——— Stats strip ——— */
.hb-stats {
  border-bottom: 1px solid rgba(26, 61, 46, 0.1);
  background: #fff;
}

.hb-stats-inner {
  max-width: var(--hb-wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hb-stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--hb-forest);
  line-height: 1.1;
}

.hb-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

/* ——— Sections ——— */
.hb-section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 3rem);
}

.hb-section--sage {
  background: var(--hb-sage);
}

.hb-section--white {
  background: #fff;
}

.hb-wrap {
  max-width: var(--hb-wide);
  margin: 0 auto;
}

.hb-narrow {
  max-width: var(--hb-max);
}

.hb-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hb-orange);
  margin-bottom: 1rem;
}

.hb-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--hb-forest);
  margin: 0 0 1.75rem;
}

.hb-prose {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--hb-muted);
  margin: 0 0 1.5rem;
}

.hb-prose:last-child {
  margin-bottom: 0;
}

.hb-prose strong {
  color: var(--hb-text);
  font-weight: 600;
}

/* ——— Split (text + image, airy) ——— */
.hb-split {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 900px) {
  .hb-split {
    flex-direction: row;
    align-items: center;
    gap: clamp(3rem, 8vw, 6rem);
  }

  .hb-split--reverse {
    flex-direction: row-reverse;
  }

  .hb-split > * {
    flex: 1;
  }
}

.hb-figure {
  margin: 0;
}

.hb-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.hb-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--hb-muted);
  line-height: 1.5;
}

/* ——— Lists (no grid boxes) ——— */
.hb-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.hb-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(26, 61, 46, 0.08);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hb-text);
}

.hb-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hb-orange);
}

.hb-list li:last-child {
  border-bottom: none;
}

/* ——— Plot sizes ——— */
.hb-plots {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 61, 46, 0.12);
}

.hb-plots h3 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--hb-forest);
  margin: 0 0 1rem;
}

.hb-plots p {
  margin: 0.35rem 0;
  font-size: 1rem;
  color: var(--hb-muted);
  line-height: 1.7;
}

/* ——— Brochure ——— */
.hb-brochure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 3rem;
}

.hb-brochure-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.hb-brochure-stack img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hb-brochure-stack img:hover {
  opacity: 0.92;
}

/* ——— CTA ——— */
.hb-cta {
  text-align: center;
  background: var(--hb-forest);
  color: #fff;
  padding: clamp(4rem, 10vw, 6.5rem) clamp(1.5rem, 5vw, 3rem);
}

.hb-cta .hb-title {
  color: #fff;
  margin-left: auto;
  margin-right: auto;
}

.hb-cta .hb-prose {
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hb-cta .hb-hero-actions {
  justify-content: center;
  margin-top: 2rem;
}

/* ——— Reveal ——— */
.hb-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Lightbox reuse */
.hb-page .pc-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
}
