/* =========================================================================
   HelioCore — Design System
   Dark, sun-warmed, evidence-led. Built for a Perth solar maintenance brand.
   ========================================================================= */

:root {
  /* Design-system tokens — ported 1:1 from the Figma variable collections
     at figma.com/design/Y1eftIZjazV3EdU2JY2dnk (Color / Spacing / Radius). */
  --black: #08090a;
  --black-2: #0f1012;
  --charcoal: #17181b;
  --charcoal-2: #1e2024;
  --graphite: #2c2e33;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.48);
  --orange: #ff7a1a;
  --orange-2: #ffb066;
  --orange-deep: #c85a00;
  --green: #34d399;
  --danger: #ff6b6b;
  --soft: rgba(255, 255, 255, 0.06);

  /* On solid orange, text must be dark to hold AA contrast */
  --on-orange: #08090a;

  --radius-s: 8px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  /* Elevation is a privilege of the primary CTA only — everything else is flat + hairline border. */
  --shadow-cta: 0 10px 30px rgba(255, 122, 26, 0.35);
  --shadow-cta-hover: 0 14px 38px rgba(255, 122, 26, 0.46);

  --font-display: "Bricolage Grotesque", "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --header-h: 92px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--orange); color: var(--on-orange); }

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--orange); color: var(--on-orange);
  padding: 12px 18px; border-radius: var(--radius-s);
  font-weight: 800; letter-spacing: 0.02em;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--orange-2);
  outline-offset: 3px;
  border-radius: 6px;
}
button:focus-visible, a:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.container--narrow { width: min(820px, calc(100% - 40px)); margin: 0 auto; }
section { position: relative; }
.section { padding: 124px 0; }
.section--tight { padding: 80px 0; }
.section--first { padding-top: calc(var(--header-h) + 64px); }
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section--first { padding-top: calc(var(--header-h) + 40px); }
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-s { gap: 10px; }
.gap-m { gap: 18px; }
.gap-l { gap: 28px; }
.wrap { flex-wrap: wrap; }
.center-text { text-align: center; }

/* ---------- Typography ---------- */
/* Matches the Figma text-style ramp: Display/Hero, Display/H1, Heading/H2, Heading/H3. */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(40px, 5.2vw, 56px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.04; }
.hero h1 { font-size: clamp(46px, 6.4vw, 88px); letter-spacing: -0.02em; line-height: 0.96; }
h2 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; line-height: 1.08; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
h4 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
p { line-height: 1.6; color: var(--muted); font-size: 16.5px; }
p.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,0.82); line-height: 1.55; }
strong, b { color: var(--white); font-weight: 700; }
.text-white { color: var(--white); }
.text-muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--orange), transparent);
}
.center-text .eyebrow { justify-content: center; }
.center-text .eyebrow::before, .center-text .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--orange); opacity: .6; }

/* Signature move: a short accent rule under every section headline — the one
   piece of chrome the orange is allowed to draw, everywhere else it is used
   as a functional signal (CTA, active state), never as decoration. */
.accent-rule { width: 64px; height: 3px; background: var(--orange); border-radius: 2px; margin-top: 18px; }
.center-text .accent-rule { margin-left: auto; margin-right: auto; }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center-text { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-pill);
  padding: 16px 30px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: var(--on-orange); box-shadow: var(--shadow-cta); }
.btn-primary:hover { box-shadow: var(--shadow-cta-hover); transform: translateY(-2px); background: var(--orange-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-2); }
.btn-soft { background: var(--soft); border-color: var(--line); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 12px 20px; font-size: 12px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  background: rgba(8, 9, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.site-header.is-solid { background: rgba(8, 9, 10, 0.97); }
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: background 0.3s ease, border-color 0.3s ease; } }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-lockup {
  height: 46px; width: 168px; object-fit: cover; object-position: 50% 42%;
  filter: drop-shadow(0 0 20px rgba(255, 138, 0, 0.25));
}
@media (max-width: 500px) { .brand-lockup { width: 140px; height: 40px; } }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  position: relative; padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.primary-nav a:hover { color: var(--white); background: var(--line-soft); }
.primary-nav a[aria-current="page"] { color: var(--orange-2); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; }
@media (min-width: 1140px) { .header-phone { display: inline-flex; } }
.header-phone { font-size: 13px; font-weight: 800; color: var(--white); gap: 8px; }
.header-phone svg { width: 16px; height: 16px; color: var(--orange-2); }

