/* Home page sections (design reference). Loaded on the front page only. */

/* Hero ------------------------------------------------------------------- */

.hero {
	--link-hover: #fff;
	position: relative;
	isolation: isolate; /* Keep the overlay/image layers inside the hero. */
	display: flex;
	align-items: center;
	min-block-size: max(640px, min(100vh, 960px));
	padding-block: calc(92px + var(--space-8)) calc(var(--space-8) + 110px);
	overflow: hidden;
	background: var(--color-dark);
	color: #fff;
}

/* Layering uses a real overlay element with positive z-indexes: a negative
   z-index image under a pseudo-element overlay rendered fully black in Chromium. */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center 35%;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgb(15 15 15 / 0.85) 0%, rgb(15 15 15 / 0.55) 50%, rgb(15 15 15 / 0.2) 100%),
		linear-gradient(0deg, rgb(15 15 15 / 0.5) 0%, rgb(15 15 15 / 0) 35%);
}

[dir="rtl"] .hero__overlay {
	background:
		linear-gradient(270deg, rgb(15 15 15 / 0.85) 0%, rgb(15 15 15 / 0.55) 50%, rgb(15 15 15 / 0.2) 100%),
		linear-gradient(0deg, rgb(15 15 15 / 0.5) 0%, rgb(15 15 15 / 0) 35%);
}

.hero__inner {
	position: relative;
	z-index: 2;
}

.hero__label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	margin-block-end: var(--space-5);
	color: var(--color-brand);
	font-size: var(--fs-small);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero__label-line {
	inline-size: 48px;
	block-size: 2px;
	background: var(--color-brand);
}

.hero__title {
	max-inline-size: 24ch;
	margin-block-end: var(--space-5);
	color: #fff;
	font-size: clamp(2rem, 1.45rem + 2.2vw, 3.75rem); /* 32 → 60: the headline is a full sentence. */
	line-height: 1.15;
}

:lang(ar) .hero__title {
	max-inline-size: 26ch;
	font-size: clamp(1.75rem, 1.35rem + 1.7vw, 3.125rem); /* 28 → 50 */
	line-height: 1.45;
}

.hero__text {
	max-inline-size: 620px;
	margin-block-end: var(--space-7);
	color: rgb(255 255 255 / 0.88);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3rem);
}

.hero__contact {
	position: absolute;
	z-index: 2;
	inset-block-end: calc(110px + var(--space-5));
	inset-inline-end: max(var(--gutter), calc((100vw - var(--container)) / 2));
	display: none;
	flex-direction: column;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero__contact a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	color: #fff;
	font-weight: var(--fw-semibold);
	text-decoration: none;
}

.hero__contact .icon {
	box-sizing: content-box;
	inline-size: 18px;
	block-size: 18px;
	padding: 9px;
	border-radius: var(--radius-round);
	background: #fff;
}

@media (min-width: 1200px) {
	.hero__contact {
		display: flex;
	}
}

/* Experience circle + figures -------------------------------------------- */

.figures {
	position: relative;
	isolation: isolate;
	z-index: 2; /* Above the hero: the experience circle overlaps it. */
	padding-block-end: var(--space-8);
	background: var(--color-surface);
	/* Clip the watermark at the sides and bottom, but let the experience circle
	   (and its shadow) overlap the hero above — overflow: hidden cut it in half. */
	clip-path: inset(-180px 0 0 0);
}

.figures__watermark {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: -60px;
	z-index: -1;
	opacity: 0.05;
}

.figures__watermark .icon {
	inline-size: 420px;
	block-size: 420px;
}

.figures__circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	inline-size: 220px;
	block-size: 220px;
	margin: -110px auto var(--space-7);
	border-radius: var(--radius-round);
	background: var(--color-bg);
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.12);
	text-align: center;
}

.figures__value {
	color: var(--color-heading);
	font-family: "Prata", Georgia, serif;
	font-size: 3.5rem;
	line-height: 1;
}

:lang(ar) .figures__value,
:lang(ar) .figures__num {
	font-family: var(--font-heading);
	font-weight: 700;
}

.figures__label {
	margin-block-start: var(--space-2);
	color: var(--color-heading);
	font-weight: var(--fw-semibold);
}

.figures__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	margin: 0;
	padding: var(--space-6) 0 0;
	list-style: none;
	border-block-start: 1px solid var(--color-border);
}

.figures__item {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4) var(--space-6);
}

.figures__item + .figures__item {
	border-inline-start: 1px solid var(--color-border);
}

@media (max-width: 767px) {
	.figures__item + .figures__item {
		border-inline-start: 0;
		border-block-start: 1px solid var(--color-border);
	}
}

