/* =========================================================================
   Forge Residential Solar: one-page site styles
   Built from the coaching site's stylesheet (site/css/styles.css) so both Forge
   sites look like one family: same palette, fonts, buttons, header and footer.
   If you change a shared rule there (colors, buttons, header, footer, form
   fields), make the same change here. Solar-only components are at the end.
   Brand palette lives in :root below. Everything else uses these tokens.
   ========================================================================= */

/* ---------- Fonts (self-hosted, SIL Open Font License: assets/fonts/OFL.txt) ----------
   Latin woff2 files in /assets/fonts/. /assets/* is cached for a year, so a new font
   file needs a NEW name (e.g. -v54) and the matching url() and <link rel="preload"> updated.
   The "Fallback" faces are Arial (or Helvetica / Liberation Sans) resized to Barlow's
   width, so text takes the same space before and after the real font arrives (no layout shift). */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-v53.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-500-v53.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-600-v53.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/assets/fonts/barlow-700-v53.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-600-v53.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/assets/fonts/barlow-condensed-700-v53.woff2") format("woff2"); }

/* Metric-matched fallbacks (widths measured against Arial / Liberation Sans on the site's own text). */
@font-face { font-family: "Barlow Fallback"; font-style: normal; font-weight: 400; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"); size-adjust: 95.74%; ascent-override: 104.45%; descent-override: 20.89%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; font-style: normal; font-weight: 500; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"); size-adjust: 96.72%; ascent-override: 103.39%; descent-override: 20.68%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; font-style: normal; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); size-adjust: 90.70%; ascent-override: 110.26%; descent-override: 22.05%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; font-style: normal; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); size-adjust: 91.59%; ascent-override: 109.18%; descent-override: 21.84%; line-gap-override: 0%; }
/* Display text is mostly UPPERCASE (text-transform), so the condensed fallback is sized on capitals. */
@font-face { font-family: "Barlow Condensed Fallback"; font-style: normal; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); size-adjust: 66.52%; ascent-override: 150.33%; descent-override: 30.07%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; font-style: normal; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); size-adjust: 67.97%; ascent-override: 147.12%; descent-override: 29.42%; line-gap-override: 0%; }

:root {
  color-scheme: dark;

  /* Brand palette (from the brief) */
  --graphite: #3c3744;
  --navy: #090c9b;          /* navy-electric */
  --blue: #3066be;          /* smart-blue */
  --powder: #b4c5e4;        /* powder-blue */
  --ivory: #fbfff1;

  /* ===== DARK THEME: tweak the look here =====
     Contrast (WCAG AA needs 4.5:1 for text) is noted next to each text color.
     Never use --accent-strong (smart-blue) or --accent-band (navy) as TEXT on the graphite
     backgrounds: they're only ~2:1 there. */
  --bg: var(--graphite);    /* main page background */
  --bg-alt: #34303b;        /* darker graphite for alternating sections */
  --bg-deep: #2a2630;       /* header, footer, form inputs */
  --surface: #46414f;       /* cards on graphite */
  --text: var(--ivory);     /* body text: 11.4:1 on --bg, 12.7 on --bg-alt, 9.7 on --surface */
  --text-muted: #c9c8cc;    /* secondary text: 6.9:1 on --bg, 7.7 on --bg-alt, 5.9 on --surface */
  --accent: var(--powder);  /* links, eyebrows, labels, checkmarks: 6.6:1 on --bg, 5.7 on --surface */
  --accent-strong: var(--blue); /* buttons (ivory text 5.5:1) and decorative borders */
  --accent-band: var(--navy);   /* accent bands and blocks (ivory text 13.5:1, powder 7.8:1) */
  --line: rgba(180, 197, 228, 0.28); /* subtle powder hairlines and card borders */
  --field-bg: var(--bg-deep);
  --field-border: #8e9bb8;  /* input borders: 5.3:1 on the input, 3.5:1 on --surface */
  --placeholder: #a9a6b0;   /* 6.2:1 on --field-bg */
  --error: #ffb4ab;         /* error text: 5.8:1 on --surface, 8.7 on --field-bg */
  --error-bg: #3d2228;      /* invalid input background (ivory 14.2:1) */
  --error-box: #5c2b2e;     /* error message box (ivory 11.2:1) */

  /* Type */
  --font-display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 4px;
  --header-h: 64px;

  /* Context colors (sections override these) */
  --heading: var(--ivory);
  --muted: var(--text-muted);
  --focus: var(--powder);
  --graphite-deep: var(--bg-deep);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  overflow-wrap: break-word; /* long email addresses wrap on small phones */
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--ivory);
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--ivory);
  --btn-border: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--navy); --btn-border: var(--navy); }
