/* ==========================================================================
   Homepage (Oct 15 hybrid). Loaded on the front page only, after alt.css.
   Sections: Alt 2 hero (.clr-home2), intro, value cards (.clr-hvals),
   statement, roles accordion (.clr-hroles), closing CTA.
   The blue line is the site-wide #clr-thread (site.js, hybridPoints): it sits
   above section backgrounds and below anything marked z-index 4.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: white editorial opener (Alt 2), with the main scroll line instead of
   Alt 2's own hero thread
   -------------------------------------------------------------------------- */

.clr-home2 .clr-ain { z-index: auto; }
.clr-home2 .clr-hb-top,
.clr-home2 .clr-hb-row { position: relative; z-index: 4; }
.clr-home2 .clr-hb-panel { z-index: 4; }
.clr-home2 .clr-hb-left { gap: 22px; max-width: 34em; }
.clr-home2 .clr-hb-sub {
	font-size: clamp(22px, 2.1vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -.015em;
	color: var(--clr-green); max-width: 22em;
}
.clr-home2 .clr-actions { margin-top: 6px; }
@media (max-width: 560px) {
	.clr .clr-home2 h1 { font-size: clamp(38px, 11.4vw, 46px); }
}

/* --------------------------------------------------------------------------
   Value cards: one row of four (two on tablets, one on phones), Alt 2 lift
   and tilt, no photos
   -------------------------------------------------------------------------- */

.clr-hvals .clr-ain { z-index: auto; }
/* Somentra gives text elements position:relative + z-index:1, which would put the cards under the line */
.clr-hvals .grve-element.grve-text { z-index: auto !important; }
.clr-hvals .clr-hvals-cards { position: relative; z-index: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.clr-hvals .clr-acard { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; }
.clr-hvals .clr-acard .n { justify-content: flex-start; }
.clr-hvals .clr-acard h3 { margin-top: clamp(28px, 3vw, 44px) !important; padding-right: 0; font-size: clamp(21px, 1.7vw, 25px); }
.clr-hvals .clr-acard p { min-height: 0; }
.clr-hvals .clr-acard .go { top: 18px; right: 18px; bottom: auto; width: 34px; height: 34px; }
/* WPBakery's autop wraps the arrow and the full-card link in a <p> (position:relative in Somentra), which
   pinned both to a 0-height box. Let them position against the card again, and drop the empty <p>. */
.clr-hvals .clr-acard > p:has(> .go), .clr-hvals .clr-acard > p:has(> .clr-acard-link) { position: static !important; margin: 0 !important; height: 0; }
.clr-hvals .clr-acard > p:empty { display: none; }
.clr-hvals-more { margin-top: 40px !important; position: relative; z-index: 4; }
@media (max-width: 1100px) {
	.clr-hvals .clr-hvals-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.clr-hvals .clr-hvals-cards { grid-template-columns: 1fr; gap: 14px; }
	.clr-hvals .clr-acard { min-height: 0; }
	.clr-hvals .clr-acard h3 { margin-top: 18px !important; }
	.clr-hvals-more { margin-top: 28px !important; }
}

/* --------------------------------------------------------------------------
   Roles: Alt 2 "Built for the people" accordion, on cream to keep the
   white / cream rhythm after the statement photo
   -------------------------------------------------------------------------- */

.clr-hroles.clr-atbl { background: var(--clr-cream); }
.clr-hroles .clr-atbl-grid { z-index: 4; }
.clr-hroles .clr-atbl-side h2 { max-width: 13ch; }
.clr-hroles h2 .nw { white-space: nowrap; }
.clr-hroles .plus { grid-row: 1; margin-top: 6px; }

/* James's four brand icons (assets/icons/*.svg, inlined in the page content): spark, potential, repurpose, circular-impact */
.clr-hv-icon { display: block; width: 40px; height: 40px; flex: none; color: #59A6FF; }
.clr-hv-icon > img, .clr-hv-icon > svg { display: block; width: 100%; height: 100%; }

/* Oct 15: value cards in Lien Green on the main homepage (Home 3 / Home 4 stay cream for comparison).
   Body copy is Manila Beige at 80% (about 9.8:1 on the green); icons stay Code Blue via currentColor. */
.clr-hvals .clr-acard { background: var(--clr-green); border-color: rgba(255,255,255,.08); }
.clr-hvals .clr-acard h3 { color: var(--clr-white); }
.clr-hvals .clr-acard p { color: rgba(253,248,223,.8); }
.clr-hvals .clr-acard.is-on, .clr-hvals .clr-acard:has(.clr-acard-link:focus-visible) { border-color: var(--clr-blue); }
@media (hover: hover) { .clr-hvals .clr-acard:hover { border-color: var(--clr-blue); } }

/* Nov 5 final review: hero copy moved to the intro, so the hero photo gets the room. */
@media (min-width: 901px) { .clr-home2 .clr-hb-panel { aspect-ratio: 2 / 1; max-height: 720px; } }

/* Intro: header, short body, two supporting points with arrows. */
.clr-intro-copy h2 { margin: 0 !important; }
.clr-intro-points { list-style: none; margin: 0 !important; padding: 6px 0 0 !important; display: grid; gap: 16px; border-top: 1px solid var(--clr-line); }
.clr-intro-points li { position: relative; margin: 0; padding: 16px 0 0 34px; list-style: none; font-size: clamp(16px, 1.15vw, 17.5px); line-height: 1.55; color: var(--clr-green); }
.clr-intro-points li + li { padding-top: 0; }
.clr-intro-points li::before { content: "→"; position: absolute; left: 0; color: var(--clr-blue-ink); font-weight: 600; }
