/* Brightgrid Solar — "Notched Panel" layout primitive: a full-bleed
   photo hero with a single chamfered-corner card (echoing a panel's cut
   corner), plus a thin cell-grid photo gallery. Own CSS variables and
   class taxonomy — see img/SOURCES.md and README.md for the rest of the
   build notes. */

:root {
  --navy: #0f1b2d;
  --navy-2: #16263d;
  --wash: #4a5b73;
  --wash-light: #7f92ab;
  --sunbeam: #f5b731;
  --sunbeam-dim: #d99a15;
  --volt: #2ecc9c;
  --volt-dim: #22a67d;
  --cloud: #f6f8fb;
  --cloud-2: #e8edf3;
  --copy: #12202f;
  --faint: #5b6b7d;

  --font-display: 'Outfit', sans-serif;
  --font-text: 'Mulish', sans-serif;

  --curve: 10px;
  --lift: 0 18px 40px rgba(15, 27, 45, 0.2);
  --measure: 62ch;
  --edge: clamp(20px, 5vw, 72px);
  --notch: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--copy);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
  color: var(--navy);
}

p { margin: 0 0 1em; max-width: var(--measure); color: var(--faint); }

a { color: var(--volt-dim); }

:focus-visible { outline: 3px solid var(--sunbeam); outline-offset: 2px; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.watt {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--curve);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.watt:hover { transform: translateY(-2px); }
.watt--sunbeam { background: var(--sunbeam); color: var(--navy); box-shadow: 0 10px 22px rgba(245, 183, 49, 0.35); }
.watt--sunbeam:hover { background: var(--sunbeam-dim); }
.watt--volt { background: var(--volt); color: var(--navy); }
.watt--volt:hover { background: var(--volt-dim); color: #fff; }
.watt--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.watt--outline:hover { border-color: #fff; }
.watt--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.watt--ghost:hover { background: var(--navy); color: #fff; }
.watt--full { width: 100%; justify-content: center; }

/* ---------- Topbar ---------- */
.bar-top { background: var(--navy); color: var(--cloud-2); font-size: 0.82rem; }
.bar-top-inner { padding: 0.5em var(--edge); display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; }

/* ---------- Masthead: bridge ---------- */
.bridge {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 248, 251, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
}
.bridge-row { padding: 0.9em var(--edge); display: flex; align-items: center; gap: 2em; }
.spark {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: auto;
}
.spark svg { flex: none; color: var(--sunbeam-dim); }
.circuit { display: flex; gap: 1.6em; }
.circuit a { text-decoration: none; color: var(--copy); font-weight: 600; font-size: 0.95rem; }
.circuit a:hover { color: var(--volt-dim); }
.charge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--navy);
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.charge:hover { background: var(--navy-2); }
.grid-toggle { background: none; border: none; padding: 0.4em; display: none; }
.grid-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }
.circuit.is-open { display: flex; }

@media (max-width: 860px) {
  .circuit {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cloud);
    flex-direction: column;
    padding: 1em var(--edge) 1.4em;
    border-bottom: 1px solid rgba(15, 27, 45, 0.08);
    gap: 0.9em;
  }
  .grid-toggle { display: block; }
}

/* ---------- Hero: panel ---------- */
.panel { position: relative; min-height: 84vh; display: flex; align-items: flex-end; overflow: hidden; }
.panel-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 27, 45, 0.15) 0%, rgba(15, 27, 45, 0) 55%);
}
.panel-card {
  position: relative;
  z-index: 2;
  background: var(--navy);
  color: var(--cloud);
  padding: 2.6em var(--edge) 2.8em;
  margin: 0 0 clamp(24px, 4vw, 56px) clamp(0px, 3vw, 4vw);
  max-width: 640px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  box-shadow: var(--lift);
}
.panel-card .marker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sunbeam);
  margin-bottom: 0.8em;
}
.panel-card h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.panel-card p { color: rgba(246, 248, 251, 0.8); }
.panel-actions { display: flex; gap: 0.9em; flex-wrap: wrap; margin-top: 1.2em; }

