/*
Lamy — Home page (Project B) section styles.

Enqueued ONLY on pages using page-home.php (functions.php, gated). EVERY
selector is rooted in a .site-home-* ancestor — no bare element selectors
(body/h1/p/a) and no .lp-* selectors — so this file cannot affect the LP or
any other page. Buttons reuse .site-cta / .site-cta-secondary (site-base.css);
the lead form reuses the global .site-form (site-form.css). Tokens come from
style.css :root. RTL, mobile-first.
*/

/* ============================================================
   Shared: page wrapper + eyebrow label
   ============================================================ */
.site-home {
	background: var(--bg-primary);
	overflow-x: hidden;
}

/* Tighter vertical rhythm than the default .site-section (48–110px) — the home
   reads compact-but-premium. Higher specificity (.site-home > .site-section)
   overrides .site-section and any per-section padding. (Task: spacing.) */
.site-home > .site-section {
	padding-block: clamp(40px, 5vw, 76px);
}

.site-home-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gold-primary);
	font-family: 'Heebo', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin-bottom: 16px;
}
.site-home-eyebrow::before {
	content: '';
	width: 30px;
	height: 1px;
	background: linear-gradient(to left, var(--gold-primary), transparent);
}
.site-home-eyebrow--center {
	justify-content: center;
}
.site-home-eyebrow--center::after {
	content: '';
	width: 30px;
	height: 1px;
	background: linear-gradient(to right, var(--gold-primary), transparent);
}

/* Shared heading rhythm */
.site-home-hero__title,
.site-home-pain__title,
.site-home-engine__title,
.site-home-solutions__title,
.site-home-founder__title,
.site-home-insights__title,
.site-home-blog__title,
.site-home-cta__title {
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-weight: 800; /* match the LP's section-heading weight (was 700) */
	color: var(--text-heading);
	letter-spacing: -0.01em;
	line-height: 1.22;
	margin: 0 0 18px;
}

/* ============================================================
   Section 1 — HERO
   ============================================================ */
.site-home-hero {
	position: relative;
	padding-block: clamp(48px, 8vw, 96px);
}
.site-home-hero__glow {
	position: absolute;
	inset-inline-end: -10%;
	top: -10%;
	width: 60%;
	height: 70%;
	background: radial-gradient(circle, rgba(26, 15, 46, 0.55) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}
.site-home-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}
.site-home-hero__title {
	font-size: clamp(34px, 5.2vw, 64px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: 20px;
}
.site-home-hero__title-accent {
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.site-home-hero__sub {
	color: var(--text-body);
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.6;
	max-width: 620px;
	margin: 0 0 28px;
}
.site-home-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}
/* Match LP hero secondary CTA context override (lp-hero__cta-secondary) */
.site-home-hero__ctas .site-cta-secondary {
	border-radius: 10px;
	padding: 16px 28px;
}
.site-home-hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
}
.site-home-hero__visual-glow {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 78%;
	height: 78%;
	background: radial-gradient(circle, rgba(138, 79, 255, 0.28) 0%, transparent 70%);
	filter: blur(8px);
}
.site-home-hero__mark {
	position: relative;
	width: clamp(150px, 22vw, 280px);
	height: auto;
	filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.6));
}

/* ============================================================
   Section 2 — PAIN
   ============================================================ */
.site-home-pain {
	background: var(--bg-section);
	border-block: 1px solid rgba(255, 255, 255, 0.05);
}
.site-home-pain__inner {
	max-width: 880px;
	text-align: center;
}
.site-home-pain__title {
	font-size: clamp(26px, 3.4vw, 44px);
	font-weight: 800; /* aligned to LP section headings */
}
.site-home-pain__text {
	color: var(--text-body);
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.7;
	margin: 0;
}

/* ============================================================
   Section 3 — ENGINE (method + steps)
   ============================================================ */