.menu-btn {
  display: none; align-items: center; gap: 8px;
  background: var(--line-soft); border: 1px solid var(--line); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 940px) {
  .primary-nav, .header-phone { display: none; }
  .menu-btn { display: inline-flex; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 190;
  background: rgba(8, 9, 10, 0.68);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  overflow-y: auto;
  padding: 18px 0 50px;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block; padding: 15px 24px; font-size: 17px; font-weight: 700;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .mobile-cta { padding: 22px 24px 0; }
@media (prefers-reduced-motion: reduce) { .mobile-menu { transition: opacity 0.2s ease; transform: none; } }

/* ---------- Hero — full-bleed, cinematic, one confident scene ---------- */
.hero {
  position: relative; height: min(100vh, 980px); min-height: 720px;
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  position: absolute; top: -12%; left: 0; width: 100%; height: 124%;
  object-fit: cover; will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(64% 46% at 50% 8%, rgba(255, 122, 26, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.9) 0%, rgba(8, 9, 10, 0.52) 34%, rgba(8, 9, 10, 0.66) 72%, rgba(8, 9, 10, 0.97) 100%);
}
.hero-particles { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 3; max-width: 800px; margin: 0 auto; text-align: center; }
.hero-emblem { width: 72px; height: 72px; margin: 0 auto 26px; }
.hero .eyebrow { justify-content: center; }
.hero h1 { max-width: 17ch; margin: 0 auto; }
.hero h1::after, .page-hero h1::after {
  content: ""; display: block; width: 64px; height: 3px; background: var(--orange); border-radius: 2px; margin: 22px auto 0;
}
.hero p.lead { max-width: 46ch; margin: 22px auto 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

/* Floating stat bar — the one other place elevation is allowed: it must
   read as physically lifted over the hero/content seam, not decorative. */
.hero-stats-bar {
  position: relative; z-index: 3;
  width: min(920px, calc(100% - 40px)); margin: -46px auto 0;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-m);
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px;
  padding: 30px 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.hero-stats-bar div { text-align: center; }
.hero-stats-bar .label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.hero-stats-bar strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: var(--white); margin-bottom: 6px; }
@media (max-width: 640px) { .hero-stats-bar { margin-top: -32px; padding: 24px 16px; gap: 16px 24px; } }

.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 78px) 0 64px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url("/public/images/solar-panels-perth.jpg");
  background-size: cover; background-position: center 65%;
  opacity: 0.16; filter: saturate(0.75);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 122, 26, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.55) 0%, rgba(8, 9, 10, 0.86) 60%, var(--black) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; margin-top: 16px; }
