/* ─────────────────────────────────────────────────────────────
   Shared styles for suburb pages.
   Matches the brand palette and type used on the homepage.
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #b35e3b;
  --gold-light: #c87555;
  --gold-dark:  #9a4a28;
  --navy:       #22293b;
  --navy-light: #343d5c;
  --taupe:      #c8b2a4;
  --white:      #ffffff;
  --off-white:  #f5f5f7;
  --grey-light: #e8e8ea;
  --grey-text:  #797474;
  --text-dark:  #1a1a1a;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --container:  1000px;
  --radius:     3px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
}
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-actions a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color .25s ease;
}
.nav-actions a:hover { color: var(--gold-light); }
.nav-phone { font-weight: 500; white-space: nowrap; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-light);
  padding: 12px 0;
  font-size: 13px;
  color: var(--grey-text);
}
.breadcrumb a { color: var(--grey-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ── Page head ───────────────────────────────────────────── */
.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-head .overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.15;
}

/* ── Content ─────────────────────────────────────────────── */
.content { padding: 56px 0 24px; }
.content p {
  font-size: 17px;
  color: #333;
  margin-bottom: 20px;
  max-width: 68ch;
}
.content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin: 44px 0 16px;
}
.content h2:first-child { margin-top: 0; }
/* Exclude .btn: this rule is more specific than .btn and was painting the
   button text gold on a gold background, making it invisible. */
.content a:not(.btn) { color: var(--gold); }
.source-note {
  font-size: 13px;
  color: var(--grey-text);
  font-style: italic;
  margin-top: -6px;
}

/* ── Market stats ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--grey-light);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0 14px;
}
.stat {
  background: var(--white);
  padding: 22px 18px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-top: 8px;
}

/* ── Sold list ───────────────────────────────────────────── */
.sold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0 8px;
}
.sold-card {
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .25s ease, transform .25s ease;
}
.sold-card:hover {
  box-shadow: 0 8px 26px rgba(34,41,59,.13);
  transform: translateY(-3px);
}
.sold-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  background: var(--grey-light);
}
.sold-card .body { padding: 16px 18px 18px; }
.sold-card .addr {
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.35;
}
.live-badge { background: #2e7d32; }
.sold-card .sold-suburb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 5px;
}
.sold-card .meta {
  font-size: 13px;
  color: var(--grey-text);
  margin-top: 6px;
}
.sold-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 10px;
}

/* ── Data tables ─────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 26px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 440px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 6px;
  overflow: hidden;
}
.data-table thead th {
  background: var(--off-white);
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-text);
  padding: 13px 20px;
  border-bottom: 1px solid var(--grey-light);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid #f1f1f3;
  color: #444;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .18s ease; }
.data-table tbody tr:hover { background: #fafafb; }

.data-table .school-name  { font-weight: 500; color: var(--navy); }
.data-table .school-level { color: var(--grey-text); font-size: 14px; }

/* Sector shown as a pill rather than plain text: scannable at a glance */
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.pill-public  { background: rgba(34,41,59,.09);  color: var(--navy); }
.pill-private { background: rgba(179,94,59,.13); color: var(--gold-dark); }

/* ── Testimonials ────────────────────────────────────────── */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin: 28px 0 12px;
}
.quote {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 6px;
  padding: 38px 32px 28px;
  margin: 0;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.quote:hover {
  box-shadow: 0 6px 26px rgba(34,41,59,.07);
  border-color: #dcdce0;
}

/* Decorative opening mark, sitting behind the text */
.quote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 24px;
  font-family: var(--font-serif);
  font-size: 62px;
  line-height: 1;
  color: var(--gold);
  opacity: .2;
  pointer-events: none;
}

.quote blockquote {
  position: relative;
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: #3a3a3a;
}

.quote figcaption {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-light);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { margin-top: 12px; }
.faq details {
  border-bottom: 1px solid var(--grey-light);
  padding: 18px 0;
}
.faq summary {
  font-weight: 500;
  font-size: 16.5px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p {
  margin: 14px 0 0;
  font-size: 16px;
  color: #444;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  padding: 30px 32px;
  border-radius: var(--radius);
  margin: 48px 0 8px;
}
.cta h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 10px;
}
.cta p { margin-bottom: 20px; font-size: 16px; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s ease;
}
.btn:hover { background: var(--gold-dark); }
.btn-line { margin-top: 14px; font-size: 15px; }
.btn-line a { color: var(--navy); font-weight: 500; text-decoration: none; }
.btn-line a:hover { text-decoration: underline; }

/* ── Nearby ──────────────────────────────────────────────── */
.nearby {
  border-top: 1px solid var(--grey-light);
  margin-top: 52px;
  padding-top: 32px;
}
.nearby h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 14px;
}
.nearby-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nearby-links a {
  border: 1px solid var(--grey-light);
  border-radius: 2px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.nearby-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 44px 0 36px;
  margin-top: 60px;
  font-size: 14px;
}
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-meta { margin-top: 18px; font-size: 12.5px; opacity: .65; line-height: 1.8; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .container     { padding: 0 18px; }
  .page-head     { padding: 44px 0 40px; }
  .content       { padding: 40px 0 16px; }
  .content p     { font-size: 16px; }
  .cta           { padding: 24px 20px; }
  .nav-logo      { font-size: 20px; }
  .nav-actions a:not(.nav-phone) { display: none; }
  .stat          { padding: 18px 12px; }
  .stat-value    { font-size: 23px; }

  .quotes        { gap: 18px; margin: 22px 0 10px; }
  .quote         { padding: 32px 22px 24px; }
  .quote::before { font-size: 52px; left: 16px; }
  .quote blockquote { font-size: 15.5px; }

  .data-table thead th { padding: 11px 14px; }
  .data-table tbody td { padding: 13px 14px; }
}
