/* =========================================================
   OZ HOME ENERGY — DESIGN SYSTEM
   Premium, calm, technically-credible energy-company system.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colour */
  --blue-900: #032a8f;
  --blue-800: #0560c1; /* primary brand blue */
  --blue-700: #164ad1;
  --blue-100: #eaf0fd; /* pale supporting surface */
  --blue-50:  #f4f7fe;

  --charcoal: #1a1a1a;
  --charcoal-700: #33332f;
  --charcoal-500: #5c5b54;
  --charcoal-300: #8a887f;

  --white: #ffffff;
  --offwhite: #f7f5f1; /* warm off-white background */
  --grey-100: #efece5;
  --grey-200: #e3e0d7;
  --line: #dfdcd2;

  --success: #1c7a4d;
  --warning: #a15c00;

  /* Semantic tokens (light) */
  --bg: var(--white);
  --bg-alt: var(--offwhite);
  --bg-inverse: var(--charcoal);
  --bg-accent: var(--blue-100);
  --text: var(--charcoal);
  --text-muted: var(--charcoal-500);
  --text-on-blue: var(--white);
  --text-on-dark: #f2f1ec;
  --border: var(--line);
  --brand: var(--blue-800);
  --brand-hover: var(--blue-900);
  --focus-ring: #0a63ff;

  /* Type */
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --step-1: clamp(1.6rem, 1.4rem + 1.2vw, 2.25rem);
  --step-2: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --step-3: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);

  /* Layout */
  --maxw: 1240px;
  --maxw-narrow: 820px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-section: clamp(64px, 9vw, 128px);
  --shadow-sm: 0 1px 2px rgba(26,26,26,0.06), 0 1px 1px rgba(26,26,26,0.04);
  --shadow-md: 0 8px 24px rgba(26,26,26,0.08);
  --header-h: 76px;
}

/* Intentionally light-only for this launch. An earlier pass added a
   prefers-color-scheme override that only redefined a handful of CSS
   custom properties (--bg, --text, etc.) — but many components here set
   their own colours directly (the header's rgba(255,255,255,.96)
   background, .dropdown-panel's #fff, card borders/shadows tuned for a
   light ground, and more) rather than reading those tokens. The result was
   light-text-on-light-background in a system dark-mode browser, which is
   worse than no dark mode at all. Re-add this properly — auditing and
   re-theming every component against a real dark palette, then checking
   contrast — rather than re-enabling a partial override. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--brand); }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }
ul, ol { padding-left: 1.2em; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 20px; }
.section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-alt); }
.section-inverse { background: var(--bg-inverse); color: var(--text-on-dark); }
.section-inverse h2, .section-inverse h3, .section-inverse p { color: var(--text-on-dark); }
.section-accent { background: var(--bg-accent); }
.eyebrow {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 12px;
}
.section-inverse .eyebrow { color: #9db4ff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--radius-sm); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  min-height: 48px; line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text); }
/* Any dark-background surface needs the light variant explicitly — .btn-secondary's
   default (dark text, light border) is invisible against a dark background, which
   is exactly what was happening on every page's .page-banner hero. */
.section-inverse .btn-secondary, .hero .btn-secondary, .page-banner .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.section-inverse .btn-secondary:hover, .hero .btn-secondary:hover, .page-banner .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.section-inverse .btn-secondary:focus-visible, .hero .btn-secondary:focus-visible, .page-banner .btn-secondary:focus-visible { outline-color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); padding: 8px 4px; min-height: auto; }
.btn-ghost:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
/* Wider than the standard 1240px content container so the header makes
   fuller use of large screens instead of matching body copy's reading
   width. Scoped to .site-header so it doesn't widen every .container. */
.site-header .container { max-width: 1400px; }
/* flex-shrink is intentionally NOT 0 here (a previous pass set it to 0,
   which silently defeated the min-width:0 fix below — min-width is
   meaningless on an item that's forbidden from shrinking at all). The two
   header-actions buttons (call + hamburger) must stay full-size for tap
   targets, so the logo is the only thing that can give up space — without
   this, at a 320px viewport the hamburger is pushed ~23px past the right
   edge of the screen, off-screen and untappable on real narrow phones. */
