/* ==========================================================================
   Shilalekh Growth Labs — Homepage stylesheet
   Loaded only on the "SGL Homepage" page template. Organized by section.
   Palette + type + spacing system per Shilalekh_Homepage_Specification.md
   ========================================================================== */

/* -----------------------------------------------------------------------
   0. Tokens
   ----------------------------------------------------------------------- */
.sgl-homepage {
	--sgl-near-black-purple: #220135;
	--sgl-deep-purple: #3D0066;
	--sgl-purple-lane: #6B3FA0; /* lighter B2B door background — #3D0066 read as too dark/heavy per feedback; kept on-brand + WCAG AA (7.38:1 vs white) */
	--sgl-light-lavender: #EEC7FC;
	--sgl-cream: #FFFDD0;
	--sgl-soft-yellow: #FFE770;
	--sgl-gold: #FFD700;
	--sgl-white: #FFFFFF;

	--sgl-font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
	--sgl-font-body: 'Inter', 'Segoe UI', sans-serif;

	--sgl-space-1: 8px;
	--sgl-space-2: 16px;
	--sgl-space-3: 24px;
	--sgl-space-4: 32px;
	--sgl-space-6: 48px;
	--sgl-space-8: 64px;
	--sgl-space-12: 96px;

	--sgl-section-pad-desktop: var(--sgl-space-12);
	--sgl-section-pad-mobile: 56px;

	--sgl-radius: 10px;
	--sgl-shadow-soft: 0 4px 20px rgba(34, 1, 53, 0.08);

	background: var(--sgl-cream);
	color: var(--sgl-near-black-purple);
	font-family: var(--sgl-font-body);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.sgl-homepage * {
	box-sizing: border-box;
}

.sgl-homepage img {
	max-width: 100%;
	height: auto;
	display: block;
}

.sgl-homepage h1,
.sgl-homepage h2,
.sgl-homepage h3 {
	font-family: var(--sgl-font-display);
	line-height: 1.15;
	margin: 0 0 var(--sgl-space-2);
	color: var(--sgl-near-black-purple);
}

.sgl-homepage p {
	margin: 0 0 var(--sgl-space-2);
}

.sgl-homepage .sgl-container {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: var(--sgl-space-3);
	padding-right: var(--sgl-space-3);
}

.sgl-homepage .sgl-eyebrow {
	font-family: var(--sgl-font-display);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sgl-deep-purple);
	margin: 0 0 var(--sgl-space-2);
}

.sgl-homepage .sgl-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;
}

.sgl-homepage .sgl-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--sgl-deep-purple);
	color: var(--sgl-white);
	padding: var(--sgl-space-2) var(--sgl-space-3);
	z-index: 1000;
	border-radius: 0 0 var(--sgl-radius) 0;
	text-decoration: none;
	font-family: var(--sgl-font-display);
	font-weight: 600;
}

.sgl-homepage .sgl-skip-link:focus {
	left: 0;
}

.sgl-homepage :focus-visible {
	outline: 3px solid var(--sgl-deep-purple);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.sgl-homepage {
		scroll-behavior: smooth;
	}
}

/* -----------------------------------------------------------------------
   1. Buttons (shared component)
   ----------------------------------------------------------------------- */
.sgl-homepage .sgl-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sgl-space-1);
	font-family: var(--sgl-font-display);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: var(--sgl-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
	.sgl-homepage .sgl-btn {
		transition: none;
	}
}

.sgl-homepage .sgl-btn:hover,
.sgl-homepage .sgl-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: var(--sgl-shadow-soft);
}

/* Extra's parent theme ships `.et_pb_pagebuilder_layout .post-content a
   { color: inherit; }`, which has higher specificity (2 classes + 1 type
   selector) than a plain `.sgl-homepage .sgl-btn--primary` rule (2 classes),
   and silently wins regardless of stylesheet load order — every button
   was inheriting its container's text color instead of using these
   declarations. Compounding `.sgl-btn` into each selector below (3 classes)
   beats it outright, no !important needed. */
.sgl-homepage .sgl-btn.sgl-btn--primary {
	background: var(--sgl-deep-purple);
	color: var(--sgl-white);
}

