/**
 * Home Page — Base Layout & Shared Styles
 *
 * Global layout rules for the homepage template.
 * Reuses Blocksy & child theme design tokens (--slate-*, --color-*, --spacing-*, etc.).
 *
 * Dependencies: child theme style.css (design tokens)
 */

/* ============================================
   PAGE LAYOUT
   ============================================ */

.home-page {
	overflow-x: hidden;
}

.home-page section {
	position: relative;
	padding: var(--spacing-3xl) 0;
}

@media (min-width: 768px) {
	.home-page section {
		padding: 5rem 0;
	}
}

@media (min-width: 1024px) {
	.home-page section {
		padding: 6rem 0;
	}
}

/* ============================================
   SHARED CONTAINER
   ============================================ */

.home-page [class*="__container"] {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--spacing-sm);
}

@media (min-width: 1024px) {
	.home-page [class*="__container"] {
		padding: 0 var(--spacing-lg);
	}
}

/* ============================================
   SECTION HEADERS (shared)
   ============================================ */

.home-page .section-title {
	text-align: center;
	margin-bottom: var(--spacing-sm);
}

.home-page .section-subtitle {
	text-align: center;
	max-width: 640px;
	margin: 0 auto var(--spacing-xl);
}

/* ============================================
   SCROLL REVEAL — IntersectionObserver driven
   ============================================ */

.home-reveal {
	opacity: 0;
	transform: translateY(2rem);
	transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.home-reveal--visible {
	opacity: 1;
	transform: translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.home-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ============================================
   SECTION BACKGROUNDS — Configure per section
   Each section reads its own --section-bg variable,
   falling back to --color-bg-primary.
   Override in the section's own CSS file.
   ============================================ */

.home-page section {
	background-color: var(--section-bg, var(--color-bg-primary));
}
