/* New Construction Homes landing page template.
   Reuses the property-listings.css design tokens (--ncpl-*) and button/card
   classes (.ncpl-btn, .ncpl-btn-primary/-secondary) directly rather than
   inventing a parallel palette, so this page reads as the same product as
   the property grid it wraps. Loaded only when the landing template is
   active (see includes/landing-page-template.php). */

.ncpl-landing {
	background: var( --ncpl-gray-50 );
	color: var( --ncpl-ink );
	font-family: var( --ncpl-font );
	-webkit-font-smoothing: antialiased;
}

/* :where() zeroes this selector's specificity so every section below can
   override top/bottom padding with a plain single class, no fights with
   the cascade needed. (Without :where(), ".ncpl-landing section" actually
   outranks a single class like ".ncpl-value" and silently wins ties --
   which is exactly what was happening here before.) */
:where( .ncpl-landing ) section {
	padding: 3.5rem 1.25rem;
}
@media ( max-width: 600px ) {
	:where( .ncpl-landing ) section { padding: 2.5rem 1rem; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
/* Single centered headline only -- kept short and shallow on purpose so it
   reads as an intro line above the property list, not a full hero block. */

.ncpl-hero { padding-top: 3rem; padding-bottom: 3rem; } /* 48px -- spacing scale: 16/24/32/48/64 */
.ncpl-hero-inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}
.ncpl-hero-inner h1 {
	margin: 0;
	font-size: clamp( 1.65rem, 4.2vw, 2.35rem );
	letter-spacing: -.02em;
	line-height: 1.3;
	color: var( --ncpl-ink );
}

/* Reusable "premium heading" treatment: a very soft blue text-shadow plus a
   short gradient underline centered beneath the text. Applied to the hero
   h1 and the properties h2 -- not the lead-form/incentives headings, which
   stay plain so the effect reads as an intentional accent, not page-wide
   decoration. */
.ncpl-heading-accent {
	position: relative;
	padding-bottom: 1.1rem;
	text-shadow: 0 2px 10px rgba( 47, 111, 237, .12 );
}
.ncpl-heading-accent::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX( -50% );
	width: 56px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient( 90deg, var( --ncpl-blue-deep ), var( --ncpl-blue ), var( --ncpl-neon ) );
	box-shadow: 0 0 14px rgba( 79, 195, 255, .45 );
}

/* Reusable blue gradient text-fill for highlighting a key phrase inside any
   heading (same gradient as .ncpl-hero-word-highlight, generalized so it's
   not hero-specific). */
.ncpl-text-gradient {
	color: var( --ncpl-blue-deep ); /* fallback if gradient text-fill isn't supported */
}
@supports ( background-clip: text ) or ( -webkit-background-clip: text ) {
	.ncpl-text-gradient {
		background: linear-gradient( 135deg, var( --ncpl-blue-deep ), var( --ncpl-blue ) 55%, var( --ncpl-neon ) );
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		-webkit-text-fill-color: transparent;
	}
}

/* Three treatments in one line, each reflecting what that phrase is doing:
   "Your" reads as a soft, personal lead-in; "New Construction" is the
   product itself, so it's the boldest and gets the brand's blue gradient
   (same accent as the primary buttons); "One-Stop Shop" is the friendly,
   conversational pitch, set in italic to read as a turn of phrase rather
   than a literal label. Same Inter font family throughout on purpose --
   varying weight/style instead of stacking on a second typeface keeps this
   consistent with the rest of the design system. */
.ncpl-hero-word-lead {
	font-weight: 500;
	font-style: italic;
	color: var( --ncpl-gray-600 );
}
.ncpl-hero-word-highlight {
	font-weight: 800;
	color: var( --ncpl-blue-deep ); /* fallback if gradient text-fill isn't supported */
}
.ncpl-hero-word-shop {
	font-weight: 700;
	font-style: italic;
	color: var( --ncpl-blue-deep );
}
/* Same blue gradient already used on the primary buttons, applied as a
   text fill instead of a background -- ties the headline's focal phrase to
   the site's signature blue accent without adding a new color. */