.brand-logo { display: flex; align-items: center; text-decoration: none; color: var(--text); min-width: 0; flex-shrink: 0; }
/* The exact supplied logo PNG, used unmodified — sized by height only so
   width follows its real aspect ratio (object-fit: contain covers the
   rare case a future replacement asset isn't pre-cropped to its content). */
.brand-logo-img { height: 44px; width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (min-width: 480px) { .brand-logo-img { height: 52px; } }
.header-inner { min-width: 0; }

.primary-nav { display: none; }
@media (min-width: 1080px) {
  /* The nav markup is <nav class="primary-nav"><ul><li>…, so every rule
     below must target .primary-nav > ul > li — a bare ">li" child
     combinator never matched anything, which is why these dropdowns
     previously didn't open on hover, click or keyboard, and the top-level
     links/buttons rendered with default browser button chrome instead of
     this stylesheet's styling. */
  .primary-nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; margin-right: auto; }
  .primary-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .primary-nav > ul > li { position: relative; list-style: none; }
  .primary-nav > ul > li > a, .primary-nav > ul > li > button {
    font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; color: var(--text);
    text-decoration: none; padding: 10px 10px; border-radius: var(--radius-sm); background: none; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; min-height: 44px;
  }
  .primary-nav > ul > li > a:hover, .primary-nav > ul > li > button:hover { color: var(--brand); }
  .dropdown-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); padding: 10px; z-index: 50;
  }
  /* Visibility is driven entirely by the .is-open class (site.js), which is
     the same state the button's aria-expanded reflects — a single source
     of truth, rather than a CSS :hover trigger that could show the panel
     while aria-expanded still said "false". */
  .primary-nav > ul > li.is-open .dropdown-panel { display: block; }
  .dropdown-panel a {
    display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text);
    text-decoration: none; font-size: 0.95rem;
  }
  .dropdown-panel a:hover { background: var(--bg-accent); color: var(--brand); }
  .dropdown-panel .panel-note { padding: 10px 12px 4px; font-size: 0.78rem; color: var(--text-muted); }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-family: var(--font-heading); font-size: 0.95rem; }
@media (min-width: 720px) { .phone-link { display: inline-flex; } }
.phone-link svg { width: 18px; height: 18px; color: var(--brand); }
.header-actions .btn { padding: 11px 18px; font-size: 0.88rem; }
.mobile-call-btn { display: inline-flex; }
@media (min-width: 720px) { .mobile-call-btn { display: none; } }
.desktop-cta { display: none; }
@media (min-width: 860px) { .desktop-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  /* Removes the browser's ~300ms tap-recognition delay (it waits to see if
     a tap is the start of a double-tap-to-zoom gesture before committing to
     it) so the very first tap always registers immediately, not just on
     visual double-tap-zoom-disabling viewports. */
  touch-action: manipulation;
}
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 90;
  overflow-y: auto; padding: 12px 20px 40px; display: none;
}
.mobile-nav.is-open { display: block; }
@media (min-width: 1080px) { .mobile-nav { display: none !important; } }
.mobile-nav details { border-bottom: 1px solid var(--border); }
.mobile-nav summary {
  list-style: none; cursor: pointer; padding: 16px 4px; font-family: var(--font-heading);
  font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center;
  /* Same tap-delay removal as .nav-toggle above — a native <summary> toggle
     is otherwise just as subject to the browser's default double-tap-zoom
     detection window as any other tappable element. */
  touch-action: manipulation;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .chev { transition: transform .15s ease; }
.mobile-nav details[open] summary .chev { transform: rotate(180deg); }
.mobile-nav .sub-links { padding: 0 4px 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav .sub-links a { padding: 10px 8px; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); touch-action: manipulation; }
.mobile-nav .sub-links a:hover { background: var(--bg-accent); }
.mobile-nav > a.top-link { display: block; padding: 16px 4px; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-nav .mobile-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

.announcement {
  background: var(--charcoal); color: #fff; text-align: center; font-size: 0.85rem;
  padding: 8px 16px; font-family: var(--font-heading); font-weight: 500;
}
.announcement a { color: #fff; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 640px; display: flex; align-items: flex-end;
  background: var(--charcoal); overflow: hidden;
}
/* Real photo behind the hero copy (see src/pages/home/content.html) — an
   <img> rather than a CSS background so it gets real width/height,
   srcset/AVIF-WebP negotiation and alt text, not just decoration. */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,12,20,0.35) 0%, rgba(10,12,20,0.78) 100%);
}
/* Centered as a block via inherited .container margin:auto; text-align and
   the flex rows below are centered too so the content reads as centered,
   not just the box itself. */
