/* Shared stylesheet for the rank-and-rent heat pump network.
   FIXED across the network, copy unchanged into every site. Do not tokenise.
   The palette (blue + warm orange accent) is the house style for all sites.
   Mobile-first. */

:root {
  --blue: #14497b;
  --blue-dark: #0e3457;
  --blue-light: #1d6fb8;
  --accent: #f57c00;      /* warm heating accent */
  --accent-dark: #e06b00;
  --ink: #1c2733;
  --body: #36424e;
  --muted: #5d6b78;
  --line: #dde3e9;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --bg-blue-soft: #eaf1f8;
  --ok: #1f8a4c;
  --maxw: 1120px;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-light); }
a:hover { color: var(--blue); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: 2rem; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(20,73,123,.06);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo {
  font-weight: 800; font-size: 1.15rem; color: var(--blue); text-decoration: none;
  white-space: nowrap; letter-spacing: -.02em;
}
.logo span { color: var(--accent); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 12px; color: var(--ink); text-decoration: none;
  font-size: .96rem; font-weight: 600; border-radius: 6px;
}
.main-nav a:hover { background: var(--bg-blue-soft); color: var(--blue); }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 16px; border-radius: 6px; font-weight: 700; white-space: nowrap;
}
.header-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer; padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);
  color: #fff; padding: 80px 0;
}
.hero h1 { color: #fff; max-width: 15em; font-size: clamp(2.4rem, 5vw, 3.95rem); line-height: 1.15; }
.hero p.lead { font-size: 1.18rem; color: #e7eef6; max-width: 38em; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700;
  color: #ffd9a8; margin: 0 0 .9em;
}
.hero .eyebrow::before { content: ""; display: block; width: 26px; height: 2px; background: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; padding: 13px 22px; border-radius: 7px; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero with form ---------- */
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }

/* ---------- Quote form ---------- */
.quote-card {
  background: #fff; color: var(--body); border-radius: 12px; padding: 24px;
  box-shadow: 0 18px 40px rgba(8,30,52,.28);
}
.quote-card h2 { margin-top: 0; font-size: 1.3rem; }
.quote-card .form-note { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c5cfd8; border-radius: 6px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--blue-light); border-color: var(--blue-light);
}
.form-row textarea { min-height: 84px; resize: vertical; }
.form-fine { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Main content ---------- */
main { display: block; }
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-blue { background: var(--bg-blue-soft); }
.prose { max-width: 860px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.lead-answer {
  font-size: 1.1rem; color: var(--ink); border-left: 4px solid var(--accent);
  background: var(--bg-soft); padding: 14px 18px; border-radius: 0 8px 8px 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 12px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 6px; color: #aab4be; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: 14px; box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 14px 32px rgba(20,73,123,.12); }
table.data {
  width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; background: #fff;
}
table.data caption { text-align: left; font-weight: 700; color: var(--ink); padding: 14px 16px 2px; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--blue); color: #fff; border-bottom: none; }
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Cards / grids ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border: none; border-radius: 16px; padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .3s ease, transform .3s ease;
}
.card h3 { margin-top: 0; }
.card.linked:hover { box-shadow: 0 8px 12px rgba(0,0,0,.06), 0 24px 52px rgba(0,0,0,.18); transform: translateY(-5px); }
.card a.card-link {
  text-decoration: none; color: #fff; background: var(--blue); border: 2px solid var(--blue);
  font-weight: 700; display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.2rem; border-radius: 8px; transition: background .2s, color .2s;
}
.card a.card-link:hover { background: #fff; color: var(--blue); }

.feature-list { list-style: none; padding: 0; margin: 1.2em 0; }
.feature-list li { padding-left: 28px; position: relative; margin-bottom: .7em; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px;
  border-radius: 3px; background: var(--accent);
}

/* ---------- Callout / CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.02em; }
.cta-band p { color: #dbe6f1; max-width: 480px; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.cta-band .hero-cta { margin-top: 16px; justify-content: center; }

.note {
  background: #fff7ec; border: 1px solid #ffd9a8; border-radius: 8px; padding: 14px 18px;
  margin: 1.4em 0;
}

/* ---------- FAQ ---------- */
/* FAQ: all answers shown (no accordion), homepage card style */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.6em 0; }
.faq details {
  border: none; border-radius: 16px; background: #fff; padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,.06), 0 16px 36px rgba(20,73,123,.13);
  position: relative; overflow: hidden;
}
.faq details::before {
  content: "?"; position: absolute; bottom: -1.5rem; right: .4rem; font-size: 7rem;
  font-weight: 900; color: var(--blue); opacity: .06; line-height: 1; pointer-events: none;
}
.faq summary {
  cursor: default; pointer-events: none; list-style: none; position: relative; z-index: 1;
  font-weight: 800; font-size: 1.1rem; color: var(--blue); line-height: 1.3;
  padding: 0 0 .7rem; border-bottom: 2px solid var(--bg-soft); margin-bottom: .8rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: none; }
.faq details > p { padding: 0; margin: 0; position: relative; z-index: 1; color: var(--muted); line-height: 1.8; }

/* ---------- Anchor area chips ---------- */
/* Suburb links as homepage-style pills */
.area-columns { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-columns ul { display: contents; }
.area-columns li { margin: 0; }
.area-columns a {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-size: .88rem; font-weight: 600; line-height: 1.2; padding: .5rem 1.1rem;
  border: 2px solid var(--blue); border-radius: 20px; transition: background .2s, color .2s;
}
.area-columns a:hover { background: #fff; color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #c7d4e0; padding: 48px 0 0; margin-top: 56px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-grid h3 { font-size: 1rem; margin: 0 0 .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.site-footer a { color: #c7d4e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-h { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 0 0 .55em; }
.footer-h span { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding: 18px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  h1 { font-size: 1.7rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgba(8,30,52,.12);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 70vh; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a { padding: 13px 20px; border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .faq { grid-template-columns: 1fr; }
  .area-columns { columns: 2 160px; }

  .mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(8,30,52,.14);
  }
  .mobile-cta a {
    flex: 1; text-align: center; padding: 14px 8px; text-decoration: none;
    font-weight: 700; color: #fff;
  }
  .mobile-cta .m-call { background: var(--accent); }
  .mobile-cta .m-quote { background: var(--blue); }
  body { padding-bottom: 56px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .area-columns { columns: 1; }
}
