/**
 * Home Hero Block Styles
 * Auto-loaded when the home-hero block is present on the page.
 * Design: Figma → Martin Heat Hero (node 3-13)
 */

/* ── Variables ────────────────────────────────────────────────────────────── */
.home-hero {
	--hh-bg:          #F4EFE6;
	--hh-dark:        #191032;
	--hh-orange:      #F17E25;
	--hh-border:      rgba(25, 16, 50, 0.2);
	--hh-radius:      8px;
	--hh-icon-radius: 14px;
}

/* ── Section ──────────────────────────────────────────────────────────────── */
.home-hero {
	background: var(--hh-bg);
	padding-top: 140px;
	padding-bottom: 80px;
	overflow: visible;
	position: relative;
}

/* ── Main Grid ────────────────────────────────────────────────────────────── */
.home-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

/* ── Left column ──────────────────────────────────────────────────────────── */
.home-hero__left {
	display: flex;
	flex-direction: column;
}

/* ── Title ────────────────────────────────────────────────────────────────── */
.home-hero__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 66px;
	line-height: 1.05;
	letter-spacing: -2px;
	color: var(--hh-dark);
	margin: 0 0 24px;
}

.home-hero__title span {
	color: var(--hh-orange);
}

/* ── Body (WYSIWYG) ───────────────────────────────────────────────────────── */
.home-hero__body {
	font-size: 16px;
	line-height: 1.6;
	color: var(--hh-dark);
	margin-bottom: 32px;
	max-width: 560px;
}

.home-hero__body p {
	margin: 0;
}

/* ── CTA Button ───────────────────────────────────────────────────────────── */
.home-hero__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: fit-content;
	gap: 8px;
	background: var(--hh-dark);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 9999px;
	padding: 10px 10px 10px 20px;
	margin-bottom: 28px;
	transition: background 0.2s ease;
}

.home-hero__cta:hover {
	background: #2a1f55;
	color: #fff !important;
}

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

.home-hero__cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--hh-orange);
	border-radius: 50%;
	flex-shrink: 0;
	color: #fff;
}

/* ── Trust Badges (hardcoded) ─────────────────────────────────────────────── */
.home-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
}

.home-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--hh-bg);
	border: 1px solid var(--hh-border);
	border-radius: 9999px;
	padding: 8px 14px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.8px;
	color: var(--hh-dark);
	white-space: nowrap;
}

.home-hero__badge-icon {
	flex-shrink: 0;
}

/* ── Right Image Column ───────────────────────────────────────────────────── */
.home-hero__right {
	position: relative;
}

.home-hero__image-wrap {
	position: relative;
}

.home-hero__img {
	width: 100%;
	height: 480px;
	object-fit: cover;
	border-radius: var(--hh-radius);
	display: block;
}

/* Gradient overlay on image */
.home-hero__img-overlay {
	position: absolute;
	inset: 0;
	border-radius: var(--hh-radius);
	background: linear-gradient(139deg, rgba(25, 16, 50, 0.4) 0%, rgba(241, 126, 37, 0.25) 100%);
	pointer-events: none;
}

/* ── Corner Bracket Decorations ───────────────────────────────────────────── */
.home-hero__corner {
	position: absolute;
	width: 22px;
	height: 22px;
	border-color: var(--hh-bg);
	border-style: solid;
	border-width: 0;
	pointer-events: none;
	z-index: 2;
}

.home-hero__corner--tl {
	top: 14px;
	left: 14px;
	border-top-width: 2px;
	border-left-width: 2px;
}

.home-hero__corner--bl {
	bottom: 14px;
	left: 14px;
	border-bottom-width: 2px;
	border-left-width: 2px;
}

.home-hero__corner--br {
	bottom: 14px;
	right: 14px;
	border-bottom-width: 2px;
	border-right-width: 2px;
}

/* ── Est. Badge ───────────────────────────────────────────────────────────── */
.home-hero__est-badge {
	position: absolute;
	top: -28px;
	left: -28px;
	width: 100px;
	height: 100px;
	background: var(--hh-orange);
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform: rotate(-14deg);
	z-index: 3;
	box-shadow: 0 6px 20px rgba(241, 126, 37, 0.4);
}

.home-hero__est-label {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 9px;
	letter-spacing: 2.5px;
	color: var(--hh-dark);
	line-height: 1;
	margin-bottom: 2px;
}

.home-hero__est-year {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	color: var(--hh-dark);
}

/* ── Google Reviews Badge ─────────────────────────────────────────────────── */
.home-hero__reviews-badge {
	position: absolute;
	bottom: 24px;
	left: -24px;
	width: 220px;
	height: auto;
	z-index: 4;
	display: block;
	filter: drop-shadow(0 8px 24px rgba(25, 16, 50, 0.25));
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.home-hero__divider {
	width: 100%;
	height: 2px;
	background: var(--hh-orange);
	flex-shrink: 0;
	margin-bottom: 0;
}

/* ── Icons Bar ────────────────────────────────────────────────────────────── */
.home-hero__icons-bar {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	padding: 32px 0 0;
	position: relative;
}

.home-hero__icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
	padding: 0 16px;
	position: relative;
}