.hero-inner { position: relative; z-index: 2; padding-block: 72px 64px; max-width: 720px; text-align: center; }
.hero .eyebrow { color: #bcd0ff; }
.hero h1 { color: #fff; font-size: var(--step-3); margin-bottom: 20px; }
.hero .lede { color: #eceaf9; font-size: 1.2rem; max-width: 54ch; margin-inline: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.hero-trust { margin-top: 32px; font-size: 0.88rem; color: #d8ddf5; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: #7c8ab8; }
.hero-photo-credit { position: absolute; z-index: 2; bottom: 10px; right: 16px; font-size: 0.7rem; color: rgba(255,255,255,0.55); }

/* Page (non-home) header banner */
.page-banner { background: var(--bg-inverse); color: #fff; padding-block: 56px 44px; }
.page-banner .eyebrow { color: #9db4ff; }
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner .lede { color: #d8ddf5; }
.breadcrumbs { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; }
.page-banner .breadcrumbs, .page-banner .breadcrumbs a { color: #b6bfe6; }

/* ---------- Proof strip ---------- */
.proof-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.proof-list { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: center; }
.proof-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; color: var(--text); }
.proof-list svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }

/* ---------- Pathway selector ---------- */
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .pathway-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pathway-grid { grid-template-columns: 1fr; } }
.pathway-card {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: #fff; cursor: pointer; text-decoration: none; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease; min-height: 48px;
}
.pathway-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pathway-card .icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--bg-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pathway-card .icon svg { width: 22px; height: 22px; color: var(--brand); }
.pathway-card strong { display: block; font-family: var(--font-heading); font-size: 0.98rem; }

/* ---------- Energy flow diagram ---------- */
.flow-diagram { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 820px) { .flow-diagram { grid-template-columns: repeat(2, 1fr); } }
.flow-step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px; text-align: center; }
.flow-step .num { font-family: var(--font-heading); font-weight: 700; color: var(--brand); font-size: 0.8rem; letter-spacing: 0.1em; }
.flow-step .icon { width: 52px; height: 52px; margin: 14px auto; border-radius: 50%; background: var(--bg-accent); display: flex; align-items: center; justify-content: center; }
.flow-step .icon svg { width: 26px; height: 26px; color: var(--brand); }
.flow-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.flow-step p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.flow-arrow { display: none; }
@media (min-width: 821px) {
  .flow-step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -24px; width: 16px; height: 16px;
    border-top: 2px solid var(--border); border-right: 2px solid var(--border); transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------- Solution / service cards ---------- */
.solution-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; align-items: stretch;
}
.solution-card.reverse { grid-template-columns: 1fr 1fr; }
.solution-card.reverse .solution-media { order: 2; }
@media (max-width: 780px) { .solution-card, .solution-card.reverse { grid-template-columns: 1fr; } .solution-card.reverse .solution-media { order: 0; } }
.solution-media { position: relative; min-height: 260px; background: var(--grey-100); }
.solution-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.solution-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.solution-body .eyebrow { margin-bottom: 10px; }
.solution-body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.solution-body p { color: var(--text-muted); }
.solution-card + .solution-card { margin-top: 20px; }

/* ---------- Generic cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.img-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.img-card .media { aspect-ratio: 4/3; background: var(--grey-100); position: relative; overflow: hidden; }
.img-card .media img { width: 100%; height: 100%; object-fit: cover; }
.img-card .body { padding: 20px 22px 24px; }
.img-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.img-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 10px; }

/* Visual panel: the shipped look wherever a photograph will eventually go.
   Real Oz Home Energy photography is not yet in the repository (see the
   shot list in docs/05-photography-shotlist.md) — rather than show a
   dashed "placeholder" box in the public interface, every one of these
   spots renders as a deliberate, on-brand icon panel. Swapping in a real
   photo later means replacing the <span class="visual-panel"> block with
   a <picture>/<img> (srcset, width/height, alt) — the surrounding layout
   (.solution-media, .img-card .media) already sizes correctly either way. */
.visual-panel {
  width: 100%; height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--blue-100), var(--bg-alt));
}
.visual-panel svg { width: 25%; min-width: 56px; max-width: 88px; height: auto; color: var(--brand); opacity: 0.85; }

/* Real photo, same slot a .visual-panel icon used to fill: a simple
   rounded/cropped frame around a <picture> for a genuine Oz Home Energy
   installation photo (see docs/asset-manifest.md for the source list). */
.photo-frame {
  width: 100%; height: 100%; min-height: 220px; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--grey-100);
}
.photo-frame picture, .photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-frame figcaption {
  font-size: 0.8rem; color: var(--text-muted); padding: 8px 2px 0; background: transparent;
}

