/* ==========================================================================
   Vivid Electrical - Meta ads landing page
   Gold Coast solar + battery. Built for paid traffic, not for browsing.

   COMPLIANCE (load-bearing, do not "improve" away):
   - NO dollar savings figures. NO guaranteed savings claims. The CER is
     active on savings claims and the rebate tapers by capacity.
   - The calculator therefore outputs SYSTEM SIZE and the LEGISLATED REBATE,
     never a projected saving. Both are facts, not forecasts.
   - Any number shown is either (a) from the customer's own bill, (b) a
     published regulated figure, or (c) an engineering estimate clearly
     labelled as such.
   ========================================================================== */

:root {
  /* brand: sampled from the client's own logo + live site CSS (#caa735) */
  --gold: #c9a227;
  --gold-lt: #e3bd3f;
  --gold-dk: #a6851c;
  --ink: #15171a;
  --ink-2: #1d2024;
  --ink-3: #272b31;
  --line: rgba(255, 255, 255, 0.1);
  --line-dk: rgba(0, 0, 0, 0.12);
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --body: #4a4f57;
  --body-lt: rgba(255, 255, 255, 0.76);
  --ok: #1f9254;
  --radius: 14px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.26);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------------------------------------------------------------- type */
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.022em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -0.012em; }

.kicker {
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.84rem;
  color: var(--gold);
}

.lede { font-size: clamp(1.05rem, 1.8vw, 1.26rem); color: var(--body); }
/* dark-section text colour. MUST NOT reach the light calculator card,
   which lives inside .on-dark but has its own white background. */
