/* ── Building landing pages ── */

body.building-page #header {
  display: none !important;
}

body.building-page .main {
  padding-top: 0;
}

.building-hero {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding-top: 80px;
}

.building-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 17, 10, 0.55) 0%,
    rgba(20, 17, 10, 0.15) 50%,
    rgba(20, 17, 10, 0.65) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.building-hero .hero-topstrip,
.building-hero .hero-content {
  position: relative;
  z-index: 2;
}

.building-hero .hero-topstrip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 0;
}

.building-hero .hero-brand {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  text-decoration: none;
}

.building-hero .hero-brand small {
  display: block;
  margin-top: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #f0e8cf;
  opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.building-hero .stamp-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.building-stamp,
.nbn-pill {
  display: inline-flex;
  align-items: stretch;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

@media (min-width: 768px) {
  .building-stamp,
  .nbn-pill {
    font-size: 1rem;
  }

  .building-stamp .seg-left {
    gap: 7px;
    padding: 10px 30px 10px 18px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    margin-right: -12px;
  }

  .building-stamp .seg-right {
    padding: 10px 20px;
  }

  .nbn-pill .seg-left {
    padding: 9px 28px 9px 18px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    margin-right: -12px;
  }

  .nbn-pill .seg-right {
    padding: 9px 20px;
  }
}

.building-stamp {
  color: #2b2314;
  background: #f0c850;
}

.building-stamp .seg-left {
  background: #e8b830;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 20px 6px 12px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  margin-right: -8px;
}

.building-stamp .seg-right {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
}

.nbn-pill {
  color: #fff;
  background: #4a3f2f;
}

.nbn-pill .seg-left {
  background: #2b2314;
  display: inline-flex;
  align-items: center;
  padding: 5px 18px 5px 12px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  margin-right: -8px;
}

.nbn-pill .seg-right {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
}

.building-hero .hero-content {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

.building-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  max-width: 640px;
  margin: 0 0 1.25rem;
}

.building-hero h1 .accent-text {
  color: var(--accent-color);
}

.building-hero .address-search-wrap {
  max-width: 560px;
}

.building-hero .search-pitch-label {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}

.building-hero .search-pitch-input {
  background: rgba(255,255,255,.95);
}

.suburb-copy {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 680px;
}

.stat-tile {
  padding: 1.5rem 1.25rem;
}

.stat-tile .stat-label-top {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6c757d;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-tile .stat-price {
  display: flex;
  align-items: baseline;
  gap: 1px;
  color: var(--heading-color);
}

.stat-tile .stat-price .stat-c {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-tile .stat-price .stat-a {
  font-family: 'Nunito', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-tile .stat-price .stat-cents {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  align-self: flex-end;
  padding-bottom: 0.2rem;
}

.stat-tile .stat-price .stat-p {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6c757d;
  margin-left: 0.15rem;
}

.stat-tile .stat-price .stat-unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  margin-left: 0.1rem;
}

.stat-tile .stat-spd {
  display: inline-block;
  background: #fef6dc;
  color: #4a3f2f;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ── Search button: match index.html hero styling ── */
.building-hero #address-search-btn {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}
.building-hero #address-search-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 20%);
  border-color: color-mix(in srgb, var(--accent-color), black 20%);
}

/* ── "See all plans" and similar CTA buttons on building pages ── */
.btn-building {
  background-color: #f0c850;
  border-color: #f0c850;
  color: #2b2314;
  font-weight: 700;
}
.btn-building:hover {
  background-color: #e8b830;
  border-color: #e8b830;
  color: #2b2314;
}

/* ── Mobile: wrap pills to line below the logo ── */
/* Keep flex-direction: row so justify-content/z-index behaviour is unchanged.
   Force the brand to a full row so the stamp-stack wraps underneath. */
@media (max-width: 767px) {
  .building-hero .hero-topstrip {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .building-hero .hero-brand {
    flex: 0 0 100%;
  }
  .building-hero .stamp-stack {
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .building-hero { min-height: 90vh; }
  .building-hero .hero-topstrip { padding: 1.25rem 1.25rem 0; }
  .building-hero .hero-content { padding: 0 1.25rem 2rem; }
}

/* ── Print: swap in the full-res PNG set via inline CSS custom property ── */
@media print {
  .building-hero {
    background-image: var(--print-hero-bg) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
