/**
 * Home Valuation landing page
 * Matches Hope Mims home: ink dark, Cormorant + Manrope, copper accent.
 */

.hm-valu {
	--hm-ink: #0e0d0d;
	--hm-ink-2: #171514;
	--hm-cream: #f4f0ea;
	--hm-muted: rgba(244, 240, 234, 0.62);
	--hm-line: rgba(255, 255, 255, 0.1);
	--hm-accent: #de5a18;
	--hm-ease: cubic-bezier(0.22, 1, 0.36, 1);
	background: var(--hm-ink);
	color: var(--hm-cream);
	overflow-x: clip;
}

/* Elementor widget chrome — don’t wipe branded classes */
.hm-valu .elementor-widget-heading:not([class*="hm-valu"]) .elementor-heading-title {
	margin: 0;
}

.hm-valu .elementor-widget:not(:last-child) {
	margin-bottom: 0;
}

.hm-valu .elementor-widget-text-editor > .elementor-widget-container {
	margin: 0;
}

.hm-valu .hm-valu-panel.e-con,
.hm-valu .hm-valu-panel {
	padding: clamp(1.35rem, 2.5vw, 1.85rem) !important;
}

.hm-valu .hm-valu-panel__sub {
	margin-bottom: 1.15rem !important;
	padding-bottom: 1rem !important;
	border-bottom: 1px solid var(--hm-line) !important;
}

/* —— Hero —— */
.hm-valu-hero,
.hm-valu-hero.e-con {
	position: relative;
	isolation: isolate;
	min-height: min(100vh, 980px) !important;
	padding: clamp(5.5rem, 10vw, 7.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 6vw, 4.5rem) !important;
	background: var(--hm-ink) !important;
	width: 100% !important;
	max-width: none !important;
}

/* Atmosphere (Elementor pages have no glow/grain markup) */
.hm-valu-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(55% 50% at 88% 18%, rgba(222, 90, 24, 0.18), transparent 60%),
		radial-gradient(40% 35% at 12% 80%, rgba(222, 90, 24, 0.08), transparent 55%),
		linear-gradient(105deg, #0e0d0d 0%, #0e0d0d 42%, #151210 100%);
}

.hm-valu-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
	mix-blend-mode: soft-light;
}

.hm-valu-hero > .e-con-inner {
	position: relative;
	z-index: 1;
	width: 100% !important;
	max-width: none !important;
	display: flex !important;
	justify-content: center !important;
}

/*
 * Elementor 4 full containers: copy + panel are DIRECT children of .hm-valu-hero__inner
 * (boxed containers may wrap once in .e-con-inner — cover both).
 */
.hm-valu-hero__inner,
.hm-valu-hero__inner.e-con {
	position: relative;
	z-index: 1;
	display: grid !important;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
	gap: clamp(2rem, 5vw, 4.5rem) !important;
	align-items: center !important;
	width: min(1180px, 100%) !important;
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	flex-direction: unset !important;
	flex-wrap: unset !important;
	--width: 100% !important;
}

.hm-valu-hero__inner > .e-con-inner {
	display: contents !important; /* unwrap if present so grid sees columns */
}

.hm-valu-hero__copy,
.hm-valu-hero__copy.e-con,
.hm-valu-panel,
.hm-valu-panel.e-con {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	flex: none !important;
	--width: 100% !important;
	--flex-grow: 0 !important;
	--flex-shrink: 0 !important;
}

.hm-valu-hero__copy > .e-con-inner,
.hm-valu-panel > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	display: flex !important;
	flex-direction: column !important;
}

/* —— Copy column —— */
.hm-valu-eyebrow,
.hm-valu-eyebrow .elementor-heading-title {
	margin: 0 0 1rem;
	font-family: Manrope, system-ui, sans-serif !important;
	font-size: 0.65rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.28em !important;
	text-transform: uppercase !important;
	color: var(--hm-accent) !important;
	animation: hm-valu-rise 0.9s var(--hm-ease) both;
}

.hm-valu-eyebrow--muted,
.hm-valu-eyebrow--muted .elementor-heading-title {
	color: rgba(244, 240, 234, 0.45) !important;
}

.hm-valu-title,
.hm-valu-title .elementor-heading-title {
	margin: 0 0 1.15rem;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: clamp(2.55rem, 5.4vw, 4.15rem) !important;
	font-weight: 500 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.01em !important;
	color: var(--hm-cream) !important;
	animation: hm-valu-rise 0.95s var(--hm-ease) 0.08s both;
}

.hm-valu-lead,
.hm-valu .hm-valu-lead,
.hm-valu .elementor-widget-text-editor .hm-valu-lead {
	margin: 0 0 1.75rem !important;
	max-width: 32rem;
	font-family: Manrope, system-ui, sans-serif !important;
	font-size: clamp(0.95rem, 1.5vw, 1.05rem) !important;
	line-height: 1.65 !important;
	color: var(--hm-muted) !important;
	animation: hm-valu-rise 1s var(--hm-ease) 0.14s both;
}

