/* Brick & Bloom — Melbourne builder broker */

:root {
  --navy: #1e1b4b;
  --navy-deep: #14122e;
  --navy-mid: #2a2663;
  --lime: #c8d62e;
  --lime-dark: #9db321;
  --cream: #f4f3ef;
  --white: #ffffff;
  --ink: #23214a;
  --muted: #5d5b7a;
  --line: #e3e1d8;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(30, 27, 75, 0.1);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }

.section { padding: 88px 0; }
.section-intro { max-width: 640px; margin: 14px 0 40px; color: var(--muted); font-size: 1.06rem; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lime-dark); margin-bottom: 12px;
}

/* ---------- audience modes ---------- */
/* nothing chosen: only the chooser (and header) show; once a mode is set the
   chooser hides and mode-tagged content appears */
body:not(.mode-fhb):not(.mode-inv) .only-mode,
body:not(.mode-fhb) .only-fhb,
body:not(.mode-inv) .only-inv { display: none !important; }
body.mode-fhb #chooser, body.mode-inv #chooser { display: none !important; }

.mode-toggle {
  display: inline-flex; background: #e9e7dc; border-radius: 999px; padding: 4px; gap: 3px;
}
.mode-toggle button {
  border: none; background: transparent; font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; color: var(--ink); padding: 7px 16px; border-radius: 999px; cursor: pointer;
  transition: background 0.2s ease;
}
.mode-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--lime); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--navy); box-shadow: 0 6px 22px rgba(200, 214, 46, 0.45); }
.btn-primary:hover { background: #d4e23a; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.micro { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* ---------- announcement ---------- */
.announce {
  background: var(--navy); color: var(--cream); text-align: center;
  font-size: 0.9rem; padding: 9px 16px;
}
.announce strong { color: var(--lime); font-weight: 700; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 243, 239, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 50%; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.site-nav a:hover { color: var(--lime-dark); }
.site-nav .btn { padding: 10px 22px; font-size: 0.95rem; min-height: 0; }
@media (max-width: 900px) { .site-nav a:not(.btn) { display: none; } }
@media (max-width: 560px) { .site-nav .btn { display: none; } }

/* ---------- chooser ---------- */
.chooser { padding: 96px 0 110px; text-align: center; }
.chooser h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
.chooser-sub { margin: 18px auto 48px; color: var(--muted); font-size: 1.1rem; max-width: 32rem; }
.chooser-cards { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.door-card {
  background: var(--white); border: 2px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 34px 30px; width: min(100%, 330px);
  cursor: pointer; text-align: center; font-family: var(--font-body);
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.door-card:hover, .door-card:focus-visible { transform: translateY(-6px); border-color: var(--lime); }
.door-card svg { width: 84px; height: auto; margin-bottom: 10px; transition: transform 0.22s ease; }
.door-card:hover svg { transform: rotate(-12deg) scale(1.05); }
.door-card strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.door-card span { font-size: 0.92rem; color: var(--muted); }
.door-card .door-go {
  font-style: normal; font-weight: 700; font-size: 0.9rem; color: var(--lime-dark); margin-top: 10px;
}

/* ---------- heroes ---------- */
.hero { padding: 84px 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center; gap: 48px;
}
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
.hero-sub { margin: 20px 0 24px; color: var(--muted); font-size: 1.06rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.grants-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.grants-strip span {
  background: var(--white); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem;
  box-shadow: var(--shadow); color: var(--muted);
}
.grants-strip strong { color: var(--navy); font-family: var(--font-display); }

.meter-card {
  background: var(--navy); border-radius: var(--radius); padding: 40px 36px; text-align: center;
  color: #b9b7cf; box-shadow: 0 20px 60px rgba(20, 18, 46, 0.35);
}
.meter-label { display: block; font-size: 0.92rem; }
.meter-value {
  display: block; font-family: var(--font-display); font-weight: 800; color: var(--lime);
  font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1.15; font-variant-numeric: tabular-nums;
}
.meter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.meter-chips span {
  background: var(--navy-mid); color: var(--cream); font-size: 0.82rem; padding: 6px 13px; border-radius: 999px;
}
.meter-chips strong { color: var(--lime); }
.meter-label strong { color: var(--cream); font-weight: 700; }
.meter-note {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(244, 243, 239, 0.16);
  font-size: 0.68rem; line-height: 1.55; opacity: 0.72; text-align: left;
}
.meter-note a { color: var(--lime); }

/* ---------- negative gearing widget ---------- */
.ng-ledger { display: grid; gap: 9px; margin: 18px 0 4px; text-align: left; }
.ng-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.9rem; color: #cfcde0; }
.ng-row em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--cream); flex: none; }
.ng-row small { color: #9a97b8; }
.ng-row.total { border-top: 1px solid rgba(244, 243, 239, 0.18); padding-top: 10px; margin-top: 3px; font-weight: 700; color: var(--cream); }
.ng-row.total em { font-weight: 700; }
.ng-row.less { color: #9a97b8; }
.ng-punch {
  background: var(--navy-mid); border-radius: 14px; padding: 16px 18px; margin: 14px 0 4px;
  text-align: left; display: flex; gap: 14px; align-items: center;
}
.ng-punch-num {
  font-family: var(--font-display); font-weight: 800; color: var(--lime); flex: none;
  font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.ng-punch-cap { font-size: 0.82rem; color: var(--cream); line-height: 1.42; }
.ng-punch-cap strong { color: var(--lime); }
.dep-slider-label {
  display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px;
  font-size: 0.85rem; color: #b9b7cf;
}
.dep-slider-label output { font-family: var(--font-display); color: var(--lime); font-size: 1.05rem; }
#ng-slider { width: 100%; accent-color: var(--lime); height: 30px; cursor: pointer; }

/* ---------- trust bar ---------- */
.trust-bar { background: var(--navy); color: var(--cream); padding: 60px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item {
  background: var(--navy-mid); border: 1px solid rgba(200, 214, 46, 0.16);
  border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.trust-item:hover { transform: translateY(-3px); border-color: rgba(200, 214, 46, 0.45); }
.trust-icon {
  width: 46px; height: 46px; border-radius: 13px; background: rgba(200, 214, 46, 0.14);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.trust-icon svg {
  width: 24px; height: 24px; stroke: var(--lime); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.trust-item strong { font-family: var(--font-display); font-size: 1.06rem; color: var(--cream); margin-bottom: 5px; }
.trust-item p { font-size: 0.88rem; opacity: 0.75; margin: 0; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; background: var(--white); min-width: 520px; }
.compare th, .compare td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1rem; color: var(--navy); background: #edecdf; }
.compare thead th.bb-col { background: var(--lime); }
.compare td.no { color: #b0554b; font-weight: 600; }
.compare td.yes { color: var(--lime-dark); font-weight: 700; }
.compare tbody tr:last-child td { border-bottom: none; }
.true-cost {
  margin-top: 26px; background: var(--navy); color: var(--cream); border-radius: var(--radius);
  padding: 22px 28px; font-size: 1.05rem;
}
.true-cost strong { color: var(--lime); }
.footnote { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

/* ---------- investor: vacancy gap ---------- */
.gap-visual { display: grid; gap: 18px; }
.gap-row { display: grid; grid-template-columns: 190px 1fr 170px; gap: 16px; align-items: center; }
.gap-name { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.gap-bar {
  background: #dedbd2; border-radius: 999px; padding: 12px 20px; font-size: 0.88rem; color: var(--muted);
}
.gap-bar.lime { background: var(--lime); color: var(--navy); font-weight: 700; width: 42%; min-width: 250px; }
.gap-cost { font-family: var(--font-display); font-weight: 700; color: #b0554b; font-size: 0.95rem; }
.gap-cost.good { color: var(--lime-dark); }
@media (max-width: 760px) {
  .gap-row { grid-template-columns: 1fr; gap: 6px; }
  .gap-bar.lime { width: 100%; min-width: 0; }
}

.chip-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.chip-grid li {
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
  padding: 10px 14px 10px 36px; font-size: 0.9rem; font-weight: 600; color: var(--ink); position: relative;
}
.chip-grid li::before {
  content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--lime); color: var(--navy);
  font-size: 0.7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- how it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.step-card .num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--lime-dark);
  line-height: 1; margin-bottom: 14px; display: block;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- calculator ---------- */
.calc-section { background: var(--navy); }
.calc-section h2, .calc-section .section-intro { color: var(--cream); }
.calc-section .section-intro { opacity: 0.85; }
.calc-section .eyebrow { color: var(--lime); }
.calc-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; max-width: 720px;
}
.calc-card label { font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; margin-bottom: 14px; }
.calc-card label output { font-family: var(--font-display); color: var(--lime-dark); font-size: 1.2rem; }
input[type="range"] { width: 100%; accent-color: var(--lime-dark); height: 34px; cursor: pointer; }
.calc-result { margin-top: 22px; font-size: 1.25rem; color: var(--ink); }
.calc-result strong { font-family: var(--font-display); color: var(--navy); font-size: 1.7rem; }
.calc-disclaimer { margin-top: 16px; font-size: 0.78rem; color: var(--muted); }

/* ---------- why broker / gearing cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.quote-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.stars { color: var(--lime-dark); letter-spacing: 3px; font-size: 1rem; margin-bottom: 12px; }
.quote-card p { font-size: 0.98rem; margin-bottom: 16px; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.quote-card cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 700px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: grid; gap: 12px; }
.faq-list details {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display);
  font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; color: var(--lime-dark); transition: transform 0.2s ease; flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; }

/* ---------- final CTA + form ---------- */
.cta-section { background: var(--navy); color: var(--cream); }
.cta-section .eyebrow { color: var(--lime); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-grid h2 { color: var(--cream); }
.cta-grid .sub { margin-top: 16px; opacity: 0.85; max-width: 30rem; }
.lead-form {
  background: var(--white); border-radius: var(--radius); padding: 38px; color: var(--ink);
  display: grid; gap: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.form-fields { display: grid; gap: 16px; }
.form-fields > .btn { width: 100%; margin-top: 6px; }
.form-fields .pill-group + .btn { margin-top: 8px; }
.lead-form label { font-weight: 700; font-size: 0.9rem; color: var(--navy); display: grid; gap: 7px; }
.lead-form input[type="text"], .lead-form input[type="tel"] {
  font: inherit; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px; width: 100%;
}
.lead-form input:focus { outline: none; border-color: var(--lime-dark); }
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-group input { position: absolute; opacity: 0; pointer-events: none; }
.pill-group span {
  display: inline-block; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--line);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.15s ease;
}
.pill-group input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.pill-group input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.form-error { color: #b0554b; font-size: 0.82rem; text-align: center; margin: 0; font-weight: 600; }
.form-thanks { display: none; text-align: center; padding: 30px 10px; }
.form-thanks h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-thanks p { color: var(--muted); }
.lead-form.sent .form-fields { display: none; }
.lead-form.sent .form-thanks { display: block; }
@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; gap: 34px; }
  .lead-form { padding: 28px 22px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9b7cf; padding: 56px 0 40px; font-size: 0.85rem; }
.site-footer .footer-logo { width: 58px; height: 58px; border-radius: 50%; margin-bottom: 16px; }
.site-footer .tagline { font-family: var(--font-display); color: var(--cream); font-size: 1.05rem; margin-bottom: 18px; }
.site-footer .tagline em { color: var(--lime); font-style: normal; }
.site-footer .legal { max-width: 820px; line-height: 1.7; opacity: 0.75; display: grid; gap: 12px; font-size: 0.78rem; }
.site-footer .legal strong { color: var(--cream); }
.site-footer .meta { margin-top: 24px; display: flex; gap: 24px; flex-wrap: wrap; opacity: 0.6; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  transform: translateY(120%); transition: transform 0.3s ease;
}
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(20, 18, 46, 0.35); }
.sticky-cta.visible { transform: translateY(0); }
@media (min-width: 701px) { .sticky-cta { display: none !important; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .door-card { transition: none; }
}

/* ---------- responsive hero ---------- */
@media (max-width: 960px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 0.98rem; margin: 14px 0 20px; }
  .hero-ctas .btn { padding: 12px 20px; font-size: 0.95rem; }
  .meter-card { padding: 30px 22px; }
  .section { padding: 64px 0; }
  .chooser { padding: 64px 0 80px; }
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .announce { font-size: 0.8rem; padding: 8px 14px; }
  .site-header .container { height: 64px; }
  .brand img { width: 46px; height: 46px; }
  .mode-toggle button { padding: 7px 13px; font-size: 0.8rem; }

  h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .section { padding: 52px 0; }
  .section-intro { font-size: 0.98rem; }

  .chooser h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .chooser-sub { font-size: 1rem; margin-bottom: 34px; }
  .door-card { width: 100%; padding: 28px 24px 24px; }

  .hero-copy h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .grants-strip span { font-size: 0.82rem; padding: 7px 13px; }
  .meter-value { font-size: clamp(2.6rem, 13vw, 3.2rem); }

  /* comparison tables: smaller cells + a lime edge cue that they scroll */
  .table-wrap {
    background:
      linear-gradient(to right, var(--white) 30%, rgba(255,255,255,0)),
      linear-gradient(to left, var(--white) 30%, rgba(255,255,255,0)) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(30,27,75,0.14), rgba(0,0,0,0)),
      radial-gradient(farthest-side at 100% 50%, rgba(30,27,75,0.14), rgba(0,0,0,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 34px 100%, 34px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .compare { min-width: 480px; }
  .compare th, .compare td { padding: 11px 13px; font-size: 0.84rem; }
  .compare thead th { font-size: 0.86rem; }

  .true-cost { padding: 18px 20px; font-size: 0.98rem; }
  .gap-name { font-size: 0.9rem; }
  .step-card, .why-card, .quote-card, .calc-card, .lead-form { padding: 26px 22px; }
  .stat-card { padding: 26px 22px; }
  .site-footer .meta { gap: 10px 20px; }
}