/* ---------- Trust section: "Qualified. Approved. Accountable." ---------- */
.trust-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-section-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.trust-section-head p.eyebrow { justify-content: center; }
.trust-section-head h2 { margin-bottom: 8px; }
.trust-section-head .lede { margin-inline: auto; }

.trust-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px; row-gap: 28px;
  max-width: 1080px; margin-inline: auto;
}

/* Transparent, evenly-aligned credential cells — deliberately not white
   card tiles: no background, no border, no box shadow. A fixed-height
   media row keeps every card's media area, heading baseline and
   description spacing consistent regardless of each badge's own aspect
   ratio. */
.trust-card {
  position: relative;
  min-height: 230px;
  padding: 18px 12px;
  display: grid;
  grid-template-rows: 116px minmax(2.5em, auto) minmax(2.9em, auto);
  align-items: start;
  justify-items: center;
  row-gap: 10px;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform .1s ease, color .15s ease;
}
a.trust-card:hover, a.trust-card:focus-visible { color: var(--brand); transform: translateY(-2px); }
a.trust-card:hover .trust-card-mark, a.trust-card:focus-visible .trust-card-mark { transform: translateY(-1px); }
.trust-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }

.trust-card-mark {
  width: 100%;
  height: 116px;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform .1s ease;
}
.trust-card-mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.trust-card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 0.96rem; margin: 0; color: var(--text); line-height: 1.25; align-self: start; }
.trust-card .trust-card-meta { font-size: 0.78rem; color: var(--text-muted); margin: 0; line-height: 1.4; align-self: start; }

.trust-card--nsw .trust-card-mark svg { width: 56px; height: 56px; color: var(--brand); }
.trust-card--saa .trust-card-mark img { width: 220px; }
.trust-card--sec .trust-card-mark img { height: 98px; }
.trust-card--ohme .trust-card-mark img { height: 108px; border-radius: 10px; }
.trust-card--evnex .trust-card-mark img { height: 104px; }
.trust-card--tesla .trust-card-mark img { width: 220px; }

/* Bespoke OHE workmanship-warranty mark — a technical crop-mark motif,
   deliberately not styled as a manufacturer seal or award medal. */
.warranty-mark {
  position: relative; width: 58px; height: 58px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border: 1.5px solid var(--brand);
  border-radius: 6px; background: var(--bg-accent); flex-shrink: 0;
}
.warranty-mark::before, .warranty-mark::after {
  content: ""; position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--brand);
}
.warranty-mark::before { top: -1.5px; left: -1.5px; border-right: none; border-bottom: none; }
.warranty-mark::after { bottom: -1.5px; right: -1.5px; border-left: none; border-top: none; }
.warranty-mark .num { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--brand); line-height: 1; }
.warranty-mark .yr { font-family: var(--font-heading); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.09em; color: var(--text); text-transform: uppercase; margin-top: 2px; }

/* Warranty strip — a restrained, full-width premium strip below the
   credential grid, not a seventh credential card: transparent
   background, thin divider lines, no box shadow. */
.warranty-strip {
  display: flex; align-items: center; gap: 20px;
  max-width: 1080px; margin: 36px auto 0;
  padding: 24px 4px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: transparent;
  text-decoration: none; color: var(--text);
  transition: color .15s ease;
}
.warranty-strip:hover, .warranty-strip:focus-visible { color: var(--brand); }
.warranty-strip:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.warranty-strip-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.warranty-strip-text strong { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--text); }
.warranty-strip-text span { font-size: 0.86rem; color: var(--text-muted); line-height: 1.4; }

