/*
 * Homepage shared primitives — section shell, headings, buttons and the
 * staggered reveal delays every homepage section uses.
 * Values mirror website_reference/homepage_6.html.
 *
 * @package log-core
 */

/* ── Section shell ───────────────────────────────────────────────── */
.hp-wrap {
	max-width: var(--max-width, 1340px);
	margin: 0 auto;
	padding: 0 40px;
}

/* Reference narrows the FAQ column to max-w-4xl. */
.hp-wrap--narrow {
	max-width: 896px;
}

/*
 * Homepage footer: reference's own homepage footer sets margin-top:0
 * (footer.site-footer in website_reference/homepage_6.html), overriding the
 * 72px gap footer.log-site-footer keeps everywhere else — the divider
 * marquee sits flush against the footer here, with no paper-white seam
 * between two dark sections. This file is only enqueued on the homepage, so
 * the override never reaches Contact/other pages, which keep the 72px gap.
 */
footer.log-site-footer {
	margin-top: 0;
}

.hp-section {
	padding: 80px 0;
}

.hp-section--paper {
	background: var(--paper-50);
}

.hp-section--surface {
	background: var(--surface);
}

/* ── Headings ────────────────────────────────────────────────────── */
.hp-eyebrow {
	display: inline-block;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-600);
}

.hp-h2 {
	font-family: var(--display);
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--ink-900);
	margin: 0;
}

.hp-h2 em {
	font-style: italic;
	font-weight: 300;
	color: var(--gold-600);
}

.hp-lede {
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink-500);
	max-width: 576px;
	margin: 0;
}

/* Section head rows: left-aligned with an optional trailing link, or centred. */
.hp-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

.hp-head-left {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hp-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	margin-bottom: 64px;
}

.hp-head-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-900);
	text-decoration: none;
	transition: color .25s var(--ease);
}

.hp-head-link:hover {
	color: var(--gold-600);
}

.hp-head-link .icon {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.hp-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: var(--r-pill);
	font-family: var(--display);
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: all .25s var(--ease);
	border: 2px solid transparent;
	cursor: pointer;
}

.hp-btn-gold {
	background: var(--gold-500);
	color: var(--ink-900);
	box-shadow: 0 8px 32px rgba(212, 175, 55, .5);
}

.hp-btn-gold:hover {
	background: var(--gold-400);
	color: var(--ink-900);
	transform: translateY(-2px);
	box-shadow: 0 14px 40px rgba(212, 175, 55, .6);
}

.hp-btn-ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, .3);
	backdrop-filter: blur(8px);
	font-weight: 700;
}

.hp-btn-ghost:hover {
	border-color: rgba(255, 255, 255, .7);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transform: translateY(-2px);
}

.hp-btn .icon {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	flex-shrink: 0;
}

/* ── Staggered reveal delays ─────────────────────────────────────── */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

@media (max-width: 1024px) {
	.hp-wrap {
		padding: 0 40px;
	}
}

@media (max-width: 767px) {
	.hp-wrap {
		padding: 0 24px;
	}

	.hp-section {
		padding: 60px 0;
	}

	.hp-head {
		margin-bottom: 32px;
	}

	.hp-head--center {
		margin-bottom: 40px;
	}
}
