/* =========================================================
   Mama Plus — Homepage styles
   Namespaced with .mp- so it never collides with Eronex core
   or other page templates. Loaded only on the front page.
   ========================================================= */

.mp-home {
	--mp-bg: #F6F7F2;
	--mp-panel: #F0F2EA;
	--mp-white: #FFFFFF;
	--mp-ink: #172621;
	--mp-text: #626D66;
	--mp-text-light: #8B948E;
	--mp-accent: #D6F26A;
	--mp-accent-ink: #2B3B1E;
	--mp-primary: #163832;
	--mp-primary-hover: #0E2925;
	--mp-border: #E3E7DE;
	--mp-radius-lg: 28px;
	--mp-radius-md: 18px;
	--mp-radius-sm: 12px;
	--mp-shadow: 0 20px 40px -20px rgba(23, 38, 33, 0.15);

	background: var(--mp-bg);
	color: var(--mp-text);
	font-family: "Manrope", "Segoe UI", Arial, sans-serif;
	overflow-x: hidden;
}

/* The parent theme reserves 100px top/bottom on #eronex-content to leave
   room for its page-title banner. We removed that banner on the front
   page, so kill the reserved space here — our own sections handle spacing. */
body.mp-landing #eronex-content.eronex-content-wrapper {
	padding: 0;
}

.mp-home h1,
.mp-home h2,
.mp-home h3 {
	color: var(--mp-ink);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
}

.mp-home p {
	margin: 0 0 16px;
	line-height: 1.6;
}

.mp-home a {
	text-decoration: none;
}

.mp-section {
	padding: 64px 0;
}

/* -------- Shared bits -------- */

.mp-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--mp-accent);
	color: var(--mp-accent-ink);
	font-size: 13px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 999px;
	margin-bottom: 20px;
}

.mp-badge-dark {
	background: var(--mp-primary);
	color: var(--mp-white);
}

.mp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	transition: transform .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}

.mp-btn-primary {
	background: var(--mp-primary);
	color: var(--mp-white);
}

.mp-btn-primary:hover {
	background: var(--mp-primary-hover);
	transform: translateY(-2px);
}

.mp-btn-outline {
	background: transparent;
	color: var(--mp-ink);
	border: 1.5px solid var(--mp-border);
}

.mp-btn-outline:hover {
	border-color: var(--mp-ink);
	transform: translateY(-2px);
}

.mp-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--mp-primary);
}

.mp-link-arrow:hover {
	text-decoration: underline;
}

.mp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

/* Placeholder image treatment */
img.mp-placeholder {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--mp-radius-md);
	background: #E7ECE9;
}

/* -------- Hero -------- */

.mp-hero {
	padding-top: 40px;
}

.mp-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

.mp-hero-title {
	font-size: clamp(30px, 4vw, 44px);
	max-width: 560px;
}

.mp-hero-text {
	max-width: 460px;
	font-size: 16px;
}

.mp-hero-proof {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mp-hero-proof p {
	margin: 0;
	font-size: 14px;
	color: var(--mp-text);
}

.mp-avatar-stack {
	display: flex;
	align-items: center;
}

.mp-avatar-stack img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid var(--mp-bg);
	margin-left: -14px;
	object-fit: cover;
}

.mp-avatar-stack img:first-child {
	margin-left: 0;
}

.mp-avatar-count {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mp-primary);
	color: var(--mp-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	margin-left: -14px;
	border: 3px solid var(--mp-bg);
}

.mp-hero-media {
	position: relative;
}

.mp-hero-image {
	aspect-ratio: 4 / 3.4;
	object-fit: cover;
}

.mp-rating-card {
	position: absolute;
	left: -24px;
	bottom: 28px;
	background: var(--mp-white);
	border-radius: var(--mp-radius-sm);
	box-shadow: var(--mp-shadow);
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 140px;
}

.mp-rating-score {
	font-size: 22px;
	font-weight: 800;
	color: var(--mp-ink);
}

.mp-rating-stars {
	color: #F5B942;
	font-size: 14px;
	letter-spacing: 2px;
}

.mp-rating-label {
	font-size: 12px;
	color: var(--mp-text-light);
}

/* -------- Feature cards row -------- */

.mp-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mp-feature-card {
	background: var(--mp-white);
	border-radius: var(--mp-radius-md);
	padding: 28px;
	border: 1px solid var(--mp-border);
}

.mp-feature-card h3 {
	font-size: 18px;
	margin-bottom: 10px;
}

.mp-feature-card p {
	font-size: 14px;
	margin-bottom: 0;
}

.mp-feature-photo img {
	aspect-ratio: 16/10;
	object-fit: cover;
	margin-bottom: 18px;
}

.mp-feature-checklist {
	background: var(--mp-accent);
}

.mp-feature-checklist h3 {
	font-size: 15px;
	text-transform: none;
}

.mp-checklist {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	columns: 2;
	column-gap: 16px;
}

.mp-checklist li {
	font-size: 13px;
	font-weight: 600;
	color: var(--mp-accent-ink);
	padding: 6px 0;
	break-inside: avoid;
}

.mp-feature-checklist .mp-link-arrow {
	color: var(--mp-accent-ink);
}

.mp-feature-chart {
	background: var(--mp-panel);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.mp-mini-chart {
	width: 100%;
	height: 70px;
	color: var(--mp-primary);
	margin-top: 12px;
}

/* -------- Services -------- */

.mp-services-inner {
	background: var(--mp-panel);
	border-radius: var(--mp-radius-lg);
	padding: 48px;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 40px;
	align-items: center;
}

.mp-services-left h2 {
	font-size: clamp(26px, 3vw, 32px);
}

.mp-services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-top: 28px;
}