.page-hero p.lead { margin-top: 18px; max-width: 60ch; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 32px;
}
.card-hover { transition: transform 0.25s ease, border-color 0.25s ease; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(255,138,0,0.45); }
.card .num { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--orange-2); letter-spacing: 0.08em; }
.card h3 { margin-top: 14px; }
.card p { margin-top: 12px; }
.card ul.checklist { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,0.82); align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--orange-2); font-weight: 900; flex-shrink: 0; }
.card .btn { margin-top: 22px; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(255,138,0,0.24), rgba(255,138,0,0.05));
  border: 1px solid rgba(255,138,0,0.3);
  color: var(--orange-2);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-l); padding: 56px;
  background: var(--charcoal);
  border: 1px solid rgba(255,138,0,0.3);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange);
}
.cta-band h2 { max-width: 18ch; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Before / after ---------- */
.ba-compare {
  position: relative; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16/10;
}
.ba-compare img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag { position: absolute; top: 16px; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.ba-tag.before { left: 16px; background: rgba(0,0,0,0.6); border: 1px solid var(--line); }
.ba-tag.after { right: 16px; background: var(--orange); color: var(--on-orange); }

.proof-placeholder {
  border: 1.5px dashed var(--line); border-radius: var(--radius-m);
  padding: 40px 28px; text-align: center; color: var(--muted-2);
}
.proof-placeholder strong { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }

/* ---------- Calculator ---------- */
.calc {
  border-radius: var(--radius-l); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  padding: 36px;
}
.calc-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.calc-badge { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 7px 12px; border-radius: var(--radius-pill); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
@media (max-width: 720px) { .calc-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.field input[type="text"], .field input[type="number"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 16px; font-size: 15px; color: var(--white); width: 100%;
}
.field input::placeholder { color: var(--muted-2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.range-row { grid-column: 1 / -1; }
input[type="range"] { width: 100%; accent-color: var(--orange); }

.calc-results { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .calc-results { grid-template-columns: 1fr; } }
.calc-result { background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; text-align: center; }
.calc-result .label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.calc-result .value { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-top: 8px; color: var(--orange-2); }
.calc-note { margin-top: 18px; font-size: 12.5px; color: var(--muted-2); }
.calc-note a { color: var(--orange-2); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--white);
  padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 17px; font-weight: 700; font-family: var(--font-display);
}
.faq-q .icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.25s ease, background 0.25s ease; }
.faq-item[data-open="true"] .faq-q .icon { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding-bottom: 22px; max-width: 68ch; }

/* ---------- Quote tunnel ---------- */
.tunnel { display: grid; grid-template-columns: 0.62fr 0.38fr; gap: 40px; align-items: flex-start; }
@media (max-width: 980px) { .tunnel { grid-template-columns: 1fr; } }
.tunnel-steps { display: flex; gap: 10px; margin-bottom: 30px; }
.tunnel-step-dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tunnel-step-dot span { display: block; height: 100%; width: 0; background: var(--orange); transition: width 0.3s ease; }
.tunnel-step-dot.done span, .tunnel-step-dot.active span { width: 100%; }
.tunnel-panel { display: none; }
.tunnel-panel.is-active { display: block; }
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-option {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 12px 18px; font-size: 13.5px; font-weight: 700; color: var(--muted);
  background: rgba(255,255,255,0.03); transition: all 0.18s ease;
}
.pill-option input { position: absolute; opacity: 0; pointer-events: none; }
.pill-option:has(input:checked) { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.pill-option:has(input:focus-visible) { outline: 3px solid var(--orange-2); outline-offset: 2px; }
.tunnel-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 14px; }
.sidebar-card { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-card .row { justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.sidebar-card .row:last-of-type { border-bottom: none; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 10px; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; text-align: center; padding: 60px 20px; }
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 76px 0 34px; background: var(--black-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-lockup { height: 40px; width: 148px; object-fit: cover; object-position: 50% 42%; margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; }
.footer-col h4 { color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--muted); }
.footer-col a:hover { color: var(--orange-2); }
.footer-bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--orange-2); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.social-row a:hover { border-color: var(--orange); color: var(--orange-2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: none; gap: 10px; padding: 12px 16px;
  background: rgba(8, 9, 10, 0.9); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform 0.3s ease;
}
/* Hidden on arrival — only earns its place once the visitor has scrolled past the hero. */
.sticky-cta.is-visible { transform: translateY(0); }
@media (max-width: 720px) { .sticky-cta { display: flex; } body { padding-bottom: 74px; } }
.sticky-cta a { flex: 1; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- Table (plans compare / service area) ---------- */
.suburb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .suburb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .suburb-grid { grid-template-columns: repeat(2, 1fr); } }
.suburb-chip { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; font-weight: 700; font-size: 14px; text-align: center; }

.badge-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.badge-row .badge { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.badge-row .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.divider { height: 1px; background: var(--line-soft); border: none; margin: 0; }

.tag-pricing { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--white); }
.tag-pricing sup { font-size: 16px; color: var(--muted); font-weight: 700; top: -18px; }
.plan-card { display: flex; flex-direction: column; position: relative; }
.plan-card.is-featured { border-color: rgba(255,138,0,0.5); background: var(--charcoal-2); }
.plan-card.is-featured::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--orange); border-radius: var(--radius-m) var(--radius-m) 0 0;
}
.plan-card .badge-featured { align-self: flex-start; background: var(--orange); color: var(--on-orange); font-size: 11px; font-weight: 900; padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.plan-card ul.checklist { flex: 1; }

.error-hero { text-align: center; padding: calc(var(--header-h) + 120px) 0 140px; }
.error-hero .code { font-family: var(--font-display); font-size: clamp(90px, 18vw, 180px); font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--orange); line-height: 1; }

.legal p, .legal li { color: var(--muted); }
.legal h2 { margin-top: 46px; }
.legal h3 { margin-top: 30px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: var(--orange-2); text-decoration: underline; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.figure-frame { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }

.step-line { display: flex; flex-direction: column; }
.step-row { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
.step-row:last-child { border-bottom: 1px solid var(--line-soft); }
.step-index { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--orange-2); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 300;
  background: var(--orange); transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

/* ---------- Split-text reveal (hero + page-hero headlines) ---------- */
.sr-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sr-word-inner {
  display: inline-block; transform: translateY(112%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-split-reveal].is-revealed .sr-word-inner { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .sr-word-inner { transition: none; transform: none; }
}

/* ---------- Count-up stat values ---------- */
[data-count-to] { font-variant-numeric: tabular-nums; }

/* ---------- Magnetic buttons ---------- */
.btn { will-change: transform; }

/* ---------- Before / after drag slider ---------- */
.ba-slider { display: block; }
.ba-slider-frame {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 3; cursor: ew-resize;
  -webkit-user-select: none; user-select: none; touch-action: pan-y;
  --ba-pos: 32%;
}
.ba-slider-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none;
}
.ba-before {
  filter: saturate(0.45) sepia(0.32) brightness(0.78) contrast(0.94);
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}
.ba-slider-frame .ba-tag { position: absolute; top: 16px; z-index: 2; }
.ba-slider-frame .ba-tag.before { left: 16px; }
.ba-slider-frame .ba-tag.after { right: 16px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba-pos); z-index: 3;
  width: 2px; background: rgba(255,255,255,0.85); transform: translateX(-1px);
}
.ba-handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: var(--on-orange);
  display: grid; place-items: center; box-shadow: var(--shadow-cta);
  font-size: 18px; font-weight: 900;
}
.ba-handle:focus-visible .ba-handle-grip { outline: 3px solid var(--white); outline-offset: 3px; }
.ba-caption { margin-top: 16px; font-size: 12.5px; color: var(--muted-2); text-align: center; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee-scroll 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .suburb-chip { white-space: nowrap; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
}
