/* Custom Mattress Landing Template Styles */

.custom-mattress .container {
	max-width: 1200px;
}

/* Hero */
.custom-mattress-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 38vh;
	display: flex;
	align-items: center;
	color: #fff;
}
.custom-mattress-hero .hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.custom-mattress-hero .hero-content {
	position: relative;
	z-index: 1;
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}
.custom-mattress-hero .hero-title {
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.custom-mattress-hero .hero-subtitle {
	margin: 14px 0 26px;
	font-size: clamp(1rem, 2.1vw, 1.25rem);
	color: #e6eef6;
}
.custom-mattress-hero .hero-ctas {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}
.custom-mattress-hero .cta-button {
	border: 2px solid #fff;
	background: #fff;
	color: #1a1a1a;
}
.custom-mattress-hero .cta-button.secondary {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

/* Feature bar */
.custom-mattress-features {
	background: #fff;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}
.custom-mattress-features .feature-list {
	display: flex;
	gap: 22px;
	justify-content: center;
	align-items: center;
	padding: 18px 0;
	list-style: none;
	color: #1a334d;
	font-weight: 600;
}
.custom-mattress-features .feature-list li {
	position: relative;
	padding: 0 14px;
}
.custom-mattress-features .feature-list li + li:before {
	content: "\2022";
	position: absolute;
	left: -7px;
	color: #99a9ba;
	font-weight: 700;
}

/* Options grid */
.custom-mattress-options {
	padding: 40px 0 80px;
	background: #fff;
}
.options-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
.option-card {
	border: 1px solid #e6eaf0;
	border-radius: 12px;
	padding: 22px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(26, 51, 77, 0.06);
	display: flex;
	flex-direction: column;
}
.option-card h3 {
	color: var(--primary-color);
	font-size: 1.25rem;
	line-height: 1.25;
	margin-bottom: 10px;
	letter-spacing: -0.01em;
}
.option-card p {
	color: #4b5b6a;
	margin-bottom: 10px;
}
.option-card .lead-time {
	color: #7b8a99;
	font-size: 0.95rem;
	margin-top: auto;
}
.option-card .cta-link {
	margin-top: 6px;
	color: var(--primary-color);
	font-weight: 700;
	text-decoration: none;
}
.option-card .cta-link:hover {
	color: #233f5c;
	text-decoration: underline;
}

/* Quote Modal */
.quote-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 10000;
}
.quote-modal.active {
	display: block;
}
.quote-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
}
.quote-modal__dialog {
	position: relative;
	z-index: 1;
	max-width: 860px;
	margin: 6vh auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}
.quote-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #1a334d;
}
.quote-modal__title {
	margin: 18px 20px 0;
	color: var(--primary-color);
	font-weight: 700;
	font-size: 1.25rem;
}
.quote-modal__body {
	padding: 12px 20px 20px;
}
.quote-form-embed {
	width: 100%;
}
.quote-form-embed iframe {
	width: 100%;
	height: 78vh;
	border: 0;
}

@media (max-width: 1024px) {
	.options-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.custom-mattress-hero {
		min-height: 32vh;
	}
}
@media (max-width: 640px) {
	.options-grid {
		grid-template-columns: 1fr;
	}
	.custom-mattress-hero {
		min-height: 28vh;
	}
	.custom-mattress-features .feature-list {
		flex-direction: column;
		gap: 8px;
	}
	.custom-mattress-features .feature-list li {
		padding: 0;
	}
	.custom-mattress-features .feature-list li + li:before {
		display: none;
	}
}
