/**
 * MaisonParfum — static homepage
 *
 * Scoped to body.mp-home-page. Reuses design tokens and button language
 * from the existing child theme. Does not restyle header or footer.
 */

body.mp-home-page #left-sidebar,
body.mp-home-page #right-sidebar,
body.mp-home-page .sidebar,
body.mp-home-page .widget-area {
	display: none !important;
}

body.mp-home-page .site-content {
	display: block;
}

body.mp-home-page .content-area,
body.mp-home-page #primary {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.mp-home-page .inside-article {
	max-width: 75rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1.1rem, 4vw, 2rem);
	padding-right: clamp(1.1rem, 4vw, 2rem);
	padding-top: clamp(0.5rem, 2vw, 1.25rem);
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

body.mp-home-page .entry-header,
body.mp-home-page .featured-image,
body.mp-home-page .page-header-image,
body.mp-home-page .page-header-image-single,
body.mp-home-page .post-image {
	display: none !important;
}

body.mp-home-page .entry-content {
	font-family: var(--mp-sans, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif);
	color: var(--mp-ink, #161616);
	line-height: 1.65;
	max-width: none;
}

body.mp-home-page .entry-content > .mp-home,
body.mp-home-page .entry-content > .wp-block-html {
	max-width: none;
}

.mp-home {
	--mp-gap: clamp(2.25rem, 5vw, 3.75rem);
	width: 100%;
	max-width: 75rem;
	margin: 0 auto;
	overflow-x: hidden;
}

.mp-home * {
	box-sizing: border-box;
}

.mp-home img {
	max-width: 100%;
	height: auto;
}

.mp-home__section {
	margin: 0 0 var(--mp-gap);
	padding: 0 0 var(--mp-gap);
	border-bottom: 1px solid var(--mp-border, #e2e0dc);
}

.mp-home__section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.mp-home__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mp-muted, #5a5a5a);
}

.mp-home__title {
	margin: 0 0 0.75rem;
	font-family: var(--mp-font, Georgia, serif);
	font-size: clamp(1.45rem, 2.5vw, 1.95rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--mp-ink, #161616);
}

.mp-home__lead {
	margin: 0 0 1.25rem;
	max-width: 38rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--mp-muted, #5a5a5a);
}

.mp-home .mp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 3rem;
	padding: 0.7rem 1.4rem;
	border: 1px solid transparent;
	border-radius: var(--mp-radius, 2px);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mp-home .mp-btn:focus-visible {
	outline: 2px solid var(--mp-accent, #24352b);
	outline-offset: 2px;
}

.mp-home .mp-btn--primary {
	background: var(--mp-accent, #24352b);
	color: #fff;
}

.mp-home .mp-btn--primary:hover,
.mp-home .mp-btn--primary:focus {
	background: var(--mp-accent-hover, #1a2620);
	color: #fff;
}

.mp-home .mp-btn--secondary {
	background: transparent;
	border-color: var(--mp-ink, #161616);
	color: var(--mp-ink, #161616);
}

.mp-home .mp-btn--secondary:hover,
.mp-home .mp-btn--secondary:focus {
	background: var(--mp-ink, #161616);
	color: #fff;
}

.mp-home-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	align-items: center;
}

@media (min-width: 860px) {
	.mp-home-hero {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: 3rem;
	}
}

.mp-home-hero h1 {
	margin: 0 0 0.85rem;
	max-width: min(100%, 18ch);
	font-family: var(--mp-font, Georgia, serif);
	font-size: clamp(2rem, 5vw, 3.15rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.12;
	color: var(--mp-ink, #161616);
}

.mp-home-hero__text {
	margin: 0 0 1.4rem;
	max-width: 32rem;
	font-size: 1.08rem;
	line-height: 1.6;
	color: var(--mp-muted, #5a5a5a);
}

.mp-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.mp-home-hero__actions .mp-btn {
	flex: 1 1 12rem;
}

@media (min-width: 640px) {
	.mp-home-hero__actions .mp-btn {
		flex: 0 1 auto;
	}
}

.mp-home-hero__media {
	margin: 0;
	background: var(--mp-bg, #f7f7f5);
	border: 1px solid var(--mp-border, #e2e0dc);
}

.mp-home-hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.mp-home-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
}

@media (min-width: 640px) {
	.mp-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.mp-home-grid--6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mp-home-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mp-home-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100%;
	background: var(--mp-surface, #fff);
	border: 1px solid var(--mp-border, #e2e0dc);
}

.mp-home-card a {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.mp-home-card a:hover .mp-home-card__title,
.mp-home-card a:focus .mp-home-card__title {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.mp-home-card__media {
	margin: 0;
	background: var(--mp-bg, #f7f7f5);
}

.mp-home-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.mp-home-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.1rem 1.15rem 1.2rem;
}

.mp-home-card__title {
	margin: 0;
	font-family: var(--mp-font, Georgia, serif);
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.3;
}

.mp-home-card__meta {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--mp-muted, #5a5a5a);
}

.mp-home-reasons,
.mp-home-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.mp-home-reasons {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mp-home-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mp-home-reasons li,
.mp-home-steps li {
	min-width: 0;
	padding: 1.2rem 1.15rem;
	background: var(--mp-bg, #f7f7f5);
	border: 1px solid var(--mp-border, #e2e0dc);
}

.mp-home-reasons h3,
.mp-home-steps h3 {
	margin: 0 0 0.45rem;
	font-family: var(--mp-font, Georgia, serif);
	font-size: 1.15rem;
	font-weight: 500;
}

.mp-home-reasons p,
.mp-home-steps p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--mp-muted, #5a5a5a);
}

.mp-home-steps__index {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mp-muted, #5a5a5a);
}

.mp-home-cta {
	padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.15rem, 3vw, 2rem);
	background: var(--mp-bg, #f7f7f5);
	border: 1px solid var(--mp-border, #e2e0dc);
}

.mp-home-cta .mp-home__title {
	max-width: 20ch;
}

.mp-home-cta .mp-home__lead {
	margin-bottom: 1.35rem;
}
