/**
 * CW Landing Hero — layout and section-specific visuals.
 * Shared pill/button utilities: cw-rebrand.css (child theme).
 */

.cw-landing-hero {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding: var(--cw-landing-section-pad-y, clamp(2rem, 5vw, 3rem))
		var(--cw-landing-section-pad-x, clamp(1rem, 4vw, 5.5rem));
	/* Gradient: warm-deep → black (matches Pencil hero). */
	background: linear-gradient(
		180deg,
		var(--wp--preset--color--warm-deep, #483e32) 0%,
		var(--wp--preset--color--black, #000) 100%
	);
	color: var(--wp--preset--color--white, #fff);
}

.cw-landing-hero--variant-alt {
	/* Reserved for future variants; same as default for now. */
	background: linear-gradient(
		180deg,
		var(--wp--preset--color--warm-deep, #483e32) 0%,
		var(--wp--preset--color--black, #000) 100%
	);
}

/* Landing hero background variants (linear top → bottom). */
.cw-landing-hero--variant-teal {
	background: linear-gradient(180deg, #086769 0%, #0a2324 100%);
}

.cw-landing-hero--variant-charcoal {
	background: linear-gradient(180deg, #636466 0%, #2d2a26 100%);
}

.cw-landing-hero--variant-burgundy {
	background: linear-gradient(180deg, #78171a 0%, #371213 100%);
}

/* Inner shell: .cw-landing-container (cw-rebrand.css) caps width at --cw-landing-max-width. */

/* Main split: stack on small screens, row on large (Pencil Hero / Main split). */
.cw-landing-hero__split {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2rem;
}

@media (min-width: 992px) {
	.cw-landing-hero__split {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 3.5rem;
	}
}

.cw-landing-hero__copy,
.cw-landing-hero__form {
	flex: 1 1 0;
	min-width: 0;
}

/* Copy column */
.cw-landing-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cw-landing-hero__headline-block {
	display: flex;
	flex-direction: column;
}

.cw-landing-hero__headline {
	margin: 0;
	color: var(--wp--preset--color--white, #fff);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
}

.cw-landing-hero__description {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--white, #fff);
	max-width: 40rem;
}

.cw-landing-hero__cta-wrap {
	margin-top: 0.25rem;
}

/* Stats card (dark panel + gold border, Pencil-aligned). */
/* Mobile: 2×2 grid + tighter padding so the stats card stays short. */
.cw-landing-hero__stats {
	background-color: var(--wp--preset--color--card-dark, #2e323a);
	border: 1px solid var(--wp--preset--color--gold, #e5b423);
	border-radius: var(--cw-radius-card, 1.5rem);
	padding: 0.75rem 1rem;
	margin-top: 1.25rem;
}

@media (min-width: 768px) {
	.cw-landing-hero__stats {
		padding: 1rem 2rem;
		margin-top: 32px;
	}
}

.cw-landing-hero__stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem;
}

@media (min-width: 768px) {
	.cw-landing-hero__stats-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--cw-stat-gap, 1rem);
	}
}

.cw-landing-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: center;
}

@media (min-width: 768px) {
	.cw-landing-hero__stat {
		gap: 0.5rem;
	}
}

.cw-landing-hero__stat-value {
	margin: 0;
	color: var(--wp--preset--color--gold, #e5b423);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
}

@media (min-width: 768px) {
	.cw-landing-hero__stat-value {
		font-size: 2.25rem;
		line-height: 1.1;
	}
}

.cw-landing-hero__stat-label {
	margin: 0;
	color: var(--wp--preset--color--white, #fff);
	font-size: 0.8125rem;
	line-height: 1.3;
	text-align: center;
}

@media (min-width: 768px) {
	.cw-landing-hero__stat-label {
		font-size: 1rem;
		line-height: 1.25;
	}
}

/* Form column — HubSpot embed inside .landing-wpforms-container */
.cw-landing-hero__form-card {
	background: var(--wp--preset--color--white, #fff);
	border-radius: var(--cw-radius-card, 1.5rem);
	min-height: 12rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Scope all HubSpot form styling to this hero embed (raw HTML / non-iframe). */
.cw-landing-hero .landing-wpforms-container {
	color: var(--wp--preset--color--dark-gray-text, #2d2926);
	font-size: 1rem;
	line-height: 1.5;
}

.cw-landing-hero .landing-wpforms-container .hs-form-html {
	min-height: 4rem;
}

.cw-landing-hero .landing-wpforms-container .hs-form {
	margin: 0;
	max-width: 100%;
}

.cw-landing-hero .landing-wpforms-container .hs-form-field {
	margin-bottom: 1rem;
}

.cw-landing-hero .landing-wpforms-container .hs-form-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--wp--preset--color--dark-gray-text, #2d2926);
}

.cw-landing-hero .landing-wpforms-container .hs-form-required {
	color: var(--wp--preset--color--red, #d7282f);
}

.cw-landing-hero .landing-wpforms-container .hs-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 1rem;
	border: 1px solid #d9d9d9;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-family: inherit;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--dark-gray-text, #2d2926);
}

.cw-landing-hero .landing-wpforms-container .hs-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--red, #d7282f);
	box-shadow: 0 0 0 1px var(--wp--preset--color--red, #d7282f);
}

.cw-landing-hero .landing-wpforms-container textarea.hs-input {
	min-height: 6rem;
	resize: vertical;
}

.cw-landing-hero .landing-wpforms-container .hs-submit {
	margin-top: 1rem;
}

.cw-landing-hero .landing-wpforms-container .hs-button.primary,
.cw-landing-hero .landing-wpforms-container input.hs-button.primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.625rem 1rem;
	border: none;
	border-radius: var(--cw-radius-button, 1.25rem);
	background-color: var(--wp--preset--color--red, #d7282f);
	color: var(--wp--preset--color--white, #fff);
	font-size: 0.875rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.cw-landing-hero .landing-wpforms-container .hs-button.primary:hover,
.cw-landing-hero .landing-wpforms-container input.hs-button.primary:hover {
	background-color: var(--wp--preset--color--red-deep, #c1080f);
}

.cw-landing-hero .landing-wpforms-container .legal-consent-container,
.cw-landing-hero .landing-wpforms-container .hs-richtext {
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--wp--preset--color--dark-gray-text, #2d2926);
}

.cw-landing-hero .landing-wpforms-container .hs-form-title,
.cw-landing-hero .landing-wpforms-container h3.form-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--dark-gray-text, #2d2926);
}

/* HubSpot Field Components (new embed UI) — scoped to hero form only */
@media (max-width: 767.98px) {
	/* HubSpot default step padding is large; 16px keeps the white card usable on phones. */
	.cw-landing-hero
		.landing-wpforms-container
		[data-hsfc-id="Renderer"]
		.hsfc-Step
		.hsfc-Step__Content {
		padding: 16px;
	}
}

.cw-landing-hero .landing-wpforms-container [data-hsfc-id="Renderer"] .hsfc-RichText,
.cw-landing-hero .landing-wpforms-container [data-hsfc-id="Renderer"] .hsfc-RichText p {
	font-size: 14px;
}

/* Tighter HubSpot FC row/field spacing — tablet+ only; mobile uses embed defaults. */
@media (min-width: 768px) {
	.cw-landing-hero .landing-wpforms-container [data-hsfc-id="Renderer"] .hsfc-Row {
		margin-bottom: 0;
	}

}

.cw-landing-hero .landing-wpforms-container [data-hsfc-id="Renderer"] .hsfc-ReCaptchaV2 {
	display: none;
}