.home-hero__icon-item:first-child {
	padding-left: 0;
}

.home-hero__icon-item + .home-hero__icon-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--hh-border);
}

/* Icon image container: hugs the icon (Figma px13 py9), overlaps the top of the bar */
.home-hero__icon-img-wrap {
	background: var(--hh-bg);
	border: 1px solid var(--hh-border);
	border-radius: var(--hh-icon-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	margin-bottom: 12px;
	padding: 9px 13px;
	height: 64px;
	width: 64px;
}

.home-hero__icon-img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}

.home-hero__icon-stat {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	color: var(--hh-dark);
	letter-spacing: 0.4px;
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 6px;
}

.home-hero__icon-star {
	font-size: 14px;
	color: var(--hh-orange);
	font-weight: 400;
}

.home-hero__icon-content {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 13px;
	color: var(--hh-dark);
	letter-spacing: -0.1px;
	line-height: 1.5;
	text-align: center;
	/* Reserve two lines so columns stay aligned when a caption wraps */
	min-height: 3em;
}

.home-hero__icon-content p {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	color: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: inherit;
}

.home-hero__icon-content > :first-child {
	margin-top: 0;
}

.home-hero__icon-content > :last-child {
	margin-bottom: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
	.home-hero__title {
		font-size: 52px;
		letter-spacing: -1.5px;
	}
}

@media (max-width: 991px) {
	.home-hero {
		padding-top: 110px;
		padding-bottom: 60px;
	}

	.home-hero__grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.home-hero__title {
		font-size: 44px;
	}

	.home-hero__body {
		max-width: 100%;
	}

	.home-hero__img {
		height: 380px;
	}

	.home-hero__est-badge {
		width: 80px;
		height: 80px;
		top: -20px;
		left: -20px;
	}

	.home-hero__est-year {
		font-size: 20px;
	}

	.home-hero__reviews-badge {
		width: 180px;
		bottom: 16px;
		left: -8px;
	}

	.home-hero__icons-bar {
		flex-wrap: wrap;
		padding-top: 40px;
		gap: 24px 0;
	}

	.home-hero__icon-item {
		flex: 0 0 50%;
		padding: 0 12px;
	}

	.home-hero__icon-item:nth-child(2n+1) {
		padding-left: 0;
	}

	.home-hero__icon-item:nth-child(2n+1)::before {
		display: none;
	}

	.home-hero__icon-img-wrap {
		margin-top: 0;
		margin-bottom: 10px;
	}
}

@media (max-width: 575px) {
	.home-hero {
		padding-top: 100px;
		padding-bottom: 48px;
	}

	.home-hero__title {
		font-size: 36px;
		letter-spacing: -1px;
	}

	.home-hero__badges {
		gap: 8px;
	}

	.home-hero__badge {
		font-size: 13px;
		padding: 7px 12px;
	}

	.home-hero__img {
		height: 280px;
	}

	.home-hero__reviews-badge {
		width: 160px;
		bottom: 12px;
		left: 0;
	}

	.home-hero__icon-item {
		flex: 0 0 50%;
	}

	.home-hero__icon-stat {
		font-size: 24px;
	}
}

/* ── Hero action buttons row ───────────────────────────────────────────────── */
.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
}

.home-hero__actions .home-hero__cta {
	margin-bottom: 0;
	padding-left: 16px;
}

/* Tightened so the phone, booking and financing buttons share one line */
.home-hero__actions .home-hero__cta-text {
	font-size: 15px;
	letter-spacing: 0.3px;
}

.home-hero__actions .home-hero__cta-icon {
	width: 32px;
	height: 32px;
}

/* Book Online (opens the Housecall Pro booking modal) */
.home-hero__cta--book {
	background: var(--hh-orange);
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.home-hero__cta--book:hover {
	background: #d96b16;
}

.home-hero__cta--book .home-hero__cta-icon {
	background: var(--hh-dark);
}

/* Apply For Financing */
.home-hero__cta--financing {
	background: transparent;
	color: var(--hh-dark) !important;
	border: 2px solid var(--hh-border);
	padding: 8px 6px 8px 15px;
}

.home-hero__cta--financing:hover {
	background: var(--hh-dark);
	color: #fff !important;
	border-color: var(--hh-dark);
}

@media (max-width: 575px) {
	.home-hero__actions {
		width: 100%;
	}

	.home-hero__actions .home-hero__cta {
		width: 100%;
		justify-content: space-between;
	}
}
