/* ZHI — shared section base (loaded on every page that uses Page Sections) */

.section { position: relative; padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(1.5rem, 1.25rem + 1.5vw, 2.75rem); }
.section-head .lede { margin-bottom: 0; }
.section-head--split { display: grid; gap: var(--space-5) var(--space-8); align-items: end; }
.section-head--split .h2 { margin-bottom: 0; }
.section-head--center { text-align: center; max-width: 880px; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: 0.7; }
.section-head--center .lede { margin-inline: auto; }
.section-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.section-foot { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); display: flex; justify-content: center; }
@media (min-width: 960px) {
	.section-head--split { grid-template-columns: 1.05fr 1fr; }
}

/* Shared image framing */
.pcard__media img, .ocard__media img, .ccard__media img, .tpanel__media img, .agent__media img,
.gfeature__media img, .gitem__media img, .about__img img, .invest__img img,
.hero__media img, .stats__bg img, .valuation__bg img, .cta__bg img {
	width: 100%; height: 100%; object-fit: cover;
}

/* Small screens */
@media (max-width: 599px) {
	.btn { white-space: normal; text-align: center; }
	.section-head__actions .btn { width: 100%; }
}

/* Responsive guidelines: headings and text are left-aligned everywhere. */
.section-head--center { text-align: left; margin-inline: 0; }
.section-head--center .eyebrow { justify-content: flex-start; }
.section-head--center .eyebrow::after { content: none; }
.section-head--center .lede { margin-inline: 0; }
.section-foot { justify-content: flex-start; }
.section-foot { flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.section-foot__note { flex: 1 1 32ch; max-width: 60ch; }
/* Desktop: the button always sits at the bottom right (with or without a text line); phones keep it left. */
@media (min-width: 760px) { .section-foot { justify-content: space-between; } .section-foot .btn { margin-left: auto; } }
.section-foot__note p { margin: 0; color: var(--fg-muted); }
.section-foot__note strong { color: var(--fg); font-weight: 500; }

/* Swipe row: add class "swipe-row" to any card row that should become a
   horizontal, swipeable row on phones with the scrollbar hidden.
   Sections tune it with --swipe-w (card width) and --swipe-gap. */
@media (max-width: 759px) {
	.section .swipe-row {
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-template-rows: none;
		grid-auto-columns: var(--swipe-w, 78%);
		gap: var(--swipe-gap, var(--space-3));
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
	}
	.section .swipe-row::-webkit-scrollbar { display: none; }
	.section .swipe-row > * { scroll-snap-align: start; min-width: 0; }
}

/* Stacked heading layout (option "Heading layout"): title on its own row, text on a full-width row below. */
.head-stack.head-stack .section-head--split { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.head-stack.head-stack .section-head .h2,
.head-stack.head-stack .section-head .lede,
.head-stack.head-stack .section-head p { max-width: none; }
@media (min-width: 900px) {
	.head-stack.head-stack .faq__grid,
	.head-stack.head-stack .developers__grid,
	.head-stack.head-stack .story__grid,
	.head-stack.head-stack .costs__grid,
	.head-stack.head-stack .tcards__layout,
	.head-stack.head-stack .compare__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
	.head-stack.head-stack .process__intro { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
	.head-stack.head-stack .faq__head,
	.head-stack.head-stack .story__head,
	.head-stack.head-stack .tcards__head,
	.head-stack.head-stack .costs__intro { position: static; }
	.head-stack.head-stack .story__body { padding-left: 0; }
	.head-stack.head-stack .story__body::before { content: none; }
	.head-stack.head-stack .costs__grid { gap: var(--space-7); }
}
.head-stack.head-stack .process__copy,
.head-stack.head-stack .costs__copy,
.head-stack.head-stack .developers__head .lede { max-width: none; }
.head-stack.head-stack .tcards__head,
.head-stack.head-stack .tcards__copy,
.head-stack.head-stack .tcards__copy p { max-width: none; }

/* Off-plan link cards: project count and starting price as pills */
.lc-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; letter-spacing: 0; text-transform: none; }
.lc-pill {
	display: inline-flex; align-items: center; padding: 0.3rem 0.75rem; border-radius: 999px;
	font-size: 0.75rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.04em; text-transform: none; white-space: nowrap;
	color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lc-pill:first-child { background: rgba(214, 178, 120, 0.22); border-color: rgba(214, 178, 120, 0.55); color: var(--bronze-300, #e6cda0); }
