/* ============================================================
 * home-premium.css — tarifs-style editorial polish for the
 * homepage. Loaded last so it cascades over theme.css.
 * Selectors are NOT scoped to .is-home — they only target
 * home-only block classes (.home-stats, .services, .protocol).
 * ============================================================ */

/* ============================================================
 * Tarifs-style hairline eyebrow (shared utility on home).
 * ============================================================ */
.hero__eyebrow-v2,
.services__eyebrow,
.protocol__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent, #b94a2e);
	font-weight: 500;
	margin: 0 0 16px;
}
.hero__eyebrow-v2 .rule,
.services__eyebrow .rule,
.protocol__eyebrow .rule {
	width: 32px;
	height: 1px;
	background: var(--color-accent, #b94a2e);
	display: inline-block;
}

/* ============================================================
 * Stats strip — dark editorial card.
 * Sits between hero and proof-rail.
 * ============================================================ */
.home-stats {
	padding-block: clamp(20px, 3vw, 40px);
}
.home-stats__inner {
	background: var(--color-text-primary, #190f0a);
	color: #fff;
	border-radius: var(--radius-lg, 18px);
	padding: clamp(28px, 3vw, 44px) clamp(28px, 3.2vw, 48px);
	box-shadow: 0 24px 56px rgba(15, 10, 4, 0.16);
	position: relative;
	overflow: hidden;
}
.home-stats__inner::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 56px;
	height: 1px;
	background: var(--color-accent, #d45b3d);
}
.home-stats__inner::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 56px;
	height: 1px;
	background: var(--color-accent, #d45b3d);
}
.home-stats__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
	margin-bottom: 24px;
}
.home-stats__eyebrow .rule {
	display: inline-block;
	width: 28px;
	height: 1px;
	background: var(--color-accent, #d45b3d);
}
.home-stats__grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(20px, 2vw, 40px);
}
.home-stats__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-right: clamp(12px, 1.5vw, 20px);
	border-right: 1px solid rgba(255, 255, 255, 0.10);
}
.home-stats__item:last-child {
	border-right: 0;
}
.home-stats__num {
	font-family: var(--font-display, 'Fraunces', serif);
	font-size: clamp(30px, 3.8vw, 48px);
	font-weight: 350;
	letter-spacing: -0.022em;
	line-height: 1;
	color: var(--color-accent, #d45b3d);
}
.home-stats__lab {
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.45;
}
@media (max-width: 880px) {
	.home-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.home-stats__item:nth-child(2n) {
		border-right: 0;
	}
	.home-stats__item:nth-child(-n+2) {
		padding-bottom: 18px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	}
}
@media (max-width: 480px) {
	.home-stats__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.home-stats__item {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.10);
		padding-bottom: 16px;
		padding-right: 0;
	}
	.home-stats__item:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}
	.home-stats__item:nth-child(-n+2) {
		padding-bottom: 16px;
	}
}

/* ============================================================
 * Services grid — center 5th orphan card + featured tile.
 * ============================================================ */
.services .services__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2vw, 24px);
	align-items: stretch;
}
.services .services__grid > .service-tile:nth-child(5):last-child {
	grid-column: 2 / span 2;
	max-width: 100%;
}
@media (max-width: 1100px) {
	.services .services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.services .services__grid > .service-tile:nth-child(5):last-child {
		grid-column: 1 / -1;
		max-width: 560px;
		justify-self: center;
	}
}
@media (max-width: 640px) {
	.services .services__grid {
		grid-template-columns: 1fr;
	}
	.services .services__grid > .service-tile:nth-child(5):last-child {
		grid-column: 1;
		max-width: none;
	}
}

/* Featured tile — dark with terracotta badge */
.services .service-tile {
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.services .service-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(15, 10, 4, 0.10);
}
.services .service-tile--featured {
	background: var(--color-text-primary, #190f0a) !important;
	color: #fff !important;
	border-color: var(--color-text-primary, #190f0a) !important;
	box-shadow: 0 18px 48px rgba(15, 10, 4, 0.18);
}
.services .service-tile--featured .service-tile__num {
	color: var(--color-accent, #d45b3d) !important;
}
.services .service-tile--featured .service-tile__title {
	color: #ffffff !important;
}
.services .service-tile--featured .service-tile__desc {
	color: rgba(255, 255, 255, 0.84) !important;
}
.services .service-tile--featured .service-tile__link {
	color: var(--color-accent, #d45b3d) !important;
}
.services .service-tile__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--color-accent, #b94a2e);
	color: #ffffff;
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 0 16px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(15, 10, 4, 0.22);
	z-index: 5;
}

/* Services head — magazine italic accent */
.services .services__title em.italic,
.services .services__title em.serif,
.services .services__title em {
	font-family: var(--font-display, 'Fraunces', serif);
	font-style: italic;
	color: var(--color-accent, #b94a2e);
	font-weight: 400;
}

/* ============================================================
 * Protocol — tarifs-style big serif numerals + structured label.
 * ============================================================ */
.protocol .protocol-step__numgroup {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 14px;
}
.protocol .protocol-step__label {
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text-muted, #7a6f66);
	font-weight: 500;
	white-space: nowrap;
}
.protocol .protocol-step__numeral {
	font-family: var(--font-display, 'Fraunces', serif);
	font-size: clamp(42px, 4.5vw, 64px);
	font-weight: 350;
	line-height: 0.95;
	color: var(--color-accent, #b94a2e);
	letter-spacing: -0.024em;
	font-feature-settings: 'lnum';
}

/* Hide legacy single-line .protocol-step__num if it still gets rendered */
.protocol .protocol-step__num {
	display: none;
}

/* Big italic accent on protocol title */
.protocol .protocol__title em.italic,
.protocol .protocol__title em.serif,
.protocol .protocol__title em {
	font-family: var(--font-display, 'Fraunces', serif);
	font-style: italic;
	color: var(--color-accent, #b94a2e);
	font-weight: 400;
}

/* ============================================================
 * Hero — replace legacy .eyebrow (dot prefix) with hairline rule
 * version. Both can coexist; the v2 element overrides visuals.
 * ============================================================ */
.hero .hero__eyebrow-v2 {
	margin-bottom: 22px;
}

/* ============================================================
 * Pests grid head — italic accent (legacy uses brace markup).
 * ============================================================ */
.pests .pests__title em.italic,
.pests .pests__title em.serif,
.pests .pests__title em,
.zones .zones__title em.italic,
.zones .zones__title em.serif,
.zones .zones__title em {
	font-family: var(--font-display, 'Fraunces', serif);
	font-style: italic;
	color: var(--color-accent, #b94a2e);
	font-weight: 400;
}

/* ============================================================
 * Hairline rules between major home sections — editorial rhythm.
 * ============================================================ */
.is-home .proof-rail,
.is-home .services,
.is-home .protocol,
.is-home .pests,
.is-home .zones {
	position: relative;
}
.is-home .services::before,
.is-home .protocol::before,
.is-home .pests::before,
.is-home .zones::before {
	content: '';
	display: block;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-border-subtle, #e6e0d8) 16%, var(--color-border-subtle, #e6e0d8) 84%, transparent);
	margin-bottom: clamp(56px, 6vw, 88px);
}

/* (Pillar pages already match tarifs aesthetic via pillar-premium-tight.css —
 *  hairline eyebrow, magazine title, terracotta numerals. No override here.) */