/* On navy blocks the navy hover would vanish, so it keeps a powder outline there */
.section--navy .btn--primary:hover { --btn-border: var(--powder); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-border: var(--powder); }
.btn--ghost:hover { --btn-bg: var(--ivory); --btn-fg: var(--graphite); --btn-border: var(--ivory); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-border: var(--powder); }
.btn--outline:hover { --btn-bg: var(--powder); --btn-fg: var(--graphite); }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--navy); --btn-border: var(--ivory); }
.btn--light:hover { --btn-bg: var(--powder); --btn-border: var(--powder); }
.btn--sm { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 1.05rem; }
.btn--lg { min-height: 54px; padding: 0.85rem 1.7rem; font-size: 1.25rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 559px) { .hero .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: block;
  margin: 0 0 1rem;
  line-height: 1.35;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 28px; height: 3px;
  margin: -3px 0.6rem 0 0;
  background: currentColor;
}
.eyebrow--on-dark { color: var(--powder); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.lead:last-child { margin-bottom: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite-deep);
  color: var(--ivory);
  border-bottom: 1px solid rgba(180, 197, 228, 0.18);
  --focus: var(--powder);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ivory);
  text-decoration: none;
}
.wordmark__mark { width: 28px; height: 28px; color: var(--ivory); }
.wordmark__accent { fill: var(--powder); }
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.22em;
  line-height: 1;
  padding-top: 2px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -8px;
  background: transparent;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu (default). Without JavaScript the menu just shows as a row of links. */
.site-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; }
.site-nav a:not(.btn) {
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-nav a:not(.btn):hover { color: var(--powder); text-decoration: underline; }

.js .site-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--graphite-deep);
  border-bottom: 1px solid rgba(180, 197, 228, 0.18);
  padding: 0.5rem var(--gutter) 1.25rem;
  display: none;
}
.js .site-nav.is-open { display: block; }
.js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.js .site-nav a:not(.btn) {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(180, 197, 228, 0.14);
}
.js .site-nav .btn { margin-top: 1rem; width: 100%; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav-bar { flex-wrap: wrap; padding-block: 0.5rem; gap: 0.5rem; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .js .site-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    padding: 0;
  }
  .js .site-nav__list { flex-direction: row; align-items: center; gap: 2rem; }
  .js .site-nav a:not(.btn) { display: inline; padding: 0; border: 0; font-size: 1rem; }
  .js .site-nav .btn { margin: 0 0 0 0.25rem; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  --text: var(--ivory);
  --heading: var(--ivory);
  --focus: var(--powder);
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background-color: var(--graphite);
  background-image:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(48, 102, 190, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(9, 12, 155, 0.55), transparent 70%),
    linear-gradient(rgba(180, 197, 228, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 197, 228, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2.75rem, 5vw, 4rem);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 9vw, 5.1rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}
.hero__title em { font-style: normal; color: var(--powder); }
.hero__sub {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 38em;
  color: var(--ivory);
  opacity: 0.94;
}
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--powder);
  margin-bottom: 1.75rem;
}
.trust-line {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.98rem;
  color: var(--powder);
}
.trust-line li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-line li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--powder);
  flex: none;
}

