/*
 * «من نحن» (page-about.php, Stage 5): the founder, «كيف نعمل», the editor's
 * own content. The hero is the shared page hero (components/page-hero.css);
 * the «من نحن» chapter, «قيمنا» and the client wall are the home page's own
 * sections and keep their files (pages/home/about.css, values.css,
 * clients.css). Sector cards: components/sector-card.css.
 *
 * Rhythm: dark hero → dark «من نحن» chapter → white founder → grey «كيف
 * نعمل» → dark values → white sectors → dark clients → CTA.
 */

.gb-main--about {
	padding-block: 0;
}

/* ---------- The founder ---------- */

.gb-founder {
	padding-block: var(--gb-space-2xl);
	background-color: var(--gb-bg);
	color: var(--gb-text);
}

.gb-founder__inner {
	display: grid;
	gap: var(--gb-space-xl);
	align-items: center;
}

@media (min-width: 56rem) {
	.gb-founder__inner {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		column-gap: var(--gb-space-2xl);
	}
}

/* The portrait on the profile's own navy, inside the brand's open diamond. */
.gb-founder__portrait {
	position: relative;
	justify-self: center;
	inline-size: min(100%, 26rem);
	margin: 0;
	aspect-ratio: 704 / 744;
	border-radius: var(--gb-radius-l);
	overflow: hidden;
	background: linear-gradient(160deg, #10284a, var(--gb-color-navy) 60%);
	box-shadow: 0 2rem 3.5rem -2.25rem rgb(12 35 66 / 0.6);
}

.gb-founder__portrait img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.gb-founder__portrait::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--gb-color-turquoise-a35);
	border-radius: inherit;
	background: radial-gradient(circle at calc(100% - 1.3rem) 1.3rem, var(--gb-seed) 0 0.38rem, transparent 0.42rem);
	pointer-events: none;
}

[dir="ltr"] .gb-founder__portrait::after {
	background: radial-gradient(circle at 1.3rem 1.3rem, var(--gb-seed) 0 0.38rem, transparent 0.42rem);
}

.gb-founder__text {
	display: grid;
	gap: var(--gb-space-xs);
	max-inline-size: 40rem;
}

.gb-founder__title {
	display: grid;
	gap: 0.2em;
	margin: 0 0 var(--gb-space-2xs);
}

.gb-founder__label {
	font-size: var(--gb-step-4);
	color: var(--gb-color-navy);
}

.gb-founder__name {
	font-family: var(--gb-font-sans);
	font-size: var(--gb-step-2);
	font-weight: var(--gb-weight-bold);
	color: #00857D; /* the turquoise darkened for text on white (4.5:1, Stage 0 review) */
}

.gb-founder__line {
	margin: 0;
	font-size: var(--gb-step-1);
	line-height: 1.85;
	color: var(--gb-text-muted);
	text-wrap: balance;
}

.gb-founder__quote {
	position: relative;
	margin: var(--gb-space-xs) 0 0;
	padding-inline-start: var(--gb-space-m);
	border-inline-start: 4px solid var(--gb-primary);
}

.gb-founder__quote p {
	margin: 0;
	font-family: var(--gb-font-display);
	font-size: var(--gb-step-2);
	line-height: 1.55;
	color: var(--gb-color-navy);
	text-wrap: balance;
}

/* ---------- «كيف نعمل» ---------- */

.gb-approach {
	padding-block: var(--gb-space-2xl);
	background-color: var(--gb-surface);
	color: var(--gb-text);
}

.gb-approach__head {
	margin-block-end: var(--gb-space-xl);
	text-align: center;
	justify-items: center;
}

.gb-approach__steps {
	--gb-node: 1rem;

	position: relative;
	display: grid;
	gap: var(--gb-space-l);
	margin: 0;
	padding: 0;
	padding-inline-start: 2.25rem;
	list-style: none;
}

/* The line joining the steps: down the reading start on phones… */
.gb-approach__steps::before {
	content: "";
	position: absolute;
	inset-block: 0.5rem;
	inset-inline-start: 0.5rem;
	inline-size: 2px;
	margin-inline-start: -1px;
	background: linear-gradient(to bottom, var(--gb-primary), var(--gb-seed));
	border-radius: var(--gb-radius-pill);
}

.gb-approach__step {
	position: relative;
	display: grid;
	gap: var(--gb-space-3xs);
	align-content: start;
}

.gb-approach__node {
	position: absolute;
	inset-block-start: 0.3rem;
	inset-inline-start: calc(0.5rem - 2.25rem - var(--gb-node) / 2);
	inline-size: var(--gb-node);
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var(--gb-seed);
	box-shadow: 0 0 0 4px var(--gb-surface), 0 0 0 6px var(--gb-color-seed-a35);
}

.gb-approach__art {
	inline-size: 3rem;
	block-size: 3rem;
	fill: none;
	stroke: var(--gb-color-navy);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gb-approach__art .seed {
	fill: var(--gb-seed);
	stroke: none;
}

.gb-approach__title {
	margin: var(--gb-space-3xs) 0 0;
	font-family: var(--gb-font-display);
	font-size: var(--gb-step-2);
	color: var(--gb-color-navy);
}

.gb-approach__text {
	margin: 0;
	color: var(--gb-text-muted);
	text-wrap: balance;
}

/* …and across on wide screens, the seed above each step. */
@media (min-width: 56rem) {
	.gb-approach__steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--gb-space-l);
		padding-inline-start: 0;
		padding-block-start: 2.25rem;
	}

	.gb-approach__steps::before {
		inset-block: 0.5rem auto;
		inset-inline: 0;
		inline-size: auto;
		block-size: 2px;
		margin: 0;
		margin-block-start: -1px;
		background: linear-gradient(var(--gb-dir-grad, to left), var(--gb-primary), var(--gb-seed));
	}

	[dir="ltr"] .gb-approach__steps::before {
		--gb-dir-grad: to right;
	}

	.gb-approach__node {
		inset-block-start: calc(0.5rem - 2.25rem - var(--gb-node) / 2);
		inset-inline-start: 0;
	}
}

/* ---------- What the owner adds in the editor ---------- */

.gb-about-more {
	padding-block: var(--gb-space-xl);
	background-color: var(--gb-bg);
}