/* ---------- Trust band ---------- */
.band-cert { background: var(--navy-2); color: var(--cloud-2); }
.band-cert-inner {
  padding: 0.9em var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 2.4em;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
}
.band-cert-inner strong { color: var(--sunbeam); font-family: var(--font-display); }

/* ---------- Buy vs Lease (bespoke, real toggle) ---------- */
.choice { padding: clamp(3em, 7vw, 5.5em) var(--edge); background: var(--cloud); }
.choice-frame { max-width: 900px; margin: 0 auto; }
.choice-lead { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 1em; }
.choice-tabs { display: flex; gap: 0.6em; margin-bottom: 1.6em; }
.choice-tab {
  flex: 1;
  background: var(--cloud-2);
  border: 1.5px solid transparent;
  padding: 1em 1.2em;
  border-radius: var(--curve);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--faint);
  text-align: center;
}
.choice-tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.choice-sheet { background: #fff; border-radius: var(--curve); padding: clamp(1.6em, 4vw, 2.4em); box-shadow: var(--lift); }
.choice-panel ul { list-style: none; margin: 0; padding: 0; }
.choice-panel li { position: relative; padding-left: 1.6em; margin-bottom: 0.7em; color: var(--copy); }
.choice-panel li::before { content: '\2713'; position: absolute; left: 0; color: var(--volt-dim); font-weight: 700; }

/* ---------- Incentive Stack (bespoke, static layered visual) ---------- */
.stack-section { padding: clamp(3em, 7vw, 5.5em) var(--edge); background: var(--navy); color: var(--cloud); }
.stack-frame { max-width: 780px; margin: 0 auto; }
.stack-lead { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: #fff; margin-bottom: 1.6em; }
.stack-rows { display: grid; gap: 0.9em; }
.stack-row { display: grid; grid-template-columns: 11em 1fr; align-items: center; gap: 1em; }
.stack-row-label { font-size: 0.88rem; color: rgba(246, 248, 251, 0.75); }
.stack-bar-track { background: rgba(246, 248, 251, 0.1); border-radius: 999px; height: 2.2em; position: relative; overflow: hidden; }
.stack-bar-fill { height: 100%; border-radius: 999px; display: flex; align-items: center; padding: 0 0.9em; font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.stack-row[data-step="1"] .stack-bar-fill { width: 100%; background: var(--cloud); }
.stack-row[data-step="2"] .stack-bar-fill { width: 70%; background: var(--sunbeam); }
.stack-row[data-step="3"] .stack-bar-fill { width: 55%; background: var(--volt); color: #fff; }
.stack-note { font-size: 0.85rem; color: rgba(246, 248, 251, 0.65); margin-top: 1.2em; max-width: 60ch; }

/* ---------- Services: tiers ---------- */
.tiers-section { padding: clamp(3em, 7vw, 5.5em) var(--edge); }
.tiers-open { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 46ch; margin-bottom: 1.6em; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6em; }
.tier { border-top: 3px solid var(--sunbeam); padding-top: 1.2em; }
.tier .tier-num { font-family: var(--font-display); font-weight: 700; color: var(--wash-light); font-size: 0.85rem; }
.tier h3 { font-size: 1.15rem; }
@media (max-width: 800px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Array gallery (bespoke, cell-grid tiles) ---------- */
.array-section { padding: clamp(3em, 7vw, 5.5em) var(--edge); background: var(--navy); color: var(--cloud); }
.array-filter { display: flex; gap: 0.6em; flex-wrap: wrap; margin-bottom: 1.4em; }
.array-filter button {
  background: rgba(246, 248, 251, 0.08);
  border: 1px solid rgba(246, 248, 251, 0.25);
  color: var(--cloud);
  padding: 0.55em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.array-filter button[aria-pressed="true"] { background: var(--sunbeam); border-color: var(--sunbeam); color: var(--navy); }
.array-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(246, 248, 251, 0.25);
  border: 2px solid rgba(246, 248, 251, 0.25);
}
.array-cell { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--navy); }
.array-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.array-cell:hover img { transform: scale(1.08); }
.array-tag {
  position: absolute;
  left: 0.6em;
  bottom: 0.6em;
  background: rgba(15, 27, 45, 0.82);
  color: var(--cloud);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25em 0.6em;
  border-radius: 999px;
}
.array-cell.is-hidden { display: none; }
@media (max-width: 700px) { .array-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reviews: readings ---------- */
.readings-section { padding: clamp(3em, 7vw, 5.5em) var(--edge); }
.readings-frame { max-width: 1100px; margin: 0 auto; }
.readings-frame { max-width: 1100px; margin: 0 auto; }
.readings-open { display: flex; align-items: baseline; gap: 0.6em; margin-bottom: 1.6em; flex-wrap: wrap; }
.readings-open .stat-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--navy); }
.readings-open .stat-note { color: var(--faint); font-size: 0.95rem; }
.readings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; }
.reading-item { border-left: 3px solid var(--volt); padding-left: 1.2em; }
.reading-item p { font-size: 0.94rem; color: var(--copy); margin-bottom: 0.6em; }
.reading-who { font-size: 0.85rem; color: var(--faint); font-weight: 700; }
@media (max-width: 800px) { .readings-grid { grid-template-columns: 1fr; } }

/* ---------- Service area: footprint ---------- */
.footprint-section { padding: clamp(2em, 5vw, 3em) var(--edge); }
.footprint-section p { max-width: 70ch; }

/* ---------- Closer CTA: output ---------- */
.output {
  position: relative;
  padding: clamp(4em, 10vw, 7em) var(--edge);
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}
.output-glow { position: absolute; bottom: -30%; right: -10%; width: 70%; height: 160%; background: radial-gradient(circle, rgba(245, 183, 49, 0.2), transparent 70%); z-index: 0; }
.output-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.output h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.output .ring-big { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); color: #fff; text-decoration: none; margin: 0.5em 0 1.1em; }
.output-actions { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact + footer ---------- */
.hookup { padding: clamp(3em, 7vw, 5.5em) var(--edge); display: grid; grid-template-columns: 1.2fr 1fr; gap: 3em; }
.hookup .ring-lead { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.4rem); display: block; margin-bottom: 0.3em; text-decoration: none; color: var(--navy); }
.cell-field { margin-bottom: 1em; }
.cell-field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.35em; }
.cell-field input, .cell-field select, .cell-field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid rgba(15, 27, 45, 0.18);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--copy);
}
.cell-field input:focus, .cell-field select:focus, .cell-field textarea:focus { border-color: var(--volt-dim); outline: none; }
.cell-note { font-size: 0.85rem; margin-top: 0.8em; min-height: 1.2em; }
.cell-note[data-state="ok"] { color: var(--volt-dim); }
.cell-note[data-state="err"] { color: var(--sunbeam-dim); }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-item { margin-bottom: 1.3em; }
.spec-item strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wash-light); margin-bottom: 0.25em; }
.spec-item a, .spec-item span { color: var(--copy); text-decoration: none; font-size: 1.02rem; }
.spec-item a:hover { color: var(--volt-dim); }
@media (max-width: 800px) { .hookup { grid-template-columns: 1fr; } }

.baseline { background: var(--navy); color: var(--cloud-2); padding: 3em var(--edge) 2em; }
.baseline-top { display: flex; flex-wrap: wrap; gap: 2.5em; justify-content: space-between; margin-bottom: 2em; }
.baseline .spark { color: #fff; }
.baseline-tagline { max-width: 32ch; color: var(--wash-light); font-size: 0.92rem; }
.baseline-nav { display: flex; flex-direction: column; gap: 0.6em; }
.baseline-nav a { color: var(--cloud-2); text-decoration: none; font-size: 0.92rem; }
.baseline-nav a:hover { color: #fff; }
.baseline-bottom { border-top: 1px solid rgba(246, 248, 251, 0.12); padding-top: 1.4em; font-size: 0.8rem; color: var(--wash-light); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6em; }

/* ---------- Persistent CTA: floating centered pill ---------- */
.pulse {
  position: fixed;
  left: 50%;
  bottom: 1.2em;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 26px rgba(15, 27, 45, 0.35);
}
.pulse .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sunbeam); flex: none; }
.pulse:hover { background: var(--navy-2); }
@media (max-width: 480px) {
  .pulse span:not(.pulse-dot) { display: none; }
  .pulse { padding: 0.8em; }
}