.sgl-homepage .sgl-btn.sgl-btn--primary:hover,
.sgl-homepage .sgl-btn.sgl-btn--primary:focus-visible {
	background: #4a0080;
	color: var(--sgl-white);
}

.sgl-homepage .sgl-btn.sgl-btn--on-purple {
	background: var(--sgl-white);
	color: var(--sgl-deep-purple);
}

.sgl-homepage .sgl-btn.sgl-btn--on-purple:hover,
.sgl-homepage .sgl-btn.sgl-btn--on-purple:focus-visible {
	background: var(--sgl-cream);
	color: var(--sgl-deep-purple);
}

.sgl-homepage .sgl-btn.sgl-btn--on-gold {
	background: var(--sgl-near-black-purple);
	color: var(--sgl-white);
}

.sgl-homepage .sgl-btn.sgl-btn--on-gold:hover,
.sgl-homepage .sgl-btn.sgl-btn--on-gold:focus-visible {
	background: #3a0a54;
	color: var(--sgl-white);
}

/* Dark-text-on-gold-fill — for school-lane CTAs placed on white/cream
   surfaces (not on the gold door panel, which uses --on-gold above).
   Gold text/thin-on-white is a contrast fail per spec, so this variant
   always keeps the gold as a fill behind dark text. */
.sgl-homepage .sgl-btn.sgl-btn--gold {
	background: var(--sgl-gold);
	color: var(--sgl-near-black-purple);
}

.sgl-homepage .sgl-btn.sgl-btn--gold:hover,
.sgl-homepage .sgl-btn.sgl-btn--gold:focus-visible {
	background: #e6c200;
	color: var(--sgl-near-black-purple);
}

/* -----------------------------------------------------------------------
   2. Header / nav — intentionally empty. The page now uses Extra's real
   get_header() (same nav as every other page on the site) instead of a
   hand-rolled header, so this section's rules were removed as dead code.
   ----------------------------------------------------------------------- */

/* -----------------------------------------------------------------------
   3. Hero (shared, personal)
   ----------------------------------------------------------------------- */
.sgl-homepage .sgl-hero {
	padding: var(--sgl-section-pad-desktop) 0;
}

.sgl-homepage .sgl-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--sgl-space-3);
	display: grid;
	grid-template-columns: minmax(280px, 400px) 1fr;
	gap: var(--sgl-space-8);
	align-items: center;
}

.sgl-homepage .sgl-hero__media img {
	border-radius: var(--sgl-radius);
	box-shadow: var(--sgl-shadow-soft);
	width: 100%;
}

.sgl-homepage .sgl-hero__headline {
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.sgl-homepage .sgl-hero__subhead {
	font-size: 1.15rem;
	color: var(--sgl-near-black-purple);
	opacity: 0.85;
	max-width: 56ch;
}

.sgl-homepage .sgl-hero__factline {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--sgl-deep-purple);
	margin-top: var(--sgl-space-3);
}

/* -----------------------------------------------------------------------
   4. Trusted-by logo strip (unified)
   ----------------------------------------------------------------------- */
.sgl-homepage .sgl-logostrip {
	padding: var(--sgl-space-3) 0;
	background: var(--sgl-white);
	border-top: 1px solid rgba(34, 1, 53, 0.08);
	border-bottom: 1px solid rgba(34, 1, 53, 0.08);
	text-align: center;
}

.sgl-homepage .sgl-logostrip .sgl-eyebrow {
	text-align: center;
}

.sgl-homepage .sgl-logostrip__grid {
	list-style: none;
	margin: var(--sgl-space-2) auto 0;
	padding: 0 var(--sgl-space-2);
	max-width: 1200px;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: var(--sgl-space-3);
}

.sgl-homepage .sgl-logostrip__grid li {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 76px;
}

.sgl-homepage .sgl-logostrip__grid img {
	max-height: 76px;
	width: auto;
}

.sgl-homepage .sgl-logostrip__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 76px;
	font-family: var(--sgl-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: rgba(34, 1, 53, 0.35);
	border: 1.5px dashed rgba(34, 1, 53, 0.25);
	border-radius: var(--sgl-radius);
	padding: 8px 20px;
	white-space: nowrap;
	text-align: center;
}

