/**
 * Services Block Styles
 * Auto-loaded when the services block is present on the page.
 * Design: Figma → Martin Heat Services (node 4-409)
 */

/* ── Variables ────────────────────────────────────────────────────────────── */
.services {
	--sv-cream:    #F4EFE6;
	--sv-panel:    #FBF8F2;
	--sv-dark:     #191032;
	--sv-orange:   #F17E25;
	--sv-muted:    #BFB29A;
	--sv-grey:     #DADADA;
	--sv-blue:     #1527A0;
	--sv-ink:      #1F1A14;
}

/* ── Section ──────────────────────────────────────────────────────────────── */
.services {
	background: var(--sv-cream);
	padding-top: 96px;
	padding-bottom: 96px;
	position: relative;
}

/* ── Heading ──────────────────────────────────────────────────────────────── */
.services__head {
	max-width: 870px;
	margin: 0 auto 64px;
	text-align: center;
}

.services__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 56px;
	line-height: 1.05;
	letter-spacing: -2.5px;
	color: var(--sv-dark);
	margin: 0 0 16px;
}

.services__title span {
	color: var(--sv-orange);
}

.services__intro {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sv-dark);
}

.services__intro p {
	margin: 0;
}

/* ── Explorer card ────────────────────────────────────────────────────────── */
.services__card {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	min-height: 600px;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 18px 40px -6px rgba(0, 0, 0, 0.1);
}

/* Faint decorative line peeking out behind the card */
.services__rule {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 7px;
	margin-top: 16px;
	background: var(--sv-blue);
	opacity: 0.1;
	z-index: 0;
}

/* ── Left rail ────────────────────────────────────────────────────────────── */
.services__rail {
	width: 430px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	background: var(--sv-dark);
	padding: 28px 0;
}

.services__rail-label {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 36px;
	letter-spacing: 0.5px;
	color: var(--sv-cream);
	padding: 0 32px 24px;
}

.services__rail-list {
	display: flex;
	flex-direction: column;
}

/* Tab row */
.services__tab {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
	padding: 22px 32px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: transparent;
	cursor: pointer;
	text-align: left;
	font-family: 'Montserrat', sans-serif;
	transition: background 0.2s ease;
}

.services__tab-num {
	font-weight: 800;
	font-size: 22px;
	line-height: 1;
	color: rgba(191, 178, 154, 0.55);
	flex-shrink: 0;
}

.services__tab-sep {
	width: 1px;
	height: 28px;
	background: rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

.services__tab-name {
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.5px;
	line-height: 1.2;
	color: var(--sv-muted);
	margin-right: auto;
}

.services__tab-arrow {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: rgba(191, 178, 154, 0.35);
	flex-shrink: 0;
}

/* Hover (inactive rows) */
.services__tab:not(.is-active):hover {
	background: rgba(255, 255, 255, 0.04);
}

/* Active row */
.services__tab.is-active {
	background: var(--sv-orange);
}

.services__tab.is-active .services__tab-num,
.services__tab.is-active .services__tab-arrow {
	color: #fff;
}

.services__tab.is-active .services__tab-name {
	color: #fff;
	font-size: 20px;
}

.services__tab.is-active .services__tab-sep {
	background: rgba(255, 255, 255, 0.35);
}

/* Rail foot (hardcoded) */
.services__rail-foot {
	margin-top: auto;
	padding: 24px 32px 0;
}

.services__rail-foot-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	margin: 0 0 6px;
}

.services__rail-foot-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	color: var(--sv-grey);
	margin: 0;
}

.services__rail-foot-phone {
	color: var(--sv-orange) !important;
	text-decoration: underline;
	white-space: nowrap;
}

/* ── Right panel ──────────────────────────────────────────────────────────── */
.services__panel {
	flex: 1;
	min-width: 0;
	display: flex;
	background: var(--sv-panel);
}

.services__pane {
	display: none;
	flex-direction: column;
	width: 100%;
}

.services__pane.is-active {
	display: flex;
}

/* Hero image */
.services__hero {
	position: relative;
	height: 320px;
	flex-shrink: 0;
	overflow: hidden;
}

.services__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.services__hero-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 65%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(31, 26, 20, 0.85) 100%);
}

.services__hero-title {
	position: absolute;
	left: 36px;
	bottom: 24px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 36px;
	letter-spacing: -1px;
	color: var(--sv-cream);
}

/* Body */
.services__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	padding: 32px 36px;
}

.services__body-top {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.services__desc {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sv-dark);
}

.services__desc p {
	margin: 0;
}

.services__desc p + p {
	margin-top: 12px;
}

/* Feature pills (hardcoded) */
.services__features {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.services__feature {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 10px 14px 10px 12px;
	background: rgba(239, 227, 204, 0.55);
	border: 1px solid rgba(31, 26, 20, 0.1);
	border-radius: 999px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.4px;
	color: var(--sv-ink);
	white-space: nowrap;
}

.services__feature-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--sv-orange);
	color: #fff;
	font-size: 10px;
	line-height: 1;
	flex-shrink: 0;
}

/* CTAs */
.services__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.services__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 9999px;
	padding: 8px 8px 8px 16px;
	text-decoration: none !important;
	transition: filter 0.2s ease;
}

.services__cta:hover {
	filter: brightness(0.94);
}

.services__cta-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.5px;
	line-height: 1;
	white-space: nowrap;
}

.services__cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Dark button (View Service) */
.services__cta--dark {
	background: var(--sv-dark);
}

.services__cta--dark .services__cta-text {
	color: #fff !important;
}

.services__cta--dark .services__cta-icon {
	background: var(--sv-orange);
	color: #fff;
}

/* Orange button (phone) */
.services__cta--orange {
	background: var(--sv-orange);
}

.services__cta--orange .services__cta-text {
	color: var(--sv-dark) !important;
}

.services__cta--orange .services__cta-icon {
	background: var(--sv-dark);
	color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
	.services__title {
		font-size: 46px;
		letter-spacing: -2px;
	}

	.services__rail {
		width: 360px;
	}
}

@media (max-width: 991px) {
	.services {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.services__head {
		margin-bottom: 48px;
	}

	.services__title {
		font-size: 40px;
	}

	.services__card {
		flex-direction: column;
		min-height: 0;
	}

	.services__rule {
		display: none;
	}

	.services__rail {
		width: 100%;
		padding-bottom: 8px;
	}

	.services__rail-foot {
		margin-top: 16px;
	}
}

@media (max-width: 575px) {
	.services__title {
		font-size: 32px;
		letter-spacing: -1.2px;
	}

	.services__rail-label {
		font-size: 28px;
	}

	.services__tab {
		padding: 18px 24px;
		gap: 16px;
	}

	.services__hero {
		height: 240px;
	}

	.services__hero-title {
		font-size: 28px;
		left: 24px;
	}

	.services__body {
		padding: 24px;
	}

	.services__ctas {
		flex-direction: column;
		align-items: stretch;
	}

	.services__cta {
		justify-content: space-between;
	}
}
