/* =========================================================
   Legacy Solar | Main stylesheet
   Brand: light blue #4FAFE0, navy #0A2038, ice blue #A8DEF7
   ========================================================= */

/* Poppins, self hosted (licence: assets/fonts/OFL.txt) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --blue: #4FAFE0;
  --blue-600: #2f97cf;
  --blue-700: #1f7fb5;
  --navy: #0A2038;
  --navy-800: #0e2a48;
  --navy-700: #143a5f;
  --ice: #A8DEF7;
  --ice-50: #f2faff;
  --ice-100: #e3f4fd;
  --white: #ffffff;
  --ink: #0A2038;
  --text: #3d4f63;
  --muted: #6b7c8f;
  --line: #dcebf5;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(10, 32, 56, .06);
  --shadow: 0 12px 32px -12px rgba(10, 32, 56, .18);
  --shadow-blue: 0 12px 28px -10px rgba(79, 175, 224, .55);

  --header-h: 72px;
  --wrap: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
/* Darker blue so white button text is easy to read (passes WCAG AA, 4.5:1 or better) */
.btn-primary { background: linear-gradient(135deg, #1b76aa 0%, #186fa1 50%, #145f8c 100%); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #186fa1 0%, #145f8c 55%, #11547c 100%); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(79, 175, 224, .7); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--blue); color: var(--blue-700); background: #fff; }
.btn-outline:hover { background: var(--ice-50); color: var(--blue-700); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sparkles (4 point stars) ---------- */
.sparkle {
  position: absolute; width: 18px; height: 18px; pointer-events: none;
  background: linear-gradient(135deg, #fff, var(--ice));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: .85;
  animation: twinkle 4s ease-in-out infinite;
}
.sparkle.sm { width: 10px; height: 10px; }
.sparkle.lg { width: 28px; height: 28px; }
.sparkle.blue { background: linear-gradient(135deg, var(--ice), var(--blue)); }
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.8) rotate(0deg); }
  50% { opacity: .95; transform: scale(1) rotate(15deg); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: var(--blue);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.on-dark .eyebrow, .eyebrow.light { color: var(--ice); }
.on-dark .eyebrow::before, .eyebrow.light::before { background: var(--ice); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--ice-50); color: var(--blue-700); }
.main-nav a[aria-current="page"] { color: var(--blue-700); background: var(--ice-100); }
.header-cta { flex: none; }
.nav-toggle {
  display: none; flex: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1180px) {
  :root { --header-h: 66px; }
  .brand img { height: 36px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    background: #fff; padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    margin: 0; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 1.15rem; padding: 14px 16px; border-radius: 14px; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand img { height: 30px; }
  .header-cta.btn-sm { padding: 10px 14px; font-size: .85rem; }
  .header-inner { gap: 10px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 112px); position: relative; }
.section-ice { background: linear-gradient(180deg, var(--ice-50) 0%, #fff 100%); }
.section-ice-solid { background: var(--ice-50); }
.section-navy { background: radial-gradient(1200px 500px at 85% -10%, rgba(79, 175, 224, .22), transparent 60%), linear-gradient(160deg, var(--navy-800) 0%, var(--navy) 70%); color: #c9d8e6; overflow: hidden; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--text); }
.section-navy .lead { color: #c9d8e6; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #c9d8e6;
  background:
    radial-gradient(900px 480px at 80% 10%, rgba(79, 175, 224, .30), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(168, 222, 247, .12), transparent 60%),
    linear-gradient(160deg, #123557 0%, var(--navy) 65%);
  padding-block: clamp(56px, 10vw, 120px) clamp(72px, 11vw, 136px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--ice), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c9d8e6; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 36px 0 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.hero-tags li { display: flex; align-items: center; gap: 8px; }
.hero-tags li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-right: 10px; }
.hero-logo-card {
  position: relative; justify-self: center; width: 100%; max-width: 400px; aspect-ratio: 1 / 1;
  border-radius: 40px; display: grid; place-items: center; padding: 48px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(227, 244, 253, .92));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .6);
  transform: rotate(-3deg);
}
.hero-logo-card::after {
  content: ""; position: absolute; inset: -14px; border-radius: 52px; z-index: -1;
  background: linear-gradient(135deg, rgba(168, 222, 247, .45), rgba(79, 175, 224, .05));
}
.hero-logo-card img { transform: rotate(3deg); width: 100%; height: auto; }
.hero-logo-card .sparkle { animation-delay: var(--d, 0s); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo-card { order: -1; max-width: 220px; padding: 28px; border-radius: 30px; }
  .hero-logo-card::after { border-radius: 40px; inset: -10px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-tags { font-size: .72rem; gap: 6px 12px; }
  .hero-tags li + li::before { margin-right: 6px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(79, 175, 224, .28), transparent 60%),
    linear-gradient(160deg, #123557 0%, var(--navy) 70%);
  color: #c9d8e6; padding-block: clamp(56px, 9vw, 104px);
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #c9d8e6; max-width: 640px; margin-bottom: 28px; }
.breadcrumb { font-size: .85rem; margin-bottom: 18px; color: #8fb1cc; }
.breadcrumb a { color: var(--ice); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8e6f6; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--ice-100), var(--ice)); color: var(--blue-700);
}
.icon-badge svg { width: 26px; height: 26px; }
.section-navy .card { background: rgba(255, 255, 255, .04); border-color: rgba(168, 222, 247, .14); box-shadow: none; color: #c9d8e6; }
.section-navy .card:hover { border-color: rgba(168, 222, 247, .35); background: rgba(255, 255, 255, .06); }
.section-navy .icon-badge { background: linear-gradient(135deg, rgba(79, 175, 224, .25), rgba(168, 222, 247, .1)); color: var(--ice); }

/* Feature split (Solar / Batteries on home) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 104px); }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media {
  position: relative; border-radius: var(--radius-lg); aspect-ratio: 5 / 4; overflow: hidden;
  background: linear-gradient(150deg, var(--ice-100) 0%, var(--ice) 55%, var(--blue) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.split-media.navy { background: radial-gradient(500px 300px at 70% 20%, rgba(79, 175, 224, .45), transparent 70%), linear-gradient(150deg, var(--navy-700), var(--navy)); }
.split-media svg.illus { width: 62%; height: auto; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ice-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7fb5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section-navy .check-list li::before { background-color: rgba(79, 175, 224, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8DEF7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px;
  font-weight: 700; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, #1b76aa, #186fa1 50%, #145f8c);
  box-shadow: var(--shadow-blue);
}
.steps.grid-4 .step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; left: 72px; right: -8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ice) 0 6px, transparent 6px 12px);
}
@media (max-width: 960px) { .steps.grid-4 .step::after { display: none; } }

/* Info / placeholder notes */
.note {
  border: 2px dashed #9fd2ee; background: var(--ice-50); border-radius: var(--radius);
  padding: 24px 28px; color: var(--text);
}
.note strong { color: var(--ink); }
.placeholder { background: #fff6d6; color: #6a5300; padding: 1px 6px; border-radius: 6px; font-weight: 500; white-space: normal; }
.section-navy .placeholder, .site-footer .placeholder, .page-hero .placeholder { background: rgba(255, 214, 102, .16); color: #ffe39a; }

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-slot {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  border: 2px dashed #9fd2ee; background: #fff; font-size: .9rem; color: var(--muted);
}

/* Giving back band */
.giving-band { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.giving-mark {
  position: relative; width: clamp(150px, 22vw, 220px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, #fff 0%, var(--ice) 45%, var(--blue) 100%);
  box-shadow: 0 0 0 10px rgba(168, 222, 247, .12), 0 0 0 22px rgba(168, 222, 247, .06), 0 30px 60px -20px rgba(0, 0, 0, .5);
  color: var(--navy);
}
.giving-mark b { display: block; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; font-weight: 700; }
.giving-mark span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 720px) { .giving-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; }
.pill-list li { padding: 8px 16px; border-radius: 999px; background: rgba(168, 222, 247, .12); border: 1px solid rgba(168, 222, 247, .25); color: var(--ice); font-size: .9rem; font-weight: 500; }
.giving-band .pill-list { justify-content: inherit; }
@media (max-width: 720px) { .giving-band .pill-list { justify-content: center; } }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 72px);
  background: radial-gradient(600px 300px at 100% 0%, rgba(79, 175, 224, .35), transparent 60%), linear-gradient(135deg, #1b76aa 0%, #186fa1 45%, #145f8c 100%);
  color: #fff; text-align: center; box-shadow: var(--shadow-blue);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 560px; margin-inline: auto; margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--navy); box-shadow: 0 14px 30px -12px rgba(10, 32, 56, .6); }
.cta-band .btn-primary:hover { background: var(--navy-700); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .6); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.phase-card { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.phase-card .tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ice-100); color: var(--blue-700); font-size: .8rem; font-weight: 600; margin-bottom: 14px; }
.phase-card.featured { background: linear-gradient(160deg, var(--navy-800), var(--navy)); border-color: transparent; color: #c9d8e6; }
.phase-card.featured h3 { color: #fff; }
.phase-card.featured .tag { background: rgba(79, 175, 224, .22); color: var(--ice); }

/* ---------- Contact / Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.field .req { color: var(--blue-700); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid #cfe2ee; background: #fbfdff;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2038' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(79, 175, 224, .18); }
.field input:user-invalid, .field select:user-invalid { border-color: #e0736b; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .choice-group { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px;
  padding: 12px; border-radius: 12px; border: 1.5px solid #cfe2ee; background: #fbfdff;
  font-weight: 500; color: var(--ink); cursor: pointer; transition: all .2s;
}
.choice input:checked + span { border-color: var(--blue); background: var(--ice-100); color: var(--blue-700); box-shadow: 0 0 0 3px rgba(79, 175, 224, .15); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-foot small { color: var(--muted); }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 12px; font-weight: 500; }
.form-status.ok { background: #e7f7ee; color: #1d6b3f; }
.form-status.err { background: #fdecea; color: #9a2b22; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.contact-aside { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon-badge { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.contact-item .icon-badge svg { width: 20px; height: 20px; }
.contact-item strong { display: block; color: var(--ink); }
.contact-item a, .contact-item span { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #071628 100%); color: #9fb6cb;
  padding-block: 72px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; position: relative; overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 150px; margin-bottom: 16px; }
.footer-slogan { color: #fff; font-weight: 600; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9d8e6; }
.site-footer a:hover { color: var(--blue); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(168, 222, 247, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #7f98b0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: 40px; }
.muted { color: var(--muted); }
.max-640 { max-width: 640px; }
.mx-auto { margin-inline: auto; }
.phase-card.featured .check-list li::before { background-color: rgba(79, 175, 224, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8DEF7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@media (max-width: 640px) { .page-hero .sparkle:not(.sm) { display: none; } }

/* Battery brand grid (flip cards) */
.brand-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.bcard-fallback a { display: block; padding: 14px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.bcard-hint { margin: -16px 0 28px; font-size: .9rem; }
.hint-tap { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-tap { display: inline; } }

.bcard { flex: 0 1 calc(25% - 15px); min-width: 0; perspective: 1400px; }
.bcard-inner {
  position: relative; display: grid; height: 100%; cursor: pointer;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform .7s var(--ease);
  border-radius: var(--radius);
}
.bcard-inner:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.bcard.flipped .bcard-inner, .bcard:has(.bcard-back a:focus-visible) .bcard-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .bcard:hover .bcard-inner { transform: rotateY(180deg); }
}
.bcard-face {
  grid-area: 1 / 1; position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.bcard-face::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--ice), var(--blue)); z-index: 1; }

/* Front */
.bcard-front { background: #fff; text-align: center; }
.bcard-photo {
  flex: 1; min-height: 250px; display: grid; place-items: center; padding: 22px 18px 10px;
  background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--ice-50) 45%, var(--ice-100) 75%, rgba(168, 222, 247, .7) 100%);
  position: relative;
}
.bcard-photo img { height: 220px; width: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(10, 32, 56, .16)); }
.bcard-photo .sparkle { animation-delay: var(--d, 0s); }
.photo-soon {
  width: 72%; height: 220px; border-radius: 14px; border: 2px dashed #9fd2ee; background: rgba(255, 255, 255, .7);
  display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 500;
}
.photo-soon svg { width: 34px; height: 34px; color: var(--blue); }
.bcard-body { padding: 18px 18px 20px; display: grid; gap: 2px; }
.bcard-body h3 { font-size: 1.3rem; margin: 0; }
.bcard-model { font-size: .88rem; color: var(--muted); }
.bcard-more { margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--blue-700); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bcard-more svg { width: 16px; height: 16px; }

/* Back */
.bcard-back {
  transform: rotateY(180deg); padding: 24px 20px 20px; gap: 14px;
  background: radial-gradient(140% 70% at 100% 0%, rgba(255, 255, 255, .95), transparent 60%), linear-gradient(165deg, #fff 0%, var(--ice-100) 45%, var(--ice) 100%);
  border-color: #bfe3f6;
}
.bcard-back .sparkle { animation-delay: var(--d, 0s); }
.bcard-back h3 { font-size: 1.15rem; margin: 0; }
.bcard-back h3 small { display: block; font-size: .82rem; font-weight: 500; color: var(--blue-700); margin-top: 2px; }
.bspecs { margin: 0; display: grid; gap: 8px; }
.bspecs div { display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(79, 175, 224, .18); }
.bspecs dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); }
.bspecs dd { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.bbest { font-size: .88rem; margin: 0; color: var(--text); line-height: 1.5; }
.bbest b { color: var(--ink); }
.bcard-back .btn { margin-top: auto; width: 100%; white-space: normal; text-align: center; padding: 13px 16px; font-size: .9rem; line-height: 1.25; }
.bcard-back .placeholder { font-weight: 500; font-size: .85em; }
.bcard-close { display: none; font-size: .78rem; color: var(--muted); text-align: center; margin-top: -4px; }
@media (hover: none) { .bcard-close { display: block; } }

@media (max-width: 1100px) { .bcard { flex-basis: calc(33.333% - 14px); } }
@media (max-width: 760px) { .bcard { flex-basis: calc(50% - 10px); } }
@media (max-width: 540px) {
  .brand-grid { gap: 16px; }
  .bcard { flex-basis: 100%; max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .bcard-inner { transition: none !important; }
}

/* ---------- Finance ---------- */
.step-icon svg { width: 26px; height: 26px; }
.step-label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 4px; }

.finance-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px 32px; align-items: center;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: radial-gradient(500px 220px at 100% 0%, rgba(168, 222, 247, .45), transparent 70%), linear-gradient(160deg, #fff, var(--ice-50));
  box-shadow: var(--shadow-sm);
}
.finance-band .icon-badge { margin: 0; width: 64px; height: 64px; border-radius: 20px; }
.finance-band .icon-badge svg { width: 30px; height: 30px; }
.finance-band h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: .35em; }
@media (max-width: 860px) {
  .finance-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .finance-band .btn { width: 100%; max-width: 360px; }
}

.fin-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .fin-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.fin-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px;
  padding: 0 0 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.fin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8e6f6; }
.fin-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--ice), var(--blue)); z-index: 1; }
.fin-logo {
  position: relative; height: 130px; display: grid; place-items: center; padding: 24px 32px;
  background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--ice-50) 55%, var(--ice-100) 100%);
  border-bottom: 1px solid var(--line);
}
.fin-logo img { max-height: 64px; max-width: 75%; width: auto; height: auto; object-fit: contain; }
.fin-name { font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.fin-card > :not(.fin-logo) { margin-inline: 26px; }
.fin-card h3 { margin: 0; }
.fin-card p { margin: 0; }
.fin-card .check-list { margin: 0; gap: 10px; font-size: .95rem; }
.fin-card .btn { margin-top: auto; align-self: flex-start; }
.fin-card .btn svg { width: 16px; height: 16px; }
.fin-card .ext { font-size: .78rem; color: var(--muted); margin-top: -8px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: linear-gradient(160deg, var(--navy-800), var(--navy)); color: #fff; font-weight: 600; font-size: 1rem; }
.compare thead th:first-child { color: var(--ice); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.compare tbody th { color: var(--ink); font-weight: 600; background: var(--ice-50); width: 22%; }
.compare tbody tr:nth-child(even) td { background: #fbfdff; }
@media (max-width: 720px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare { border: 0; background: none; box-shadow: none; overflow: visible; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 14px; }
  .compare tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
  .compare tbody th { width: 100%; background: linear-gradient(160deg, var(--navy-800), var(--navy)); color: #fff; padding: 12px 18px; }
  .compare td { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 18px; background: #fff !important; }
  .compare td::before { content: attr(data-label); font-weight: 600; color: var(--blue-700); font-size: .85rem; }
  .compare tr td:last-child { border-bottom: 0; }
}

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #bfe3f6; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 600; color: var(--ink); font-size: 1.02rem; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ice-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7fb5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; margin: 0; }

.disclaimer-box {
  border: 2px solid #bfe3f6; background: var(--ice-50); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px);
  font-size: .88rem; color: var(--text);
}
.disclaimer-box h2 { font-size: 1.15rem; margin-bottom: 14px; }
.disclaimer-box h3 { font-size: .95rem; margin: 18px 0 6px; }
.disclaimer-box p { margin: 0 0 8px; }
.compare .cmp-mobile { display: none; }
@media (max-width: 720px) {
  .compare .cmp-desktop { display: none; }
  .compare .cmp-mobile { display: grid; }
}
.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; }
.compare td > * { justify-self: start; align-self: start; }
.fin-card.no-logo h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================================================
   Diamond theme: lattice texture, faceted gem, shine
   ========================================================= */
:root {
  /* faceted brilliant cut diamond outline */
  --gem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160' fill='none' stroke='%23A8DEF7' stroke-width='1.2' stroke-linejoin='round'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='.35'/%3E%3Cstop offset='1' stop-color='%234FAFE0' stop-opacity='.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M60 10h80l50 40-90 100L10 50z' fill='url(%23g)'/%3E%3Cpath d='M10 50h180M60 10 35 50M60 10l20 40M100 10 80 50M100 10l20 40M140 10l-20 40M140 10l25 40M35 50l65 100M80 50l20 100M120 50l-20 100M165 50l-65 100'/%3E%3C/svg%3E");
}

/* Diamond lattice on dark sections */
.hero::before, .page-hero::before, .section-navy::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(60deg, transparent 0 46px, rgba(168, 222, 247, .07) 46px 47px),
    repeating-linear-gradient(-60deg, transparent 0 46px, rgba(168, 222, 247, .07) 46px 47px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 15%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 15%, #000 0%, transparent 75%);
}
.section-navy::before { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%); }
.site-footer::before { -webkit-mask-image: radial-gradient(ellipse 50% 90% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 50% 90% at 100% 0%, #000, transparent 70%); }

/* Diamond lattice on light sections */
.section-ice, .section-ice-solid { position: relative; overflow: hidden; }
.section-ice::before, .section-ice-solid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(60deg, transparent 0 46px, rgba(79, 175, 224, .08) 46px 47px),
    repeating-linear-gradient(-60deg, transparent 0 46px, rgba(79, 175, 224, .08) 46px 47px);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 0% 0%, #000, transparent 70%), radial-gradient(ellipse 45% 55% at 100% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 60% at 0% 0%, #000, transparent 70%), radial-gradient(ellipse 45% 55% at 100% 100%, #000, transparent 70%);
}

/* Faceted gem in page headers */
.hero::after, .page-hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: 560px; aspect-ratio: 200 / 160; right: -120px; bottom: -150px;
  background: var(--gem) center / contain no-repeat; opacity: .35; transform: rotate(-14deg);
}
.hero::after { right: auto; left: -180px; bottom: -190px; opacity: .22; transform: rotate(12deg); }
@media (max-width: 860px) {
  .hero::after, .page-hero::after { width: 320px; right: -110px; bottom: -110px; left: auto; }
}

/* Keep content above the textures */
.hero > .wrap, .page-hero > .wrap, .section-navy > .wrap, .site-footer > .wrap,
.section-ice > .wrap, .section-ice-solid > .wrap { position: relative; z-index: 1; }

/* Lattice inside the call to action band */
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(60deg, transparent 0 38px, rgba(255, 255, 255, .12) 38px 39px),
    repeating-linear-gradient(-60deg, transparent 0 38px, rgba(255, 255, 255, .12) 38px 39px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%, transparent 55%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 45%, transparent 55%, #000);
}
.cta-band > * { position: relative; }

/* Diamond shine: a glint that sweeps across on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: skewX(-20deg); opacity: 0;
}
.btn-primary:hover::after { animation: shine .8s var(--ease); }
.card { overflow: hidden; }
.card::after { background: linear-gradient(105deg, transparent 0%, rgba(168, 222, 247, .35) 50%, transparent 100%); }
.card:hover::after { animation: shine 1s var(--ease); }
.section-navy .card::after { background: linear-gradient(105deg, transparent 0%, rgba(168, 222, 247, .14) 50%, transparent 100%); }
@keyframes shine {
  0% { left: -60%; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Faceted icon badges */
.icon-badge, .step-num { position: relative; overflow: hidden; }
.icon-badge::before, .step-num::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55) 0 30%, transparent 30% 100%),
              linear-gradient(225deg, rgba(255, 255, 255, .18) 0 22%, transparent 22% 100%);
}
.icon-badge > svg, .step-num > * { position: relative; }
.section-navy .icon-badge::before { background: linear-gradient(135deg, rgba(255, 255, 255, .14) 0 30%, transparent 30% 100%); }
@media (max-width: 860px) { .page-hero::after { opacity: .2; } .hero::after { opacity: .16; } }
@media (min-width: 721px) { .compare { table-layout: fixed; } .compare thead th:first-child { width: 19%; } }

/* ---------- Work With Us ---------- */
.choice-group.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice-group.auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 520px) { .choice-group.cols-2 { grid-template-columns: 1fr 1fr; } .choice-group.auto { grid-template-columns: 1fr 1fr; } }
.choice input[type="checkbox"] + span { position: relative; }

.work-card { display: flex; flex-direction: column; gap: 4px; }
.work-card .icon-badge { margin-bottom: 14px; }
.work-card .tag { align-self: flex-start; }
.work-card h3 { font-size: 1.4rem; }
.work-card p { margin: 6px 0 22px; }
.work-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 480px) { .work-card .btn { align-self: stretch; } }
.pill-row { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row li { padding: 6px 14px; border-radius: 999px; background: var(--ice-50); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--ink); }
.phase-card.featured .pill-row li { background: rgba(168, 222, 247, .1); border-color: rgba(168, 222, 247, .25); color: var(--ice); }
.phase-card.featured .icon-badge { background: linear-gradient(135deg, rgba(79, 175, 224, .25), rgba(168, 222, 247, .1)); color: var(--ice); }

