/* 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 ----------
   Condensed: short fields sit two to a line and the type comes down a notch, so
   the card carries the required service picker without running past the fold.
   The homepage repeats these values in its own inline <style> (its root is
   17.5px, so the sizes are pinned there in px) — keep the two in step. */
.quote-card {
  background: #fff; color: var(--body); border-radius: 12px; padding: 20px;
  box-shadow: 0 18px 40px rgba(8,30,52,.28);
}
.quote-card h2 { margin-top: 0; margin-bottom: 12px; font-size: 1.2rem; }
.form-row { margin-bottom: 9px; }
.form-row label { display: block; font-weight: 600; font-size: .8rem; margin-bottom: 3px; color: var(--ink); }
.form-row label .opt { font-weight: 500; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #c5cfd8; border-radius: 6px;
  font: inherit; font-size: .9rem; 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: 56px; resize: vertical; }
/* Two short fields per line. align-items:end keeps the inputs level if a label wraps. */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; align-items: end; }
/* Required service picker: radios drawn as a three-up segmented control. */
.service-pick { display: flex; gap: 6px; }
.service-pick .service-opt { position: relative; flex: 1; margin: 0; cursor: pointer; }
.service-opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.service-opt span {
  display: block; text-align: center; padding: 8px 4px; border: 1px solid #c5cfd8;
  border-radius: 6px; font-size: .825rem; font-weight: 600; line-height: 1.2;
  color: var(--body); background: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.service-opt:hover span { border-color: var(--blue-light); color: var(--blue); }
.service-opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.service-opt input:focus-visible + span { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.quote-card .btn { font-size: .95rem; padding: 11px 20px; }
.form-fine { font-size: .725rem; line-height: 1.45; color: var(--muted); margin: 8px 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-h a { color: inherit; text-decoration: none; }
.footer-h a:hover { text-decoration: underline; }
.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 ---------- */


.prose > h2:first-child, .container > h2:first-child { margin-top: 0; }

/* A readable line length for body text inside a full-width container. */
.intro { max-width: 68ch; }

/* ---------- Installation page components ---------- */
/* Six pieces the richer installation layout needs. Everything else on that page
   reuses what is already here: .hero, .container, .prose, table.data, .faq,
   .cta-band and the buttons. */

/* Headline price, directly under the lead. One figure, stated plainly. */
.anchor-price {
  margin: 1.6rem 0 1.4rem; padding: 1.1rem 0 0;
  border-top: 3px solid var(--accent); max-width: 34em;
}
.anchor-price .fig {
  display: block; font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 800;
  color: var(--ink); line-height: 1.1; letter-spacing: -.02em;
}
.anchor-price .cap { color: var(--muted); font-size: .97rem; line-height: 1.6; }
/* In the hero the panel sits on the blue gradient, so it takes the hero's palette. */
.hero .anchor-price { border-top-color: var(--accent); }
.hero .anchor-price .fig { color: #fff; }
.hero .anchor-price .cap { color: #e7eef6; }

/* What's included: a two-up ticked list. */
.incl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 0 34px; list-style: none; padding: 0; margin: 1.4em 0 0;
}
.incl li {
  padding: .8rem 0 .8rem 1.7rem; border-bottom: 1px solid var(--line);
  position: relative; font-weight: 600; color: var(--ink);
}
.incl li::before {
  content: "\2713"; position: absolute; left: 0; top: .8rem;
  color: var(--ok); font-weight: 800;
}

/* Which type suits: label and explanation, side by side. */
.types { margin: 1.4em 0 0; border-top: 1px solid var(--line); }
.trow {
  display: grid; grid-template-columns: 230px 1fr; gap: 1.6rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.trow h3 { margin: 0; font-size: 1.08rem; }
.trow p { margin: 0; color: var(--muted); }

/* A point worth pulling out of the flow. */
.callout {
  background: var(--bg-blue-soft); border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 1.2rem 1.4rem; margin: 1.6em 0 0; max-width: 56em;
}
.callout p:last-child { margin-bottom: 0; }

/* Secondary label inside a table cell. */
.small { font-size: .88rem; color: var(--muted); font-weight: 500; }

/* Footnote under a table. */
.tnote { font-size: .95rem; color: var(--muted); margin-top: .9em; }

/* ---------- Process steps ---------- */
/* The numbered cards with arrows between them, as used on the homepage. Kept
   here rather than inline so any page can use it. */
.section-process { background: var(--bg-soft); padding: 64px 0; }
.section-process .section-header { text-align: center; margin-bottom: 3rem; }
.section-process .section-header h2 { margin: 0 0 .6rem; }
.section-process .section-header p { font-size: 1rem; color: var(--muted); max-width: 760px; margin: 0 auto; line-height: 1.75; }
.process-grid {
  display: grid; gap: 0; align-items: stretch;
  grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr;
}
.process-step {
  background: #fff; border-radius: 16px; padding: 2rem 1.5rem 1.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 12px 28px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s; overflow: hidden; position: relative;
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,.06), 0 24px 48px rgba(0,0,0,.14);
}
.process-step::before {
  content: attr(data-num); position: absolute; bottom: -1rem; right: .5rem;
  font-size: 7rem; font-weight: 900; color: var(--accent); opacity: .07;
  line-height: 1; pointer-events: none;
}
.process-step h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 0 0 .6rem; }
.process-step p { font-size: .98rem; color: var(--muted); line-height: 1.7; margin: 0; }
.process-arrow { display: flex; align-items: center; justify-content: center; align-self: center; color: var(--accent); }
.process-arrow svg {
  width: 56px; height: 28px; stroke: var(--accent); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Below 640px three columns will not fit, and the sideways scroll hides the
   right-hand ones. Each row becomes a card. A td with data-label prints its
   column heading above the value; the first cell is the card title. */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; border-radius: 0; box-shadow: none; }
  table.data { display: block; min-width: 0; background: none; font-size: 1rem; }
  table.data thead {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  table.data tbody { display: block; }
  table.data tbody tr,
  table.data tbody tr:nth-child(even) {
    display: block; background: #fff; border-radius: 14px;
    padding: 1rem 1.1rem 1.1rem; margin-bottom: .9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 12px 28px rgba(20,73,123,.10);
  }
  table.data tbody tr:last-child { margin-bottom: 0; }
  table.data tbody td { display: block; padding: 0; border-bottom: none; }
  table.data tbody td:first-child {
    font-size: 1.08rem; padding-bottom: .7rem; margin-bottom: .75rem;
    border-bottom: 1px solid var(--line);
  }
  table.data tbody td + td { margin-top: .75rem; }
  table.data tbody td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); margin-bottom: .15rem;
  }
}

@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .process-arrow { display: none; }
  .trow { grid-template-columns: 1fr; gap: .3rem; }
}

@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) {
  .process-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  /* "Installation" is the widest label; on a 320px screen it all but fills its third. */
  .service-pick { gap: 5px; }
  .service-opt span { font-size: .775rem; padding: 8px 2px; }
  .hero { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .area-columns { columns: 1; }
}
