/* Perth Granny Flat Builders: eucalyptus ink on warm sand, terracotta for the granny flat and calls to action */
:root {
  --ink: #1f3a2e;
  --ink-soft: #55665c;
  --paper: #fffdf8;
  --sand: #f6f0e4;
  --grid: #ece4d6;
  --rule: #d9cfbd;
  --bound: #c4552d;
  --bound-deep: #9c3f1e;
  --leaf: #4f7a5e;
  --s-1: .875rem; --s0: 1.0625rem; --s1: 1.3rem; --s2: 1.7rem; --s3: 2.3rem; --s4: 3.1rem;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-size: var(--s0); line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--bound-deep); text-underline-offset: 3px; }
a:hover { color: var(--bound); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 650; line-height: 1.12; margin: 1.4em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, var(--s4)); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 2.8vw, var(--s3)); }
h3 { font-size: var(--s1); }
p, ul, ol { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.small { font-size: var(--s-1); color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo span small { display: block; font-family: "Source Sans 3", sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current] { color: var(--bound-deep); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); border-radius: 4px; }
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 10px 22px 20px; border-bottom: 1px solid var(--rule); gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--grid); }
  .nav .btn { margin-top: 10px; text-align: center; border: 0; }
}

/* Buttons */
.btn { display: inline-block; background: var(--bound); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 4px; border: 2px solid var(--bound); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; }
.btn:hover { background: var(--bound-deep); border-color: var(--bound-deep); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }

/* Hero */
.hero { padding: 54px 0 46px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 36em; }
.hero-note { font-size: var(--s-1); color: var(--ink-soft); margin-top: 1em; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 1.4em 0 0; }
.stats li { font-size: var(--s-1); color: var(--ink-soft); }
.stats strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Plan illustration */
.plan { margin: 0; background: #fff; border: 1px solid var(--rule); padding: 14px; box-shadow: 0 10px 30px rgba(31,58,46,.08); }
.plan figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .plan .flat { animation: rise .8s ease-out .3s both; }
  .plan .crane { animation: fade .6s ease-out 1.1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.section { padding: 58px 0; }
.section-alt { background: var(--sand); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 46em; margin-bottom: 26px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); }

/* Three-up */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.paths > div { background: #fff; border: 1px solid var(--rule); padding: 22px; }
.paths h3 { margin-top: 0; }
.paths p { color: var(--ink-soft); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; }
.steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; margin-top: 2px; }
.steps h3 { margin: 0 0 .3em; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Model cards */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.model { background: #fff; border: 1px solid var(--rule); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.model:hover { border-color: var(--bound); transform: translateY(-2px); color: var(--ink); }
.model .mplan { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 14px; }
.model .mbody { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.model h3 { margin: 0 0 4px; }
.model .meta { font-size: var(--s-1); color: var(--ink-soft); margin: 0 0 10px; }
.model .price { margin-top: auto; font-weight: 700; color: var(--bound-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.chips li { font-size: .8rem; background: var(--sand); border: 1px solid var(--rule); padding: 2px 8px; border-radius: 99px; }

/* Content pages */
.page-head { padding: 40px 0 30px; border-bottom: 1px solid var(--rule); background: var(--sand); }
.crumbs { font-size: var(--s-1); color: var(--ink-soft); margin-bottom: 12px; }
.crumbs a { color: var(--ink-soft); }
.page-body { padding: 40px 0 56px; }
.page-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; }
.page-body .wrap.single { grid-template-columns: minmax(0, 820px); }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }
aside .box { position: sticky; top: 92px; }
@media (max-width: 900px) { .page-body .wrap { grid-template-columns: 1fr; } aside .box { position: static; } }
.box { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--bound); padding: 20px; }
.box .big { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; font-weight: 700; margin: 2px 0 10px; line-height: 1.15; }
.box ul { padding-left: 1.1em; }
.box .btn { width: 100%; text-align: center; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1em 0 .6em; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .98rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 700; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num span { display: block; font-size: .8rem; color: var(--ink-soft); white-space: normal; }
.compare td:first-child, .spec td:first-child { font-weight: 700; width: 34%; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 1.2em 0; counter-reset: t; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 18px 58px; margin-left: 18px; border-left: 2px solid var(--rule); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: counter(t); position: absolute; left: -19px; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.timeline li.onsite::before { background: var(--bound); }
.timeline h3 { margin: 4px 0 .2em; }
.timeline .when { font-size: var(--s-1); font-weight: 700; color: var(--bound-deep); margin: 0 0 .3em; }
.timeline p { color: var(--ink-soft); margin: 0; }

/* Big plan on model page */
.bigplan { border: 1px solid var(--rule); background: #fff; padding: 18px; margin: 0 0 1.4em; }
.bigplan figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--bound); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7em 0 0; color: var(--ink-soft); }

/* CTA band */
.cta { background: var(--ink); color: #fff; padding: 44px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.cta h2 { margin: 0 0 .3em; color: #fff; }
.cta p { margin: 0; color: #d6e0da; }
.cta .btn-line { color: #fff; border-color: #fff; }
.cta .btn-line:hover { background: #fff; color: var(--ink); }
.cta .btn-row { margin: 0; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; background: #fff; border: 1px solid var(--rule); padding: 22px; margin: 1.2em 0 2em; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.form .hint { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #bfb39d; border-radius: 4px; background: #fff; color: var(--ink); }
.form textarea { min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(196,85,45,.25); border-color: var(--bound); }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: #172b22; color: #c9d4cd; padding: 46px 0 26px; font-size: .95rem; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-foot h3 { color: #fff; font-size: 1.05rem; margin: 0 0 .7em; }
.site-foot ul { list-style: none; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .legal { border-top: 1px solid #2d4639; margin-top: 26px; padding-top: 18px; font-size: .82rem; color: #9fb0a6; }
@media (max-width: 780px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
  .callbar a { padding: 14px 8px; text-align: center; font-weight: 700; text-decoration: none; color: #fff; background: var(--ink); }
  .callbar a + a { background: var(--bound); }
  body { padding-bottom: 52px; }
}
