/* ==========================================================================
   Homepage-only styles (loaded on the front page only)
   Shared classes (.section, .eyebrow, .img-placeholder base) live in the
   global style.css since other page templates use them too.
   ========================================================================== */

.eyebrow--light {
	color: var(--color-alt);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	min-height: 700px;
	display: flex;
	align-items: flex-start;
	overflow: hidden;
}

/* .nav-stage is position:fixed sitewide (see style.css), which already
   floats it over the hero here. .site-main normally reserves top padding
   to clear that fixed nav, but the homepage hero is meant to sit flush
   under the transparent nav instead, so zero it out here. */
.home .site-main {
	padding-top: 0;
}

.hero .img-placeholder {
	position: absolute;
	inset: 0;
	border-radius: 0;
}

.img-placeholder--hero {
	background-image: url('https://newmanilaproperties.com/wp-content/uploads/2026/08/nmp-001.jpg');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.img-placeholder--hero::after {
	content: none;
}

.hero__overlay {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-block: 60px;
	background: linear-gradient(180deg, rgba(20, 16, 10, 0.75) 0%, rgba(20, 16, 10, 0.15) 60%, transparent 100%);
}

/* Clears the floating .nav-stage (~124px tall, driven by its own content/
   padding, not viewport width) so the hero text never sits under the nav.
   A fixed value holds at every breakpoint, unlike a percentage. */
.hero .container {
	padding-top: 150px;
}

.hero__title {
	color: #fff;
	font-size: clamp(2rem, 4vw, 2.9rem);
	max-width: 620px;
	margin: 10px 0 14px;
}

.hero__text {
	color: rgba(255, 255, 255, 0.85);
	max-width: 480px;
	margin: 0 0 24px;
}

.hero__cta {
	display: inline-block;
	margin-bottom: 28px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about__inner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 60px;
	align-items: center;
}

.about__photo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.about__copy h2 {
	font-size: 2rem;
	margin: 12px 0 16px;
}

.about__copy > p {
	color: var(--color-text-muted);
	max-width: 480px;
}

.about__features {
	display: flex;
	gap: 24px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.about__feature {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 0.9rem;
}

.about__feature-icon {
	color: var(--color-secondary);
	display: inline-flex;
}

/* ==========================================================================
   What We Offer
   ========================================================================== */
.offer {
	background: var(--color-alt);
}

.section__head--center {
	text-align: center;
	display: block;
	max-width: 640px;
	margin-inline: auto;
}

.section__head--center h2 {
	font-size: 1.9rem;
	margin-top: 8px;
}

.offer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.offer-card {
	display: block;
	background: #fff;
	border-radius: var(--radius);
	padding: 24px;
	color: inherit;
}

.offer-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 16px;
	margin-bottom: 14px;
}

.offer-card__head h3 {
	font-size: 1.05rem;
	margin: 0;
}

.offer-card__arrow {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	color: var(--color-secondary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.offer-card:hover .offer-card__arrow {
	background: var(--color-secondary);
	color: #fff;
}

.offer-card p {
	color: var(--color-text-muted);
	font-size: 0.875rem;
	min-height: 3em;
}

.img-placeholder--offer {
	aspect-ratio: 16 / 11;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.img-placeholder--offer::after {
	content: none;
}

.offer__nav {
	display: none;
}

.offer__arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	background: #fff;
	color: var(--color-secondary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.offer__arrow:hover {
	background: var(--color-secondary);
	color: #fff;
}

/* ==========================================================================
   Selected / Recent listings
   ========================================================================== */
.selected__inner {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 60px;
	align-items: start;
}

.selected__media {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.selected__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 10, 0.2);
}

.img-placeholder--selected-feature {
	position: absolute;
	inset: 0;
	border-radius: 0;
	background-image: url('https://newmanilaproperties.com/wp-content/uploads/2026/07/017-ERMIN-GARCIA.png');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.img-placeholder--selected-feature::after {
	content: none;
}

.selected__intro h2 {
	font-size: 1.9rem;
	margin: 12px 0 14px;
}

.selected__intro p {
	color: var(--color-text-muted);
	margin-bottom: 24px;
}

.selected__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.selected-item {
	position: sticky;
	top: 30px;
	display: grid;
	grid-template-columns: 1fr 160px;
	gap: 20px;
	align-items: center;
	background: #fff;
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.1);
}

/* Each card needs a higher z-index than the one before it so it visually
   slides over and covers the previous card as the page scrolls. */
.selected-item:nth-child(1) { z-index: 1; }
.selected-item:nth-child(2) { z-index: 2; }
.selected-item:nth-child(3) { z-index: 3; }
.selected-item:nth-child(4) { z-index: 4; }
.selected-item:nth-child(5) { z-index: 5; }
.selected-item:nth-child(6) { z-index: 6; }
.selected-item:nth-child(7) { z-index: 7; }

.selected-item__tag {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	color: var(--color-secondary);
	font-size: 0.8rem;
	font-weight: 600;
	margin: 0 0 6px;
}

.selected-item__tag svg {
	flex-shrink: 0;
}

.selected-item__type {
	color: var(--color-text-muted);
	font-weight: 500;
}

.selected-item__type::before {
	content: '\2022';
	margin-right: 6px;
	color: var(--color-border);
}

.selected-item__copy h3 {
	font-size: 1.2rem;
	margin: 0 0 8px;
}

.selected-item__copy h3 a {
	color: var(--color-text);
}

.selected-item__excerpt {
	color: var(--color-text-muted);
	font-size: 0.9rem;
	margin: 0 0 14px;
}

.selected-item__media {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
}

.img-placeholder--selected {
	aspect-ratio: 4 / 3;
}

/* ==========================================================================
   Video play button (used by .selected__media)
   ========================================================================== */
.video-banner__play {
	position: relative;
	z-index: 1;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: #fff;
	color: var(--color-secondary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.video-banner__play svg {
	margin-left: 4px;
}

.video-banner__play:hover {
	background: var(--color-main);
	color: #fff;
}

/* ==========================================================================
   Video lightbox
   ========================================================================== */
.video-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.video-lightbox.is-open {
	display: flex;
}

.video-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 10, 0.85);
}

.video-lightbox__dialog {
	position: relative;
	width: 100%;
	max-width: 960px;
}

.video-lightbox__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
}

.video-lightbox__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-lightbox__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: var(--color-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.video-lightbox__close:hover {
	background: var(--color-main);
	color: #fff;
}

/* ==========================================================================
   Join Us
   ========================================================================== */
.join__inner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 60px;
	align-items: center;
	margin-bottom: 48px;
}

.img-placeholder--join {
	aspect-ratio: 4 / 5;
	background-image: url('https://newmanilaproperties.com/wp-content/uploads/2026/08/nmp-team.jpg');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.img-placeholder--join::after {
	content: none;
}

.join__copy h2 {
	font-size: 1.9rem;
	margin: 12px 0 14px;
}

.join__copy > p {
	color: var(--color-text-muted);
	max-width: 460px;
	margin-bottom: 20px;
}

.join__list {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.join__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

.join__list svg {
	flex-shrink: 0;
	color: var(--color-secondary);
	margin-top: 3px;
}

.join__perks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	border-top: 1px solid var(--color-border);
	padding-top: 40px;
}

.join__perk {
	display: flex;
	gap: 14px;
}

.join__perk-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-alt);
	color: var(--color-secondary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.join__perk h3 {
	font-size: 1rem;
	margin: 0 0 4px;
}

.join__perk p {
	color: var(--color-text-muted);
	font-size: 0.85rem;
	margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.about__inner,
	.selected__inner,
	.join__inner {
		grid-template-columns: 1fr;
	}

	.selected-item {
		grid-template-columns: 1fr;
	}

	.selected-item__media {
		order: -1;
	}
}

@media (max-width: 600px) {
	.hero {
		min-height: 550px;
	}

	.offer__grid {
		display: flex;
		flex-wrap: nowrap;
		gap: 0;
		overflow-x: hidden;
		scroll-behavior: smooth;
	}

	.offer-card {
		flex: 0 0 100%;
		width: 100%;
	}

	.offer__nav {
		display: flex;
		justify-content: center;
		gap: 16px;
		margin-top: 20px;
	}
}
