/* Homepage hero band: headline, proof chips, phone/hours, and estimate form. */

.jmu-hero-full {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	background: url("../img/hero-home.webp") center 60% / cover no-repeat;
	color: var(--text-inverse);
	position: relative;
}

.jmu-hero-overlay {
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--text-main) 68%, transparent), color-mix(in srgb, var(--text-main) 44%, transparent) 34%, color-mix(in srgb, var(--text-main) 12%, transparent) 62%, color-mix(in srgb, var(--text-main) 4%, transparent)),
		linear-gradient(180deg, color-mix(in srgb, var(--text-main) 5%, transparent), color-mix(in srgb, var(--text-main) 8%, transparent));
	box-sizing: border-box;
	min-height: clamp(560px, calc(86vh - 140px), 760px);
	display: flex;
	align-items: center;
	padding: 44px 40px 54px;
}

.jmu-hero-inner {
	box-sizing: border-box;
	max-width: 1240px;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
	gap: clamp(44px, 6vw, 84px);
	align-items: center;
}

.jmu-hero-copy {
	min-width: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.jmu-hero-copy h1 {
	max-width: 720px;
	margin: 0 0 var(--space-md);
	padding: 0;
	color: var(--text-inverse);
	font-family: var(--font-serif);
	font-size: 3.875rem;
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: 0;
	text-shadow: 0 3px 8px color-mix(in srgb, var(--black) 40%, transparent);
}

.jmu-hero-headline-main,
.jmu-hero-proof-line {
	display: block;
}

.jmu-hero-proof-line {
	margin-top: var(--space-xs);
	font-size: var(--text-4xl);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
}

.jmu-hero-brand-accent {
	display: inline-block;
	font-style: italic;
	font-weight: 800;
	transform: skewX(-4deg);
	transform-origin: left bottom;
}

.jmu-hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	max-width: 680px;
	margin: 0 0 var(--space-md);
}

.jmu-hero-points p {
	margin: 0;
	padding: var(--space-2xs) var(--space-sm);
	border: var(--border-width) solid color-mix(in srgb, var(--white) 36%, transparent);
	border-radius: var(--radius-full);
	background: color-mix(in srgb, var(--white) 14%, transparent);
	backdrop-filter: blur(8px);
	color: var(--text-inverse);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 2px color-mix(in srgb, var(--black) 28%, transparent);
}

.jmu-hero-call {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3xs);
	margin: 0 0 var(--space-xs);
}

.jmu-hero-call .jmu-call-label {
	color: color-mix(in srgb, var(--white) 92%, transparent);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-shadow: 0 1px 2px color-mix(in srgb, var(--black) 35%, transparent);
}

.jmu-hero-phone {
	color: var(--text-inverse);
	font-family: var(--font-sans);
	font-size: var(--text-4xl);
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
	text-shadow: 0 1px 2px color-mix(in srgb, var(--black) 35%, transparent);
}

.jmu-hero-phone:hover {
	text-decoration: underline;
}

.jmu-hero-hours {
	min-height: 22px;
	margin: 0;
	color: var(--text-inverse);
	font-size: var(--text-md);
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0 1px 2px color-mix(in srgb, var(--black) 35%, transparent);
}

.jmu-hero-hours__copy {
	margin-bottom: 7px;
}

.jmu-hero-hours-status {
	color: var(--text-inverse);
}

.jmu-hero-hours.is-open .jmu-hero-hours-status {
	color: var(--color-success);
}

.jmu-hero-hours.is-closed .jmu-hero-hours-status {
	color: color-mix(in srgb, var(--color-primary) 45%, var(--white));
}

.jmu-hero-hours__track {
	position: relative;
	width: min(100%, 300px);
	height: 8px;
	overflow: visible;
	background: color-mix(in srgb, var(--white) 34%, transparent);
	border: 1px solid color-mix(in srgb, var(--white) 48%, transparent);
	border-radius: var(--radius-full);
	box-shadow: var(--shadow-sm);
}

.jmu-hero-hours__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--gradient-stars);
	border-radius: inherit;
	transition: width var(--duration-normal) var(--ease-default);
}

