/* Single Project page — 12 sections. Reuses shared components as-is where
   possible (no CSS duplicated for these):
     .page-hero* (page-hero.css)                                          → Hero (template-parts/global/page-hero.php)
     .section-header__eyebrow / __headline / __headline-accent (main.css) → every section header below
     .btn / .btn--primary / .btn--secondary / .btn--tertiary (main.css)   → every CTA
     .gallery-cell / __label / __placeholder (gallery.css)                → Interior Showcase cards
     .gallery-mosaic / .gallery-cell / .gallery-cell--large / __label     → Project Gallery (gallery.css)
     .about-cta* (about.css)                                              → Closing CTA
   Section-scoped eyebrow/headline colour overrides below follow the same
   per-section pattern already used site-wide (e.g. explore-projects.css,
   investment.css: eyebrow #794332, headline #154533, accent #936900 on
   light backgrounds). */

/* 2 — Residences ---------------------------------------------------------- */

.project-residences { background: #ffffff; padding: 120px 0; }
.project-residences__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.project-residences .section-header__eyebrow { color: #794332; }
.project-residences__headline { color: var(--ink); margin: 20px 0 24px; }
.project-residences__headline .section-header__headline-accent { color: var(--gold); }
.project-residences__body { font-family: var(--font-primary); font-size: 16px; line-height: 1.7; color: #595959; margin: 0 0 32px; max-width: 520px; }

.project-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-stat {
	background: #FBFBFB;
	border: 1px solid #E0E0E0;
	padding: 24px;
}
.project-stat__value { display: block; font-family: var(--font-serif); font-size: 30px; font-weight: 500; color: var(--terracotta); line-height: 1; margin-bottom: 8px; }
.project-stat__label { display: block; font-family: var(--font-primary); font-size: 12px; color: #595959; text-transform: uppercase; letter-spacing: 0.04em; }

.project-residences__media img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

@media (max-width: 900px) {
	.project-residences__grid { grid-template-columns: 1fr; gap: 40px; }
	.project-residences__media { order: -1; }
}
@media (max-width: 640px) {
	.project-residences { padding: 40px 0; }
	.project-stat-grid { gap: 12px; }
}

/* 3 — Floor breakdown (up to 4 title+body columns divided by vertical rules,
   plus a centred closing quote) ---------------------------------------------- */

.project-floors { background: var(--cream); padding: 80px 0; }
.project-floors__header { padding-bottom: 32px; border-bottom: 1px solid var(--border-light); }
.project-floors .section-header__eyebrow { color: #794332; }
.project-floors .section-header__headline { color: #154533; }
.project-floors .section-header__headline-accent { color: #936900; }

.project-floors__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border-light); }
.project-floor { padding: 32px; }
.project-floor:first-child { padding-left: 0; }
.project-floor:last-child { padding-right: 0; }
.project-floor:not(:first-child) { border-left: 1px solid var(--border-light); }
.project-floor__title { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--ink); margin: 0 0 12px; }
.project-floor__body { font-family: var(--font-primary); font-size: 14px; line-height: 1.7; color: #595959; margin: 0; }

.project-floors__quote {
	text-align: center;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.5;
	color: var(--ink);
	max-width: 800px;
	margin: 40px auto 0;
}

@media (max-width: 900px) {
	.project-floors__grid { grid-template-columns: 1fr; border-bottom: none; }
	.project-floor { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
	.project-floor:first-child { padding-left: 0; }
	.project-floor:last-child { padding-right: 0; border-bottom: none; }
	.project-floor:not(:first-child) { border-left: none; }
}
@media (max-width: 640px) {
	.project-floors { padding: 40px 0; }
	.project-floors__header { padding-bottom: 24px; }
}

/* 4 — Purpose (dark image/copy split) ------------------------------------- */

.project-purpose { background: var(--ink); color: var(--cream); padding: 80px 0; }
.project-purpose__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.project-purpose__media img { width: 100%; display: block; }
.project-purpose .section-header__eyebrow { color: var(--gold); }
.project-purpose .section-header__headline { color: #ffffff; margin: 20px 0 24px; }
.project-purpose__body { font-family: var(--font-primary); font-size: 15px; line-height: 1.75; color: var(--cream-dim); margin: 0 0 16px; }

@media (max-width: 900px) {
	.project-purpose__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
	.project-purpose { padding: 40px 0; }
}

/* 5 — Commercial city ------------------------------------------------------- */

.project-commercial { background: #ffffff; padding: 100px 0 60px; }
.project-commercial__header { margin-bottom: 48px; }
.project-commercial .section-header__eyebrow { color: var(--gold); }
.project-commercial .section-header__headline { color: var(--ink); }
.project-commercial .section-header__headline-accent { color: #936900; }

.project-commercial__row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 1fr);
	gap: 24px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x proximity;
}

.project-amenity-card, .project-infra-card {
	background: #ffffff;
	border: 1px solid var(--border-light);
	overflow: hidden;
	scroll-snap-align: start;
}
.project-amenity-card__image-wrap, .project-infra-card__image-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--dark-card); }
.project-amenity-card__image-wrap img, .project-infra-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-amenity-card__placeholder, .project-infra-card__placeholder { width: 100%; height: 100%; background: linear-gradient(160deg, var(--dark-card), var(--ink)); }

.project-amenity-card__body { padding: 20px; }
.project-amenity-card__sqm { display: block; font-family: var(--font-primary); font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.project-amenity-card__title { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.project-amenity-card__desc { font-family: var(--font-primary); font-size: 13px; line-height: 1.6; color: #595959; margin: 0; }

@media (max-width: 640px) {
	.project-commercial { padding: 40px 0 32px; }
	.project-commercial__header { margin-bottom: 24px; }
}

/* 6 — Infrastructure -------------------------------------------------------- */

.project-infrastructure { background: var(--cream); padding: 60px 0; }
.project-infrastructure__header { margin-bottom: 40px; }
.project-infrastructure .section-header__eyebrow { color: #794332; }
.project-infrastructure .section-header__headline { color: var(--ink); }
.project-infrastructure .section-header__headline-accent { color: #936900; }

.project-infrastructure__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-infra-card__title { font-family: var(--font-primary); font-size: 16px; font-weight: 500; color: var(--ink); margin: 16px 16px 6px; }
.project-infra-card__desc { font-family: var(--font-primary); font-size: 13px; line-height: 1.6; color: #595959; margin: 0 16px 16px; }

@media (max-width: 900px) {
	.project-infrastructure__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.project-infrastructure { padding: 40px 0; }
	.project-infrastructure__grid { grid-template-columns: 1fr; }
}

/* 7 — Key highlights ------------------------------------------------------------ */

.project-highlights { background: var(--terracotta); color: var(--cream); padding: 80px 0; }
.project-highlights__header { margin-bottom: 40px; }
.project-highlights .section-header__eyebrow { color: var(--gold); }
.project-highlights .section-header__headline { color: #ffffff; }
.project-highlights .section-header__headline-accent { color: var(--gold); }

.project-highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-highlight-card { background: rgba(245, 241, 235, 0.08); padding: 28px; }
.project-highlight-card__number { display: block; font-family: var(--font-primary); font-size: 12px; font-weight: 500; color: rgba(245, 241, 235, 0.6); margin-bottom: 12px; }
.project-highlight-card__title { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: #ffffff; margin: 0 0 8px; }
.project-highlight-card__body { font-family: var(--font-primary); font-size: 13px; line-height: 1.6; color: rgba(245, 241, 235, 0.75); margin: 0; }

@media (max-width: 900px) {
	.project-highlights__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.project-highlights { padding: 40px 0; }
	.project-highlights__grid { grid-template-columns: 1fr; }
}

/* 8 — Interior showcase (4 image+label cards, reuses .gallery-cell/__label from
   gallery.css — same "image + bottom gradient + label" look as the homepage
   gallery mosaic, just in a plain 4-up grid instead of the 1-large+4-regular
   mosaic layout, so only the grid/card sizing is new here). ------------------- */

.project-interior { background: #ffffff; padding: 100px 0; }
.project-interior__header { margin-bottom: 40px; }
.project-interior .section-header__eyebrow { color: #794332; }
.project-interior .section-header__headline { color: #154533; }
.project-interior .section-header__headline-accent { color: #936900; }

.project-interior__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.project-interior__cell { aspect-ratio: 3 / 4; }

/* Matches .inspection-concierge__confirmation's properties (inspection-concierge.css) for consistency across the site's "small confirmation/disclaimer line" usages. */
.project-interior__disclaimer { text-align: center; font-family: var(--font-primary); color: #595959; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }

@media (max-width: 900px) {
	.project-interior__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.project-interior { padding: 40px 0; }
	.project-interior__grid { grid-template-columns: 1fr; }
}

/* 9 — Unit mix (up to 4 option columns, each a dark header bar + row list) ------- */

.project-unitmix { background: #ffffff; padding: 100px 0; }
.project-unitmix__header { margin-bottom: 40px; }
.project-unitmix .section-header__eyebrow { color: #794332; }
.project-unitmix .section-header__headline { color: #154533; }
.project-unitmix .section-header__headline-accent { color: #936900; }

.project-unitmix__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.project-unitmix-option { border: 1px solid var(--border-light); }

.project-unitmix-option__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	background: var(--ink);
	color: #ffffff;
	padding: 16px 20px;
	font-family: var(--font-serif);
	font-size: 16px;
	font-weight: 500;
}
.project-unitmix-option__head span:last-child { font-family: var(--font-primary); font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }

.project-unitmix-option__rows { padding: 4px 20px; }
.project-unitmix-option__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border-light);
	font-family: var(--font-primary);
	font-size: 13px;
	color: var(--ink);
}
.project-unitmix-option__row:last-child { border-bottom: none; }
.project-unitmix-option__row span:last-child { color: #936900; font-weight: 500; flex-shrink: 0; }

/* Matches .inspection-concierge__confirmation's properties (inspection-concierge.css) for consistency across the site's "small confirmation/disclaimer line" usages. */
.project-unitmix__footnote { text-align: center; font-family: var(--font-primary); color: #595959; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.7; margin: 0; }

@media (max-width: 900px) {
	.project-unitmix__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.project-unitmix { padding: 40px 0; }
	.project-unitmix__grid { grid-template-columns: 1fr; }
}

/* 10 — Floor plans (unbounded list — each row is one project_floorplan post) ------ */

.project-floorplans { background: var(--cream); padding: 100px 0; }
.project-floorplans__header { margin-bottom: 40px; }
.project-floorplans .section-header__eyebrow { color: #794332; }
.project-floorplans .section-header__headline { color: #154533; }
.project-floorplans .section-header__headline-accent { color: #936900; }

.project-floorplans__list { display: flex; flex-direction: column; gap: 20px; }
.project-floorplan-row {
	display: grid;
	grid-template-columns: minmax(280px, 42%) 1fr;
	gap: 40px;
	background: #ffffff;
	border: 1px solid var(--border-light);
	padding: 24px;
	align-items: center;
}
.project-floorplan-row__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.project-floorplan-row__image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.project-floorplan-row__placeholder { width: 100%; height: 100%; background: linear-gradient(160deg, var(--dark-card), var(--ink)); }

.project-floorplan-row__label { display: block; font-family: var(--font-primary); font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: #936900; margin-bottom: 10px; }
.project-floorplan-row__title { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--ink); margin: 0 0 20px; }

.project-floorplan-row__stats { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 20px; }
.project-floorplan-stat__value { display: block; font-family: var(--font-serif); font-size: 24px; font-weight: 500; color: var(--terracotta); line-height: 1; margin-bottom: 6px; }
.project-floorplan-stat__label { display: block; font-family: var(--font-primary); font-size: 11px; color: #595959; text-transform: uppercase; letter-spacing: 0.04em; }

.project-floorplan-row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-floorplan-row__tag {
	background: rgba(211, 155, 16, 0.10);
	border: 1px solid rgba(211, 155, 16, 0.30);
	padding: 5px 12px;
	font-family: var(--font-primary);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #936900;
}

.project-floorplan-row__desc { font-family: var(--font-primary); font-size: 14px; line-height: 1.7; color: #595959; margin: 0; }

@media (max-width: 900px) {
	.project-floorplan-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.project-floorplans { padding: 40px 0; }
	.project-floorplan-row { padding: 16px; gap: 20px; }
	.project-floorplan-row__stats { gap: 20px; }
}

/* 11 — Project gallery (mosaic reused from gallery.css) --------------------------- */

.project-gallery-section { padding-bottom: 120px; }

/* "+N" overlay on the last visible mosaic cell when more photos exist than
   the 5 shown — full dark cover (not the bottom-gradient __label treatment)
   with centred text, per spec. */
.gallery-cell__more-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 19, 17, 0.72);
	font-family: var(--font-primary);
	font-size: 24px;
	font-weight: 500;
	color: #ffffff;
}

/* Other opportunities ------------------------------------------------------------- */

.project-other { background: var(--cream); padding: 100px 0 120px; }
.project-other__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.project-other .section-header__eyebrow { color: #794332; }
.project-other .section-header__headline { color: #154533; }
.project-other .section-header__headline-accent { color: #936900; }

.project-other__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-other-card { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.project-other-card img, .project-other-card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-other-card__placeholder { background: linear-gradient(160deg, var(--dark-card), var(--ink)); }
.project-other-card__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,19,17,0.85) 0%, rgba(20,19,17,0.1) 60%); }
.project-other-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; }
.project-other-card__category { display: block; font-family: var(--font-primary); font-size: 11px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.project-other-card__title { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: #ffffff; margin: 0; }

@media (max-width: 900px) {
	.project-other__grid { grid-template-columns: 1fr; }
	.project-other__header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
	.project-other { padding: 48px 0; }
}
