/* RWC Melbourne. Palette nods to Melbourne's tram green and yellow. */
:root {
  --green: #0b5d4b;
  --green-dark: #07402f;
  --green-tint: #e6f0ec;
  --gold: #ffc72c;
  --gold-dark: #e5ac00;
  --ink: #14211d;
  --muted: #55625d;
  --line: #d9dfdc;
  --bg: #ffffff;
  --bg-alt: #f5f3ee;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 64, 47, .12), 0 2px 6px rgba(7, 64, 47, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow-wrap { max-width: 820px; }
.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.small { font-size: .85rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.brand b { color: var(--green); font-weight: 800; }
.brand-light { color: #fff; }
.brand-light b { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--green); }
.site-nav a.btn { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 750; text-decoration: none; border: 0; border-radius: 10px; padding: 14px 24px; font-size: 1rem; cursor: pointer; transition: background .15s, transform .15s; font-family: inherit; }
.btn:hover { background: var(--gold-dark); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); }
.btn-ghost { background: transparent; border: 2px solid var(--green); color: var(--green); }

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 70%); color: #fff; padding: 48px 0 150px; overflow: hidden; }
.hero-sub { padding-top: 18px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; position: relative; z-index: 2; }
.hero-copy { padding-top: 24px; }
.hero h1 { color: #fff; }
.hero .pc { display: inline-block; font-size: .45em; vertical-align: middle; background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 6px; font-weight: 650; letter-spacing: .02em; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: inherit; opacity: .95; max-width: 640px; }
.hero a { color: var(--gold); }
.hero-note { font-size: .95rem; opacity: .9; }
.skyline { position: absolute; bottom: 0; left: 0; width: 100%; height: 140px; fill: rgba(255,255,255,.08); z-index: 1; }
.trust { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.trust li { padding-left: 38px; position: relative; font-size: .97rem; opacity: .95; }
.trust li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2314211d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.trust b { display: block; color: #fff; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .85rem; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.hero .crumbs a { color: #fff; opacity: .85; }
.hero .crumbs li[aria-current] { opacity: .7; }

/* Form */
.lead-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.form-title { font-size: 1.4rem; margin-bottom: 4px; }
.form-sub { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.lead-form label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 12px; }
.lead-form input, .lead-form select, .lead-form textarea { display: block; width: 100%; margin-top: 5px; font: inherit; font-size: 1rem; font-weight: 400; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,93,75,.15); }
.lead-form.tried :invalid { border-color: var(--danger); }
.lead-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.lead-form .opt { color: var(--muted); font-weight: 400; }
.lead-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .82rem; color: var(--muted); }
.lead-form .check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.lead-form.tried .check input:invalid { outline: 2px solid var(--danger); }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { margin: 10px 0 0; font-size: .9rem; min-height: 1em; }
.form-status.err { color: var(--danger); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--gold); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230b5d4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks.warn li::before { background: #fdecc8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v8M12 18v.5' fill='none' stroke='%23a15c00' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Regions */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.region-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips a, .chips span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-dark); text-decoration: none; font-size: .9rem; font-weight: 550; }
.chips a:hover { background: var(--green); color: #fff; }
.chips span { background: var(--bg-alt); color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.nearby { margin-top: 48px; }

/* CTA band */
.cta-band { background: var(--green-dark); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .85; }

/* Page head + articles */
.page-head { background: var(--bg-alt); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.page-head .lead { color: var(--muted); }
.updated { font-size: .85rem; color: var(--muted); margin: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.sidebar { position: sticky; top: 92px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.callout { background: #fff8e1; border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--green); color: #fff; font-weight: 650; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }
.check-grid > div { background: var(--bg-alt); border-radius: 12px; padding: 18px; }
.check-grid h3 { margin: 0 0 6px; color: var(--green); }
.check-grid p { margin: 0; font-size: .95rem; color: var(--muted); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border: 2px solid var(--green); border-radius: 4px; }

/* Suburb hub */
.hub-region { margin-bottom: 44px; }
.hub-region > p { color: var(--muted); max-width: 760px; }
.hub-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hub-list a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.hub-list a:hover { border-color: var(--green); box-shadow: var(--shadow); }
.hub-list b { display: block; color: var(--green); }
.hub-list span { font-size: .85rem; color: var(--muted); }

/* Footer */
.site-footer { background: #0e1a16; color: #b9c4bf; padding: 56px 0 90px; font-size: .92rem; }
.site-footer a { color: #dfe7e3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid #23332d; }
.footer-about .small { color: #8a9893; }
.footer-suburbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid #23332d; font-size: .85rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .85rem; }
.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .two-col, .article-grid, .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .regions { grid-template-columns: 1fr 1fr; }
  .footer-suburbs { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav a.btn { text-align: center; margin-top: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 0 110px; }
  .hero-copy { padding-top: 0; }
  .section { padding: 52px 0; }
  .steps, .regions, .check-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-suburbs { grid-template-columns: 1fr 1fr; }
  .lead-form { padding: 22px 18px; }
  .lead-form .grid-2 { grid-template-columns: 1fr; }
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--gold); color: var(--ink); text-align: center; font-weight: 800; padding: 14px; border-radius: 12px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
}
