/**
 * Home marketplace premium — UX 3.0
 */

.mp-home { padding-bottom: 0; }

/* Hero */
.mp-home-hero {
	position: relative;
	min-height: 440px;
	display: flex;
	align-items: center;
	padding: 56px 0 72px;
	overflow: hidden;
}
.mp-home-hero__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(15, 23, 42, .9) 0%, rgba(15, 23, 42, .58) 48%, rgba(22, 88, 242, .38) 100%),
		var(--mp-color-bg) center/cover no-repeat;
	background-size: cover;
	background-position: center;
}
.mp-home-hero__inner { position: relative; z-index: 1; max-width: 720px; }
.mp-home-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #93C5FD;
}
.mp-home-hero__title {
	margin: 0 0 16px;
	font-family: var(--mp-font-display);
	font-size: clamp(2.2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.03em;
	color: #fff;
}
.mp-home-hero__sub {
	margin: 0 0 28px;
	font-size: 17px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .9);
	max-width: 560px;
}
.mp-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}
.mp-home-hero__btn-outline {
	color: #fff !important;
	border-color: rgba(255, 255, 255, .45) !important;
	background: transparent !important;
}
.mp-home-hero__btn-outline:hover {
	background: rgba(255, 255, 255, .1) !important;
}
.mp-home-hero__search {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 16px;
	background: rgba(255, 255, 255, .96);
	border-radius: var(--mp-radius-md);
	box-shadow: var(--mp-shadow-md);
	max-width: 560px;
}
.mp-home-hero__search-input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 15px;
	min-width: 0;
}
.mp-home-hero__search-input:focus { outline: none; }

.mp-home .mp-section,
.mp-home-section {
	padding: 72px 0;
}

/* How it works */
.mp-home-how__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.mp-home-module-card {
	background: var(--mp-color-card);
	border: 1px solid var(--mp-color-border);
	border-radius: var(--mp-radius-lg);
	padding: 0 0 22px;
	overflow: hidden;
	box-shadow: var(--mp-shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}
.mp-home-module-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--mp-shadow-md);
}
.mp-home-module-card__media {
	display: block;
	height: 140px;
	overflow: hidden;
}
.mp-home-module-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--mp-radius-lg) var(--mp-radius-lg) 0 0;
}
.mp-home-module-card__step {
	display: inline-flex;
	margin: 16px 20px 8px;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--mp-primary-light);
	color: var(--mp-color-primary);
	font-size: 13px;
	font-weight: 700;
}
.mp-home-module-card__title {
	margin: 0 20px 8px;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--mp-color-text);
}
.mp-home-module-card__text {
	margin: 0 20px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--mp-color-muted);
}

/* Services home strip */
.mp-home-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.mp-home-service-card {
	position: relative;
	display: block;
	height: 200px;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	box-shadow: var(--mp-shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}
.mp-home-service-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--mp-shadow-md);
}
.mp-home-service-card__media {
	position: absolute;
	inset: 0;
	display: block;
}
.mp-home-service-card__media img,
.mp-home-service-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mp-home-service-card__overlay {
	position: absolute;
	inset: 0;
	background: var(--mp-cat-overlay);
	z-index: 1;
}
.mp-home-service-card__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mp-home-service-card__name {
	font-family: var(--mp-font-display);
	font-size: 1.05rem;
	font-weight: 700;
}
.mp-home-service-card__count {
	font-size: 13px;
	opacity: .9;
}

/* Cities home strip */
.mp-home-cities__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

/* CTA provider */
.mp-home-cta__card {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 32px;
	align-items: center;
	padding: 36px 40px;
	background: var(--mp-color-card);
	border: 1px solid var(--mp-color-border);
	border-radius: var(--mp-radius-lg);
	box-shadow: var(--mp-shadow-sm);
}
.mp-home-cta__title {
	margin: 0 0 12px;
	font-family: var(--mp-font-display);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--mp-color-text);
}
.mp-home-cta__text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--mp-color-muted);
	max-width: 480px;
}
.mp-home-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mp-home-cta__media {
	border-radius: var(--mp-radius-lg);
	overflow: hidden;
	min-height: 220px;
}
.mp-home-cta__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--mp-radius-lg);
}

@media (max-width: 1024px) {
	.mp-home .mp-section,
	.mp-home-section { padding: 56px 0; }
}

@media (max-width: 1100px) {
	.mp-home-how__grid { grid-template-columns: repeat(2, 1fr); }
	.mp-home-services__grid { grid-template-columns: repeat(2, 1fr); }
	.mp-home-cities__grid { grid-template-columns: repeat(3, 1fr); }
	.mp-home-cta__card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.mp-home-hero { min-height: 380px; padding: 40px 0 56px; }
	.mp-home .mp-section,
	.mp-home-section { padding: 42px 0; }
	.mp-home-how__grid,
	.mp-home-services__grid,
	.mp-home-cities__grid { grid-template-columns: 1fr; }
	.mp-home-cta__card { padding: 24px; }
}