.site-home-engine {
	position: relative;
}
.site-home-engine__glow {
	position: absolute;
	inset-inline-start: -8%;
	bottom: -12%;
	width: 55%;
	height: 60%;
	background: radial-gradient(circle, rgba(26, 15, 46, 0.5) 0%, transparent 70%);
	pointer-events: none;
}
.site-home-engine__inner {
	position: relative;
	text-align: center;
	max-width: 980px;
}
.site-home-engine__title {
	font-size: clamp(26px, 3.4vw, 44px);
}
.site-home-engine__text {
	color: var(--text-body);
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.7;
	max-width: 760px;
	margin: 0 auto 36px;
}
.site-home-engine__steps {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 12px;
}
.site-home-engine__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 96px;
	padding: 16px 14px;
	background:
		linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
		var(--accent-gradient) border-box;
	border: 1px solid transparent;
	border-radius: 12px;
	position: relative;
}
.site-home-engine__step-num {
	font-family: 'Rubik', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-primary);
	letter-spacing: 0.08em;
}
.site-home-engine__step-label {
	color: var(--text-heading);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}
.site-home-engine__step:not(:last-child)::after {
	content: '←';
	position: absolute;
	inset-inline-start: -13px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--purple-glow);
	font-size: 14px;
	line-height: 1;
}

/* ============================================================
   Section 4 — SOLUTIONS (5 cards)
   ============================================================ */
.site-home-solutions {
	background: var(--bg-section);
	border-block: 1px solid rgba(255, 255, 255, 0.05);
}
.site-home-solutions__inner {
	text-align: center;
}
.site-home-solutions__title {
	font-size: clamp(26px, 3.4vw, 44px);
	margin-bottom: 40px;
}
.site-home-solutions__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: start;
}
.site-home-solutions__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 24px;
	background: var(--bg-card);
	border: 1px solid rgba(212, 175, 55, 0.14);
	border-radius: 14px;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-home-solutions__card:hover,
.site-home-solutions__card:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(212, 175, 55, 0.4);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(138, 79, 255, 0.12);
}
.site-home-solutions__card-title {
	font-family: 'Rubik', sans-serif;
	color: var(--text-heading);
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}
.site-home-solutions__card-text {
	color: var(--text-body);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	flex: 1;
}
.site-home-solutions__card-link {
	color: var(--gold-primary);
	font-size: 14px;
	font-weight: 600;
	margin-top: 6px;
}
.site-home-solutions__card:hover .site-home-solutions__card-arrow {
	margin-inline-start: 4px;
}
.site-home-solutions__card-arrow {
	transition: margin-inline-start 0.2s ease;
}

/* ============================================================
   Section 5 — FOUNDER
   ============================================================ */
.site-home-founder__grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(24px, 5vw, 56px);
	align-items: center;
}
.site-home-founder__photo-wrap {
	position: relative;
	display: flex;
	justify-content: center;
}
.site-home-founder__photo-glow {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 80%;
	height: 80%;
	background: radial-gradient(circle, rgba(138, 79, 255, 0.22) 0%, transparent 70%);
}
.site-home-founder__photo {
	position: relative;
	width: 100%;
	max-width: 340px;
	height: auto;
	border-radius: 16px;
	border: 1px solid rgba(212, 175, 55, 0.2);
}
.site-home-founder__title {
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 800;
}
.site-home-founder__text {
	color: var(--text-body);
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.7;
	margin: 0 0 24px;
}

/* ============================================================
   Section 6 — INSIGHTS (placeholder cards)
   ============================================================ */
