/* Geothermal partner pages — shared by /geothermal-homebuilder/ and /geothermal-contractor/
   Shared components use the geo- prefix; page-only sections use gh- (homebuilder) and gc- (contractor).
   Layout: Figma column widths on the 1344 artboard are 12-col spans (see main.css .split / .grid12),
   so every split grows with the container past 1440. Bands and media use aspect-ratio or
   clamp(min, figmaPx/14.4 vw, figmaPx×1.33) instead of fixed pixel heights. */

.page-geothermal-homebuilder, .page-geothermal-contractor {
  --geo-pt: var(--space-block);       /* 90 @1440 — most section tops, grows to 112 */
  --geo-gap-lg: var(--space-block);   /* 90 @1440 — head → content */
  --geo-line-check: #EDE6D2;
  --geo-muted: #6B7280;
  --geo-ice: #F0F4FF;
}

.page-geothermal-homebuilder .title, .page-geothermal-contractor .title { letter-spacing: -0.01em; }
/* Running text never gets longer than the measure, however wide its column grows */
.page-geothermal-homebuilder .text-lg, .page-geothermal-contractor .text-lg { max-width: var(--measure); }
/* On desktop, wrap like the Figma artboard (greedy); balance/pretty still apply on smaller screens */
@media (min-width: 1280px) and (max-width: 1599px) {
  .page-geothermal-homebuilder main :is(.h1, .h2, .h3, p), .page-geothermal-contractor main :is(.h1, .h2, .h3, p) { text-wrap: wrap; }
}

/* Section with the common 90 / 132 rhythm */
.geo-section { padding-block: var(--geo-pt) var(--section-pb); }

/* Body copy at 148% line height (hero lede) */
.geo-lede { line-height: var(--lh-ui); }

/* Sans step titles: Archivo Regular 24/124, -1% */
.geo-step-title { font-family: var(--font-sans); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.625rem); line-height: var(--lh-snug); letter-spacing: -0.01em; }
.geo-num { color: var(--accent-light); font-size: var(--fs-md); line-height: var(--lh-body); }

/* ---------- 01 · Hero (light, editorial) ---------- */
.geo-hero { padding-top: min(clamp(132px, 12.22vw, 234px), max(132px, 17.6svh)); padding-bottom: clamp(40px, 3.75vw, 72px); }
.geo-hero__split { --a-span: 6; --b-start: 9; --b-span: 4; }   /* 659 + 432 */
.geo-hero__cta { margin-top: clamp(32px, 3.34vw, 64px); }
/* Contained hero image: 2.29:1 (Figma 1344×588) from 1280, 16:9 768–1279, 4:3 below */
.geo-hero__image { margin-top: min(clamp(48px, 7.1vw, 136px), max(48px, 10.2svh)); aspect-ratio: 1344 / 588; max-height: min(72vh, 820px); }
.geo-hero__image > img { object-position: 50% 60%; }
@media (max-width: 1279px) {
  .geo-hero__image { aspect-ratio: 16 / 9; }
}
@media (max-width: 960px) {
  .geo-hero { padding-top: calc(var(--header-h) + 40px); }
}
@media (max-width: 767px) {
  .geo-hero__image { aspect-ratio: 4 / 3; max-height: none; }
}
@media (max-width: 640px) {
  .geo-hero__cta { width: 100%; }
}

/* ---------- Two-column header: eyebrow, then heading left / copy right ---------- */
.geo-head__split { margin-top: 18px; }

/* ---------- Numbered columns (How it works / Your side of it / How to start) ---------- */
.geo-steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--grid-gap); margin-top: var(--geo-gap-lg); }
.geo-steps__item { display: flex; flex-direction: column; gap: 60px; min-height: 240px; padding: 0 18px; border-left: 1px solid var(--line); }
.on-dark .geo-steps__item { border-left-color: rgba(255, 255, 255, 0.18); }
.geo-steps__head { display: grid; gap: 9px; }
.geo-steps__item--end .geo-steps__text { margin-top: auto; }
.geo-steps--5 { --cols: 5; }
/* Variant: every description pinned to the bottom of the column */
.geo-steps--end .geo-steps__item { gap: 16px; }
.geo-steps--end .geo-steps__text { margin-top: auto; }
@media (max-width: 1279px) {
  .geo-steps { --cols: 2; row-gap: 48px; }
  .geo-steps__item { min-height: 0; }
  .geo-steps--5 { --cols: 3; }
}
@media (max-width: 900px) {
  .geo-steps__item { gap: 24px; }
}
@media (max-width: 639px) {
  .geo-steps, .geo-steps--5 { --cols: 1; row-gap: 36px; }
  .geo-steps__item--end .geo-steps__text, .geo-steps--end .geo-steps__text { margin-top: 0; }
}

