/* ============================================================================
   Home page sections + shared editorial components.
   Classes here are global (CSS isn't scoped to a partial), so other pages reuse
   them freely (hero variants, stat tiles, section wrappers, etc.).
   ========================================================================== */

/* WordPress applies a flow block-gap top-margin to the 2nd+ child of a group.
   On groups we've restyled as CSS grid, that stray margin shifts a column out of
   its cell (e.g. pushed the hero's magenta panel down 24px). Zero it here. */
.hmd-hero > *,
.hmd-hero-vertical > *,
.hmd-service-band__grid > *,
.hmd-about__grid > *,
.hmd-blog-list__grid > * {
	margin-block: 0 !important;
}

/* ── Hero (split) ─────────────────────────────────────────────────────────*/
.hmd-hero {
	display: grid;
	grid-template-columns: 7fr 5fr;
	min-height: 720px;
	gap: 0;
}
.hmd-hero__left {
	background: var(--cream);
	padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 6rem);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
/* Yellow corner marker — flat top/left, right shoulder, then a 45° cut down to a
   point near the base (reads as a little house/pennant anchored in the corner). */
.hmd-hero__left::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 92px;
	height: 104px;
	background: var(--yellow);
	clip-path: polygon(0 0, 80% 0, 100% 20%, 13% 100%, 0 90%);
}
.hmd-hero__left > * { position: relative; }
.hmd-hero__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(3.25rem, 8vw, 7rem);
	line-height: 0.86;
	letter-spacing: -0.04em;
	margin: 0 0 2rem;
}
.hmd-hero__title .neon { color: var(--magenta); }
.hmd-hero__title .curated {
	color: var(--pink);
	border-bottom: 8px solid var(--yellow);
	padding-bottom: 0.25rem;
	display: inline-block;
}
.hmd-hero__lede {
	max-width: 460px;
	font-size: 1.0625rem;
	line-height: 1.6;
	margin: 0 0 2rem;
	color: var(--ink);
}
.hmd-hero__cta { margin-bottom: 3.5rem; gap: 1rem; }
.hmd-hero__meta { gap: 2.5rem; }
.hmd-stat { gap: 0; }
.hmd-stat__num {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 2rem;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0 0 0.25rem;
	color: var(--ink);
}
.hmd-stat__label {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ink-soft);
	margin: 0;
}
.hmd-hero__right {
	background: var(--magenta);
	min-height: 100%;
	position: relative;
	overflow: hidden;
}

/* ── Marquee ──────────────────────────────────────────────────────────────*/
.hmd-marquee {
	background: var(--ink);
	color: var(--yellow);
	padding: 1.125rem 0;
	overflow: hidden;
}
.hmd-marquee__track {
	display: flex;
	gap: 3rem;
	white-space: nowrap;
	width: max-content;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	animation: hmd-marquee 50s linear infinite;
}
.hmd-marquee__dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--magenta);
	margin: 0 1.5rem;
	vertical-align: middle;
}

/* ── Category pillars ─────────────────────────────────────────────────────*/
.hmd-pillars-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1rem;
}
.hmd-pillar {
	background: var(--paper);
	border-radius: 16px;
	padding: 1.75rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	min-height: 200px;
	text-decoration: none;
	color: var(--ink);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hmd-pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26, 26, 46, 0.1); }
.hmd-pillar__ico {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	display: grid;
	place-items: center;
}
.hmd-pillar__ico .hmd-icon { width: 26px; height: 26px; }
.hmd-pillar__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.125rem;
	margin: 0;
	line-height: 1.1;
}
.hmd-pillar__count {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-top: auto;
}

/* ── Service Request band ─────────────────────────────────────────────────*/
.hmd-service-band { position: relative; overflow: hidden; }
.hmd-service-band::after {
	content: "";
	position: absolute;
	top: -100px;
	right: -100px;
	width: 400px;
	height: 400px;
	background: var(--magenta);
	border-radius: 999px;
	opacity: 0.15;
}
.hmd-service-band__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
	z-index: 1;
}
.hmd-service-band__title {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	letter-spacing: -0.03em;
	line-height: 0.95;
	margin: 0 0 1rem;
	color: #fff;
}
.hmd-service-band__title .accent { color: var(--yellow); }
.hmd-service-band__lede {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
	max-width: 480px;
	margin: 0 0 2rem;
}
.hmd-stat-tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
.hmd-stat-tile {
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 14px;
	border-top: 4px solid var(--yellow);
}
.hmd-stat-tile:nth-child(2) { border-top-color: var(--magenta); }
.hmd-stat-tile:nth-child(3) { border-top-color: var(--teal); }
.hmd-stat-tile:nth-child(4) { border-top-color: var(--pink); }
.hmd-stat-tile b {
	display: block;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 2.25rem;
	letter-spacing: -0.02em;
	line-height: 1;
	color: #fff;
}
.hmd-stat-tile span {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-top: 0.5rem;
	display: block;
}

/* ── About teaser ─────────────────────────────────────────────────────────*/
.hmd-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}
.hmd-about__media {
	aspect-ratio: 5 / 4;
	border-radius: 16px;
	background: var(--pink);
	overflow: hidden;
}

/* ── Responsive ───────────────────────────────────────────────────────────*/
@media (max-width: 1100px) {
	.hmd-pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.hmd-hero { grid-template-columns: 1fr; min-height: 0; }
	.hmd-hero__right { min-height: 320px; order: -1; }
	.hmd-service-band__grid,
	.hmd-about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
	.hmd-pillars-grid { grid-template-columns: repeat(2, 1fr); }
	.hmd-stat-tiles { grid-template-columns: 1fr; }
	.hmd-hero__meta { gap: 1.5rem; }
}
