/* ----------------------------------------------------------------------------------------- */
/* --------------------------------- HOME 2026 (NEW HOMEPAGE) ------------------------------ */
/* ----------------------------------------------------------------------------------------- */
/*
 * Body of template-home-2026.php, from the "Homepage Mirai Livros" design.
 * Loaded only on that template, after brand.css (uses its --mx- tokens,
 * fonts and .mx-btn buttons). Every rule is under .mxh so nothing leaks into
 * other pages, and none of it touches the old #home rules in app.css.
 *
 * The design had no mobile layout; the breakpoints at the end add one:
 *   1199px — 3 feature cards per row, 2 service cards
 *    991px — hero and services header stack, tighter section spacing
 *    767px — 2 feature cards per row
 *    575px — single column services, full-width buttons
 */

.mxh {
	background-color: var(--mx-surface);
	color: var(--mx-text);
}

/* Resets with :where() so they beat Bootstrap's element rules (loaded earlier)
   but never the .mxh-* component classes below */
:where(.mxh) h1,
:where(.mxh) h2,
:where(.mxh) h3,
:where(.mxh) p,
:where(.mxh) blockquote {
	margin: 0;
}

:where(.mxh) ul,
:where(.mxh) ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* "Ver serviços" and menu links like /#servicos land below the sticky header */
html:has(.mxh) {
	scroll-behavior: smooth;
}

.mxh-section[id] {
	scroll-margin-top: calc(var(--mx-header-height) + 16px);
}

/* ---------- Shared ---------- */
.mxh-title {
	margin-bottom: 14px;
	color: var(--mx-ink);
	font-family: var(--mx-font-display);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.2;
}

.mxh-title--light {
	color: var(--mx-white);
}

.mxh-subtitle {
	color: var(--mx-text-muted);
	font-size: 17px;
	line-height: 1.6;
}

.mxh-subtitle--light {
	color: var(--mx-on-dark-blue-soft);
}

.mxh-subtitle--blue {
	color: var(--mx-on-blue-soft);
}