.figures__num {
	align-self: flex-start;
	color: var(--color-heading);
	font-family: "Prata", Georgia, serif;
	font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
	line-height: 1.1;
}

.figures__name {
	color: var(--color-heading);
	font-size: 1.125rem;
	font-weight: var(--fw-semibold);
}

.figures__note {
	font-size: var(--fs-small);
	line-height: 1.7;
}

/* About ------------------------------------------------------------------ */

.about-intro__grid {
	display: grid;
	gap: var(--space-8);
	align-items: center;
}

@media (min-width: 992px) {
	.about-intro__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.about-intro__media {
	position: relative;
	margin: var(--space-5) 0 0;
	margin-inline-start: var(--space-5);
}

/* Offset brown frame behind the photo. */
.about-intro__media::before {
	content: "";
	position: absolute;
	inset-block-start: calc(-1 * var(--space-5));
	inset-inline-start: calc(-1 * var(--space-5));
	inline-size: 100%;
	block-size: 100%;
	border: 1px solid var(--color-brand);
}

.about-intro__media img {
	position: relative;
	inline-size: 100%;
	aspect-ratio: 5 / 6;
	object-fit: cover;
	object-position: top;
}

.call-card {
	position: absolute;
	inset-block-end: var(--space-7);
	inset-inline-start: calc(-1 * var(--space-5));
	display: grid;
	gap: var(--space-1);
	padding: var(--space-5) var(--space-6);
	background: var(--color-brand);
	color: #111;
	text-decoration: none;
	box-shadow: 0 12px 30px rgb(0 0 0 / 0.2);
}

.call-card__label {
	font-size: var(--fs-small);
	font-weight: var(--fw-semibold);
}

.call-card__value {
	font-family: "Prata", Georgia, serif;
	font-size: 1.625rem;
	line-height: 1.1;
	text-align: start;
}

[dir="rtl"] .call-card__value {
	text-align: end;
}

.call-card:hover {
	color: #000;
	background: #c9a06f;
}

.about-intro__body > p {
	margin-block-end: var(--space-4);
}

/* Practice tabs: cards sit on the surface background ---------------------- */

.practice .tabs__panel[hidden] {
	display: none;
}

/* Sectors ---------------------------------------------------------------- */

.sectors .grid {
	row-gap: var(--space-7);
}

/* Process: numbered circles joined by curved arrows ---------------------- */

.steps-flow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-7) 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps-flow__item {
	position: relative;
	display: flex;
	flex: 0 0 25%;
	flex-direction: column;
	align-items: center;
	padding-inline: var(--space-4);
	text-align: center;
}

.steps-flow__circle {
	position: relative;
	display: grid;
	place-items: center;
	inline-size: 136px;
	block-size: 136px;
	margin-block-end: var(--space-5);
	border: 1px solid var(--color-brand);
	border-radius: var(--radius-round);
	background: var(--color-bg);
	box-shadow: inset 0 0 0 10px var(--color-bg), inset 0 0 0 11px var(--color-border);
	transition: transform var(--ease), box-shadow var(--ease);
}

.steps-flow__item:hover .steps-flow__circle {
	transform: translateY(-4px);
	box-shadow: inset 0 0 0 10px var(--color-bg), inset 0 0 0 11px var(--color-brand), 0 12px 28px rgb(0 0 0 / 0.1);
}

.steps-flow__circle .icon {
	inline-size: 52px;
	block-size: 52px;
}

.steps-flow__num {
	position: absolute;
	inset-block-start: 4px;
	inset-inline-end: 4px;
	display: grid;
	place-items: center;
	inline-size: 38px;
	block-size: 38px;
	border-radius: var(--radius-round);
	background: var(--color-btn-bg);
	color: #fff;
	font-size: 0.875rem;
	font-weight: var(--fw-semibold);
}

.steps-flow__title {
	margin: 0;
	max-inline-size: 240px;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-semibold);
	line-height: 1.6;
}

.steps-flow__arrow {
	position: absolute;
	inset-block-start: 40px;
	inset-inline-end: -46px;
	inline-size: 92px;
	block-size: 32px;
	color: var(--color-brand);
}

[dir="rtl"] .steps-flow__arrow {
	transform: scaleX(-1);
}

.steps-flow__item:nth-child(4n) .steps-flow__arrow {
	display: none;
}

@media (max-width: 991px) {
	.steps-flow__item {
		flex-basis: 50%;
	}

	.steps-flow__item:nth-child(4n) .steps-flow__arrow {
		display: block;
	}

	.steps-flow__item:nth-child(2n) .steps-flow__arrow {
		display: none;
	}
}

