/* =================================================================
   SUBURB LANDING PAGES — SHARED STYLES
   ================================================================= */

/* ---- Hero ---- */

.suburb-hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Hero variant that embeds the appraisal form directly in the hero,
   so the ask (book a free appraisal) is visible with zero scrolling —
   the whole point of an ad landing page. */
.suburb-hero--form {
  height: auto;
  min-height: 0;
  padding: 150px 0 70px;
  display: block;
}

.suburb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.5) 0%, rgba(20,20,20,0.45) 100%);
}

.suburb-hero--form .suburb-hero-overlay {
  background: linear-gradient(115deg, rgba(15,15,15,0.72) 0%, rgba(15,15,15,0.52) 55%, rgba(15,15,15,0.3) 100%);
}

.suburb-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 80px 32px 0;
  color: var(--color-white);
}

.suburb-hero-content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.suburb-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 34px;
  max-width: 480px;
}

/* ---- Hero appraisal form (ad-landing pages) ---- */

.suburb-hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.suburb-hero--form .suburb-hero-content {
  padding: 0;
  max-width: none;
}

.suburb-hero--form .suburb-hero-sub {
  margin-bottom: 30px;
}

.hero-appraisal-card {
  background: var(--color-white);
  padding: 40px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.hero-appraisal-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.hero-appraisal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.25;
  margin-bottom: 26px;
}

.hero-appraisal-form .form-row { margin-bottom: 16px; }
.hero-appraisal-form .btn { width: 100%; }
.hero-appraisal-form .form-note { margin-top: 14px; }

/* ---- Intro / Two-column ---- */

.suburb-intro {
  padding: 110px 0 100px;
}

.suburb-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.suburb-copy p {
  color: var(--color-body);
  font-size: 17px;
  margin-bottom: 20px;
}

/* ---- Highlights sidebar ---- */

.suburb-highlights {
  background: var(--color-bg-soft);
  padding: 36px;
  border-top: 3px solid var(--color-accent);
  position: sticky;
  top: 100px;
}

.suburb-highlights h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 24px;
}

.highlight-list {
  list-style: none;
}

.highlight-list li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

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

.highlight-list li span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.highlight-list li strong {
  color: var(--color-heading);
  font-weight: 500;
}

/* ---- Services grid ---- */

.suburb-services {
  padding: 100px 0;
  background: var(--color-bg-soft);
}

.suburb-services .section-title {
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-block {
  padding: 36px;
  background: var(--color-white);
  border-top: 3px solid var(--color-accent);
}

.service-block h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 14px;
}

.service-block p {
  font-size: 15px;
  color: var(--color-body);
  line-height: 1.7;
}

/* ---- CTA band ---- */

.suburb-cta {
  padding: 100px 0;
  background: var(--color-heading);
}

.cta-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-box .eyebrow {
  color: rgba(255,255,255,0.6);
}

.cta-box .section-title {
  color: var(--color-white);
  margin-bottom: 18px;
}

.cta-box p {
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  margin-bottom: 36px;
}

.cta-box .btn-dark {
  background: var(--color-white);
  color: var(--color-heading);
}

.cta-box .btn-dark:hover {
  background: rgba(255,255,255,0.88);
}

/* ---- Select field ---- */

.form-row select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-heading);
  appearance: none;
  cursor: pointer;
}

.form-row select:focus {
  outline: 2px solid var(--color-heading);
  outline-offset: 3px;
  border-color: var(--color-heading);
}

/* ---- Suburb links ---- */

.suburb-links .eyebrow {
  color: var(--color-muted);
}

.suburb-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.suburb-link-list a {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  color: var(--color-accent);
  transition: background 0.25s ease, color 0.25s ease;
}

.suburb-link-list a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* ---- Market Data Section ---- */

.suburb-market {
  padding: 100px 0;
  background: var(--color-heading);
  background-image: radial-gradient(ellipse at 70% 0%, rgba(255,255,255,0.03) 0%, transparent 60%);
  color: var(--color-white);
}

.suburb-market .eyebrow { color: rgba(255,255,255,0.45); }
.suburb-market .section-title { color: var(--color-white); margin-bottom: 48px; }

.market-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 72px;
}

.market-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 3px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.25s, transform 0.25s;
}
.market-stat:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-3px);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-value sup {
  font-size: 0.38em;
  vertical-align: super;
  letter-spacing: 0;
  color: rgba(255,255,255,0.7);
}
.stat-value sub {
  font-size: 0.32em;
  letter-spacing: 0;
  color: rgba(255,255,255,0.7);
}
.stat-positive { color: #6ee7a0; }

.stat-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.55;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* Price chart */
.price-chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 40px 36px 32px;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 0;
  position: relative;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.bar-fill {
  width: 100%;
  height: var(--h);
  background: rgba(255,255,255,0.15);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: barGrow 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.chart-bar--now .bar-fill {
  background: linear-gradient(to top, rgba(255,255,255,0.65), rgba(255,255,255,0.45));
}

.bar-price {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
  white-space: nowrap;
  animation: barFade 0.6s ease both;
  animation-delay: 0.5s;
}

@keyframes barFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.chart-bar--now .bar-price { color: rgba(255,255,255,0.85); font-weight: 600; }

.bar-year {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  margin-top: 10px;
  letter-spacing: 0.04em;
}
.chart-bar--now .bar-year { color: rgba(255,255,255,0.8); font-weight: 600; }

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .market-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .suburb-market { padding: 80px 0; }
  .stat-value { font-size: 42px; }
  .price-chart { padding: 28px 20px 24px; }
  .chart-bars { height: 140px; gap: 5px; }
  .bar-price { font-size: 8px; }

  .suburb-intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .suburb-highlights {
    position: static;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .suburb-intro { padding: 80px 0; }
  .suburb-services { padding: 80px 0; }
  .suburb-cta { padding: 80px 0; }
}

@media (max-width: 760px) {
  .suburb-hero:not(.suburb-hero--form) { height: 60vh; }
  .suburb-hero-content { padding-top: 60px; }

  .suburb-hero--form { padding: 120px 0 48px; }
  .suburb-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-appraisal-card { padding: 28px; order: -1; }
  .suburb-hero-content { order: 2; }
}

@media (max-width: 480px) {
  .suburb-highlights { padding: 24px; }
  .service-block { padding: 24px; }
  .hero-appraisal-card { padding: 22px; }
  .hero-appraisal-title { font-size: 21px; }
}