@supports ( background-clip: text ) or ( -webkit-background-clip: text ) {
	.ncpl-hero-word-highlight {
		background: linear-gradient( 135deg, var( --ncpl-blue-deep ), var( --ncpl-blue ) 55%, var( --ncpl-neon ) );
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		-webkit-text-fill-color: transparent;
	}
}
@media ( prefers-reduced-motion: no-preference ) {
	.ncpl-hero-inner h1 {
		animation: ncpl-hero-fade-up .7s ease both;
	}
}
@keyframes ncpl-hero-fade-up {
	from { opacity: 0; transform: translateY( 14px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}
@media ( max-width: 600px ) {
	.ncpl-hero { padding-top: 2.25rem; padding-bottom: 2rem; } /* 36px / 32px on mobile */
}

/* ── Scroll-reveal (generic) ──────────────────────────────────────────
   Starts hidden; landing-page.js adds .ncpl-reveal-visible via
   IntersectionObserver the moment the element scrolls into view. Reusable
   on any element, not just the properties heading. */
.ncpl-reveal {
	opacity: 0;
	transform: translateY( 16px );
}
@media ( prefers-reduced-motion: no-preference ) {
	.ncpl-reveal {
		transition: opacity .6s ease, transform .6s ease;
	}
}
.ncpl-reveal.ncpl-reveal-visible {
	opacity: 1;
	transform: translateY( 0 );
}

/* ── Value section ────────────────────────────────────────────────── */

.ncpl-value { padding-top: 0; padding-bottom: 4rem; } /* 64px -- clear gap before the property panel */
@media ( max-width: 600px ) {
	.ncpl-value { padding-bottom: 2.5rem; } /* 40px on mobile */
}
.ncpl-value-grid {
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 1rem;
}
@media ( max-width: 700px ) {
	.ncpl-value-grid { grid-template-columns: repeat( 2, 1fr ); }
}
.ncpl-value-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .6rem;
	background: var( --ncpl-white );
	border: 1px solid var( --ncpl-gray-100 );
	border-radius: 1rem;
	box-shadow: var( --ncpl-shadow-card );
	padding: 1.25rem 1rem;
	font-size: .85rem;
	font-weight: 600;
	color: var( --ncpl-gray-600 );
}
.ncpl-value-card i { width: 26px; height: 26px; color: var( --ncpl-blue ); }

/* ── Section intro (shared by properties / incentives headings) ─────── */

.ncpl-landing-section-intro {
	max-width: 640px;
	margin: 0 auto 2.5rem; /* 40px between title and filters/form controls */
	text-align: center;
}
.ncpl-landing-section-intro h2,
.ncpl-incentives h2 {
	margin: 0 0 .6rem;
	font-size: clamp( 1.4rem, 3vw, 1.85rem );
	font-weight: 800;
	letter-spacing: -.01em;
	color: var( --ncpl-ink );
}
.ncpl-landing-section-intro p,
.ncpl-incentives > p {
	margin: 0;
	font-size: .95rem;
	color: var( --ncpl-gray-600 );
	line-height: 1.5;
}

.ncpl-landing-properties { padding-top: 3rem; } /* 48px gap before the featured panel */
@media ( max-width: 600px ) {
	.ncpl-landing-properties { padding-top: 2rem; } /* 32px on mobile */
}

/* Wraps the properties heading + filter bar + grid in one raised "featured
   panel" -- white against the page's light-gray background, with a subtle
   blue-tinted border/shadow (distinct from the filter box's own violet
   glow) so the whole browse section reads as one elevated content block. */
.ncpl-property-panel {
	max-width: 1000px;
	margin: 0 auto;
	background: var( --ncpl-white );
	border: 1px solid rgba( 47, 111, 237, .12 );
	border-radius: 1.5rem;
	box-shadow: 0 10px 30px rgba( 47, 111, 237, .08 );
	padding: 3rem 2rem 3.5rem; /* 48px top, 56px bottom */
}
@media ( max-width: 600px ) {
	.ncpl-property-panel {
		padding: 2rem 1rem 2.5rem; /* 32px top, 40px bottom on mobile */
		border-radius: 1.25rem;
	}
}
/* [property_grid]'s own wrapper normally paints a gray-50 background and
   its own 3rem top/bottom padding (see .ncpl-grid-wrap in
   property-listings.css) -- both would fight the panel's white background
   and double up the spacing here, so neutralize them only in this context. */
.ncpl-property-panel .ncpl-grid-wrap {
	background: transparent;
	padding: 0;
}

/* ── Builder incentives section ──────────────────────────────────────── */

.ncpl-incentives {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	padding-bottom: 3.5rem;
}
.ncpl-incentives .ncpl-btn {
	margin-top: 1.5rem;
	display: inline-flex;
}