.hero__photo {
  position: relative;
  margin: 0;
  max-width: 300px;
  width: 100%;
  justify-self: center;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 calc(100% - 44px));
}
.hero__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 calc(100% - 44px));
}
.hero__badge {
  position: absolute;
  right: -6px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1rem;
  background: var(--ivory);
  color: var(--graphite);
  border-left: 4px solid var(--blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  line-height: 1.25;
}
.hero__badge strong { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hero__badge span { font-size: 0.9rem; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; }
  .hero__photo { justify-self: end; max-width: 380px; }
}


/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--tint { background: var(--bg-alt); }
.section--navy {
  --text: var(--ivory); --heading: var(--ivory); --muted: var(--powder); --accent: var(--powder); --focus: var(--powder);
  background: var(--accent-band);
  color: var(--ivory);
}
.section--dark {
  --text: var(--ivory); --heading: var(--ivory); --muted: var(--powder); --accent: var(--powder); --focus: var(--powder);
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(rgba(180, 197, 228, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 197, 228, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ivory);
}
.section--navy a:not(.btn), .section--dark a:not(.btn) { color: var(--ivory); }

.closer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
  color: var(--accent);
  margin: 2rem 0 0;
  max-width: 30em;
}
.closer--small { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; color: var(--text); }


.check-list { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.25rem; }
.check-list li { position: relative; padding-left: 1.9rem; line-height: 1.45; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 16px; height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.check-list--on-dark li::before { border-color: var(--powder); }
.fine-print { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }

/* Method */
.pillars {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.pillar {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(180, 197, 228, 0.4);
  border-top: 4px solid var(--powder);
  border-radius: var(--radius);
  background: rgba(251, 255, 241, 0.04);
}
.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--powder);
  margin-bottom: 0.5rem;
}
.pillar h3 { text-transform: uppercase; font-size: 1.8rem; letter-spacing: 0.04em; }
.pillar p { margin: 0; }
.badges { display: grid; gap: 1rem; margin: 2rem 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.badge { display: flex; flex-direction: column; gap: 0.25rem; }
.badge dt {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge dd { margin: 0; color: var(--ivory); font-size: 0.98rem; }


/* About */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1.4fr 1fr; } }
.about__copy p { max-width: 38em; }
.about__copy .btn { margin-top: 0.75rem; }
.facts {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  border-top: 5px solid var(--accent-strong);
}
.facts__title { color: var(--ivory); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.45rem; }
.facts__list { list-style: none; display: grid; gap: 0; }
.facts__list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(180, 197, 228, 0.25);
  line-height: 1.35;
}
.facts__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--powder);
  text-transform: uppercase;
}

/* How it works */
.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.step {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.step h3 { display: flex; align-items: center; gap: 0.75rem; text-transform: uppercase; font-size: 1.45rem; }
.step__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.4rem; height: 2.4rem;
  background: var(--accent-strong);
  color: var(--ivory);
  font-size: 1.4rem;
  border-radius: 2px;
}
.step p { margin: 0; }
.steps__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; margin-top: 2rem; }
.steps__foot p { margin: 0; font-weight: 600; max-width: 36em; }


/* FAQ */
.faq { display: grid; gap: 0.6rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq__item[open] { border-color: var(--accent); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__item p { margin: 0; padding: 0 1.25rem 1.25rem; max-width: 62em; }

/* Quote form (the coaching site's "apply" layout, reused) */
.apply { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .apply { grid-template-columns: 1fr 1.6fr; } .apply__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.apply__next { list-style: none; counter-reset: s; display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.apply__next li { counter-increment: s; position: relative; padding-left: 2.6rem; line-height: 1.4; }
.apply__next li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: -0.1rem;
  width: 1.8rem; height: 1.8rem;
  display: grid; place-items: center;
  background: var(--accent-strong);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 2px;
}
.apply__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent-strong);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.form__note { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.25rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.15rem; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--field-bg);
  border: 2px solid var(--field-border);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--powder) 50%),
    linear-gradient(135deg, var(--powder) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field ::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--powder);
  box-shadow: 0 0 0 3px rgba(180, 197, 228, 0.45);
}
.field [aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.field__help { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; }
.field__meta { display: flex; justify-content: space-between; gap: 1rem; }
.field__count { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.field__count.is-over { color: var(--error); font-weight: 700; }
.field__error { margin: 0.35rem 0 0; font-size: 0.92rem; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }
.field__error::before { content: "! "; font-weight: 800; }

/* Honeypot: visually hidden but not display:none, so bots still see and fill it */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__privacy { font-size: 0.9rem; color: var(--muted); }
.form__notice {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  background: var(--accent-band);
  color: var(--ivory);
  font-weight: 500;
}
.form__notice p { margin: 0; }
.form__notice p + p { margin-top: 0.4rem; }
.form__notice a { overflow-wrap: anywhere; } /* long email address wraps on small phones */
.form__notice a { color: var(--ivory); font-weight: 700; }
.form__status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.form__noscript { margin-top: 1rem; font-weight: 600; }
.form__status {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--error);
  background: var(--error-box);
  color: var(--ivory);
  font-weight: 500;
}
.form__status p { margin: 0; }
.form__status p + p { margin-top: 0.4rem; }
.form__status a { color: var(--ivory); font-weight: 700; }

.form__submit .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 3px solid rgba(251, 255, 241, 0.4);
  border-top-color: var(--ivory);
  border-radius: 50%;
}
.form__submit[aria-busy="true"] { cursor: progress; opacity: 0.9; }
.form__submit[aria-busy="true"] .spinner { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .form__submit[aria-busy="true"] .spinner { animation-duration: 2.4s; } }

