/* Better Energy Lab. Brand colours sampled from the logo: blue #00b8ff, green #74cf2e,
   dark plum #261b28 (logo background). Darker blue/green are used where text needs contrast. */
:root {
  --ink: #1d1820;
  --muted: #554e59;
  --dark: #261b28;
  --dark-2: #33263a;
  --blue: #00b8ff;
  --blue-ink: #006fa8;
  --green: #74cf2e;
  --green-ink: #3f8a12;
  --bg: #ffffff;
  --bg-alt: #f2f8fc;
  --line: #dbe6ee;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(38, 27, 40, .10);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3 { line-height: 1.2; color: var(--dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
.hl { color: var(--blue-ink); background: linear-gradient(transparent 62%, rgba(116, 207, 46, .35) 62%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--blue-ink); }
.nav .nav-phone { font-weight: 700; color: var(--dark); }

/* Buttons */
.btn { display: inline-block; background: var(--dark); color: #fff !important; text-decoration: none; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-ink); transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--dark) !important; box-shadow: inset 0 0 0 2px var(--dark); }
.btn-ghost:hover { background: var(--bg-alt); }

/* Hero */
.hero { padding: 64px 0; background: radial-gradient(1200px 500px at 85% -10%, rgba(0,184,255,.13), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(116,207,46,.12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--green-ink); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--green-ink); font-weight: 700; margin-right: 6px; }
.hero-card { background: var(--dark); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; }
.hero-stats div { background: var(--dark-2); border-radius: 12px; padding: 12px; }
.hero-stats dt { font-weight: 800; font-size: 1.25rem; color: var(--blue); }
.hero-stats dd { margin: 2px 0 0; font-size: .8rem; color: #d9d2dc; line-height: 1.35; }

/* Sections */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #e9e3ec; }
.section.dark h2 { color: #fff; }
.section.dark .eyebrow { color: var(--green); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 44em; margin-bottom: 32px; }

/* Living lab */
.lab-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lab-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lab-list li { background: var(--dark-2); border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; padding: 14px 18px; }
.lab-list strong { color: var(--blue); }
.fine-dark { font-size: .92rem; color: #bdb3c1; }
.fine-dark a { color: var(--blue); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,184,255,.16), rgba(116,207,46,.2)); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 14px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.product img { height: 190px; width: 100%; object-fit: contain; }
.product figcaption strong { display: block; color: var(--dark); }
.product figcaption span { color: var(--muted); font-size: .93rem; }
.product-text { justify-content: flex-start; }
.product-badge { height: 190px; border-radius: 12px; display: grid; place-items: center; font-size: 4rem; background: linear-gradient(135deg, rgba(0,184,255,.14), rgba(116,207,46,.2)); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--dark); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.review p { color: var(--ink); font-size: .98rem; flex: 1; }
.review footer { color: var(--muted); font-size: .88rem; font-weight: 600; }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; }

/* Tips and hot water */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tip { border-top: 4px solid var(--blue); background: var(--bg-alt); border-radius: 0 0 var(--radius) var(--radius); padding: 22px; }
.tip p { color: var(--muted); margin: 0; }
.tip-n { display: inline-block; font-weight: 800; color: var(--blue-ink); font-size: 1.4rem; margin-bottom: 6px; }
.hotwater { margin-top: 40px; display: grid; grid-template-columns: 1fr 200px; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.hotwater img { max-height: 380px; width: auto; margin: 0 auto; }
.hotwater h3 { font-size: 1.5rem; }
.hotwater p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-ink); font-weight: 800; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--dark); padding: 14px 0; }
details p { color: var(--muted); }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li > span:first-child { display: inline-block; width: 70px; color: var(--muted); font-size: .9rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--dark); }
.form input:not([type=checkbox]), .form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid #c9d6df; border-radius: 10px; width: 100%; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
legend { font-size: .92rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; width: 100%; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
.form .hp { position: absolute; left: -9999px; }
.fine { font-size: .85rem; color: var(--muted); margin: 0; }
.notice { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.notice.ok { background: #eaf7df; color: var(--green-ink); }
.notice.err { background: #fdecea; color: #8a1c12; }

/* Footer */
.site-footer { background: var(--dark); color: #cfc6d3; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.copy { margin-top: 24px; font-size: .85rem; opacity: .75; }

.page { padding: 56px 0 80px; }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }

@media (max-width: 1000px) {
  .nav a:not(.btn):not(.nav-phone) { display: none; }
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps, .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .hero { padding: 40px 0; }
  .hero-grid, .lab-grid, .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .tips { grid-template-columns: 1fr; }
  .hotwater { grid-template-columns: 1fr; padding: 22px; }
  .hotwater img { max-height: 240px; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-row { height: 66px; }
  .brand img { height: 46px; }
  .nav .nav-phone { display: none; }
  .cards, .steps, .reviews, .products, .form .row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Service pages */
.page-hero { padding: 56px 0 48px; background: radial-gradient(1000px 420px at 90% -20%, rgba(0,184,255,.14), transparent 60%), radial-gradient(700px 360px at -10% 120%, rgba(116,207,46,.13), transparent 60%); }
.page-hero h1 { max-width: 20em; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.feature-img { margin: 0; background: var(--bg-alt); border-radius: 20px; padding: 28px; }
.feature-img img { max-height: 420px; width: auto; margin: 0 auto; }
.lab-list.light li { background: var(--bg-alt); color: var(--ink); }
.lab-list.light strong { color: var(--blue-ink); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: " →"; color: var(--blue-ink); }
.card-link:hover { color: var(--blue-ink); }
.cta-band { background: var(--dark); color: #fff; padding: 36px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-row p { margin: 0; font-size: 1.1rem; }
.btn-light { background: var(--green); color: var(--dark) !important; }
.btn-light:hover { background: var(--blue); }
.footer-col { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.footer-col strong { color: #fff; margin-bottom: 4px; }
.areas { margin: 0; font-size: .88rem; line-height: 1.5; }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .feature-img img { max-height: 280px; }
}

/* Credentials, battery chooser, comparison table, notices */
.badges { display: flex; align-items: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.badges img { height: 46px; width: auto; }
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.need { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 0 0 var(--radius) var(--radius); padding: 22px; }
.need p { color: var(--muted); margin: 0; font-size: .97rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 680px; }
.compare caption { text-align: left; padding: 16px 18px 6px; font-weight: 700; color: var(--dark); }
.compare th, .compare td { text-align: left; padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-alt); color: var(--dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.compare tbody th { font-weight: 700; white-space: nowrap; }
.compare td { color: var(--muted); }
.table-wrap + .fine { margin-top: 10px; }
.notice-box { margin-top: 28px; background: #fff7e0; border-left: 4px solid #f5a623; border-radius: 0 12px 12px 0; padding: 18px 20px; color: var(--ink); }
.feature-img.photo { padding: 0; overflow: hidden; background: none; }
.feature-img.photo img { max-height: none; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
@media (max-width: 1000px) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .needs { grid-template-columns: 1fr; }
  .badges img { height: 38px; }
}

/* Certified-installer strip */
.certs { padding: 56px 0; background: var(--dark); color: #e9e3ec; }
.certs h2 { color: #fff; }
.certs .section-lead { color: #cfc6d3; }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert-list li { background: var(--dark-2); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--blue); }
.cert-list a { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.cert-list a:hover { color: var(--blue); }
.cert-list span { color: #bdb3c1; font-size: .85rem; }
@media (max-width: 1000px) { .cert-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cert-list { grid-template-columns: 1fr 1fr; } }