/* ---------- Contact (lead form) ---------- */
.geo-contact .form__actions .btn { min-width: 0; }

/* ======================================================================
   Homebuilder
   ====================================================================== */

/* 02 · What comes with every system — 546 + 660 → 5 cols + cols 7–12 */
.gh-included__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: 48px; margin-top: 18px; align-items: start; }
.gh-included__grid > :first-child { grid-column: 1 / span 5; }
.gh-included__grid > :nth-child(2) { grid-column: 7 / span 6; }
.gh-included__copy { display: grid; gap: 30px; }
.gh-included__lead { font-weight: 700; font-size: clamp(1.188rem, 1.141rem + 0.1905vw, 1.375rem); line-height: var(--lh-snug); letter-spacing: -0.01em; }
.gh-checks { margin-top: 36px; }
.gh-checks li { display: flex; align-items: center; gap: 30px; padding-block: 24px; border-top: 1px solid var(--geo-line-check); font-weight: 500; font-size: var(--fs-lg); line-height: var(--lh-snug); letter-spacing: -0.01em; }
.gh-checks__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 2px; background: var(--accent-light); color: var(--white); }
.gh-checks__icon svg { width: 20px; height: 15px; }
@media (max-width: 900px) {
  .gh-included__grid { grid-template-columns: minmax(0, 1fr); }
  .gh-included__grid > * { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .gh-checks li { gap: 18px; padding-block: 18px; font-size: var(--fs-md); }
  .gh-checks__icon { width: 36px; height: 36px; }
}

/* 03 · Built around your business — photo band (751 @1440) with slate panel on cols 8–12 */
.gh-flex { position: relative; isolation: isolate; display: flex; min-height: min(clamp(520px, 52.15vw, 999px), max(520px, 75.1svh)); padding-block: clamp(32px, 3.34vw, 64px); }
.gh-flex__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; z-index: -1; }
.gh-flex__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; }
.gh-flex__panel { grid-column: 8 / span 5; display: grid; gap: 36px; align-content: start; padding: clamp(36px, 4.17vw, 72px) clamp(28px, 3.34vw, 64px); }
@media (max-width: 1100px) {
  .gh-flex__panel { grid-column: 7 / span 6; }
}
@media (max-width: 900px) {
  .gh-flex { display: block; min-height: 0; padding-block: min(clamp(260px, 56vw, 440px), max(260px, 80.6svh)) 0; }
  .gh-flex__bg { height: min(clamp(300px, 64vw, 520px), max(300px, 92.2svh)); object-position: 30% center; }
  .gh-flex__inner { display: block; width: 100%; }
  .gh-flex__panel { padding: 48px var(--gutter); }
}

/* 04 · At the closing table — 545 + 660 */
.gh-closing { --a-span: 5; --b-start: 7; --b-span: 6; }
.gh-closing__copy { display: grid; gap: 30px; }
.gh-closing__image { aspect-ratio: 660 / 710; }
@media (max-width: 900px) {
  .gh-closing { row-gap: 48px; }
  .gh-closing__image { aspect-ratio: 4 / 3; }
}

/* 05 · Beacon — 428 + 774 (screen starts at col 6) */
.gh-beacon { padding-block: var(--section-pb); }
.gh-beacon__grid { --a-span: 4; --b-start: 6; --b-span: 7; }
.gh-beacon__copy { display: grid; gap: 30px; padding-bottom: 60px; }
.gh-beacon__screen img { aspect-ratio: 742 / 441; object-fit: cover; object-position: top center; }
@media (max-width: 1100px) {
  .gh-beacon__grid { --a-span: 5; --b-start: 6; --b-span: 7; }
}
@media (max-width: 900px) {
  .gh-beacon__grid { row-gap: 40px; }
  .gh-beacon__copy { padding-bottom: 0; }
}