.mp-service-card {
	background: var(--mp-white);
	border-radius: var(--mp-radius-sm);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 28px;
	position: relative;
	color: var(--mp-ink);
	transition: transform .15s ease, box-shadow .15s ease;
}

.mp-service-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--mp-shadow);
}

.mp-service-icon {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--mp-panel);
	display: block;
}

.mp-service-icon::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	-webkit-mask: var(--mp-icon-svg) center / 18px no-repeat;
	mask: var(--mp-icon-svg) center / 18px no-repeat;
	background: var(--mp-primary);
	margin: auto;
}

.mp-service-label {
	font-size: 14px;
	font-weight: 700;
}

.mp-service-go {
	position: absolute;
	top: 18px;
	right: 18px;
	font-size: 13px;
	color: var(--mp-text-light);
}

.mp-services-image {
	aspect-ratio: 3/4;
	object-fit: cover;
}

/* -------- Express analyses -------- */

.mp-express-grid {
	display: grid;
	grid-template-columns: 0.9fr 1fr 0.9fr;
	gap: 24px;
	align-items: stretch;
}

.mp-express-media img {
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
}

.mp-express-content {
	background: var(--mp-white);
	border: 1px solid var(--mp-border);
	border-radius: var(--mp-radius-md);
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mp-express-tags {
	background: var(--mp-accent);
	border-radius: var(--mp-radius-md);
	padding: 28px;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 10px;
}

.mp-tag {
	background: var(--mp-white);
	color: var(--mp-accent-ink);
	font-size: 13px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 999px;
}

.mp-tag-more {
	background: var(--mp-primary);
	color: var(--mp-white);
}

/* -------- Section heading (doctors / reviews) -------- */

.mp-section-heading {
	text-align: center;
	max-width: 560px;
	margin: 0 auto 40px;
}

.mp-section-heading h2 {
	font-size: clamp(26px, 3vw, 32px);
}

.mp-section-heading p {
	color: var(--mp-text);
	margin: 0;
}

/* -------- Doctors -------- */

.mp-doctors-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.mp-doctor-card {
	background: var(--mp-white);
	border-radius: var(--mp-radius-md);
	overflow: hidden;
	border: 1px solid var(--mp-border);
}

.mp-doctor-photo img {
	aspect-ratio: 3/3.5;
	object-fit: cover;
	border-radius: 0;
}

.mp-doctor-tag {
	display: inline-block;
	margin: 16px 0 8px 16px;
	background: var(--mp-accent);
	color: var(--mp-accent-ink);
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
}

.mp-doctor-name {
	font-size: 16px;
	margin: 0 16px 20px;
}

/* -------- Reviews -------- */

.mp-review-card {
	max-width: 720px;
	margin: 0 auto;
	background: var(--mp-white);
	border: 1px solid var(--mp-border);
	border-radius: var(--mp-radius-md);
	padding: 28px;
}

.mp-review-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.mp-review-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.mp-review-name {
	display: block;
	font-size: 15px;
	color: var(--mp-ink);
}

.mp-review-stars {
	color: #F5B942;
	font-size: 13px;
	letter-spacing: 1px;
}

.mp-review-date {
	margin-left: auto;
	font-size: 13px;
	color: var(--mp-text-light);
}

.mp-review-text {
	font-size: 14px;
}

/* =========================================================
   Service icons (simple inline mask shapes, swap freely)
   ========================================================= */

.mp-service-icon[data-icon="users"]   { --mp-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M2 21c0-4 3-6 7-6s7 2 7 6'/%3E%3Ccircle cx='17' cy='8' r='2.5'/%3E%3Cpath d='M15 21c.3-2.5 1.8-4 4-4.3'/%3E%3C/svg%3E"); }
.mp-service-icon[data-icon="child"]   { --mp-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M6 21v-5c0-3 2.5-5 6-5s6 2 6 5v5'/%3E%3Cpath d='M9 21v-4M15 21v-4'/%3E%3C/svg%3E"); }
.mp-service-icon[data-icon="bed"]     { --mp-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 18v-6a2 2 0 012-2h16a2 2 0 012 2v6'/%3E%3Cpath d='M2 18h20M4 18v3M20 18v3'/%3E%3Cpath d='M6 10V7a2 2 0 012-2h3v5'/%3E%3C/svg%3E"); }
.mp-service-icon[data-icon="cross"]   { --mp-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.mp-service-icon[data-icon="wave"]    { --mp-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 12c2-4 4 4 6 0s4-4 6 0 4 4 6 0'/%3E%3Cpath d='M2 17c2-4 4 4 6 0s4-4 6 0 4 4 6 0'/%3E%3C/svg%3E"); }
.mp-service-icon[data-icon="scan"]    { --mp-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 4v16M3 9h18'/%3E%3C/svg%3E"); }
.mp-service-icon[data-icon="pulse"]   { --mp-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 12h4l2-7 4 14 3-10 2 3h5'/%3E%3C/svg%3E"); }
.mp-service-icon[data-icon="home"]    { --mp-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E"); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {
	.mp-hero-grid,
	.mp-features-grid,
	.mp-services-inner,
	.mp-express-grid {
		grid-template-columns: 1fr;
	}

	.mp-hero-media {
		order: -1;
	}

	.mp-rating-card {
		left: 16px;
	}

	.mp-doctors-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.mp-section {
		padding: 44px 0;
	}

	.mp-services-inner {
		padding: 28px;
	}

	.mp-services-grid {
		grid-template-columns: 1fr;
	}

	.mp-doctors-row {
		grid-template-columns: 1fr;
	}

	.mp-checklist {
		columns: 1;
	}

	.mp-review-header {
		flex-wrap: wrap;
	}

	.mp-review-date {
		margin-left: 0;
	}
}