.form-success { text-align: left; padding: 0.5rem 0; }
.form-success__icon { width: 52px; height: 52px; color: var(--accent); margin-bottom: 1rem; }
.form-success h3 { font-size: 2rem; text-transform: uppercase; }
.form-success h3:focus { outline: none; }
.form-success__id {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.85rem;
  background: var(--bg-deep);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form-success__id strong { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--accent); }

/* Contact */
.contact { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.3fr 1fr; } }
.contact__card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(180, 197, 228, 0.45);
  border-radius: var(--radius);
  background: rgba(251, 255, 241, 0.05);
}
.contact__list { list-style: none; display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.contact__list:not(:has(li:not([hidden]))) { display: none; }
.contact__list li { display: flex; flex-direction: column; }
.contact__label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9rem; color: var(--powder); }
.contact__list a { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.contact__route { margin: 0 0 1.25rem; color: var(--ivory); }
.contact__route strong { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.25rem; }

/* Footer */
.site-footer {
  --focus: var(--powder);
  background: var(--graphite-deep);
  color: var(--powder);
  padding-block: 3rem 2rem;
  font-size: 0.95rem;
}
.footer__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr auto; } }
.footer__line { margin: 1rem 0 0; max-width: 32em; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__links a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.footer__links a:hover { text-decoration: underline; color: var(--powder); }
.footer__legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(180, 197, 228, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer__legal p { margin: 0; }

/* 404 page */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem var(--gutter);
}
.notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 25vw, 11rem); line-height: 0.85; color: var(--powder); margin: 1.5rem 0 0.5rem; }
.notfound .btn-row { justify-content: center; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; }
.notfound .hero__sub { margin-inline: auto; }
.notfound__links { margin-top: 2rem; color: var(--text-muted, #c9c8cc); font-size: 0.98rem; }
.notfound__links a { color: var(--powder); font-weight: 600; text-underline-offset: 3px; }
.notfound__links a:hover, .notfound__links a:focus-visible { color: var(--ivory, #fbfff1); }

/* Privacy page */
.page-nav { list-style: none; display: flex; align-items: center; gap: 1.25rem; }
.page-nav a:not(.btn) { color: var(--ivory); text-decoration: none; font-weight: 600; }
.page-nav a:not(.btn):hover { color: var(--powder); text-decoration: underline; }
.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); text-transform: uppercase; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35rem; }
.legal__updated { color: var(--muted); font-weight: 600; }
.legal__actions { margin-top: 2.5rem; }

/* Long email addresses (e.g. in the form notices) must not widen the quote grid on small phones. */
.apply__intro, .apply__card { min-width: 0; }
.apply__card p, .apply__card [role="status"], .apply__card a[href^="mailto:"] { overflow-wrap: anywhere; }

.hero__photo picture { display: block; }

/* =========================================================================
   SOLAR-ONLY COMPONENTS (not in the coaching stylesheet)
   ========================================================================= */

/* Wordmark label: "Residential / Solar" stacked next to FORGE */
.wordmark__sub {
  display: block;
  padding-left: 0.6rem;
  border-left: 2px solid var(--powder);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--powder);
}

/* Service strip: a static navy band under the hero */
.strip { background: var(--navy); color: var(--ivory); }
.strip__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.6rem;
  padding-block: 0.95rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.strip__list li { display: inline-flex; align-items: center; gap: 0.6rem; }
.strip__list li::before { content: ""; width: 7px; height: 7px; background: var(--powder); flex: none; }

/* Services: three cards */
.services {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-strong);
  border-radius: var(--radius);
}
.service__icon { width: 44px; height: 44px; color: var(--powder); margin-bottom: 1rem; }
.service h3 { text-transform: uppercase; font-size: 1.7rem; letter-spacing: 0.03em; }
.service .check-list { margin-top: 0.25rem; }
.service__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--powder);
}
.service__link::after { content: "\2192"; transition: transform .18s ease; }
.service__link:hover { color: var(--ivory); text-decoration: underline; }
.service__link:hover::after { transform: translateX(3px); }