/* 06 · Why we do this — sky photo (791 @1440), navy text; 432 + 660 */
.gh-why { position: relative; isolation: isolate; overflow: hidden; min-height: min(clamp(520px, 54.93vw, 1052px), max(520px, 79.1svh)); padding-block: var(--geo-pt) max(var(--geo-pt), 28vw); }
.gh-why__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; z-index: -1; }
.gh-why__split { --a-span: 4; --b-start: 7; --b-span: 6; margin-top: 24px; }
@media (max-width: 900px) {
  .gh-why { min-height: 0; padding-bottom: min(clamp(240px, 52vw, 420px), max(240px, 74.9svh)); }
  .gh-why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(247, 245, 236, .55) 0%, rgba(247, 245, 236, .25) 55%, rgba(247, 245, 236, 0) 75%); }
}

/* 07 · How it works */
.gh-how { padding-block: var(--section-pt); }

/* 08 · How to start — 318 heading + 889 list (cols 5–12); rows 90 / 342 / 457 */
.gh-start__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: 40px; margin-top: 18px; align-items: start; }
.gh-start__grid > :first-child { grid-column: 1 / span 3; }
.gh-start__grid > :nth-child(2) { grid-column: 5 / span 8; }
.gh-start__list li { display: grid; grid-template-columns: minmax(56px, 90fr) minmax(0, 342fr) minmax(0, 457fr); align-items: center; padding: 18px 0 36px; border-top: 1px solid var(--line); }
.gh-start__list .geo-num { padding-block: 4px; }
.gh-start__list .geo-step-title { padding-right: 24px; }
@media (max-width: 1100px) {
  .gh-start__grid { grid-template-columns: minmax(0, 1fr); }
  .gh-start__grid > * { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .gh-start__list li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 6px; padding: 18px 0 24px; }
  .gh-start__list .text-md { grid-column: 2; }
}

/* ======================================================================
   Contractor
   ====================================================================== */

/* 02 · Real money / Five years / Cash flow — 659 + 660 */
.gc-stats__grid { --a-span: 6; --b-start: 7; --b-span: 6; }
.gc-stats__item { display: grid; gap: 6px; padding: 18px 0 42px; border-top: 1px solid var(--line); }
.gc-stats__value { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.01em; }
.gc-stats__image { aspect-ratio: 660 / 710; }
@media (max-width: 900px) {
  .gc-stats__grid { row-gap: 32px; }
  .gc-stats__item { padding-bottom: 28px; }
  .gc-stats__image { aspect-ratio: 4 / 3; }
}

/* 03 · What changed — white text on a sky photo (879 @1440); 432 + 660 */
.gc-changed { position: relative; isolation: isolate; overflow: hidden; min-height: min(clamp(520px, 61.04vw, 1169px), max(520px, 87.9svh)); padding-block: var(--geo-pt) max(var(--geo-pt), 25vw); } /* bottom pad keeps the Capitol clear of the copy when the copy wraps longer */
.gc-changed__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; z-index: -2; }
.gc-changed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(16, 34, 57, .22) 0%, rgba(16, 34, 57, .12) 50%, rgba(16, 34, 57, 0) 75%); }
.gc-changed__split { --a-span: 4; --b-start: 7; --b-span: 6; margin-top: 24px; }
@media (max-width: 900px) {
  .gc-changed { min-height: 0; padding-bottom: min(clamp(240px, 52vw, 420px), max(240px, 74.9svh)); }
  .gc-changed::before { background: linear-gradient(to bottom, rgba(16, 34, 57, .78) 0%, rgba(16, 34, 57, .66) calc(100% - min(clamp(240px, 52vw, 420px), max(240px, 74.9svh))), rgba(16, 34, 57, 0) 100%); }
}