.hm-valu-points {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	animation: hm-valu-rise 1s var(--hm-ease) 0.2s both;
}

.hm-valu-points li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.92rem;
	line-height: 1.45;
	color: rgba(244, 240, 234, 0.82);
}

.hm-valu-points__mark {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.1rem;
	border: 0;
	border-radius: 50%;
	background-color: var(--hm-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.4 11.1L12.5 4.8' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: center;
	background-size: 0.7rem 0.7rem;
	background-repeat: no-repeat;
}

.hm-valu-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hm-line);
	animation: hm-valu-rise 1s var(--hm-ease) 0.26s both;
}

.hm-valu-meta__label {
	display: block;
	margin-bottom: 0.35rem;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 240, 234, 0.4);
}

.hm-valu-meta__value {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.2rem;
	line-height: 1.25;
	color: var(--hm-accent);
}

/* —— Form panel —— */
.hm-valu-panel {
	position: relative;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 42%),
		var(--hm-ink-2);
	border: 1px solid var(--hm-line);
	box-shadow:
		0 28px 80px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	padding: clamp(1.35rem, 2.5vw, 1.85rem);
	animation: hm-valu-panel-in 1.05s var(--hm-ease) 0.18s both;
}

.hm-valu-panel::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 2px;
	background: linear-gradient(180deg, var(--hm-accent), transparent 70%);
	opacity: 0.9;
}

.hm-valu-panel__head {
	margin-bottom: 1.15rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--hm-line);
}

.hm-valu-panel__eyebrow,
.hm-valu-panel__eyebrow .elementor-heading-title {
	margin: 0 0 0.4rem;
	font-family: Manrope, system-ui, sans-serif !important;
	font-size: 0.6rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.24em !important;
	text-transform: uppercase !important;
	color: var(--hm-accent) !important;
}

.hm-valu-panel__title,
.hm-valu-panel__title .elementor-heading-title {
	margin: 0 0 0.4rem;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: clamp(1.55rem, 2.4vw, 1.85rem) !important;
	font-weight: 600 !important;
	line-height: 1.15 !important;
	color: var(--hm-cream) !important;
}

.hm-valu-panel__sub,
.hm-valu .hm-valu-panel__sub {
	margin: 0;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--hm-muted);
}

.hm-valu-fallback {
	margin: 0;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.9rem;
	color: var(--hm-muted);
}

/* CF7 inside page panel */
.hm-valu .wpcf7,
.hm-valu .wpcf7-form,
.hm-valu .wpcf7-form > p,
.hm-valu .hm-cf7-field p,
.hm-valu .hm-cf7-actions p {
	margin: 0;
}

.hm-valu .hm-cf7-field br {
	display: none;
}

.hm-valu .hm-cf7-field p {
	display: flex;
	flex-direction: column;
	gap: 0.22rem;
}

.hm-valu .hm-cf7-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem 0.75rem;
}

.hm-valu .hm-cf7-field {
	min-width: 0;
}

.hm-valu .hm-cf7-field--full,
.hm-valu .hm-cf7-actions {
	grid-column: 1 / -1;
}

.hm-valu .hm-cf7-actions {
	margin-top: 0.25rem;
}

.hm-valu .hm-cf7-field label {
	display: block;
	margin: 0;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(244, 240, 234, 0.52);
	line-height: 1.3;
}

.hm-valu .wpcf7-form-control-wrap {
	display: block;
}