.mxh-eyebrow {
	display: block;
	margin-bottom: 14px;
	color: var(--mx-blue);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mxh-card {
	background-color: var(--mx-white);
	border: 1px solid var(--mx-border);
	border-radius: var(--mx-radius-lg);
}

.mxh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.mxh-actions--center {
	justify-content: center;
}

.mxh-btn-lg {
	padding: 15px 28px;
	font-size: 16px;
}

.mxh-btn-cta {
	min-width: 186px;
	padding: 13px 24px;
}

/* ---------- Hero ---------- */
.mxh-hero {
	padding: 64px 0 72px;
	overflow: hidden;
	background-color: var(--mx-surface);
}

.mxh-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.mxh-pill {
	display: inline-block;
	margin-bottom: 24px;
	padding: 6px 14px;
	border-radius: var(--mx-radius-pill);
	background-color: var(--mx-blue-pill);
	color: var(--mx-blue-dark);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.mxh-hero__title {
	margin-bottom: 20px;
	color: var(--mx-ink);
	font-family: var(--mx-font-display);
	font-size: 46px;
	font-weight: 400;
	line-height: 1.14;
}

.mxh-hero__lead {
	max-width: 520px;
	margin-bottom: 36px;
	color: var(--mx-text-muted);
	font-size: 18px;
	line-height: 1.6;
}

.mxh-hero__media {
	display: flex;
	min-height: 400px;
	overflow: hidden;
	border-radius: var(--mx-radius-xl);
}

.mxh-hero__media img {
	display: block;
	flex: 1;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* ---------- Feature strip ---------- */
.mxh-features {
	padding: 56px 0;
	background-color: var(--mx-surface-alt);
}

.mxh-features__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.mxh-feature {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 20px;
	background-color: var(--mx-white);
	border: 1px solid var(--mx-border);
	border-radius: var(--mx-radius-lg);
}

.mxh-feature__title {
	color: var(--mx-blue);
	font-family: var(--mx-font-display);
	font-size: 17px;
	line-height: 1.3;
}

.mxh-feature__text {
	color: var(--mx-text-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- Services ---------- */
.mxh-services {
	padding: 64px 0;
	background-color: var(--mx-white);
}

.mxh-services__head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 56px;
	align-items: end;
	margin-bottom: 40px;
}

.mxh-services__head .mxh-subtitle {
	max-width: 460px;
}

.mxh-audience__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.mxh-audience__list li {
	color: var(--mx-ink);
	font-size: 14px;
	font-weight: 500;
}

.mxh-audience__list li + li::before {
	content: "·";
	margin-right: 12px;
	color: var(--mx-separator);
}

.mxh-services__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.mxh-service {
	padding: 26px 22px;
}

.mxh-service__icon {
	display: block;
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border-radius: 10px;
	object-fit: cover;
}

.mxh-service__title {
	margin-bottom: 10px;
	color: var(--mx-ink);
	font-family: var(--mx-font-display);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

.mxh-service__text {
	color: var(--mx-text-muted);
	font-size: 14.5px;
	line-height: 1.6;
}

.mxh-extras {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	margin-top: 24px;
	padding: 20px 32px;
	border-radius: var(--mx-radius-lg);
	background-color: var(--mx-surface-soft);
}

.mxh-extras li {
	color: var(--mx-ink);
	font-size: 14.5px;
	font-weight: 600;
}

.mxh-extras li + li::before {
	content: "•";
	margin-right: 16px;
	color: var(--mx-separator);
}

/* ---------- "Como pedir" carousel ---------- */
.mxh-steps {
	padding: 96px 0;
	background-color: var(--mx-dark);
}

.mxh-steps__head {
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
}

.mxh-carousel {
	max-width: 1140px;
	margin: 0 auto;
}

.mxh-carousel__track {
	display: flex;
	gap: 20px;
	padding-bottom: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.mxh-carousel__track::-webkit-scrollbar {
	display: none;
}

.mxh-carousel__track:focus-visible {
	outline: 2px solid var(--mx-blue-light);
	outline-offset: 4px;
	border-radius: var(--mx-radius-lg);
}

.mxh-step {
	display: flex;
	flex: 0 0 300px;
	flex-direction: column;
	padding: 24px 22px;
	background-color: var(--mx-dark-card);
	border: 1px solid var(--mx-dark-border);
	border-radius: var(--mx-radius-lg);
	scroll-snap-align: start;
}

.mxh-step__number {
	margin-bottom: 12px;
	color: var(--mx-blue-light);
	font-family: var(--mx-font-display);
	font-size: 28px;
	line-height: 1;
}

.mxh-step__title {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--mx-dark-divider);
	color: var(--mx-white);
	font-family: var(--mx-font-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.mxh-step__text {
	color: var(--mx-on-dark-blue);
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: break-word;
}

.mxh-carousel__controls {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

.mxh-carousel__btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--mx-dark-outline);
	border-radius: 50%;
	background-color: transparent;
	color: var(--mx-white);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--mx-transition), opacity var(--mx-transition);
}

.mxh-carousel__btn:hover:not([disabled]) {
	background-color: rgba(255, 255, 255, 0.08);
}

.mxh-carousel__btn:focus-visible {
	outline: 2px solid var(--mx-blue-light);
	outline-offset: 2px;
}

.mxh-carousel__btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

/* Everything fits (very wide screens / few steps): no need for arrows */
.mxh-carousel.is-static .mxh-carousel__controls {
	display: none;
}

/* ---------- Guarantee band (Mirai pattern) ---------- */
.mxh-guarantee {
	position: relative;
	padding: 56px 0;
	overflow: hidden;
	background-color: var(--mx-surface);
}

.mxh-guarantee::before,
.mxh-guarantee::after {
	content: "";
	position: absolute;
	inset: 0;
}

.mxh-guarantee::before {
	background-image: url("../img/home/pattern.webp");
	background-repeat: repeat;
	background-size: 480px auto;
	opacity: 0.9;
}

.mxh-guarantee::after {
	background: linear-gradient(90deg, rgba(245, 249, 252, 0.94), rgba(245, 249, 252, 0.7));
}

.mxh-guarantee__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.mxh-guarantee__text {
	max-width: 560px;
}

.mxh-guarantee__title {
	margin-bottom: 8px;
	color: var(--mx-ink);
	font-family: var(--mx-font-display);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.3;
}

.mxh-guarantee__text p {
	color: var(--mx-text-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.mxh-testimonials {
	padding: 88px 0;
	background-color: var(--mx-white);
}

.mxh-testimonials__head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

/* ---------- Final CTA ---------- */
.mxh-cta {
	padding: 80px 0;
	background-color: var(--mx-blue);
}

.mxh-cta__inner {
	max-width: calc(820px + 2 * var(--mx-gutter));
	text-align: center;
}

.mxh-cta .mxh-subtitle {
	margin-bottom: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.mxh-hero__grid {
		gap: 40px;
	}

	.mxh-hero__title {
		font-size: 40px;
	}

	.mxh-features__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mxh-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.mxh-hero {
		padding: 48px 0 56px;
	}

	.mxh-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mxh-hero__media {
		min-height: 300px;
		max-height: 420px;
	}

	.mxh-features {
		padding: 40px 0;
	}

	.mxh-services {
		padding: 56px 0;
	}

	.mxh-services__head {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		align-items: start;
	}

	.mxh-steps {
		padding: 72px 0;
	}

	.mxh-steps__head,
	.mxh-testimonials__head {
		margin-bottom: 40px;
	}

	.mxh-testimonials {
		padding: 64px 0;
	}

	.mxh-cta {
		padding: 64px 0;
	}

	.mxh-title {
		font-size: 32px;
	}
}

@media (max-width: 767px) {
	.mxh-hero__title {
		font-size: 34px;
	}

	.mxh-hero__lead {
		margin-bottom: 28px;
		font-size: 17px;
	}

	.mxh-features__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	/* odd last card spans the full row instead of leaving a hole */
	.mxh-feature:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.mxh-guarantee__title {
		font-size: 22px;
	}
}

@media (max-width: 575px) {
	.mxh-hero__title {
		font-size: 30px;
	}

	.mxh-hero__media {
		min-height: 220px;
		border-radius: 20px;
	}

	.mxh-title {
		font-size: 28px;
	}

	.mxh-subtitle {
		font-size: 16px;
	}

	.mxh-feature {
		padding: 18px 16px;
	}

	.mxh-services__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.mxh-extras {
		padding: 16px 20px;
	}

	/* Wrapped lists: drop the "·" / "•" separators so none starts a line */
	.mxh-audience__list li + li::before,
	.mxh-extras li + li::before {
		content: none;
	}

	.mxh-audience__list {
		gap: 6px 16px;
	}

	.mxh-extras {
		gap: 6px 20px;
	}

	.mxh-step {
		flex-basis: 82%;
	}

	.mxh-actions .mx-btn,
	.mxh-guarantee__inner .mx-btn {
		flex: 1 1 100%;
		white-space: normal;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html:has(.mxh) {
		scroll-behavior: auto;
	}

	.mxh-carousel__track {
		scroll-behavior: auto;
	}

	.mxh-carousel__btn {
		transition: none;
	}
}