.jmu-hero-hours__roller {
	position: absolute;
	top: 50%;
	left: 0;
	width: 32px;
	height: 32px;
	transform: translate(-25%, -50%) rotate(-90deg);
	background: url("../img/paint-roller.svg") center / contain no-repeat;
	filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--black) 28%, transparent));
	transition: left var(--duration-normal) var(--ease-default);
	z-index: 1;
}

.jmu-hero-hours__roller::before {
	content: none;
}

.jmu-hero-hours__roller::after {
	content: none;
}

.jmu-hero-hours.is-closed .jmu-hero-hours__track {
	background: color-mix(in srgb, var(--white) 20%, transparent);
	border-color: color-mix(in srgb, var(--white) 32%, transparent);
}

.jmu-hero-hours.is-closed .jmu-hero-hours__fill {
	background: transparent;
}

.jmu-hero-hours.is-closed .jmu-hero-hours__roller {
	opacity: 0.78;
	filter: grayscale(0.3);
}

.jmu-hero-form-panel {
	box-sizing: border-box;
	align-self: center;
	justify-self: stretch;
	min-height: 0;
	padding: 28px;
	display: flex;
	flex-direction: column;
	background: color-mix(in srgb, var(--white) 98%, transparent);
	color: var(--text-strong);
	border: var(--border-width) solid color-mix(in srgb, var(--white) 72%, transparent);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}

.jmu-hero-form-panel h2 {
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	color: var(--text-strong);
	font-family: var(--font-serif);
	font-size: 2.125rem;
	font-weight: 600;
	line-height: 1.15;
	text-align: left;
}

.jmu-hero-form-note {
	margin: 0 0 18px;
	color: var(--text-subtle);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: 600;
	line-height: 1.35;
}

.jmu-form-compact {
	width: 100%;
	max-width: none;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	box-sizing: border-box;
}

.jmu-form-compact .jmu-hero-field {
	box-sizing: border-box;
	margin: 0 0 14px;
	padding: 0;
	text-align: left;
}

.jmu-form-compact .jmu-hero-field:first-of-type {
	margin-top: 0;
}

.jmu-form-compact label {
	display: block;
	margin: 0 0 5px;
	color: var(--text-strong);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-brand-wide);
	text-shadow: none;
}

.jmu-form-compact .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.jmu-form-compact label span {
	color: var(--color-primary);
	margin-left: 0.15rem;
}

.jmu-form-compact input:not([type="radio"]),
.jmu-form-compact select {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid color-mix(in srgb, var(--text-strong) 18%, transparent);
	border-radius: var(--radius-md);
	background: var(--text-inverse);
	color: var(--text-main);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	line-height: 46px;
}

.jmu-form-compact input::placeholder {
	color: var(--text-subtle);
	font-size: var(--text-base);
	font-weight: 400;
	opacity: 1;
}

.jmu-form-compact select:invalid {
	color: var(--text-subtle);
}

.jmu-form-compact input:not([type="radio"]):focus,
.jmu-form-compact select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.jmu-hero-service-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin: 0;
	padding: 0;
	border: 0;
}

.jmu-hero-service-options legend {
	display: block;
	width: 100%;
	margin: 0 0 5px;
	padding: 0;
	color: var(--text-strong);
	font-size: var(--text-sm);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-brand-wide);
}

.jmu-hero-service-options legend span {
	color: var(--color-primary);
	margin-left: 0.15rem;
}

.jmu-form-compact .jmu-hero-service-option {
	position: relative;
	flex: 1 1 calc(50% - var(--space-2xs));
	display: block;
	margin: 0;
	cursor: pointer;
}

.jmu-hero-service-option input[type="radio"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.jmu-form-compact .jmu-hero-service-option__label {
	box-sizing: border-box;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 0;
	padding: var(--space-2xs) var(--space-sm);
	border: var(--border-width) solid color-mix(in srgb, var(--text-strong) 18%, transparent);
	border-radius: var(--radius-full);
	background: var(--white);
	color: var(--text-main);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	transition: background var(--duration-normal) var(--ease-default), border-color var(--duration-normal) var(--ease-default), color var(--duration-normal) var(--ease-default), box-shadow var(--duration-normal) var(--ease-default);
}

.jmu-form-compact .jmu-hero-service-option input[type="radio"]:checked + .jmu-hero-service-option__label {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--text-inverse);
}

