/* =========================================================================
   Falcon Trail Summit — frontpage.css
   Loaded ONLY on the front page (is_front_page()). Hero + front-page section
   layouts. Reusable building blocks live in global.css.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Hero
   Backgrounds: solid color, image, uploaded video, or YouTube embed.
   Layer order (bottom → top): .hero__bg-* layers, .hero__scrim (Customizer
   readability overlay), .hero__overlay (copy + bottom contrast gradient).
   ------------------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 620px;
	min-height: 440px;
	background-color: #3C4A42; /* Fallback before the color layer paints. */
	color: var(--color-on-dark);
	overflow: hidden;
}

/* Background layers; only the layer matching the active mode is displayed. */
.hero__bg {
	position: absolute;
	inset: 0;
	display: none;
	z-index: 0;
}

.hero--bg-color .hero__bg--color {
	display: block;
	background-color: #3C4A42; /* Fallback if the inline Customizer color is absent. */
}

.hero--bg-image .hero__bg--image {
	display: block;
	background-size: cover;
	background-position: center center;
	background-color: #1C1F1E; /* Opaque fallback while the image loads. */
}

.hero--bg-video .hero__bg--video {
	display: block;
	background-color: #1C1F1E; /* Opaque fallback behind the video/iframe. */
}

/* Self-hosted video: fills the layer; object-fit crops the frame like a photo. */
.hero__bg--video .hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
}

/* YouTube iframe: object-fit does not apply to iframe content, so keep the
   player's native 16:9 geometry, scale it up to cover the layer, and center it. */
.hero__bg--video .hero__youtube {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, 177.78vh); /* 16:9 cover: width ≥ 16/9 × layer height */
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
	background-color: #1C1F1E;
}

.hero__bg--video[data-video-source="file"] .hero__youtube {
	display: none;
}

.hero__bg--video[data-video-source="youtube"] .hero__video {
	display: none;
}

/* Customizer readability scrim (color + opacity); hidden when disabled. */
.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(28, 31, 30, 0.5);
}

.hero__scrim[hidden] {
	display: none;
}

.hero__overlay {
	position: relative;
	z-index: 2;
	width: 100%;
	background: linear-gradient(0deg, rgba(18, 22, 20, 0.82), rgba(18, 22, 20, 0) 55%);
}

.hero__inner {
	padding-block: 56px 48px;
}

.hero__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-on-dark);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: clamp(2.6rem, 6vw, 4.5rem);
	line-height: 1.0;
	color: var(--color-on-dark);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__media-note {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
	margin: 0;
	background: rgba(0, 0, 0, 0.5);
	color: #FFFFFF;
	font-size: 12px;
	padding: 6px 12px;
}

@media (max-width: 640px) {
	.hero {
		height: 440px;
	}

	.hero__inner {
		padding-block: 40px 32px;
	}

	.hero__media-note {
		left: 20px;
		right: auto;
		max-width: calc(100% - 40px);
	}
}

/* -------------------------------------------------------------------------
   2. Overview strip: lead statement + price + stats grid
   ------------------------------------------------------------------------- */
.overview {
	border-bottom: 1px solid var(--color-line);
}

.overview__top {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 32px;
	align-items: center;
	justify-content: space-between;
	padding-block: 40px;
}

.overview__lead {
	flex: 1 1 520px;
	min-width: 0;
	margin: 0;
	font-family: var(--font-heading);
	font-size: 26px;
	line-height: 1.35;
}

.overview__price {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: right;
}

.overview__amount {
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 600;
	line-height: 1;
	color: var(--color-ink);
}

.overview__meta {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.overview__stats {
	border-top: 1px solid var(--color-line);
	padding-bottom: 40px;
}

@media (max-width: 640px) {
	.overview__price {
		text-align: left;
	}
}

/* -------------------------------------------------------------------------
   3. Three-views gallery
   ------------------------------------------------------------------------- */
.views-section .figure-card__media--west  { background: #A9774F; }
.views-section .figure-card__media--north { background: #5F7773; }
.views-section .figure-card__media--south { background: #8A8764; }

/* -------------------------------------------------------------------------
   4. Community band (tinted surface, two columns)
   ------------------------------------------------------------------------- */
.community-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 48px;
}

.community-grid__main {
	flex: 1 1 380px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fact-list {
	flex: 1 1 380px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--color-line-strong);
}

.fact-list__item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--color-line-strong);
}

.fact-list__name {
	font-weight: 600;
}

.fact-list__detail {
	color: var(--color-muted);
}

/* -------------------------------------------------------------------------
   5. Building section: text column + rendering figure + deed restrictions
   ------------------------------------------------------------------------- */
.build-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 48px;
}

.build-grid__col {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.build-callout {
	border-left: 2px solid var(--color-accent);
	padding: 4px 0 4px 16px;
}

.build-callout__label {
	margin: 0 0 4px;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.build-callout__text {
	margin: 0;
	font-size: 14px;
}

.figure-card__media--render {
	height: 340px;
	background: #59625D;
}

.figure-card__note {
	margin: 0;
	font-size: 12px;
	color: var(--color-muted);
}

.build-restrictions-title {
	margin: 48px 0 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 26px;
}

/* -------------------------------------------------------------------------
   6. Location section: copy + drive-time rows + map placeholder
   ------------------------------------------------------------------------- */
.drive-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 48px;
}

.drive-grid__col {
	flex: 1 1 400px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.drive-map {
	flex: 1 1 440px;
	min-width: 0;
	min-height: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	background: #E4DFD4;
	color: var(--color-muted);
	font-size: 14px;
}

.press-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	border-block: 1px solid var(--color-line);
	padding-block: 18px;
}

.press-strip__label {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-right: 12px;
}

.press-strip__link {
	font-size: 14px;
	font-weight: 600;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.press-strip__link:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   7. Private showings band styles live in global.css (rendered by footer.php
   on every page).
   ------------------------------------------------------------------------- */
