/* Front page sections. */

.mtb-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: 56px 0;
	background-color: #163044;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
}

.mtb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(16, 32, 48, 0.82) 0%, rgba(16, 32, 48, 0.5) 48%, rgba(16, 32, 48, 0.18) 100%);
}

.mtb-hero .wf-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--the7-content-width, 1300px);
	box-sizing: border-box;
	padding-left: var(--the7-header-left-padding, 50px);
	padding-right: var(--the7-header-right-padding, 50px);
}

.mtb-hero-inner {
	max-width: 680px;
	margin: 0;
	text-align: left;
}

.mtb-hero h1 {
	margin: 0 0 16px;
	font-family: var(--mtb-font, "Montserrat", Helvetica, Arial, sans-serif) !important;
	font-size: clamp(26px, 3.2vw, 42px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff !important;
}

.mtb-hero p {
	margin: 0 0 28px;
	max-width: 540px;
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
}

.mtb-hero-btn,
.mtb-hero .mtb-hero-btn {
	background: #e40045 !important;
	border-color: #e40045 !important;
	color: #fff !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.mtb-hero-btn:hover,
.mtb-hero .mtb-hero-btn:hover {
	background: #235070 !important;
	border-color: #235070 !important;
	color: #fff !important;
}

.mtb-home {
	padding: 8px 0 24px;
}

.mtb-home-section {
	padding: 48px 0;
}

.mtb-home-head {
	text-align: center;
	margin: 0 auto 32px;
	max-width: 640px;
}

.mtb-home-head h2 {
	margin: 0 0 8px !important;
	font-family: var(--mtb-font, "Montserrat", Helvetica, Arial, sans-serif) !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #235070;
}

.mtb-home-head p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #6b6f74;
}

.mtb-home-brands {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.mtb-home-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 220px;
	padding: 28px 24px 22px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(35, 80, 112, 0.1);
	text-decoration: none;
	color: #235070;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mtb-home-brand:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 28px rgba(35, 80, 112, 0.16);
	color: #235070;
}

.mtb-home-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 120px;
}

.mtb-home-brand-logo img {
	max-width: 82%;
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.mtb-home-brand-name {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	color: #235070;
}

.mtb-home-brand-count {
	font-size: 13px;
	color: #6b6f74;
}

.mtb-home-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.mtb-home-product {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(35, 80, 112, 0.1);
	text-decoration: none;
	color: inherit;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mtb-home-product:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 28px rgba(35, 80, 112, 0.16);
	color: inherit;
}

.mtb-home-product-img {
	display: block;
	aspect-ratio: 1;
	background: #f6f7f8;
	overflow: hidden;
}

.mtb-home-product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mtb-home-product-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px 16px;
}

.mtb-home-product-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.6em;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #303c49;
}

.mtb-home-product-price {
	font-size: 15px;
	font-weight: 700;
	color: #235070;
}

.mtb-home-more {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 28px 0 0;
	text-align: center;
}

.mtb-home-more .dt-btn {
	margin: 0 !important;
}

.mtb-home-why {
	position: relative;
	background: #f3f3f5;
	z-index: 0;
}

.mtb-home-why::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	background: #f3f3f5;
	z-index: -1;
	pointer-events: none;
}

.mtb-home-usps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.mtb-home-usp {
	background: #fff;
	border-radius: 12px;
	padding: 24px 22px 22px;
	box-shadow: 0 4px 16px rgba(35, 80, 112, 0.08);
}

.mtb-home-usp-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: rgba(35, 80, 112, 0.1);
	color: #235070;
}

.mtb-home-usp-icon svg {
	width: 22px;
	height: 22px;
}

.mtb-home-usp h3 {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #235070;
}

.mtb-home-usp p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #6b6f74;
}

.mtb-home-about-text {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	font-size: 16px;
	line-height: 1.75;
	color: #303c49;
}

@media (max-width: 1100px) {
	.mtb-home-products,
	.mtb-home-usps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.mtb-hero {
		min-height: 320px;
		padding: 40px 0;
	}

	.mtb-hero .wf-wrap {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.mtb-home .wf-wrap {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.mtb-hero h1 {
		font-size: 24px !important;
		line-height: 1.15 !important;
	}

	.mtb-hero p {
		line-height: 1.5;
	}

	.mtb-home-section {
		padding: 36px 0;
	}

	.mtb-home-head h2 {
		font-size: 20px !important;
		line-height: 1.2 !important;
	}

	.mtb-home-head p,
	.mtb-home-about-text,
	.mtb-home-usp p {
		line-height: 1.5 !important;
	}

	.mtb-home-brands,
	.mtb-home-usps {
		grid-template-columns: 1fr;
	}

	.mtb-home-brand {
		min-height: 180px;
	}

	.mtb-home-products {
		display: flex !important;
		grid-template-columns: none;
		gap: 14px;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0;
		box-sizing: border-box;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 2px;
		-webkit-overflow-scrolling: touch;
		padding: 4px 2px 16px;
		margin: 0;
	}

	.mtb-home-product {
		flex: 0 0 72vw;
		width: 72vw;
		max-width: 280px;
		min-width: 220px;
		scroll-snap-align: start;
		box-sizing: border-box;
	}

	.mtb-home-product:hover {
		transform: none;
	}

	.mtb-home-more {
		flex-direction: column;
		align-items: stretch;
		max-width: 260px;
		margin-left: auto;
		margin-right: auto;
		gap: 12px;
	}

	.mtb-home-more .dt-btn {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}
}
