/**
 * Styles for the native homepage (front-page.php).
 * Enqueued conditionally from inc/homepage-page.php for the front page.
 *
 * Scoped under .pi-home-* prefixes so rules can't leak into other pages.
 * Categories / Brands / Clients sections reuse the .pi-section--* rules
 * already in main.css (those sections existed before the migration).
 */

.pi-home {
	display: block;
}

/* ─────────────── HERO ─────────────── */

.pi-home-hero {
	position: relative;
	min-height: 470px;
	background-color: #111;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
}

.pi-home-hero__overlay {
	min-height: inherit;
	background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%);
}

.pi-home-hero__inner {
	min-height: 470px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 62px;
	gap: 18px;
	max-width: 560px;
}

.pi-home-hero__title {
	margin: 0;
	font-size: clamp(22px, 2.2vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: #fff;
}

.pi-home-hero__subtitle {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255,255,255,.85);
}

.pi-home-hero__subtitle p { margin: 0 0 8px; }
.pi-home-hero__subtitle p:last-child { margin: 0; }

.pi-home-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* ─────────────── ADVANTAGES ─────────────── */

.pi-home-advantages {
	background: #000;
	color: #fff;
	padding: 70px 0;
}

.pi-home-advantages .pi-section__title { color: #fff; }

.pi-home-advantages__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 60px;
}

.pi-home-advantages__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #fff;
	text-decoration: none;
	transition: opacity .2s ease;
}

.pi-home-advantages__item:hover {
	opacity: .9;
}

.pi-home-advantages__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	font-size: 66px;
	line-height: 1;
	color: var(--pi-color-brand, #DB2B0E);
}

.pi-home-advantages__icon > * {
	display: inline-block;
	line-height: 1;
}

.pi-home-advantages__title {
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	color: #fff;
}

/* ─────────────── ABOUT-on-home (image left, text right) ─────────────── */

.pi-home-about-block__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 60px;
	align-items: center;
}

.pi-home-about-block__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.pi-home-about-block__heading {
	margin: 0 0 18px;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1.15;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-about-block__intro {
	font-size: 16px;
	line-height: 1.65;
	color: var(--pi-color-text, #181D4E);
	margin: 0 0 20px;
}

.pi-home-about-block__intro p { margin: 0 0 12px; }
.pi-home-about-block__intro p:last-child { margin: 0; }

.pi-home-about-block__items {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pi-home-about-block__items li {
	font-size: 15px;
	line-height: 1.5;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-about-block__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ─────────────── TRUST-on-home (text left, image right) ─────────────── */

.pi-home-trust-block__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 60px;
	align-items: center;
}

.pi-home-trust-block__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.pi-home-trust-block__heading {
	margin: 0 0 18px;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1.15;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-trust-block__intro {
	font-size: 16px;
	line-height: 1.65;
	color: var(--pi-color-text, #181D4E);
	margin: 0 0 20px;
}

.pi-home-trust-block__intro p { margin: 0 0 12px; }
.pi-home-trust-block__intro p:last-child { margin: 0; }

.pi-home-trust-block__subtitle {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-trust-block__items {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pi-home-trust-block__items li {
	font-size: 15px;
	line-height: 1.5;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-trust-block__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ─────────────── PROCESS ─────────────── */

.pi-home-process {
	padding: 60px 0;
	background-color: #0a0e1e;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.pi-home-process__card {
	background: #fff;
	max-width: 540px;
	padding: 36px 40px;
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.pi-home-process__heading {
	margin: 0 0 20px;
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-process__list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.pi-home-process__item {
	padding: 14px 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--pi-color-text, #181D4E);
	border-bottom: 1px solid #ececec;
}

.pi-home-process__item:first-child { padding-top: 4px; }
.pi-home-process__item:last-child  { padding-bottom: 4px; border-bottom: 0; }

.pi-home-process__item strong {
	font-size: 1.2em;
	font-weight: 800;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-process__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ─────────────── CTA-bar (heading + CF7 form) ─────────────── */

.pi-home-cta {
	background: #fff;
	color: var(--pi-color-text, #181D4E);
	padding: 60px 0;
}

.pi-home-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 60px;
	align-items: start;
}

.pi-home-cta__heading {
	margin: 0 0 16px;
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-cta__body {
	font-size: 14px;
	line-height: 1.6;
	color: var(--pi-color-text, #181D4E);
}

.pi-home-cta__body p { margin: 0 0 10px; }
.pi-home-cta__body p:last-child { margin: 0; }

/* ─────────────── Responsive ─────────────── */

@media (max-width: 1024px) {
	.pi-home-advantages__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.pi-home-about-block__grid,
	.pi-home-trust-block__grid,
	.pi-home-cta__inner {
		gap: 40px;
	}
}

@media (max-width: 760px) {
	.pi-home-hero { min-height: 546px; }
	.pi-home-hero__inner { min-height: 546px; padding-block: 62px; gap: 18px; }

	.pi-home-advantages__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
	.pi-home-advantages__item {
		flex-direction: column;
		align-items: flex-start;
		padding: 0;
		gap: 4px;
	}
	.pi-home-advantages__icon {
		justify-content: flex-start;
		width: auto;
		height: auto;
		font-size: 38px;
	}
	.pi-home-advantages__title { font-size: 14px; }

	.pi-home-about-block__grid,
	.pi-home-trust-block__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	/* On mobile, put the image first for both blocks even when source order
	   differs (Trust has text first in DOM). */
	.pi-home-trust-block__image { order: -1; }

	.pi-home-process { padding: 36px 0; }
	.pi-home-process__card { padding: 24px 22px; max-width: 100%; }
	.pi-home-process__item { font-size: 13.5px; }

	.pi-home-cta { padding: 48px 0; }
	.pi-home-cta__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