/* 04 · At the kitchen table */
.gc-table__head { width: calc(50% - var(--grid-gap) / 2); }   /* 6 of 12 columns */
.gc-table__cards { margin-top: var(--geo-gap-lg); }
/* Cards are 318×452 portraits at 1440 (4-up); 2-up and 1-up get a shorter ratio */
.gc-card { --card-h: auto; overflow: visible; aspect-ratio: 318 / 452; padding: 18px; justify-content: flex-end; }
.gc-card__panel { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: min(clamp(170px, 15.76vw, 260px), max(170px, 22.7svh)); }
/* Quote panel: eyebrow on cols 1–5, quote from col 7 (546 + 616 inside 36px padding) */
.gc-quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: 24px; align-items: start; min-height: min(clamp(240px, 23.6vw, 452px), max(240px, 34.0svh)); margin-top: 24px; padding: clamp(24px, 2.5vw, 48px); background: var(--geo-ice); }
.gc-quote > figcaption { grid-column: 1 / span 5; }
.gc-quote > blockquote { grid-column: 7 / span 6; margin: 0; }
.gc-quote__text { font-family: var(--font-serif); font-size: clamp(1.375rem, 1rem + 1vw, 2.125rem); line-height: 1.36; letter-spacing: -0.01em; }
.gc-quote__text em { font-style: italic; }
@media (max-width: 1279px) {
  .gc-card { aspect-ratio: 4 / 5; }
}
@media (max-width: 900px) {
  .gc-table__head { width: auto; }
  .gc-quote { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 32px 24px; }
  .gc-quote > * { grid-column: 1 / -1 !important; }
}
@media (max-width: 639px) {
  .gc-card { aspect-ratio: auto; padding: 200px 12px 12px; }
  .gc-card__panel { min-height: 0; gap: 24px; }
}

/* 05 · Your side of it — heading + copy on 6 of 12 columns */
.gc-side__head { display: grid; gap: 36px; width: calc(50% - var(--grid-gap) / 2); }
@media (max-width: 900px) {
  .gc-side__head { width: auto; }
}

/* 06 · Beacon — 660 + 545 (copy from col 8), then three 432 cards */
.gc-beacon__split { --a-span: 6; --b-start: 8; --b-span: 5; }
.gc-beacon__cards { margin-top: min(clamp(56px, 7.1vw, 136px), max(56px, 10.2svh)); column-gap: var(--grid-gap); }
.gc-beacon__card { display: grid; gap: 36px; align-content: start; }
.gc-beacon__shot { aspect-ratio: 432 / 248; border-radius: 4px; box-shadow: 0 4px 20px rgba(16, 34, 57, 0.12); background: #F3F4F6; }
.gc-beacon__shot img { object-position: top center; }
.gc-beacon__body { display: grid; gap: 18px; }
.gc-beacon__body p { color: var(--geo-muted); }
@media (max-width: 1100px) {
  .gc-beacon__split { --a-span: 5; --b-start: 7; --b-span: 6; }
}
@media (max-width: 900px) {
  .gc-beacon__cards { row-gap: 40px; }
  .gc-beacon__card { gap: 24px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  /* side-by-side image + text keeps the stacked list from getting too tall */
  .gc-beacon__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}

/* 07 · How to start (navy) */
.gc-start { padding-block: var(--section-pt); }

@media (min-width: 901px) {
  /* Viewport fit (see main.css) */
  .geo-hero { padding-top: min(clamp(132px, 12.22vw, 234px), max(132px, 20svh)); }
  .geo-hero__image { margin-top: min(clamp(48px, 7.1vw, 136px), max(48px, 7svh)); width: 100%; max-height: max(320px, 100svh - 360px); }
  .gh-flex { min-height: min(clamp(520px, 52.15vw, 999px), max(520px, 86svh)); }
  .gh-why { min-height: min(clamp(520px, 54.93vw, 1052px), max(520px, 90svh)); padding-bottom: max(var(--geo-pt), min(28vw, 32svh)); }
  .gc-changed { min-height: min(clamp(520px, 61.04vw, 1169px), max(520px, 92svh)); padding-bottom: max(var(--geo-pt), min(25vw, 32svh)); }
}
