/* ============================================================
   Daniel Hindmarsh — Belle Property Northern Beaches
   Brand values sampled directly from the 2026 suburb reports.
   ============================================================ */

@font-face {
  font-family: "Quiche Sans";
  src: url("fonts/QuicheSans-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Quiche Sans";
  src: url("fonts/QuicheSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Quiche Sans";
  src: url("fonts/QuicheSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Quiche Sans";
  src: url("fonts/QuicheSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #386250;
  --green-mid: #5b8272;
  --green-soft: #89a195;
  --green-pale: #c1cfc8;
  --sage: #edf4f0;
  --ink: #1f2321;
  --ink-60: #5c635f;
  --line: #dfe6e2;
  --white: #fff;

  --display: "Quiche Sans", "Iowan Old Style", Georgia, serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* clears the mobile action bar */
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

section {
  padding-block: clamp(56px, 8vw, 104px);
  /* the topbar is sticky, so anchor targets have to clear its height or the
     section heading lands underneath it */
  scroll-margin-top: 76px;
}
/* Alternation is computed, so adding or removing a section can never leave
   two same-coloured bands side by side. */
main > section:nth-child(even) { background: var(--sage); }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.section-head h2 .accent { color: var(--green); }
.section-head p { color: var(--ink-60); margin: 14px 0 0; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--green);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.topbar .brand { display: flex; align-items: center; gap: 14px; }
.topbar .brand img { height: 34px; width: auto; display: block; }
.topbar .brand span {
  font-family: var(--display);
  font-size: 15px;
}
@media (max-width: 600px) {
  .topbar .wrap { min-height: 64px; }
  .topbar .brand img { height: 26px; }
}
.topnav { display: flex; gap: 26px; font-size: 14px; }
.topnav a { text-decoration: none; opacity: .85; }
.topnav a:hover { opacity: 1; }
@media (max-width: 900px) { .topnav { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: #2c4f40; border-color: #2c4f40; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: var(--white); }
.btn.light { background: var(--white); color: var(--green); border-color: var(--white); }
.btn.light:hover { background: var(--sage); border-color: var(--sage); color: var(--green); }
.btn.block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); line-height: 1.05; }
.hero h1 .accent { color: var(--green); display: block; }
.hero .lede { color: var(--ink-60); font-size: clamp(16px, 1.6vw, 19px); margin: 22px 0 0; max-width: 46ch; }
.hero-rule { height: 1px; background: var(--line); margin: 28px 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-portrait {
  background: var(--sage);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .ph { color: var(--green-soft); font-size: 13px; text-align: center; padding: 20px; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; }
}

/* ---------- stat tiles ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--sage);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.stat.is-highlight { background: var(--green); }
.stat .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--green);
  line-height: 1.1;
}
.stat.is-highlight .v, .stat.is-highlight .l { color: var(--white); }
.stat .l { font-size: 13px; color: var(--ink-60); margin-top: 8px; overflow-wrap: break-word; }
.stat .v.empty { color: var(--green-pale); }

/* Tighter tiles when nested inside a card, so labels don't clip. */
.stats.in-card { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.stats.in-card .stat { padding: 16px 8px; }
.stats.in-card .stat .v { font-size: clamp(19px, 2.2vw, 24px); }
.stats.in-card .stat .l { font-size: 11.5px; margin-top: 6px; line-height: 1.35; }

.source-line {
  font-size: 12.5px;
  color: var(--ink-60);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(91,130,114,.22);
  flex: none;
}

/* ---------- period tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  padding: 9px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-60);
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--white); }

/* ---------- property cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.card .thumb { aspect-ratio: 3 / 2; background: var(--sage); display: grid; place-items: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { color: var(--green-soft); font-size: 12px; }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .status {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
  background: var(--sage);
  padding: 4px 10px;
  border-radius: 999px;
}
.card .addr { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; }
.card .price { font-family: var(--display); font-weight: 700; color: var(--green); font-size: 19px; }
.card .attrs { font-size: 13.5px; color: var(--ink-60); display: flex; gap: 14px; flex-wrap: wrap; }
.card .result {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-60);
}

/* ---------- empty / placeholder states ---------- */
.empty-state {
  border: 1px dashed var(--green-pale);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  color: var(--ink-60);
  background: var(--white);
  font-size: 15px;
}
.badge-sample {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a6d1f;
  background: #fdf4dc;
  border: 1px solid #efdca6;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- report cards ---------- */
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.report {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.report h3 { font-size: 24px; }
.report .period { font-size: 13.5px; color: var(--ink-60); margin: 6px 0 20px; }
.report .stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.report .stat { padding: 16px 10px; }
.report .stat .v { font-size: 20px; }
.report .stat .l { font-size: 11.5px; }
.report .footnote { font-size: 12px; color: var(--ink-60); margin: 14px 0 20px; }

/* ---------- belle blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-thumb { display: block; aspect-ratio: 16 / 9; background: var(--sage); text-decoration: none; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb .ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-soft);
}
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat {
  align-self: flex-start;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); background: var(--sage);
  padding: 5px 10px; border-radius: 2px;
}
.post h3 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--green); }
.post-body p { font-size: 14.5px; color: var(--ink-60); margin: 0; }
.post-meta {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-60);
}

/* ---------- meet the team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.member .portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sage);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.member .portrait img { width: 100%; height: 100%; object-fit: cover; }
.member .portrait .initials {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  color: var(--green);
}
.member h3 { font-family: var(--display); font-weight: 700; font-size: 20px; }
.member h3 a { color: inherit; text-decoration: none; }
.member h3 a:hover { color: var(--green); }
.member .role { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-mid); margin: 0; }
.member .bio { font-size: 14.5px; color: var(--ink-60); margin: 8px 0 0; }
.member .contact { margin: auto 0 0; padding-top: 14px; font-size: 14px; }
.member .contact a { color: var(--green); text-decoration: none; font-weight: 600; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.step .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  background: var(--green);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-60); font-size: 15px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.quote {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  min-height: 280px;
  display: flex;
}
.quote-inner {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.quote .stars { color: var(--green); letter-spacing: 2px; font-size: 14px; }
.quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; }
.quote .who { margin-top: auto; font-size: 13.5px; color: var(--ink-60); display: grid; gap: 2px; }
.quote .who strong { color: var(--ink); font-weight: 700; }
.quote .who .prop a { color: inherit; }

/* The property the review relates to, sitting behind the quote. */
.quote.has-property { border-color: transparent; }
.quote .quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.quote.has-property::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31,35,33,.58) 0%, rgba(31,35,33,.76) 45%, rgba(56,98,80,.93) 100%);
}
.quote.has-property .quote-inner { color: var(--white); }
.quote.has-property .stars,
.quote.has-property blockquote,
.quote.has-property .who strong { color: #fff; }
.quote.has-property .who { color: rgba(255,255,255,.78); }
.quote.has-property .who .prop a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- forms ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
}
.panel.on-green { background: var(--green); color: var(--white); border-color: var(--green); }
.panel.on-green .section-head p, .panel.on-green label { color: rgba(255,255,255,.82); }
.panel.on-green .eyebrow { color: var(--green-pale); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-60); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green-mid);
  outline-offset: 1px;
  border-color: var(--green-mid);
}
.checks { display: grid; gap: 10px; margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { margin-top: 3px; flex: none; }
.form-note { font-size: 12.5px; color: var(--ink-60); margin-top: 14px; }
.panel.on-green .form-note { color: rgba(255,255,255,.7); }

.form-status { font-size: 14px; margin-top: 14px; font-weight: 700; }
.form-status.ok { color: var(--green); }
.panel.on-green .form-status.ok { color: var(--green-pale); }
.form-status.err { color: #a8321f; }

/* ---------- socials ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  background: var(--white);
}
.social:hover { border-color: var(--green); color: var(--green); }
.social[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- footer ---------- */
footer {
  background: var(--green);
  color: var(--white);
  padding-block: 44px;
  font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
footer a { text-decoration: none; }
footer .fine { color: rgba(255,255,255,.66); font-size: 12.5px; margin-top: 10px; max-width: 62ch; }
footer .name { font-family: var(--display); font-weight: 700; font-size: 17px; }

/* ---------- sticky mobile action bar ---------- */
.actionbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  z-index: 60;
}
.actionbar .btn { flex: 1; padding: 13px 10px; font-size: 14px; }
@media (max-width: 900px) { .actionbar { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