.jmu-form-compact .jmu-hero-service-option input[type="radio"]:focus-visible + .jmu-hero-service-option__label {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.jmu-form-compact .jmu-turnstile-field {
	box-sizing: border-box;
	width: 100%;
	margin: 4px 0 12px;
	padding: 0;
	text-align: left;
	overflow: hidden;
}

.jmu-form-compact button[type="submit"] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius-md);
	background: var(--color-primary);
	color: var(--text-inverse);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--color-primary) 24%, transparent);
	transition: background var(--duration-normal) var(--ease-default), transform var(--duration-normal) var(--ease-default);
}

.jmu-form-compact button[type="submit"]:hover {
	background: var(--color-primary-hover);
	transform: translateY(-1px);
}

.jmu-form-compact button[type="submit"]:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--color-primary) 60%, var(--white));
	outline-offset: 2px;
}

.jmu-hero-phone:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

.jmu-form-compact .jmu-honeypot {
	position: fixed;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.jmu-form-compact[aria-busy="true"] {
	cursor: progress;
}

.jmu-form-compact button[type="submit"][disabled] {
	cursor: not-allowed;
	opacity: 0.76;
	transform: none;
}

.jmu-form-compact .jmu-form-msg {
	margin-top: 0.75rem;
	padding: 0.6rem 0.85rem;
	border-radius: var(--radius-md);
	display: none;
	font-size: 0.9rem;
}

.jmu-form-compact .jmu-form-msg.is-ok {
	display: block;
	background: color-mix(in srgb, var(--color-success) 18%, transparent);
	color: color-mix(in srgb, var(--color-success) 35%, var(--text-strong));
}

.jmu-form-compact .jmu-form-msg.is-error {
	display: block;
	background: color-mix(in srgb, var(--color-primary) 12%, transparent);
	color: var(--color-primary);
}

@media (max-width: 880px) {
	.jmu-hero-overlay {
		min-height: 0;
		display: block;
		padding: 28px 14px 40px;
	}

	.jmu-hero-inner {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.jmu-hero-copy {
		text-align: center;
		align-items: center;
	}

	.jmu-hero-copy h1 {
		max-width: 520px;
		margin-bottom: 14px;
		font-size: 2.75rem;
		line-height: 1;
	}

	.jmu-hero-proof-line {
		font-size: var(--text-2xl);
	}

	.jmu-hero-points {
		justify-content: center;
		gap: 8px;
		margin-bottom: 12px;
	}

	.jmu-hero-points p {
		padding: 8px 12px;
		font-size: var(--text-sm);
	}

	.jmu-hero-phone {
		font-size: var(--text-2xl);
	}

	.jmu-hero-call {
		align-items: center;
		margin-bottom: 8px;
	}

	.jmu-hero-hours {
		font-size: var(--text-sm);
	}

	.jmu-hero-hours__track {
		margin: 0 auto;
	}

	.jmu-hero-form-panel {
		width: min(100%, 440px);
		max-width: 100%;
		margin: 0 auto;
		padding: 18px;
	}
}

@media (max-width: 420px) {
	.jmu-hero-overlay {
		padding-top: 30px;
	}

	.jmu-hero-form-panel h2 {
		font-size: var(--text-2xl);
	}
}

@media (min-width: 881px) and (max-width: 1120px) {
	.jmu-hero-copy h1 {
		font-size: 3.25rem;
	}

	.jmu-hero-proof-line,
	.jmu-hero-phone {
		font-size: var(--text-3xl);
	}
}

@media (min-width: 1121px) {
	.jmu-hero-full + .wp-block-group,
	.jmu-hero-full + .jmu-intro-section {
		margin-block-start: 0 !important;
	}
}
