/*
 * Realestech · brand pages (Proxima, Proxima Academy), added in 1.4.0.
 * Markup: page-proxima.php, page-proxima-academy.php. Loaded after figma-pages.css;
 * page colours come from proxima.css / proxima-academy.css through --bi-* custom properties.
 */

.bi {
	--bi-number: #2e3a8f;   /* numbered rows: rule + numbers */
	--bi-closing: #232c6e;  /* closing panel */
}

.bi .bi-placeholder { font: 400 28px/52.8px var(--font-heading); letter-spacing: -1.8px; color: #ff0004; text-align: center; }
.bi .bi-tag-missing { color: #9c5217; font-size: 14px; line-height: 22px; }

/* Section intro: heading left, body right, bottoms aligned */
.bi-intro { display: flex; align-items: flex-end; gap: 230px; }
.bi-intro__head { flex: 0 1 588px; display: flex; flex-direction: column; gap: 24px; }
.bi .bi-intro__body { flex: 1 1 0; max-width: 408px; }

/* 01 HERO */
.bi-hero { padding-top: 160px; background: #fff; }
.bi-hero__inner { display: flex; align-items: center; gap: 126px; }
.bi-hero__copy { flex: 0 1 486px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 40px; } /* 8px spacer + 32px gap in Figma */
.bi-hero__logo { width: 153px; height: auto; }
.bi--academy .bi-hero__logo { width: 125px; }
.bi-hero__cta { margin-top: 40px; }
.bi-hero__media { flex: 0 1 588px; min-width: 0; aspect-ratio: 588 / 640; background: #e4e1da; }
.bi-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* 02 SPLIT (copy + key panel) */
.bi-split { padding: var(--space-section) 0; background: #fff; }
.bi-split__inner { display: flex; align-items: center; gap: 126px; }
.bi-split__copy { flex: 0 1 486px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.bi-diagram { flex: 0 1 588px; min-width: 0; height: 480px; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--color-surface-warm); }
.bi .bi-courses { margin-top: 0; }
.bi-courses li { padding: 12px 0; border-bottom: 1px solid #d1d9e3; font: 400 16px/26.4px var(--font-body); color: var(--color-text-body); }
.bi-courses li:last-child { border-bottom: 0; }

/* Learning pathway panel (Academy) */
.bi-pathway { position: relative; flex: 0 1 588px; min-width: 0; aspect-ratio: 588 / 520; overflow: hidden; background: #0c1b33; color: #fff; }
.bi-pathway__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bi-pathway::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .3); }
.bi-pathway__steps { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.bi .bi-pathway__label { position: absolute; z-index: 2; left: 8.16%; top: 9.23%; font: 500 11px/normal var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; }
.bi-pathway__list { position: absolute; inset: 0; z-index: 2; }
.bi-pathway__stage { position: absolute; width: 111px; display: flex; flex-direction: column; gap: 8px; }
.bi-pathway__stage--1 { left: 8.16%; top: 50%; }
.bi-pathway__stage--2 { left: 29.76%; top: 41.73%; }
.bi-pathway__stage--3 { left: 51.36%; top: 34.23%; }
.bi-pathway__stage--4 { left: 72.96%; top: 14.23%; }
.bi-pathway__num { font: 500 11px/normal var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; }
.bi-pathway__title { font: 400 18px/22.5px var(--font-heading); }
.bi-pathway__text { font: 400 13px/19.5px var(--font-body); }

/* 03 / 04 NUMBERED ROWS (warm) */
.bi-numbered { padding: var(--space-section) 0; background: var(--color-surface-warm); }
.bi .bi-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 96px; }
.bi-col { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; border-top: 1px solid var(--bi-number); }
.bi-col__num { margin-bottom: 20px; font: 300 56px/56px var(--font-heading); letter-spacing: -2px; color: var(--bi-number); }
.bi-col__title { font: 400 24px/30px var(--font-heading); letter-spacing: -.5px; color: var(--color-brand-navy); }
.bi-col__icon { width: 56px; height: 56px; margin-bottom: 12px; }
.bi-col--icon { border-top-color: var(--color-brand-navy); }
.bi-developers__title { max-width: 441px; }
.bi--proxima .bi-numbered--next .bi-intro__body { max-width: none; }
.bi .bi-rto { margin-top: 96px; max-width: 792px; font: 400 16px/26.4px var(--font-body); color: var(--color-text-body); }
.bi-rto strong { font-weight: 500; color: var(--color-brand-navy); }

/* WHO IT'S FOR */
.bi-who { padding: var(--space-section) 0; background: #fff; }
.bi-who__head { display: flex; flex-direction: column; gap: 24px; }
.bi .bi-who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.bi-who__card { display: flex; flex-direction: column; gap: 28px; }
.bi-who__photo { margin: 0; width: 100%; aspect-ratio: 10 / 7; overflow: hidden; position: relative; background: transparent; }
.bi-who__photo img { position: absolute; left: 0; top: -36px; width: 100%; height: calc(100% + 72px); object-fit: cover; object-position: center 30%; display: block; }
.bi-who__copy { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--color-brand-navy); }

/* TESTIMONIAL (Academy) */
.bi-quote { padding: var(--space-section) 0; background: var(--color-surface-warm); }
.bi-quote__inner { display: flex; flex-direction: column; align-items: center; gap: 48px; text-align: center; }
.bi-quote__text { margin: 0; }
.bi-quote__text p { display: flex; align-items: center; justify-content: center; font: 300 44px/52.8px var(--font-heading); letter-spacing: -1.5px; color: var(--color-brand-navy); }
.bi .bi-quote__tag { font-size: 32px; line-height: 38.4px; }
.bi .bi-quote__by { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 400 14px/1.5 var(--font-body); color: var(--color-text-body); }
.bi-quote__by .fp-tag { font-size: 12px; line-height: 18px; }
.bi-quote__note { margin: 0; font: 400 14px/1.5 var(--font-body); color: var(--color-text-body); }

/* CLOSING CTA */
.bi-closing { padding: var(--space-section) 0; background: var(--bi-closing); color: #fff; }
.bi-closing__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.bi-closing__logo { width: 111px; height: auto; margin-bottom: 40px; }
.bi-closing__title { max-width: 792px; color: #fff; }
.bi .bi-closing__body { max-width: 588px; font: 400 16px/26.4px var(--font-body); color: rgba(255, 255, 255, .75); }
.bi .bi-closing__body--narrow { max-width: 444px; }
.bi-closing__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; }
.bi-btn-white { height: 56px; padding: 0 28px; gap: 14px; font-size: 16px; background: #fff; border-color: #fff; color: var(--color-brand-navy) !important; }
.bi-btn-white:hover { background: var(--color-surface-warm); border-color: var(--color-surface-warm); }
.bi .bi-closing__note { font: 500 12px/normal var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

@media (max-width: 1279px) {
	.bi-hero__inner, .bi-split__inner { gap: 64px; }
	.bi-intro { gap: 96px; }
}

@media (max-width: 1023px) {
	.bi-hero { padding-top: 96px; }
	.bi-hero__inner, .bi-split__inner { flex-direction: column; align-items: stretch; gap: 56px; }
	.bi-hero__copy, .bi-split__copy { flex: none; max-width: 640px; }
	.bi-hero__media, .bi-diagram, .bi-pathway { flex: none; width: 100%; max-width: 640px; }
	.bi-intro { flex-direction: column; align-items: stretch; gap: 24px; }
	.bi-intro__head, .bi .bi-intro__body { flex: none; max-width: 640px; }
	.bi .bi-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; margin-top: 64px; }
	.bi .bi-who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.bi .bi-rto { margin-top: 64px; }
}

@media (max-width: 767px) {
	.bi-hero { padding-top: 64px; }
	.bi-hero__copy { gap: 24px; }
	.bi-hero__logo { width: 128px; }
	.bi-hero__cta { white-space: normal; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; }
	.bi-diagram { height: 300px; }
	.bi .bi-placeholder { font-size: 20px; line-height: 28px; letter-spacing: -.6px; }
	.bi .bi-cols { grid-template-columns: 1fr; row-gap: 40px; margin-top: 48px; }
	.bi-col__num { font-size: 44px; line-height: 44px; }
	.bi-col__title { font-size: 21px; line-height: 27px; }
	.bi .bi-who__grid { grid-template-columns: 1fr; margin-top: 40px; }
	.bi-quote__inner { gap: 32px; }
	.bi-quote__text p { font-size: 32px; }
	.bi .bi-quote__tag { font-size: 22px; line-height: 30px; }
	.bi-closing__inner { gap: 24px; }
	/* Pathway: stack the stages under the photo heading on small screens */
	.bi-pathway { aspect-ratio: auto; padding: 28px 24px; }
	.bi-pathway__steps { display: none; }
	.bi .bi-pathway__label { position: relative; z-index: 2; left: auto; top: auto; margin-bottom: 20px; }
	.bi-pathway__list { position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
	.bi-pathway__stage { position: static; width: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .5); }
}