.on-dark .lede, .on-dark > .wrap p, .on-dark .hero-pts li,
.on-dark .card p, .on-dark .trust-row div { color: var(--body-lt); }
.calc, .calc p, .calc label, .calc .res-note { color: var(--ink); }
.calc .res-note { color: #4a5058; }
.calc .calc-hd p { color: var(--body-lt); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 17px 32px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 26px rgba(201, 162, 39, 0.36); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 162, 39, 0.46); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-lg { width: 100%; padding: 20px 32px; font-size: 1.12rem; }

/* ----------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(21, 23, 26, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav img {
  height: 44px; width: auto;
  /* Artwork is pre-recoloured (img/logo-light.png): white wordmark, gold bolt
     kept. No brightness filter - the old one washed the gold out and could
     never lift true black anyway, since brightness multiplies and 0 x n = 0. */
}
.nav-r { display: flex; align-items: center; gap: 18px; }
.nav-ph { color: #fff; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.nav-ph span { display: block; font-size: 0.7rem; font-weight: 600; color: var(--body-lt); letter-spacing: 0.1em; text-transform: uppercase; }
.nav .btn { padding: 11px 20px; font-size: 0.93rem; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(104deg, rgba(21,23,26,.97) 0%, rgba(21,23,26,.93) 42%,
              rgba(21,23,26,.72) 60%, rgba(21,23,26,.42) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 68px; padding-bottom: 68px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 24px 54px;
  align-items: start;
}


.hero h1 { margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }

.hero-pts { list-style: none; margin: 26px 0 30px; display: grid; gap: 13px; }
.hero-pts li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; color: rgba(255,255,255,.9); }
.tick {
  flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-weight: 900; font-size: 0.78rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.trust-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust-row div { font-size: 0.88rem; color: var(--body-lt); }
.trust-row b { display: block; color: #fff; font-size: 1.32rem; font-weight: 800; line-height: 1.2; }

/* ----------------------------------------------------- calculator card */
.calc {
  background: var(--paper); color: var(--ink);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; position: sticky; top: 92px;
}
.calc-hd { background: var(--ink-2); color: #fff; padding: 20px 26px; }
.calc-hd h3 { margin-bottom: 3px; }
.calc-hd p { font-size: 0.86rem; color: var(--body-lt); }
.calc-bd { padding: 24px 26px 26px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 9px; }
.field .hint { font-weight: 500; color: var(--body); font-size: 0.82rem; }

.billval { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.billval small { font-size: 0.95rem; font-weight: 600; color: var(--body); letter-spacing: 0; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 4px; background: #e2e2de; outline: none; margin-top: 12px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px;
  border-radius: 50%; background: var(--gold); cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 2px 9px rgba(0,0,0,.26);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold);
  cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 9px rgba(0,0,0,.26);
}

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.seg button {
  padding: 11px 6px; border: 1.5px solid #ddd; background: #fff; border-radius: 9px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: inherit;
  transition: all 0.13s ease; color: var(--ink);
}
.seg button:hover { border-color: var(--gold); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* result block */
.res { background: var(--paper-2); border-radius: var(--radius); padding: 19px 20px; margin: 4px 0 18px; border: 1px solid #e8e8e4; }
.res-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; }
.res-row + .res-row { border-top: 1px dashed #dcdcd6; }
.res-row span { font-size: 0.92rem; color: var(--body); font-weight: 600; }
.res-row b { font-size: 1.34rem; font-weight: 800; letter-spacing: -0.02em; }
.res-row b.gold { color: var(--gold-dk); }
.res-note {
  font-size: 0.8rem; color: #4a5058; margin-top: 12px; line-height: 1.55;
  opacity: 1; /* compliance text: never fade this */
}

/* rebate callout - legislated figure, so it can be stated plainly */
.rebate {
  background: linear-gradient(135deg, #16331f, #1d4228);
  color: #fff; border-radius: var(--radius); padding: 17px 19px; margin-bottom: 18px;
}
.rebate .r-top { display: flex; justify-content: space-between; align-items: baseline; }
.rebate .r-top span { font-size: 0.85rem; color: rgba(255,255,255,.8); font-weight: 600; }
.rebate .r-top b { font-size: 1.6rem; color: #7ce0a3; font-weight: 800; }
.rebate p { font-size: 0.76rem; color: rgba(255,255,255,.72); margin-top: 7px; line-height: 1.45; }

/* ------------------------------------------------------------ sections */
.sec { padding: 84px 0; }
.sec.alt { background: var(--paper-2); }
.sec.dark { background: var(--ink); color: #fff; }
.sec-hd { max-width: 720px; margin-bottom: 44px; }
.sec-hd.ctr { margin-left: auto; margin-right: auto; text-align: center; }
.sec-hd h2 { margin: 12px 0 14px; }

/* roof designer */
.roof-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 42px; align-items: center; }
.roof-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0f1113; box-shadow: var(--shadow); aspect-ratio: 4 / 3;
}
.roof-stage img { width: 100%; height: 100%; object-fit: cover; }
.roof-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-cell { fill: #1a3a66; stroke: #6f8fb8; stroke-width: 0.5; opacity: 0; transition: opacity 0.26s ease; }
.panel-cell.on { opacity: 0.92; }
.roof-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(21,23,26,.9); color: #fff; backdrop-filter: blur(6px);
  padding: 11px 16px; border-radius: 9px; font-weight: 800; font-size: 1.02rem;
}
.roof-badge span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--body-lt); text-transform: uppercase; letter-spacing: 0.1em; }

/* cards / steps / faq */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid #e8e8e4; border-radius: var(--radius); padding: 28px 26px; }
.sec.dark .card { background: var(--ink-2); border-color: var(--line); }
.card .num { font-family: "Barlow Condensed", sans-serif; font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--body); font-size: 0.97rem; }
.sec.dark .card p { color: var(--body-lt); }

.logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; justify-content: center; }
.logos .chip {
  /* white chip + no filter: the source logos are mixed light/dark artwork,
     so any single filter destroys half of them. Let each mark be itself. */
  background: #fff; border: 1px solid #e6e6e2; border-radius: 12px;
  padding: 16px 24px; display: grid; place-items: center;
  min-width: 162px; min-height: 80px;
}
.logos img { height: 32px; width: auto; max-width: 122px; object-fit: contain; }

/* reviews */
.revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.rev { background: #fff; border: 1px solid #e8e8e4; border-radius: var(--radius); padding: 26px; }
.stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 11px; }
.rev p { font-size: 1rem; color: var(--ink); margin-bottom: 14px; }
.rev cite { font-style: normal; font-weight: 700; font-size: 0.9rem; }
.rev cite span { display: block; font-weight: 500; color: var(--body); font-size: 0.83rem; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid #e3e3df; padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--body); margin-top: 11px; }

/* final cta */
.final { background: var(--ink); color: #fff; padding: 84px 0; text-align: center; }
.final h2 { margin-bottom: 16px; }
.final .lede { max-width: 620px; margin: 0 auto 30px; }
.final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 14px 15px; border: 1.5px solid #ddd; border-radius: 9px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.consent { font-size: 0.78rem; color: var(--body); line-height: 1.5; }

/* footer */
.foot { background: #0f1113; color: rgba(255,255,255,.62); padding: 40px 0; font-size: 0.87rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.foot b { color: #fff; }
.foot .fine { font-size: 0.76rem; line-height: 1.6; max-width: 640px; margin-top: 14px; }

/* sticky mobile call bar */
.mobar { display: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .calc { position: static; }
  .roof-grid { grid-template-columns: 1fr; gap: 28px; }
  .sec { padding: 62px 0; }
}
@media (max-width: 680px) {
  .nav .btn, .nav-ph span { display: none; }
  .hero .wrap { padding-top: 44px; padding-bottom: 54px; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 18px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  body { padding-bottom: 70px; }
  .mobar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--ink); border-top: 1px solid var(--line); padding: 10px 12px; gap: 10px;
  }
  .mobar a { flex: 1; padding: 14px; border-radius: 9px; font-weight: 800; text-align: center; font-size: 0.97rem; }
  .mobar .c { background: var(--gold); color: var(--ink); }
  .mobar .q { background: rgba(255,255,255,.1); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.team-shots {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 150px;
  gap: 12px;
}
.team-shots img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.team-shots .t-a { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr; gap: 30px; }
  .team-shots { grid-template-rows: 170px 130px; }
}

/* ------------------------------------------------- mobile priority -----
   Paid traffic lands on a phone. The calculator is the reason the page
   exists, so on small screens it comes FIRST, above the proof bullets.
   (Order only changes under 960px; desktop keeps the two-column layout.) */
@media (max-width: 960px) {
  .hero-grid { display: flex; flex-direction: column; }
  /* clear the desktop grid placement or it leaks into the flex layout */
  
  
  .calc       { order: 2; }
  
}
@media (max-width: 680px) {
  /* trim the hero intro so the calculator is reachable without a long scroll */
  .hero h1 { font-size: 2.15rem; }
  .hero .lede { font-size: 1rem; }
  .hero-pts { margin: 20px 0 22px; gap: 10px; }
  .hero-pts li { font-size: 0.97rem; }
}

/* ======================================================================
   FINAL OVERRIDES - these must come last to win the cascade.
   ====================================================================== */

/* The calculator is a LIGHT card living inside the dark hero. The
   .on-dark text rules were painting its body text white-on-white. */
.calc, .calc p, .calc label, .calc span, .calc b { color: var(--ink); }
.calc .res-note { color: #4a5058 !important; }
.calc .field .hint { color: #5a6069 !important; }
.calc .res-row span { color: #4a5058 !important; }
.calc .calc-hd h3 { color: #fff; }
.calc .calc-hd p { color: rgba(255,255,255,.78) !important; }
.calc .rebate b, .calc .rebate span, .calc .rebate p { color: inherit; }
.calc .rebate .r-top b { color: #7ce0a3 !important; }
.calc .rebate .r-top span { color: rgba(255,255,255,.82) !important; }
.calc .rebate p { color: rgba(255,255,255,.74) !important; }
.calc .btn-gold { color: var(--ink) !important; }

/* Hero: two independent columns, nothing spans rows, so no stretch gap. */
.hero-grid { align-items: start; grid-template-rows: auto; }
.hero-left { display: block; }

/* ---------------------------------------------- owner portrait + work grid */
/* Lachlan's photo is a cutout on a near-black field (corner pixels 22,22,22).
   It therefore needs a dark plate behind it; on the white section background
   the near-black would read as a grey rectangle around him. */
.owner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(160deg, #1b1b1a 0%, #262625 100%);
  border-radius: var(--radius);
  padding: 0 24px 0 0;
  margin: 0 0 26px;
  overflow: hidden;
  /* Cap the height. The source portrait is 687x1001, so letting it run at its
     natural ratio made a tall dark slab with a lot of dead space beside the
     caption. Crop to the top of the frame where his face and the tablet are. */
  height: 132px;
}
.owner img {
  width: 128px;
  height: 100%;
  flex: none;
  display: block;
  object-fit: cover;
  object-position: 50% 12%;
}
.owner-cap { padding: 0; }
.owner-cap b {
  display: block;
  color: #fff;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.owner-cap span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  margin-top: 3px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.work-grid figure { margin: 0; }
.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.work-grid figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--body);
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .owner img { width: 120px; }
  .owner-cap b { font-size: 15px; }
}
@media (max-width: 520px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid figcaption { font-size: 12.5px; }
}

/* ------------------------------------------------- in-hero capture steps */
/* NOTE: this block sits inside .calc-bd, which is a WHITE panel, not the dark
   card header above it. An earlier version styled these controls light-on-dark
   and the heading and input text were invisible against the white. Everything
   here is dark-on-light to match the calculator fields directly above. */
.cap-sub {
  font-size: 12.5px; line-height: 1.5; color: var(--body);
  margin: 10px 0 0; text-align: center;
}
.cap-prog { display: flex; gap: 6px; margin: 4px 0 12px; }
.cap-prog span {
  height: 3px; flex: 1; border-radius: 2px;
  background: #e3e3df; transition: background .22s ease;
}
.cap-prog span.on { background: #c9a227; }
.cap-step {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--body); margin: 0 0 14px;
}
#capForm h4 {
  font-size: 19px; color: var(--ink); margin: 0 0 16px;
  letter-spacing: -0.01em; outline: none;
}
.cap-lb {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--ink); margin: 0 0 6px;
}
#capForm input {
  width: 100%; box-sizing: border-box;
  /* 16px minimum stops iOS zooming the viewport when the field focuses */
  font-size: 16px;
  padding: 13px 14px; margin: 0 0 14px; min-height: 48px;
  border-radius: 10px; border: 1px solid #ddd;
  background: #fff; color: var(--ink);
}
#capForm input::placeholder { color: #a6a6a1; }
#capForm input:focus {
  outline: none; border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.16);
}
#capForm .btn { width: 100%; }
.cap-err { font-size: 13px; color: #c0392b; margin: -6px 0 12px; line-height: 1.45; }
.cap-back {
  display: block; width: 100%; margin: 12px 0 0;
  background: none; border: 0; cursor: pointer;
  font-size: 13.5px; color: var(--body);
  text-decoration: underline; text-underline-offset: 3px; min-height: 44px;
}
.cap-back:hover { color: var(--ink); }
.cap-sum {
  background: #f6f6f3; border: 1px solid #e3e3df;
  border-radius: 10px; padding: 12px 14px; margin: 0 0 16px;
}
.cap-sum b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 3px; }
.cap-sum span { display: block; color: var(--body); font-size: 13px; }
/* Visually hidden but announced, so step changes reach screen readers. */
.cap-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.cap-fail {
  background: #fdf0ee; border: 1px solid #e8bdb4;
  border-radius: 10px; padding: 14px 16px;
}
.cap-fail b { display: block; color: #c0392b; margin-bottom: 4px; }
.cap-fail p { margin: 0; font-size: 13.5px; color: var(--body); line-height: 1.5; }
.cap-fail a { color: var(--ink); font-weight: 700; }

#capForm [data-cap] { animation: capIn .22s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  #capForm [data-cap] { animation: none; }
  .cap-prog span { transition: none; }
}