.site-home-insights__inner {
	text-align: center;
}
.site-home-insights__title {
	font-size: clamp(26px, 3.4vw, 44px);
	margin-bottom: 40px;
}
.site-home-insights__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: start;
}
.site-home-insights__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 24px;
	min-height: 160px;
	background: var(--bg-card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	transition: border-color 0.2s ease;
}
.site-home-insights__card:hover {
	border-color: rgba(212, 175, 55, 0.25);
}
.site-home-insights__card-tag {
	align-self: flex-start;
	color: var(--gold-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	padding: 4px 10px;
	border: 1px solid rgba(212, 175, 55, 0.3);
	border-radius: 999px;
}
.site-home-insights__card-title {
	font-family: 'Rubik', sans-serif;
	color: var(--text-heading);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

/* ============================================================
   Section 7 — BLOG
   ============================================================ */
.site-home-blog {
	background: var(--bg-section);
	border-block: 1px solid rgba(255, 255, 255, 0.05);
}
.site-home-blog__inner {
	text-align: center;
}
.site-home-blog__title {
	font-size: clamp(26px, 3.4vw, 44px);
	margin-bottom: 40px;
}
.site-home-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: start;
	margin-bottom: 32px;
}
.site-home-blog__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	background: var(--bg-card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.site-home-blog__card:hover,
.site-home-blog__card:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(212, 175, 55, 0.35);
}
.site-home-blog__card-date {
	color: var(--text-meta);
	font-size: 13px;
}
.site-home-blog__card-title {
	font-family: 'Rubik', sans-serif;
	color: var(--text-heading);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}
.site-home-blog__card-excerpt {
	color: var(--text-body);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	flex: 1;
}
.site-home-blog__card-link {
	color: var(--gold-primary);
	font-size: 14px;
	font-weight: 600;
}
.site-home-blog__empty {
	color: var(--text-meta);
	font-size: 18px;
	text-align: center;
	padding: 32px 0;
	margin: 0;
}

/* ============================================================
   Section 8 — FINAL CTA (+ global form)
   ============================================================ */
.site-home-cta {
	position: relative;
}
.site-home-cta__glow {
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 60%;
	background: radial-gradient(ellipse at top, rgba(26, 15, 46, 0.6) 0%, transparent 70%);
	pointer-events: none;
}
.site-home-cta__inner {
	position: relative;
	text-align: center;
	max-width: 720px;
}
.site-home-cta__title {
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 800;
}
.site-home-cta__text {
	color: var(--text-body);
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.7;
	margin: 0 auto 36px;
	max-width: 600px;
}
.site-home-cta__form {
	max-width: 560px;
	margin-inline: auto;
	text-align: start;
}

/* ============================================================
   Content enrichment (pain list / engine step desc / insights summary)
   ============================================================ */
.site-home-pain__lead {
	color: var(--text-body);
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.7;
	margin: 0 0 24px;
}
.site-home-pain__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 680px;
	display: grid;
	gap: 12px;
	text-align: start;
}
.site-home-pain__list li {
	position: relative;
	padding-inline-start: 26px;
	color: var(--text-body);
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.6;
}
.site-home-pain__list li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent-gradient);
}
.site-home-pain__list strong {
	color: var(--text-heading);
	font-weight: 700;
}
.site-home-engine__step {
	max-width: 150px;
}
.site-home-engine__step-desc {
	color: var(--text-meta);
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}
.site-home-insights__card-text {
	color: var(--text-body);
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
	.site-home-hero__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.site-home-hero__sub {
		margin-inline: auto;
	}
	.site-home-hero__ctas {
		justify-content: center;
	}
	.site-home-hero__visual {
		order: -1;
		min-height: 180px;
	}
	.site-home-founder__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.site-home-founder__photo-wrap {
		order: -1;
	}
	.site-home-founder__text {
		margin-inline: auto;
	}
	.site-home-solutions__grid,
	.site-home-insights__grid,
	.site-home-blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.site-home-solutions__grid,
	.site-home-insights__grid,
	.site-home-blog__grid {
		grid-template-columns: 1fr;
	}
	.site-home-engine__step {
		min-width: 0;
		flex: 1 1 calc(50% - 12px);
	}
	.site-home-hero__ctas .site-cta,
	.site-home-hero__ctas .site-cta-secondary {
		width: 100%;
		text-align: center;
	}
}