/* -----------------------------------------------------------------------
   5. The two doors
   ----------------------------------------------------------------------- */
.sgl-homepage .sgl-doors {
	padding: var(--sgl-section-pad-desktop) 0;
}

.sgl-homepage .sgl-doors__grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--sgl-space-3);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sgl-space-3);
}

.sgl-homepage .sgl-door {
	border-radius: 16px;
	padding: var(--sgl-space-6) var(--sgl-space-4);
	display: flex;
	flex-direction: column;
	gap: var(--sgl-space-2);
	box-shadow: var(--sgl-shadow-soft);
}

.sgl-homepage .sgl-door--b2b {
	background: var(--sgl-purple-lane);
	color: var(--sgl-white);
}

.sgl-homepage .sgl-door--school {
	background: var(--sgl-gold);
	color: var(--sgl-near-black-purple);
}

.sgl-homepage .sgl-door__label {
	font-family: var(--sgl-font-display);
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: var(--sgl-space-1);
}

.sgl-homepage .sgl-door--b2b .sgl-door__label {
	color: var(--sgl-white);
}

.sgl-homepage .sgl-door__pain,
.sgl-homepage .sgl-door__promise {
	font-size: 1.05rem;
}

.sgl-homepage .sgl-door--b2b .sgl-door__pain,
.sgl-homepage .sgl-door--b2b .sgl-door__promise {
	color: rgba(255, 255, 255, 0.92);
}

.sgl-homepage .sgl-door--school .sgl-door__pain,
.sgl-homepage .sgl-door--school .sgl-door__promise {
	color: var(--sgl-near-black-purple);
}

.sgl-homepage .sgl-door__cta {
	margin-top: var(--sgl-space-3);
	align-self: flex-start;
}

/* -----------------------------------------------------------------------
   6. Lanes (shared component — used by both the B2B and School lanes)
   ----------------------------------------------------------------------- */
.sgl-homepage .sgl-lane {
	padding: var(--sgl-section-pad-desktop) 0;
}

.sgl-homepage .sgl-lane__subhero {
	text-align: center;
	max-width: 760px;
	margin: 0 auto var(--sgl-space-8);
}

/* Divi's ".et_pb_row .et_pb_column .et_pb_module:last-child { margin-bottom: 0 }"
   is 4 classes deep and beats the margin-bottom above (2 classes) on every one
   of these single-module lane rows, since each is always its column's only —
   and therefore last — child. */
.sgl-homepage .sgl-lane .et_pb_row .et_pb_column .sgl-lane__subhero {
	margin-bottom: var(--sgl-space-8);
}

.sgl-homepage .sgl-lane__subhero-heading {
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.sgl-homepage .sgl-lane__subhero-sub {
	font-size: 1.1rem;
	opacity: 0.85;
	margin: 0 auto;
}

.sgl-homepage .sgl-lane__block {
	max-width: 760px;
	margin: 0 auto var(--sgl-space-8);
}

/* Same Divi last-child override as .sgl-lane__subhero above. */
.sgl-homepage .sgl-lane .et_pb_row .et_pb_column .sgl-lane__block {
	margin-bottom: var(--sgl-space-8);
}

.sgl-homepage .sgl-lane__block--wide {
	max-width: 1000px;
}

.sgl-homepage .sgl-lane__block h3 {
	font-size: 1.5rem;
}

.sgl-homepage .sgl-lane__list {
	list-style: none;
	margin: var(--sgl-space-3) 0 0;
	padding: 0;
	display: grid;
	gap: var(--sgl-space-3);
}

.sgl-homepage .sgl-lane__list li {
	padding-left: var(--sgl-space-3);
	border-left: 3px solid var(--sgl-deep-purple);
}

.sgl-homepage .sgl-lane__standout {
	font-size: 1.05rem;
	margin-top: var(--sgl-space-3);
}

/* Stat / metric tile (reusable) */
.sgl-homepage .sgl-stat-grid {
	list-style: none;
	margin: var(--sgl-space-4) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sgl-space-3);
}

.sgl-homepage .sgl-stat {
	background: var(--sgl-white);
	border-radius: var(--sgl-radius);
	padding: var(--sgl-space-3);
	text-align: center;
	box-shadow: var(--sgl-shadow-soft);
}