.work-form-card { max-width: 860px; margin-inline: auto; }
fieldset.branch { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.branch-hint { margin: 18px 0 0; text-align: center; padding: 18px; border-radius: 14px; border: 2px dashed #cfe2ee; }
.field input[type="file"] { padding: 12px; background: var(--ice-50); border-style: dashed; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; font-size: .9rem; margin-right: 12px; padding: 8px 14px; border-radius: 999px;
  border: 0; background: #1b76aa; color: #fff; cursor: pointer;
}
.field small { display: block; margin-top: 8px; font-size: .82rem; }
.field-error { color: #9a2b22 !important; font-weight: 500; }
.work-thanks { text-align: center; padding: 24px 8px; }
.work-thanks .icon-badge { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 20px; }
.work-thanks .icon-badge svg { width: 30px; height: 30px; }
.work-thanks p { max-width: 520px; margin: 0 auto 24px; }
.work-thanks:focus { outline: none; }

.hiring-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; font-size: .92rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hiring-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hiring-link svg { width: 16px; height: 16px; }
.hiring-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, .18); }
.choice-group.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .choice-group.cols-3 .choice span { padding: 10px 6px; font-size: .88rem; } }

/* ---------- Header phone ---------- */
.header-phone { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--blue-700); }
.header-phone svg, .nav-phone svg { width: 18px; height: 18px; color: var(--blue-700); }
.main-nav .nav-phone { display: none; }
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .main-nav .nav-phone {
    display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 14px;
    background: var(--ice-50); border: 1px solid var(--line); color: var(--ink); font-size: 1.15rem; font-weight: 600;
  }
}
@media (min-width: 1181px) {
  .main-nav a { white-space: nowrap; }
}
@media (min-width: 1181px) and (max-width: 1359px) {
  .main-nav a { padding-inline: 11px; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border-radius: 999px; border: 1px solid var(--line); padding: 0; }
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Header uses a little more width so eight menu items and the phone number fit */
.site-header .wrap { max-width: 1320px; }

/* ---------- Home page reviews ---------- */
.review-summary { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.review-summary:hover { color: var(--ink); border-color: #c8e6f6; }
.review-summary strong { font-size: 1.05rem; }
.review-summary span:last-child { color: var(--muted); font-size: .92rem; }
.review-stars { display: inline-flex; gap: 2px; color: #f5b300; }
.review-stars svg { width: 18px; height: 18px; fill: currentColor; }
.reviews-grid { columns: 3 300px; column-gap: 20px; }
.review-card {
  break-inside: avoid; margin: 0 0 20px; padding: 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.review-card .review-stars { margin-bottom: 14px; }
.review-card blockquote { margin: 0 0 18px; color: var(--text); font-size: .98rem; line-height: 1.7; }
.review-card figcaption strong { display: block; color: var(--ink); }
.review-card figcaption span { font-size: .85rem; color: var(--muted); }
.reviews-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
@media (max-width: 640px) {
  .reviews-grid.collapsed .review-card:nth-child(n+5) { display: none; }
  .reviews-foot .btn { width: 100%; }
}
@media (min-width: 641px) { .reviews-more { display: none !important; } }

/* Footer sparkles sat on top of link text on phones */
@media (max-width: 560px) { .site-footer .sparkle { display: none; } }

/* Company name and ABN under the footer logo */
.site-footer .footer-business { margin: 0; font-size: .85rem; line-height: 1.6; color: #7f98b0; }

/* ---------- Services dropdown ---------- */
.main-nav .has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 999px;
  background: none; font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.sub-toggle svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.sub-toggle:hover, .has-sub.open > .sub-toggle { background: var(--ice-50); color: var(--blue-700); }
.sub-toggle.is-current { color: var(--blue-700); background: var(--ice-100); }
.has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
@media (min-width: 1181px) {
  .main-nav .sub-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; z-index: 120; min-width: 210px;
    display: grid; gap: 2px; margin: 0; padding: 8px; list-style: none;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .main-nav .has-sub:hover > .sub-menu, .main-nav .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .main-nav .has-sub:hover > .sub-toggle svg { transform: rotate(180deg); }
  .main-nav .sub-menu a { border-radius: 10px; padding: 10px 14px; }
}
@media (max-width: 1180px) {
  .main-nav .sub-toggle { width: 100%; justify-content: space-between; font-size: 1.15rem; padding: 14px 16px; border-radius: 14px; }
  .main-nav .sub-menu { display: none; margin: 2px 0 8px 16px; padding: 0 0 0 10px; border-left: 2px solid var(--ice-100); }
  .main-nav .has-sub.open > .sub-menu { display: flex; }
  .main-nav .sub-menu a { font-size: 1.05rem; padding: 11px 14px; }
}

/* ---------- Why Choose Legacy Solar (home page) ---------- */
.why-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 24px; }
.why-item { flex: 1 1 180px; max-width: 228px; text-align: center; }
.why-icon {
  width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #4FAFE0 0%, #1b76aa 100%);
  box-shadow: 0 0 0 8px rgba(79, 175, 224, .14), 0 14px 30px -12px rgba(79, 175, 224, .6);
}
.why-icon svg { width: 40px; height: 40px; }
.why-item h3 { font-size: 1.08rem; margin-bottom: .45em; }
.why-item p { margin: 0; font-size: .95rem; color: #c9d8e6; }
.why-item .placeholder { font-weight: 700; }
.why-actions { margin-top: clamp(36px, 5vw, 52px); }
@media (max-width: 640px) {
  .why-item { flex-basis: 100%; max-width: 360px; }
  .why-actions .btn { width: 100%; max-width: 360px; }
}

/* Referral line in the call to action band */
.cta-note { margin: 22px auto 0 !important; font-size: .92rem; color: rgba(255, 255, 255, .88) !important; }

/* Three step rows get the same dotted connector as four step rows */
.steps.grid-3 .step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; left: 72px; right: -8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ice) 0 6px, transparent 6px 12px);
}
@media (max-width: 960px) { .steps.grid-3 .step::after { display: none; } }

/* Finance partner cards show only the logo and name */
.fin-card h3 { text-align: center; margin-bottom: 0; }

/* ---------- Footer layout (brand column + link columns + bottom bar) ---------- */
.footer-top { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.6fr); gap: 48px; }
.footer-brand .footer-logo { width: 120px; margin-bottom: 14px; }
.footer-brand .footer-slogan { margin: 0; max-width: 240px; font-size: .95rem; line-height: 1.5; }
.footer-cta { margin-top: 22px; }
.footer-follow { margin-top: 32px; }
.site-footer .footer-brand h2, .site-footer .footer-col h2 {
  margin: 0 0 16px; color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.site-footer .footer-col h2.footer-sub { margin-top: 28px; }
.footer-social { display: flex; gap: 12px; }
.site-footer .footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(168, 222, 247, .28); transition: background-color .2s, border-color .2s, color .2s;
}
.site-footer .footer-social a:hover { background: rgba(79, 175, 224, .18); border-color: var(--blue); color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 32px; }
.footer-col li { color: #c9d8e6; }
@media (max-width: 420px) { .site-footer .footer-col a { overflow-wrap: anywhere; } }
.site-footer .footer-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(168, 222, 247, .22);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px 32px;
}
.site-footer .footer-bottom p { margin: 0; font-size: .85rem; line-height: 1.7; color: #9fb6cb; }
.site-footer .footer-hq { text-align: right; }
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 720px) {
  .site-footer .footer-bottom { grid-template-columns: 1fr; align-items: start; }
  .site-footer .footer-hq { text-align: left; }
}
@media (max-width: 420px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* ---------- EV charger cards (ev-chargers.html) ---------- */
.ev-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ev-card {
  flex: 0 1 calc((100% - 2 * 20px) / 3); min-width: 0; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.ev-photo {
  display: grid; place-items: center; height: 240px; padding: 18px;
  background: linear-gradient(160deg, var(--ice-50) 0%, var(--ice-100) 100%); border-bottom: 1px solid var(--line);
}
.ev-photo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(10, 32, 56, .16)); }
.ev-photo .photo-soon { width: 78%; height: 190px; text-align: center; }
.ev-photo .photo-soon small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.ev-body { padding: 18px 20px 22px; }
.ev-body h3 { font-size: 1.12rem; margin: 0 0 4px; }
.ev-body p { margin: 0; color: var(--text); font-size: .95rem; }
@media (max-width: 960px) { .ev-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .ev-card { flex-basis: 100%; } }

/* Footer review links (Google and Trustpilot) */
.footer-reviews { margin-top: 28px; }
.site-footer .footer-reviews h2 { margin: 0 0 14px; color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-review-links { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer .footer-review-links a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(168, 222, 247, .28); color: #fff; font-size: .86rem; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.site-footer .footer-review-links a:hover { background: rgba(79, 175, 224, .18); border-color: var(--blue); color: #fff; }
.footer-review-links svg { width: 15px; height: 15px; color: #f5b300; }

/* Follow us and Reviews side by side under the footer logo */
.footer-top { grid-template-columns: minmax(250px, 1.25fr) minmax(0, 2.6fr); }
.footer-social-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 32px; margin-top: 32px; }
.footer-social-row .footer-follow, .footer-social-row .footer-reviews { margin-top: 0; }
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr; } }

/* Areas we service (home page) */
.area-list { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area-list li { padding: 9px 18px; border-radius: 999px; background: var(--ice-50); border: 1px solid var(--line); color: var(--ink); font-size: .95rem; font-weight: 500; }
.area-list li.area-all { background: var(--ice-100); border-color: #bfe3f6; color: var(--blue-700); font-weight: 600; }
.ev-note { margin: 16px 0 0; font-size: .95rem; }
.ev-note a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Footer bottom: give the business details line room so it stays on one line on desktop */
@media (min-width: 1025px) {
  .site-footer .footer-bottom { grid-template-columns: auto 1fr auto; }
  .site-footer .footer-copy { text-align: center; }
}
@media (max-width: 1024px) {
  .site-footer .footer-bottom { grid-template-columns: 1fr; align-items: start; }
  .site-footer .footer-hq { text-align: left; }
  .site-footer .sparkle { display: none; }
}

/* ---------- Brands we install: scrolling logo strip (home page) ---------- */
.brand-strip {
  position: relative; padding: 30px 0 34px; overflow: hidden;
  background: linear-gradient(180deg, #081a2e 0%, var(--navy) 100%);
  border-top: 1px solid rgba(168, 222, 247, .12); border-bottom: 1px solid rgba(168, 222, 247, .12);
}
.brand-strip-title {
  margin: 0 0 20px; text-align: center; color: var(--ice);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.brand-track { display: flex; width: max-content; animation: brand-scroll 70s linear infinite; }
.brand-marquee:hover .brand-track, .brand-marquee:focus-within .brand-track { animation-play-state: paused; }
.brand-set { display: flex; align-items: center; gap: clamp(48px, 7vw, 88px); margin: 0; padding: 0 clamp(24px, 3.5vw, 44px); list-style: none; }
.brand-logo { flex: none; display: grid; place-items: center; height: 52px; }
.brand-logo img {
  display: block; width: auto; height: 28px; max-width: none;
  filter: grayscale(1) brightness(1.15); opacity: .75;
  transition: filter .35s var(--ease), opacity .35s var(--ease);
}
.brand-logo:hover img { filter: none; opacity: 1; }
/* Size each logo so they look balanced (aspect ratios are never changed) */
.brand-goodwe img { height: 24px; }
.brand-alphaess img { height: 34px; }
.brand-anker img { height: 22px; }
.brand-sigenergy img { height: 30px; }
.brand-foxess img { height: 44px; }
@keyframes brand-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .brand-strip { padding: 24px 0 26px; }
  .brand-logo img { height: 22px; }
  .brand-goodwe img { height: 19px; } .brand-alphaess img { height: 27px; } .brand-anker img { height: 17px; }
  .brand-sigenergy img { height: 24px; } .brand-foxess img { height: 34px; }
  .brand-track { animation-duration: 52s; }
}
/* Reduced motion: no scrolling, just a neat centred row */
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; width: auto; justify-content: center; }
  .brand-set[aria-hidden="true"] { display: none; }
  .brand-set { flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .brand-marquee { -webkit-mask-image: none; mask-image: none; }
}
/* Coloured logos turn dark in greyscale on navy, so lift them to match the white ones (full colour on hover) */
.brand-goodwe img, .brand-longi img { filter: grayscale(1) brightness(3.2); }
.brand-sungrow img, .brand-aiko img, .brand-jinko img { filter: grayscale(1) brightness(1.6); }
.brand-logo:hover img { filter: none; opacity: 1; }
.brand-longi img { height: 30px; }
.brand-jinko img { height: 34px; }
.brand-aiko img { height: 26px; }
.brand-trina img { height: 26px; }
.brand-ja-solar img { height: 24px; }
.brand-sunpower img { height: 22px; }
@media (max-width: 640px) {
  .brand-longi img { height: 24px; } .brand-jinko img { height: 27px; } .brand-aiko img { height: 21px; }
  .brand-trina img { height: 21px; } .brand-ja-solar img { height: 19px; } .brand-sunpower img { height: 17px; }
}

/* =========================================================
   Product page layout (shared by solar.html, batteries.html, ev-chargers.html)
   Change it here and all three pages update together.
   ========================================================= */
.pp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pp-hero-media {
  position: relative; border-radius: var(--radius-lg); aspect-ratio: 5 / 4; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  background: linear-gradient(150deg, var(--ice-100) 0%, var(--ice) 55%, var(--blue) 100%);
  border: 1px solid rgba(168, 222, 247, .25);
}
.pp-hero-media.navy { background: radial-gradient(500px 300px at 70% 20%, rgba(79, 175, 224, .45), transparent 70%), linear-gradient(150deg, var(--navy-700), #0d2d4d); }
.pp-hero-media svg.illus, .pp-hero-media img { width: 64%; height: auto; }
.pp-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .pp-hero-grid { grid-template-columns: 1fr; }
  .pp-hero-media { max-width: 520px; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .pp-hero-actions .btn { width: 100%; } }

/* Section intros */
.pp-section-head { max-width: 720px; }

/* Brand card front: one short line under the brand name */
.bcard-line { font-size: .9rem; color: var(--text); line-height: 1.45; }

/* Finance strip */
.pp-finance .finance-band p { margin: 0; }
.pp-finance-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ block on product pages */
.pp-faq .faq { margin-top: 0; }

/* ---------- Floating cards ----------
   A slow, subtle float, slightly out of sync. Uses the separate "translate"
   property so the hover lift (transform) and the battery flip still work. */
@keyframes pp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.float-card { animation: pp-float 6.5s ease-in-out infinite; will-change: translate; }
.float-card:nth-child(4n+2) { animation-duration: 7.2s; animation-delay: -1.8s; }
.float-card:nth-child(4n+3) { animation-duration: 6.1s; animation-delay: -3.4s; }
.float-card:nth-child(4n+4) { animation-duration: 7.7s; animation-delay: -5.1s; }
.float-card.card { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .7s var(--ease); }
.float-card.card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px -22px rgba(10, 32, 56, .35); }
.bcard.float-card { transition: transform .45s var(--ease), opacity .7s var(--ease); }
.bcard.float-card:hover { transform: translateY(-8px); }
.bcard.float-card .bcard-face { transition: box-shadow .45s var(--ease); }
.bcard.float-card:hover .bcard-face { box-shadow: 0 26px 48px -24px rgba(10, 32, 56, .38); }
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  .float-card.card:hover, .bcard.float-card:hover { transform: none; }
}

/* Product photos with a white background blend into the card (no change to the photo files) */
.bcard-photo img { mix-blend-mode: multiply; }

/* Work With Us: three option cards */
.work-grid .work-card { display: flex; flex-direction: column; }
.work-grid .work-card .btn { margin-top: auto; align-self: flex-start; }


/* =========================================================
   Support page (support.html)
   ========================================================= */
.sp-pill {
  display: inline-block; margin-bottom: 16px; padding: 7px 16px; border-radius: 999px;
  background: rgba(79, 175, 224, .18); border: 1px solid rgba(168, 222, 247, .35);
  color: var(--ice); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.sp-hero h1 { max-width: 760px; }
/* Quick access cards: short accent bar on top */
.sp-card { display: flex; flex-direction: column; gap: 4px; padding-top: 34px; }
.sp-card::before { content: ""; position: absolute; top: 0; left: 28px; width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: var(--blue); }
.sp-card .sp-card-label { margin-bottom: 6px; }
.sp-card p { margin: 0 0 18px; }
.sp-card .btn { margin-top: auto; align-self: flex-start; }
.sp-big { font-size: clamp(1.6rem, 3.4vw, 2rem); font-weight: 700; color: var(--blue-700); line-height: 1.2; margin-bottom: 6px; white-space: nowrap; }
.sp-mid { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; overflow-wrap: anywhere; }
a.sp-mid { color: var(--blue-700); }
/* Form */
.sp-form-card { max-width: 860px; margin-inline: auto; }
.sp-state-row { grid-column: auto; gap: 18px; }
.sp-form-card .field-error { display: block; margin-top: 6px; color: #b42318; font-size: .85rem; font-weight: 500; }
.sp-form-card [aria-invalid="true"] { border-color: #e0736b !important; }
.sp-form-card .field small.muted { display: block; margin-top: 6px; }
@media (max-width: 600px) { .sp-state-row { grid-template-columns: 1fr 1fr; } }
/* Sticky mobile contact bar */
.sp-mobile-bar { display: none; }
@media (max-width: 760px) {
  .sp-mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 32, 56, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(168, 222, 247, .2);
  }
  .sp-mobile-bar .btn { padding: 13px 10px; font-size: .9rem; white-space: nowrap; }
  .sp-mobile-bar .btn svg { width: 16px; height: 16px; }
  body.support-page { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Refer a friend page and links */
.rf-group { font-size: 1.05rem; margin: 22px 0 14px; }
.rf-group:first-of-type { margin-top: 6px; }
.rf-consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.rf-consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: #1b76aa; }
.cta-note-link { display: inline-block; margin-left: 6px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-note-link:hover { color: var(--ice); }

/* About page: bold closing line of Our Story */
.story-close {
  display: block; margin-top: 10px; font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; line-height: 1.2;
  letter-spacing: -.015em; color: var(--ink);
}
.story-close::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #1b76aa); }

/* About page: vision map (SA now, rest of Australia on the way) */
.vision-split { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 860px) { .vision-split { grid-template-columns: 1fr; } }
.vision-map {
  margin: 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 28px);
}
.vision-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.vm-state { fill: var(--ice-50, #eef8fd); stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 4 3; stroke-linejoin: round; }
.vm-sa { fill: var(--blue); stroke: var(--blue-700); stroke-width: 1.5; stroke-linejoin: round; }
.vm-sa-label { font-family: inherit; font-size: 17px; font-weight: 700; fill: #fff; letter-spacing: .02em; }
.vm-sa-sub { font-family: inherit; font-size: 12px; font-weight: 600; fill: var(--navy); text-transform: uppercase; letter-spacing: .08em; }
.vm-route { stroke: var(--navy); stroke-width: 1.8; stroke-dasharray: 6 6; stroke-linecap: round; opacity: .55; animation: vm-dash 2.4s linear infinite; }
.vm-city { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.vm-city-label { font-family: inherit; font-size: 13px; font-weight: 600; fill: var(--muted); }
.vm-hq { fill: var(--navy); stroke: #fff; stroke-width: 3; }
.vm-pulse { fill: var(--navy); opacity: .35; transform-box: fill-box; transform-origin: center; animation: vm-pulse 2s var(--ease) infinite; }
.vm-hq-label { font-family: inherit; font-size: 14px; font-weight: 700; fill: var(--navy); paint-order: stroke; stroke: var(--blue); stroke-width: 4px; stroke-linejoin: round; }
.vm-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 14px; font-size: .9rem; color: var(--text); }
.vm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.vm-key { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.vm-key-now { background: var(--blue); }
.vm-key-next { background: var(--ice-50, #eef8fd); border: 1.5px dashed var(--blue); }
@keyframes vm-dash { to { stroke-dashoffset: -24; } }
@keyframes vm-pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vm-route, .vm-pulse { animation: none; } .vm-pulse { display: none; } }

/* Brand logos: on hover, show each brand's full colour logo on a white badge
   with an underline in that brand's own colours */
.brand-logo { position: relative; padding: 0 14px; border-radius: 12px; --accent: var(--blue); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.brand-logo::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.brand-logo .brand-color { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; filter: none; }
.brand-logo:hover { background-color: #fff; box-shadow: 0 0 0 1px var(--glow, rgba(255,255,255,.5)), 0 8px 24px -8px var(--glow, rgba(255,255,255,.4)); }
.brand-logo:hover::after { transform: scaleX(1); }
.brand-logo:hover .brand-color { opacity: 1; }
.brand-logo:hover img:not(.brand-color):not(:only-child) { opacity: 0; }
.brand-sungrow   { --accent: #FF7900; --glow: rgba(255, 121, 0, .5); }
.brand-longi     { --accent: #E60012; --glow: rgba(230, 0, 18, .45); }
.brand-goodwe    { --accent: #E60012; --glow: rgba(230, 0, 18, .45); }
.brand-alphaess  { --accent: linear-gradient(90deg, #7BA92C, #F9BE00); --glow: rgba(249, 190, 0, .5); }
.brand-jinko     { --accent: #3FA535; --glow: rgba(63, 165, 53, .5); }
.brand-aiko      { --accent: #FF5000; --glow: rgba(255, 80, 0, .5); }
.brand-anker     { --accent: #00A7E1; --glow: rgba(0, 167, 225, .5); }
.brand-ja-solar  { --accent: #00459C; --glow: rgba(0, 69, 156, .55); }
.brand-trina     { --accent: #E60012; --glow: rgba(230, 0, 18, .45); }
.brand-sunpower  { --accent: #F7941D; --glow: rgba(247, 148, 29, .5); }
.brand-sigenergy { --accent: #C8102E; --glow: rgba(200, 16, 46, .45); }
.brand-foxess    { --accent: linear-gradient(90deg, #E4007F, #F9BE00, #00A0E9); --glow: rgba(228, 0, 127, .4); }
.brand-foxess { height: 60px; }
.brand-foxess::after { bottom: 3px; }
@media (max-width: 640px) { .brand-foxess { height: 48px; } }

/* Photos in the home page Solar / Batteries sections */
.split-media.photo { background: var(--ice-100); }
.split-media.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cards with a photo across the top (Commercial page) */
.photo-card { padding-top: 0; }
.photo-card .card-photo { margin: 0 -28px 22px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ice-100); }
.photo-card .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.photo-card:hover .card-photo img { transform: scale(1.04); }
/* Five cards: three on top, two centred underneath */
@media (min-width: 961px) {
  .who-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .who-grid > .card { grid-column: span 2; }
  .who-grid > .card:nth-child(4) { grid-column: 2 / span 2; }
}

/* Commercial page: "typical business day" chart (power use vs solar) */
.day-chart {
  margin: 0 0 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(18px, 3vw, 28px);
  --dc-use: #2F7FC0; --dc-solar: #E39A12;
}
.day-chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 10px; }
.day-chart-title { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.day-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--text); }
.day-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dc-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; flex: none; }
.dc-key-use { background: var(--dc-use); }
.dc-key-solar { background: var(--dc-solar); }
.day-chart-plot { position: relative; }
.day-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.dc-hours { stroke: #9fc3dc; stroke-width: 1.2; stroke-dasharray: 4 4; }
.dc-hours-label { font-family: inherit; font-size: 11px; font-weight: 600; fill: var(--muted); letter-spacing: .04em; }
.dc-grid line { stroke: var(--line); stroke-width: 1; }
.dc-base { stroke: #b9cddc; stroke-width: 1; }
.dc-axis text { font-family: inherit; font-size: 11px; fill: var(--muted); }
.dc-solar-area { fill: var(--dc-solar); opacity: .12; }
.dc-solar { fill: none; stroke: var(--dc-solar); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dc-use { fill: none; stroke: var(--dc-use); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dc-label { font-family: inherit; font-size: 12px; font-weight: 600; fill: var(--ink); }
.dc-cursor { opacity: 0; transition: opacity .15s; pointer-events: none; }
.dc-cursor.on { opacity: 1; }
.dc-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.dc-dot-use { fill: var(--dc-use); stroke: #fff; stroke-width: 2; }
.dc-dot-solar { fill: var(--dc-solar); stroke: #fff; stroke-width: 2; }
.dc-hit { fill: transparent; cursor: crosshair; touch-action: pan-y; }
.dc-tip {
  position: absolute; top: 0; transform: translate(-50%, -8px); pointer-events: none; opacity: 0; transition: opacity .15s;
  background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: .82rem; line-height: 1.5;
  display: grid; gap: 2px; min-width: 130px; box-shadow: var(--shadow);
}
.dc-tip.on { opacity: 1; }
.dc-tip span { display: flex; align-items: center; gap: 7px; color: #c9d8e6; }
.dc-tip b { margin-left: auto; color: #fff; }
.day-chart-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) {
  .dc-axis text { font-size: 20px; }
  .dc-hours-label { font-size: 19px; }
  .dc-label { font-size: 21px; }
  .dc-solar, .dc-use { stroke-width: 4; }
}

/* EV charger cards have five details: tighter spacing, and scroll if ever too long */
#ev-grid .bcard-back { overflow-y: auto; gap: 10px; }
#ev-grid .bspecs { gap: 6px; }

/* Keep the logo, quote action and menu reachable on narrow phones. */
@media (max-width: 380px) {
  .header-inner { gap: 6px; }
  .header-inner .brand img { width: 100px; height: auto; }
  .header-cta.btn-sm { flex: 1; min-width: 0; padding: 8px; font-size: .875rem; line-height: 1.25; white-space: normal; text-align: center; }
  .nav-toggle { flex-shrink: 0; }
}

.work-card { min-width: 0; }
.work-card .btn { max-width: 100%; white-space: normal; text-align: center; }