.hm-valu input.wpcf7-form-control,
.hm-valu select.wpcf7-form-control,
.hm-valu textarea.wpcf7-form-control {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(14, 13, 13, 0.65);
	color: var(--hm-cream);
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.9rem;
	line-height: 1.35;
	padding: 0.58rem 0.75rem;
	border-radius: 0;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hm-valu select.wpcf7-form-control {
	background-image:
		linear-gradient(45deg, transparent 50%, rgba(244, 240, 234, 0.55) 50%),
		linear-gradient(135deg, rgba(244, 240, 234, 0.55) 50%, transparent 50%);
	background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	background-color: rgba(14, 13, 13, 0.65);
	padding-right: 2rem;
	cursor: pointer;
}

.hm-valu select.wpcf7-form-control option {
	background: #171514;
	color: #f4f0ea;
}

.hm-valu input.wpcf7-form-control::placeholder,
.hm-valu textarea.wpcf7-form-control::placeholder {
	color: rgba(244, 240, 234, 0.32);
}

.hm-valu textarea.wpcf7-form-control {
	min-height: 72px;
	resize: vertical;
}

.hm-valu input.wpcf7-form-control:hover,
.hm-valu select.wpcf7-form-control:hover,
.hm-valu textarea.wpcf7-form-control:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

.hm-valu input.wpcf7-form-control:focus,
.hm-valu select.wpcf7-form-control:focus,
.hm-valu textarea.wpcf7-form-control:focus {
	border-color: rgba(222, 90, 24, 0.85);
	box-shadow: 0 0 0 1px rgba(222, 90, 24, 0.4);
	background: rgba(20, 18, 16, 0.95);
}

.hm-valu .wpcf7-submit,
.hm-valu input.wpcf7-submit,
.hm-valu .wpcf7-submit:hover,
.hm-valu .wpcf7-submit:focus,
.hm-valu .wpcf7-submit:focus-visible,
.hm-valu .wpcf7-submit:active {
	width: 100%;
	border: 1px solid var(--hm-cream) !important;
	border-radius: 0 !important;
	background: var(--hm-cream) !important;
	background-color: var(--hm-cream) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #0e0d0d !important;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.95rem 1.15rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hm-valu .wpcf7-submit:hover,
.hm-valu .wpcf7-submit:focus-visible {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--hm-cream) !important;
}

.hm-valu .wpcf7-not-valid-tip {
	display: block;
	margin: 0.12rem 0 0;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.72rem;
	color: #f0a070;
}

.hm-valu .wpcf7-response-output {
	margin: 0.75rem 0 0;
	padding: 0.6rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.8rem;
	color: var(--hm-muted);
}

.hm-valu .wpcf7-form.sent .wpcf7-response-output {
	border-color: rgba(120, 180, 120, 0.35);
	color: #b8d4b8;
}

/* —— Steps —— */
.hm-valu-steps,
.hm-valu-steps.e-con {
	position: relative;
	padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem) !important;
	border-top: 1px solid var(--hm-line);
	background:
		radial-gradient(50% 60% at 50% 0%, rgba(222, 90, 24, 0.07), transparent 65%),
		#0c0b0b !important;
	width: 100% !important;
	max-width: none !important;
}

.hm-valu-steps > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	display: flex !important;
	justify-content: center !important;
}

.hm-valu-steps__inner,
.hm-valu-steps__inner.e-con {
	width: 100% !important;
	max-width: 1180px !important;
	margin: 0 auto !important;
}

.hm-valu-steps__inner > .e-con-inner {
	width: 100% !important;
	max-width: 1180px !important;
}

.hm-valu-steps__title,
.hm-valu-steps__title .elementor-heading-title {
	margin: 0 0 clamp(2rem, 4vw, 2.75rem);
	max-width: 18ch;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: clamp(1.9rem, 3.5vw, 2.75rem) !important;
	font-weight: 500 !important;
	line-height: 1.12 !important;
	color: var(--hm-cream) !important;
}

.hm-valu-steps__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

.hm-valu-step {
	padding: 1.35rem 0 0;
	border-top: 1px solid var(--hm-line);
}

.hm-valu-step__num {
	display: block;
	margin-bottom: 0.85rem;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	color: var(--hm-accent);
}

.hm-valu-step__title {
	margin: 0 0 0.55rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--hm-cream);
}

.hm-valu-step__text {
	margin: 0;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--hm-muted);
}

/* —— Motion —— */
@keyframes hm-valu-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hm-valu-panel-in {
	from {
		opacity: 0;
		transform: translateY(22px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-valu-eyebrow,
	.hm-valu-title,
	.hm-valu-lead,
	.hm-valu-points,
	.hm-valu-meta,
	.hm-valu-panel {
		animation: none;
	}
}

/* —— Responsive —— */
@media (max-width: 980px) {
	.hm-valu-hero,
	.hm-valu-hero.e-con {
		min-height: 0 !important;
		padding-top: clamp(5rem, 12vw, 6.5rem) !important;
	}

	.hm-valu-hero__inner,
	.hm-valu-hero__inner.e-con {
		grid-template-columns: 1fr !important;
		gap: 2.25rem !important;
	}

	.hm-valu-meta {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.hm-valu-meta__item {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 1rem;
		padding-bottom: 0.65rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.hm-valu-meta__item:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.hm-valu-meta__label {
		margin: 0;
	}

	.hm-valu-br {
		display: none;
	}

	.hm-valu-steps__grid {
		grid-template-columns: 1fr;
	}

	.hm-valu-steps__title {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.hm-valu .hm-cf7-grid {
		grid-template-columns: 1fr;
	}

	.hm-valu-panel {
		padding: 1.2rem 1.05rem 1.15rem;
	}

	.hm-valu-title {
		font-size: clamp(2.2rem, 9vw, 2.7rem);
	}
}

/* Keep page ink under Elementor header/footer seams */
body.page-template-home-valuation,
body.page-template-buyer-inquiry,
body.page-template-seller-inquiry,
body.page-template-consultation-request,
body.page-template-free-resource,
body.page-template-general-contact,
body.page-template-home-valuation .site-main,
body.page-template-buyer-inquiry .site-main,
body.page-template-seller-inquiry .site-main,
body.page-template-consultation-request .site-main,
body.page-template-free-resource .site-main,
body.page-template-general-contact .site-main,
body.hm-page-valuation,
body.hm-page-buyer,
body.hm-page-seller,
body.hm-page-consult,
body.hm-page-resource,
body.hm-page-contact,
body.hm-page-lead {
	background: #0e0d0d;
}