.sgl-homepage .sgl-stat__number {
	display: block;
	font-family: var(--sgl-font-display);
	font-size: 1.7rem;
	font-weight: 700;
	color: var(--sgl-deep-purple);
	line-height: 1.2;
}

.sgl-homepage .sgl-stat__caption {
	display: block;
	font-size: 0.85rem;
	margin-top: 4px;
	opacity: 0.8;
}

/* Proof card / testimonials (reusable) */
.sgl-homepage .sgl-testimonial-grid {
	list-style: none;
	margin: var(--sgl-space-4) auto 0;
	padding: 0;
	max-width: 1000px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sgl-space-3);
}

.sgl-homepage .sgl-testimonial {
	background: var(--sgl-white);
	border-radius: var(--sgl-radius);
	padding: var(--sgl-space-4);
	box-shadow: var(--sgl-shadow-soft);
	display: flex;
	flex-direction: column;
}

.sgl-homepage .sgl-testimonial blockquote {
	margin: 0 0 var(--sgl-space-2);
}

.sgl-homepage .sgl-testimonial blockquote p {
	margin: 0;
	font-size: 1rem;
}

.sgl-homepage .sgl-testimonial__cite {
	font-style: normal;
	font-weight: 600;
	font-family: var(--sgl-font-display);
	font-size: 0.9rem;
	color: var(--sgl-deep-purple);
	margin-top: auto;
	padding-top: var(--sgl-space-2);
}

/* CTA band (reusable — lane CTAs + shared final CTA). Divi renders the
   [et_pb_button] as a sibling module to the [et_pb_text], not nested inside
   it, so the card styling has to live on their shared parent column
   (targeted via :has()) rather than on .sgl-cta-band itself — otherwise the
   button falls outside the card. */
.sgl-homepage .et_pb_column:has(> .sgl-cta-band) {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	background: var(--sgl-white);
	border-radius: 16px;
	padding: var(--sgl-space-6) var(--sgl-space-4);
	box-shadow: var(--sgl-shadow-soft);
}

.sgl-homepage .sgl-cta-band p {
	margin-bottom: var(--sgl-space-3);
}

/* B2B lane specifics */
.sgl-homepage .sgl-lane--b2b {
	background: var(--sgl-light-lavender);
}

/* School lane specifics */
.sgl-homepage .sgl-lane--school {
	background: var(--sgl-soft-yellow);
}

.sgl-homepage .sgl-lane--school .sgl-lane__list li {
	border-left-color: var(--sgl-gold);
}

.sgl-homepage .sgl-lane--school .sgl-testimonial__cite {
	color: var(--sgl-near-black-purple);
}

/* "Case studies coming soon" reserved-slot card (spec: never a broken
   empty box — a tasteful placeholder until the first school result lands) */
.sgl-homepage .sgl-testimonial--placeholder {
	background: transparent;
	box-shadow: none;
	border: 1.5px dashed rgba(34, 1, 53, 0.25);
	align-items: center;
	justify-content: center;
	text-align: center;
}

.sgl-homepage .sgl-testimonial--placeholder p {
	margin: 0;
	font-style: italic;
	color: rgba(34, 1, 53, 0.55);
	font-size: 0.95rem;
}

/* Single-lane reveal (all breakpoints): both lanes start hidden and
   homepage.js shows only the one whose door/nav link was clicked, so a
   visitor never wades through the other buyer's message (spec). JS-gated:
   .sgl-lanes-toggle is only ever added by homepage.js, so with JS disabled
   both lanes stay visible and stacked as a safe fallback. */
.sgl-homepage.sgl-lanes-toggle .sgl-lane {
	display: none;
}

.sgl-homepage.sgl-lanes-toggle .sgl-lane.is-active {
	display: block;
}

/* -----------------------------------------------------------------------
   6b. About + Final CTA (shared sections)
   ----------------------------------------------------------------------- */
.sgl-homepage .sgl-about {
	background: var(--sgl-white);
}

.sgl-homepage .sgl-final-cta {
	background: var(--sgl-light-lavender);
}