/* How it works: five steps in one row on wide screens */
@media (min-width: 1100px) {
  .steps--five { grid-template-columns: repeat(5, 1fr); }
  .steps--five .step { padding: 1.25rem; }
  .steps--five .step h3 { flex-direction: column; align-items: flex-start; gap: 0.6rem; font-size: 1.3rem; }
}

/* Why Forge: four pillars */
@media (min-width: 1100px) { .pillars--four { grid-template-columns: repeat(4, 1fr); } .pillars--four .pillar h3 { font-size: 1.55rem; } }

/* Team facts: names are longer than the coaching site's numbers */
.facts__list li { grid-template-columns: 6.5rem 1fr; }
.creds { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(180, 197, 228, 0.25); }
.creds__title { text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.2rem; }
.creds .check-list { margin-bottom: 0; }

/* Service area */
.area { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .area { grid-template-columns: auto 1fr auto; gap: 2.5rem; } }
.area__icon { width: 64px; height: 64px; color: var(--powder); }
.area h2 { margin-bottom: 0.4em; }

/* Project photos (hidden until SOLAR_CONFIG.projectPhotos has entries) */
.gallery { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-deep); }
.gallery figcaption { padding: 0.75rem 1rem; color: var(--muted); font-size: 0.95rem; }

/* Reviews (hidden until SOLAR_CONFIG.reviews has entries) */
.reviews { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.review {
  margin: 0;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-strong);
  border-radius: var(--radius);
}
.review blockquote { margin: 0 0 1rem; font-size: 1.1rem; }
.review blockquote p { margin: 0; }
.review figcaption { color: var(--accent); font-weight: 600; }

/* Quote form: checkbox and radio choices as tappable tiles */
.choices { border: 0; padding: 0; margin: 0 0 1.15rem; min-width: 0; }
.choices legend { font-weight: 700; margin-bottom: 0.35rem; padding: 0; color: var(--text); }
.choices__help { margin: 0 0 0.6rem; }
.choices__grid { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .choices__grid { grid-template-columns: repeat(3, 1fr); } }
.choices__grid--two, .choices__grid.choices__grid--two { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.6rem 0.9rem;
  background: var(--field-bg);
  border: 2px solid var(--field-border);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--powder); cursor: pointer; }
.choice:hover { border-color: var(--powder); }
.choice:has(input:checked) { border-color: var(--powder); background: #1c1f5e; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.choice:has(input[aria-invalid="true"]) { border-color: var(--error); background: var(--error-bg); }
.field__optional { font-weight: 500; color: var(--muted); }

/* "Rather talk?" contact card under the quote intro */
.contact-card {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-strong);
  border-radius: var(--radius);
}
.contact-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; }
.contact-card .contact__list { margin-bottom: 0; }

.footer__parent { color: var(--ivory); font-weight: 600; }
.footer__parent:hover { color: var(--powder); }