#warranty { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Warranty feature (About page) — restrained, not styled as an award or
   manufacturer certification: a fine top border and soft shadow only. */
.warranty-feature {
  border-top: 3px solid var(--brand);
  padding: 32px 28px;
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.05);
}
.warranty-feature .eyebrow { margin-bottom: 4px; }
.warranty-feature h2 { margin-top: 0; }
.warranty-feature p:not(:last-of-type) { margin-bottom: 12px; }
.warranty-feature .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .trust-card { grid-template-rows: 96px minmax(2.5em, auto) minmax(2.9em, auto); }
  .trust-card-mark { height: 96px; min-height: 96px; }
  .trust-card--nsw .trust-card-mark svg { width: 48px; height: 48px; }
  .trust-card--saa .trust-card-mark img { width: 180px; }
  .trust-card--sec .trust-card-mark img { height: 80px; }
  .trust-card--ohme .trust-card-mark img { height: 88px; }
  .trust-card--evnex .trust-card-mark img { height: 84px; }
  .trust-card--tesla .trust-card-mark img { width: 180px; }
  .warranty-strip { flex-direction: column; text-align: center; gap: 12px; padding: 24px 12px; }
  .warranty-strip-text { text-align: center; align-items: center; }
}
@media (max-width: 420px) {
  .trust-card { padding: 20px 14px; }
}

/* ---------- Photo gallery (Projects: recent/in-progress work) ---------- */
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-gallery { grid-template-columns: 1fr; } }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.gallery-item .photo-frame { min-height: 0; aspect-ratio: 4/3; border-radius: 0; }
.gallery-item figcaption { padding: 12px 14px 16px; font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-item .index { font-family: var(--font-heading); font-weight: 700; color: var(--brand); font-size: 1.6rem; margin-bottom: 10px; }
.why-item h3 { font-size: 1.05rem; }
.why-item p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }
.process-item { border-left: 3px solid var(--brand); padding-left: 18px; }
.process-item .step-no { font-family: var(--font-heading); font-weight: 700; color: var(--brand); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 6px; }
.process-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-item p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.process-note { margin-top: 32px; padding: 18px 22px; background: var(--bg-accent); border-radius: var(--radius-md); font-size: 0.92rem; color: var(--charcoal-700); }

/* ---------- Reviews ---------- */
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.review-stars { color: var(--brand); font-size: 1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p.quote { font-size: 0.98rem; color: var(--text); }
.review-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.review-meta a { color: var(--brand); text-decoration: none; }
.review-placeholder { border: 1px dashed var(--charcoal-300); border-radius: var(--radius-md); padding: 24px; color: var(--text-muted); font-size: 0.9rem; background: var(--bg-alt); }

/* Live HighLevel review widget: an iframe embed of the genuine, verified
   review widget URL — never hard-coded/rewritten/manufactured review text.
   A reachability pre-check runs first (site/js/reviews.js) — an iframe
   pointed at a request an ad-blocker/tracker-blocker intercepts still
   fires a normal `load` event with empty content, so waiting on load/error
   alone previously left a large empty styled box on the page whenever the
   widget request was blocked. #reviewsSection stays visible showing
   .review-widget-loading (below) throughout; the widget only replaces it
   once genuinely loaded, or the whole section hides itself permanently on
   failure — never an empty box either way.
   (Note: an earlier version of this rule targeted the class
   ".review-widget-section", which was never applied to any element in the
   markup — #reviewsSection is the actual id used in
   src/pages/home/content.html — so this hidden-state rule silently never
   matched anything.) */
#reviewsSection[hidden] { display: none; }
.review-widget { position: relative; min-height: 420px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-alt); }
.review-widget iframe { display: block; width: 100%; height: 420px; border: 0; }
.review-widget-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; color: var(--text-muted); font-size: 0.9rem;
}
.review-widget-loading .spinner {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border);
  border-top-color: var(--brand); animation: review-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .review-widget-loading .spinner { animation: none; } }
@keyframes review-spin { to { transform: rotate(360deg); } }