/* -----------------------------------------------------------------------
   6c. Divi Builder structural resets — the page is now built with native
   Divi Section/Row/Column modules (per-module custom CSS IDs/classes
   reuse every selector above), so these just neutralize Divi's own
   default row/column gutters and padding where our tokens already
   control spacing, and keep two-column rows (doors, hero) matching the
   fixed-width containers the rest of the page uses.
   ----------------------------------------------------------------------- */
.sgl-homepage .et_pb_section {
	padding: 0;
}

.sgl-homepage .et_pb_row {
	width: 100%;
	max-width: 1200px;
	padding: var(--sgl-section-pad-desktop) var(--sgl-space-3);
}

.sgl-homepage .sgl-hero .et_pb_row,
.sgl-homepage .sgl-doors .et_pb_row {
	padding-top: var(--sgl-section-pad-desktop);
	padding-bottom: var(--sgl-section-pad-desktop);
}

.sgl-homepage .sgl-lane .et_pb_row {
	padding-top: 0;
	padding-bottom: 0;
}

.sgl-homepage .sgl-lane .et_pb_row:first-child {
	padding-top: var(--sgl-section-pad-desktop);
}

.sgl-homepage .sgl-lane .et_pb_row:last-child {
	padding-bottom: var(--sgl-section-pad-desktop);
}

.sgl-homepage .sgl-about .et_pb_row,
.sgl-homepage .sgl-final-cta .et_pb_row {
	padding-top: var(--sgl-section-pad-desktop);
	padding-bottom: var(--sgl-section-pad-desktop);
}

.sgl-homepage .sgl-doors .et_pb_row {
	gap: var(--sgl-space-3);
}

.sgl-homepage .sgl-door.et_pb_column {
	padding: var(--sgl-space-6) var(--sgl-space-4) !important;
}

.sgl-homepage .sgl-hero__media.et_pb_column {
	display: flex;
	align-items: center;
}

@media (max-width: 767px) {
	.sgl-homepage .et_pb_row {
		padding-left: var(--sgl-space-3);
		padding-right: var(--sgl-space-3);
	}

	.sgl-homepage .sgl-hero .et_pb_row,
	.sgl-homepage .sgl-doors .et_pb_row,
	.sgl-homepage .sgl-about .et_pb_row,
	.sgl-homepage .sgl-final-cta .et_pb_row {
		padding-top: var(--sgl-section-pad-mobile);
		padding-bottom: var(--sgl-section-pad-mobile);
	}

	.sgl-homepage .sgl-lane .et_pb_row:first-child {
		padding-top: var(--sgl-section-pad-mobile);
	}

	.sgl-homepage .sgl-lane .et_pb_row:last-child {
		padding-bottom: var(--sgl-section-pad-mobile);
	}
}

/* -----------------------------------------------------------------------
   7. Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 1023px) {
	.sgl-homepage .sgl-logostrip__grid {
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: var(--sgl-space-2);
	}
}

@media (max-width: 900px) {
	.sgl-homepage .sgl-hero__inner {
		grid-template-columns: 1fr;
		gap: var(--sgl-space-4);
		text-align: left;
	}

	.sgl-homepage .sgl-hero__media {
		max-width: 320px;
		margin: 0 auto;
	}

	.sgl-homepage .sgl-stat-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sgl-homepage .sgl-testimonial-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.sgl-homepage .sgl-hero,
	.sgl-homepage .sgl-doors,
	.sgl-homepage .sgl-lane {
		padding: var(--sgl-section-pad-mobile) 0;
	}

	.sgl-homepage .sgl-logostrip__grid {
		gap: var(--sgl-space-2);
	}

	.sgl-homepage .sgl-doors__grid {
		grid-template-columns: 1fr;
	}

	.sgl-homepage .sgl-door__cta {
		align-self: stretch;
		justify-content: center;
	}

	.sgl-homepage .sgl-lane .et_pb_row .et_pb_column .sgl-lane__subhero,
	.sgl-homepage .sgl-lane .et_pb_row .et_pb_column .sgl-lane__block {
		margin-bottom: var(--sgl-space-6);
	}

	.sgl-homepage .sgl-stat-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--sgl-space-2);
	}

	.sgl-homepage .et_pb_column:has(> .sgl-cta-band) {
		padding: var(--sgl-space-4) var(--sgl-space-3);
	}
}