@media (max-width: 575px) {
	.steps-flow__item {
		flex-basis: 100%;
	}

	.steps-flow__arrow,
	.steps-flow__item:nth-child(4n) .steps-flow__arrow {
		display: none;
	}
}

/* Why us + consultation box ---------------------------------------------- */

.why__grid {
	display: grid;
	gap: var(--space-8);
	align-items: start;
}

@media (min-width: 1200px) {
	.why__grid {
		grid-template-columns: 1.25fr 1fr;
	}
}

.why__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--space-6) var(--space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.why__item {
	display: flex;
	gap: var(--space-4);
	align-items: flex-start;
}

.why__icon {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 72px;
	block-size: 72px;
	border-radius: var(--radius-round);
	background: var(--color-brand-tint);
	transition: background-color var(--ease);
}

.why__item:hover .why__icon {
	background: var(--color-brand);
}

.why__icon .icon {
	inline-size: 36px;
	block-size: 36px;
}

.why__title {
	margin-block-end: var(--space-2);
	font-size: var(--fs-h5);
}

.why__text {
	margin: 0;
	font-size: var(--fs-small);
	line-height: 1.85;
}

.consult-box {
	--link-hover: #fff;
	position: relative;
	padding: var(--space-7) var(--space-6);
	background: var(--color-text); /* Dark gold: white text passes AA (5.94:1). */
	color: #fff;
}

.consult-box::before {
	content: "";
	position: absolute;
	inset: var(--space-3);
	border: 1px solid rgb(255 255 255 / 0.25);
	pointer-events: none;
}

.consult-box__label {
	margin-block-end: var(--space-2);
	color: rgb(255 255 255 / 0.85);
	font-size: var(--fs-small);
}

.consult-box__title {
	margin-block-end: var(--space-4);
	color: #fff;
	font-size: var(--fs-h3);
}

.consult-box__text {
	margin-block-end: var(--space-5);
	color: rgb(255 255 255 / 0.9);
}

.consult-box__methods {
	display: grid;
	gap: var(--space-3);
	margin: 0 0 var(--space-6);
	padding: 0;
	list-style: none;
}

.consult-box__methods a {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-4);
	background: rgb(255 255 255 / 0.1);
	color: #fff;
	text-decoration: none;
	transition: background-color var(--ease);
}

.consult-box__methods a:hover {
	background: rgb(255 255 255 / 0.18);
}

.consult-box__icon {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 48px;
	block-size: 48px;
	border-radius: var(--radius-round);
	background: #fff;
}

.consult-box__methods a > span:last-child {
	display: grid;
	min-inline-size: 0;
	overflow-wrap: anywhere;
	font-weight: var(--fw-semibold);
}

.consult-box__mlabel {
	color: rgb(255 255 255 / 0.8);
	font-size: var(--fs-small);
	font-weight: var(--fw-regular);
}

/* Closing CTA ------------------------------------------------------------ */

.cta {
	--link-hover: #fff;
	position: relative;
	isolation: isolate;
	padding-block: clamp(5rem, 3.5rem + 5vw, 8rem);
	background-color: var(--color-dark);
	background-position: center;
	background-size: cover;
	color: #fff;
}

.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgb(15 15 15 / 0.94) 0%, rgb(15 15 15 / 0.75) 55%, rgb(15 15 15 / 0.35) 100%);
}

[dir="rtl"] .cta::before {
	background: linear-gradient(270deg, rgb(15 15 15 / 0.94) 0%, rgb(15 15 15 / 0.75) 55%, rgb(15 15 15 / 0.35) 100%);
}

.cta__body {
	max-inline-size: 640px;
}

.cta .section-head {
	margin-block-end: var(--space-6);
}

.cta .section-head__title {
	color: #fff;
}

.cta .section-head__intro {
	color: rgb(255 255 255 / 0.85);
}

.cta__call {
	display: inline-flex;
	align-items: center;
	gap: var(--space-4);
	min-block-size: 56px;
	padding-block: 6px;
	padding-inline: var(--space-6) 6px;
	border: 1px solid rgb(255 255 255 / 0.6);
	color: #fff;
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.cta__call-icon {
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: var(--radius-round);
	background: #fff;
	color: #000;
	transition: background-color var(--ease), color var(--ease);
}

.cta__call:hover,
.cta__call:focus-visible {
	border-color: #fff;
	background: #fff;
	color: #000;
}

.cta__call:hover .cta__call-icon,
.cta__call:focus-visible .cta__call-icon {
	background: rgb(182 140 90 / 0.2);
}

/* Feeds ------------------------------------------------------------------ */

.feed__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
	margin-block-end: var(--space-7);
}

.feed__head .section-head {
	margin: 0;
}

.feed + .feed {
	padding-block-start: 0;
}