/* ---------- Audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }
.split-panel { padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 56px); }
.split-panel.home { background: var(--bg-accent); }
.split-panel.business { background: var(--bg-inverse); color: #fff; }
.split-panel.business h2, .split-panel.business p { color: #fff; }
.split-panel .eyebrow { margin-bottom: 14px; }
.split-panel ul { list-style: none; padding: 0; margin: 20px 0 28px; }
.split-panel li { padding: 8px 0 8px 26px; position: relative; font-size: 0.98rem; }
.split-panel li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.split-panel.business li::before { background: #7c96ff; }

/* ---------- Education / FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex-shrink: 0; transition: transform .15s ease; color: var(--brand); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .answer { padding: 0 4px 22px; color: var(--text-muted); max-width: 70ch; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 18ch; margin-inline: auto; }
.final-cta .cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-inverse); color: #c9cbe0; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #c9cbe0; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* The logo PNG has an opaque white background baked in (no alpha channel),
   so on this dark footer it needs a matching white card behind it rather
   than sitting directly on --bg-inverse — the padding/radius are ours,
   the artwork inside is untouched. */
.footer-logo-chip { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 8px; line-height: 0; }
.footer-logo-chip img { display: block; height: 34px; width: auto; object-fit: contain; }
.footer-brand p { color: #9fa2c0; font-size: 0.88rem; max-width: 32ch; margin-top: 14px; }
.footer-licence { font-size: 0.82rem; color: #9fa2c0; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid #3a3c56; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid #2c2e47; margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #8b8eaf; }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-bottom a { color: #8b8eaf; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-family: var(--font-heading); font-size: 0.92rem; margin-bottom: 6px; }
/* .hint now used standalone too (fieldset legends, hero sub-copy), not
   just inside .form-field — kept the same look either way, plus a light
   variant for dark sections (see the page-banner/hero override below;
   without it, a bare <p class="hint"> inside .page-banner rendered as
   default dark text on the section's own dark background — effectively
   invisible, not just a wrong shade). */
.hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.form-field .hint { margin-top: 4px; }
.page-banner .hint, .hero .hint, .section-inverse .hint { color: #d8ddf5; }
.form-field input[type="text"], .form-field input[type="tel"], .form-field input[type="email"],
.form-field input[type="number"], .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--text); min-height: 48px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand); }
.form-field.error input, .form-field.error select { border-color: #c0322b; }
.form-field .error-msg { color: #c0322b; font-size: 0.82rem; margin-top: 6px; display: none; }
.form-field.error .error-msg { display: block; }
/* Standalone error message for a fieldset/radio-group (not a single .form-field) */
p.error-msg { color: #c0322b; font-size: 0.85rem; margin-top: 10px; display: none; }
p.error-msg.is-visible { display: block; }
fieldset.assess-fieldset { border: none; margin: 0; padding: 0; }
fieldset.assess-fieldset.is-invalid .radio-cards { outline: 2px solid #c0322b; outline-offset: 6px; border-radius: 12px; }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .radio-cards { grid-template-columns: 1fr; } }
/* For option lists that read better as a firm 2-up grid on larger screens
   (e.g. six short pathway choices) — still collapses to one column below
   560px like the base .radio-cards, never a hard-coded inline override
   that can't respond to viewport width at all. */
.radio-cards-wide { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .radio-cards-wide { grid-template-columns: 1fr; } }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.radio-card label {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; cursor: pointer; font-weight: 500; font-family: var(--font-body); font-size: 0.98rem; margin: 0; min-height: 48px;
}
.radio-card input:checked + label { border-color: var(--brand); background: var(--bg-accent); box-shadow: inset 0 0 0 1px var(--brand); }
.radio-card input:focus-visible + label { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Assessment flow ---------- */
.assess-wrap { max-width: 720px; margin: 0 auto; }
.assess-progress { margin-bottom: 32px; }
.assess-progress .bar { height: 6px; background: var(--grey-100); border-radius: 999px; overflow: hidden; }
.assess-progress .fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .25s ease; width: 14%; }
.assess-progress .meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }
.assess-step { display: none; }
.assess-step.is-active { display: block; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.assess-step h2 { font-size: 1.6rem; margin-bottom: 8px; }
.assess-step h3 { font-size: 1.15rem; margin: 28px 0 4px; }
.assess-step .step-sub { color: var(--text-muted); margin-bottom: 28px; }
.assess-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 12px; }
.assess-nav .spacer { flex: 1; }
/* Bare <legend> (no inline style) inside an .assess-fieldset — on-brand
   weight/size instead of the browser default, consistent whether or not a
   page also styles individual legends inline. */
.assess-fieldset legend, fieldset.form-field legend { font-weight: 600; font-family: var(--font-heading); font-size: 0.92rem; margin-bottom: 10px; padding: 0; }
/* Error summary: shown above the active stage's fields on a failed
   Continue/Submit attempt, each item a jump-link to the actual invalid
   control (focus moves to the field itself on click, not just scroll). */
.error-summary { border: 2px solid #c0322b; border-radius: var(--radius-md); padding: 16px 18px; margin: 20px 0; background: #fdf1f0; }
.error-summary h3 { margin: 0 0 8px; font-size: 1rem; color: #c0322b; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: #c0322b; font-weight: 600; }
/* Minimal landing header/footer (see src/partials/header-landing.html) —
   reuses .site-header/.site-footer's own background/blur/spacing, this
   just removes the nav-toggle button that has nothing to control here. */
.landing-header .nav-toggle { display: none; }
/* The sitewide header's .desktop-cta only appears >=860px because the
   hamburger nav-toggle covers the CTA (via the mobile-nav drawer) below
   that. The landing header has no nav-toggle/drawer at all, so without
   this override the "Check Site Eligibility" CTA would vanish entirely
   between 720px and 860px — visible nowhere. */
.landing-header .desktop-cta { display: inline-flex; }
@media (prefers-reduced-motion: reduce) {
  .assess-step.is-active { animation: none; }
  .assess-progress .fill { transition: none; }
}
.why-we-ask { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-alt); border-radius: var(--radius-md); padding: 14px 16px; margin-top: 18px; font-size: 0.86rem; color: var(--text-muted); }
.why-we-ask svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
/* NOT a success state — deliberately. Shown wherever a form has no live
   HighLevel connection yet, instead of any "thanks, that's been noted"
   affordance. No checkmark, no "success" framing: this must never be
   mistaken for confirmation that a lead was received, because it isn't
   one. See docs/owner-inputs-required.md's integration checklist. */
.lead-pending-notice { text-align: center; padding: 40px 0; }
.lead-pending-notice .icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.lead-pending-notice .icon-circle svg { width: 30px; height: 30px; color: var(--brand); }
.lead-pending-notice h2 { font-size: 1.4rem; }

/* ---------- Table (products) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data-table th, table.data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.data-table th { font-family: var(--font-heading); background: var(--bg-alt); font-weight: 600; }
table.data-table tr:last-child td { border-bottom: none; }

/* ---------- Locations ---------- */
.location-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.location-chip { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; background: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-accent); color: var(--brand); font-family: var(--font-heading); font-weight: 600; font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; }
/* Customer-facing, calm notice that a form is a design preview and does not
   yet submit anywhere — used on the three lead-capture forms only. Not a
   developer note: written for the person filling in the form. */
.preview-note {
  display: flex; gap: 10px; align-items: flex-start; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px;
  font-size: 0.86rem; color: var(--text-muted); margin-top: 16px;
}
.preview-note svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }

/* ---------- Sticky mobile call/quote bar ---------- */
/* Fixed to the viewport bottom on small screens only — a persistent,
   low-friction path to call or start a quote without scrolling back up.
   Desktop already has the header's own call/quote buttons, so this stays
   hidden there to avoid a redundant, decorative bar. */
.mobile-cta-bar { display: none; }
@media (max-width: 760px) {
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(26,26,26,0.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .mobile-cta-bar-call, .mobile-cta-bar-quote {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; border-radius: var(--radius-md);
    font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
    text-decoration: none; text-align: center;
  }
  .mobile-cta-bar-call { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
  .mobile-cta-bar-call svg { width: 18px; height: 18px; flex-shrink: 0; }
  .mobile-cta-bar-quote { background: var(--brand); color: #fff; }
  .mobile-cta-bar-call:focus-visible, .mobile-cta-bar-quote:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  /* Keep the bar from covering the last section's content, and the footer
     itself, on pages short enough for the footer to reach the bottom. */
  #main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
